UNPKG

ivue-material-plus

Version:

A high quality UI components Library with Vue.js

330 lines (329 loc) 7.13 kB
import type { Option } from './types/auto-complete'; declare const _sfc_main: import("vue").DefineComponent<{ /** * 设置选择的值 * * @type {String} */ modelValue: { type: StringConstructor; default: string; }; /** * 输入提示 * * @type {String} */ placeholder: { type: StringConstructor; default: string; }; /** * 是否禁用 * * @type {Boolean} */ disabled: { type: BooleanConstructor; default: boolean; }; /** * 是否可以清除选择 * * @type {Boolean} */ clearable: { type: BooleanConstructor; default: boolean; }; /** * 弹窗的展开方向 * * @type {String} */ placement: { type: StringConstructor; validator(value: string): boolean; default: string; }; /** * 开启 transfer 时,给浮层添加额外的 class 名称 * * @type {String} */ transferClassName: { type: StringConstructor; }; /** * 是否将弹层放置于 body 内,在 Tabs、 * 带有 fixed 的 Table 列内使用时, * 建议添加此属性,它将不受父级样式影响, * 从而达到更好的效果 * * @type {Boolean} */ transfer: { type: BooleanConstructor; default(): any; }; /** * id * * @type {String} */ id: { type: StringConstructor; }; /** * 是否开启外部点击的 capture 模式,可通过全局配置 * * @type {Boolean} */ capture: { type: BooleanConstructor; default(): any; }; /** * 输入框name * * @type {String} */ name: { type: StringConstructor; }; /** * 自动完成的数据源 * * @type {Array} */ list: { type: ArrayConstructor; default: () => any[]; }; /** * 外部过滤方法 * * @type {Function, Boolean} */ filterMethod: { type: (BooleanConstructor | FunctionConstructor)[]; default: boolean; }; /** * 远程搜索方法 * * @type {Function} */ remoteMethod: { type: FunctionConstructor; }; /** * 加载中 * * @type {Boolean} */ loading: { type: BooleanConstructor; default: boolean; }; /** * 加载中的文字提示 * * @type {String} */ loadingText: { type: StringConstructor; default: string; }; /** * 输入时是否触发表单的校验 * * @type {Boolean} */ validateEvent: { type: BooleanConstructor; default: boolean; }; }, { select: import("vue").Ref<any>; input: import("vue").Ref<any>; data: { currentValue: string; disableEmitChange: boolean; }; inputId: import("vue").Ref<string>; filteredData: import("vue").ComputedRef<any[]>; searchMethod: (query: string) => void; handleSelect: (option: Option) => void; handleClickOutside: () => void; handleFocus: (event: Event) => void; handleBlur: (event: Event) => void; handleClear: () => void; }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("on-change" | "update:modelValue" | "on-focus" | "on-blur" | "on-clear" | "on-search" | "on-select")[], "on-change" | "update:modelValue" | "on-focus" | "on-blur" | "on-clear" | "on-search" | "on-select", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{ /** * 设置选择的值 * * @type {String} */ modelValue: { type: StringConstructor; default: string; }; /** * 输入提示 * * @type {String} */ placeholder: { type: StringConstructor; default: string; }; /** * 是否禁用 * * @type {Boolean} */ disabled: { type: BooleanConstructor; default: boolean; }; /** * 是否可以清除选择 * * @type {Boolean} */ clearable: { type: BooleanConstructor; default: boolean; }; /** * 弹窗的展开方向 * * @type {String} */ placement: { type: StringConstructor; validator(value: string): boolean; default: string; }; /** * 开启 transfer 时,给浮层添加额外的 class 名称 * * @type {String} */ transferClassName: { type: StringConstructor; }; /** * 是否将弹层放置于 body 内,在 Tabs、 * 带有 fixed 的 Table 列内使用时, * 建议添加此属性,它将不受父级样式影响, * 从而达到更好的效果 * * @type {Boolean} */ transfer: { type: BooleanConstructor; default(): any; }; /** * id * * @type {String} */ id: { type: StringConstructor; }; /** * 是否开启外部点击的 capture 模式,可通过全局配置 * * @type {Boolean} */ capture: { type: BooleanConstructor; default(): any; }; /** * 输入框name * * @type {String} */ name: { type: StringConstructor; }; /** * 自动完成的数据源 * * @type {Array} */ list: { type: ArrayConstructor; default: () => any[]; }; /** * 外部过滤方法 * * @type {Function, Boolean} */ filterMethod: { type: (BooleanConstructor | FunctionConstructor)[]; default: boolean; }; /** * 远程搜索方法 * * @type {Function} */ remoteMethod: { type: FunctionConstructor; }; /** * 加载中 * * @type {Boolean} */ loading: { type: BooleanConstructor; default: boolean; }; /** * 加载中的文字提示 * * @type {String} */ loadingText: { type: StringConstructor; default: string; }; /** * 输入时是否触发表单的校验 * * @type {Boolean} */ validateEvent: { type: BooleanConstructor; default: boolean; }; }>> & { "onOn-change"?: (...args: any[]) => any; "onUpdate:modelValue"?: (...args: any[]) => any; "onOn-focus"?: (...args: any[]) => any; "onOn-blur"?: (...args: any[]) => any; "onOn-clear"?: (...args: any[]) => any; "onOn-search"?: (...args: any[]) => any; "onOn-select"?: (...args: any[]) => any; }, { modelValue: string; placeholder: string; disabled: boolean; clearable: boolean; validateEvent: boolean; loading: boolean; transfer: boolean; placement: string; capture: boolean; loadingText: string; list: unknown[]; filterMethod: boolean | Function; }>; export default _sfc_main;