ivue-material-plus
Version:
A high quality UI components Library with Vue.js
351 lines (350 loc) • 7.2 kB
TypeScript
declare const _sfc_main: import("vue").DefineComponent<{
/**
* 设置禁用状态
*
* @type {Boolean}
*/
disabled: {
type: BooleanConstructor;
default: boolean;
};
/**
* 自动获取焦点
*
* @type {Boolean}
*/
autofocus: {
type: BooleanConstructor;
default: boolean;
};
/**
* 是否设置为只读
*
* @type {Boolean}
*/
readonly: {
type: BooleanConstructor;
default: boolean;
};
/**
* 是否可编辑
*
* @type {Boolean}
*/
editable: {
type: BooleanConstructor;
default: boolean;
};
/**
* input name
*
* @type {String}
*/
name: {
type: StringConstructor;
};
/**
* 占位文本
*
* @type {String}
*/
placeholder: {
type: StringConstructor;
default: string;
};
/**
* 指定输入框展示值的格式
*
* @type {Function}
*/
formatter: {
type: FunctionConstructor;
};
/**
* 数值精度, 小数点
*
* @type {Number}
*/
precision: {
type: NumberConstructor;
};
/**
* modelValue
*
* @type {Number}
*/
modelValue: {
type: NumberConstructor;
default: number;
};
/**
* 是否实时响应数据,设置为 false 时,只会在失焦时更改数据
*
* @type {Boolean}
*/
activeChange: {
type: BooleanConstructor;
default: boolean;
};
/**
* 指定从 formatter 里转换回数字的方式,和 formatter 搭配使用
*
* @type {Function}
*/
parser: {
type: FunctionConstructor;
};
/**
* 最大值
*
* @type {Number}
*/
max: {
type: NumberConstructor;
default: number;
};
/**
* 最小值
*
* @type {Number}
*/
min: {
type: NumberConstructor;
default: number;
};
/**
* 按钮位置是否置于两侧
*
* @type {Boolean}
*/
controlsOutside: {
type: BooleanConstructor;
default: boolean;
};
/**
* 每次改变的步伐,可以是小数
*
* @type {Number}
*/
step: {
type: NumberConstructor;
default: number;
};
/**
* id
*
* @type {String}
*/
id: {
type: StringConstructor;
};
/**
* 输入时是否触发表单的校验
*
* @type {Boolean}
*/
validateEvent: {
type: BooleanConstructor;
default: boolean;
};
}, {
prefixCls: string;
data: {
focused: boolean;
currentValue: number;
upDisabled: boolean;
downDisabled: boolean;
};
inputId: import("vue").Ref<string>;
inputDisabled: import("vue").ComputedRef<boolean>;
wrapperClasses: import("vue").ComputedRef<(string | {
[x: string]: boolean;
})[]>;
formatterValue: import("vue").ComputedRef<any>;
internalUpClasses: import("vue").ComputedRef<(string | {
[x: string]: boolean;
})[]>;
internalDownClasses: import("vue").ComputedRef<(string | {
[x: string]: boolean;
})[]>;
outsideUpClasses: import("vue").ComputedRef<(string | {
[x: string]: boolean;
})[]>;
outsideDownClasses: import("vue").ComputedRef<(string | {
[x: string]: boolean;
})[]>;
focus: (event: Event) => void;
blur: () => void;
handleChange: (event: Event) => void;
handleUp: (event?: Event) => void;
handleDown: (event?: Event) => void;
handleKeyDown: (event: any) => void;
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("on-change" | "update:modelValue" | "on-focus" | "on-blur")[], "on-change" | "update:modelValue" | "on-focus" | "on-blur", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
/**
* 设置禁用状态
*
* @type {Boolean}
*/
disabled: {
type: BooleanConstructor;
default: boolean;
};
/**
* 自动获取焦点
*
* @type {Boolean}
*/
autofocus: {
type: BooleanConstructor;
default: boolean;
};
/**
* 是否设置为只读
*
* @type {Boolean}
*/
readonly: {
type: BooleanConstructor;
default: boolean;
};
/**
* 是否可编辑
*
* @type {Boolean}
*/
editable: {
type: BooleanConstructor;
default: boolean;
};
/**
* input name
*
* @type {String}
*/
name: {
type: StringConstructor;
};
/**
* 占位文本
*
* @type {String}
*/
placeholder: {
type: StringConstructor;
default: string;
};
/**
* 指定输入框展示值的格式
*
* @type {Function}
*/
formatter: {
type: FunctionConstructor;
};
/**
* 数值精度, 小数点
*
* @type {Number}
*/
precision: {
type: NumberConstructor;
};
/**
* modelValue
*
* @type {Number}
*/
modelValue: {
type: NumberConstructor;
default: number;
};
/**
* 是否实时响应数据,设置为 false 时,只会在失焦时更改数据
*
* @type {Boolean}
*/
activeChange: {
type: BooleanConstructor;
default: boolean;
};
/**
* 指定从 formatter 里转换回数字的方式,和 formatter 搭配使用
*
* @type {Function}
*/
parser: {
type: FunctionConstructor;
};
/**
* 最大值
*
* @type {Number}
*/
max: {
type: NumberConstructor;
default: number;
};
/**
* 最小值
*
* @type {Number}
*/
min: {
type: NumberConstructor;
default: number;
};
/**
* 按钮位置是否置于两侧
*
* @type {Boolean}
*/
controlsOutside: {
type: BooleanConstructor;
default: boolean;
};
/**
* 每次改变的步伐,可以是小数
*
* @type {Number}
*/
step: {
type: NumberConstructor;
default: number;
};
/**
* id
*
* @type {String}
*/
id: {
type: StringConstructor;
};
/**
* 输入时是否触发表单的校验
*
* @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;
}, {
modelValue: number;
placeholder: string;
disabled: boolean;
readonly: boolean;
autofocus: boolean;
validateEvent: boolean;
min: number;
max: number;
editable: boolean;
activeChange: boolean;
controlsOutside: boolean;
step: number;
}>;
export default _sfc_main;