import { RenderFunction, SetupContext, Ref } from 'vue' import { DefineVxeComponentApp, DefineVxeComponentOptions, DefineVxeComponentInstance, VxeComponentBaseOptions, VxeComponentEventParams, VxeComponentSizeType, ValueOf, VxeComponentStatusType } from '@vxe-ui/core' /* eslint-disable no-use-before-define,@typescript-eslint/ban-types */ export declare const VxeText: DefineVxeComponentApp export type VxeTextComponent = DefineVxeComponentOptions export type VxeTextInstance = DefineVxeComponentInstance export interface VxeTextConstructor extends VxeComponentBaseOptions, VxeTextMethods { props: VxeTextProps context: SetupContext reactData: TextReactData getRefMaps(): TextPrivateRef getComputeMaps(): TextPrivateComputed renderVN: RenderFunction } export interface TextPrivateRef { refElem: Ref } export interface VxeTextPrivateRef extends TextPrivateRef {} export namespace VxeTextPropTypes { export type Status = VxeComponentStatusType export type Title = string | number export type Icon = string export type PrefixIcon = string export type SuffixIcon = string export type Loading = boolean export type Content = string | number export type ClickToCopy = boolean export type Size = VxeComponentSizeType export interface CopyConfig { layout?: 'left' | 'right' | '' | null showMessage?: boolean trigger?: 'click' | 'dblclick' icon?: string status?: VxeComponentStatusType } } export type VxeTextProps = { status?: VxeTextPropTypes.Status title?: VxeTextPropTypes.Title /** * 前缀图标,属于 prefix-icon 的简写 */ icon?: VxeTextPropTypes.Icon /** * 前缀图标 */ prefixIcon?: VxeTextPropTypes.PrefixIcon /** * 后缀图标 */ suffixIcon?: VxeTextPropTypes.SuffixIcon loading?: VxeTextPropTypes.Loading content?: VxeTextPropTypes.Content clickToCopy?: VxeTextPropTypes.ClickToCopy copyConfig?: VxeTextPropTypes.CopyConfig size?: VxeTextPropTypes.Size } export interface TextPrivateComputed {} export interface VxeTextPrivateComputed extends TextPrivateComputed {} export interface TextReactData {} export interface TextMethods { dispatchEvent(type: ValueOf, params: Record, evnt: Event | null): void } export interface VxeTextMethods extends TextMethods {} export interface TextPrivateMethods {} export interface VxeTextPrivateMethods extends TextPrivateMethods {} export type VxeTextEmits = ['click', 'dblclick', 'prefix-click', 'suffix-click', 'copy-success', 'copy-error'] export namespace VxeTextDefines { export interface TextEventParams extends VxeComponentEventParams { $text: VxeTextConstructor } export interface ClickParams {} export interface ClickEventParams extends TextEventParams, ClickParams {} } export type VxeTextEventProps = { onClick?: VxeTextEvents.Click } export interface VxeTextListeners { click?: VxeTextEvents.Click } export namespace VxeTextEvents { export type Click = (params: VxeTextDefines.ClickEventParams) => void } export namespace VxeTextSlotTypes { export interface DefaultSlotParams {} } export interface VxeTextSlots { default?: (params: VxeTextSlotTypes.DefaultSlotParams) => any icon?: (params: VxeTextSlotTypes.DefaultSlotParams) => any } export const Text: typeof VxeText export default VxeText