ivue-material-plus
Version:
A high quality UI components Library with Vue.js
305 lines (304 loc) • 7.16 kB
TypeScript
import { PropType } from 'vue';
import { Size } from './types/switch';
declare const _sfc_main: import("vue").DefineComponent<{
/**
* 浮雕按钮
*
* @type {Boolean}
*/
emboss: {
type: BooleanConstructor;
default: boolean;
};
/**
* 取消的颜色
*
* @type {String}
*/
falseColor: {
type: (StringConstructor | ArrayConstructor)[];
};
/**
* 是否禁用开关
*
* @type {Boolean}
*/
disabled: {
type: BooleanConstructor;
default: boolean;
};
/**
* 禁用水波纹
*
* @type {Boolean}
*/
rippleDisabled: {
type: BooleanConstructor;
default: boolean;
};
/**
* 加载中的开关
*
* @type {Boolean}
*/
loading: {
type: BooleanConstructor;
default: boolean;
};
/**
* 进度条颜色
*
* @type {String}
*/
embossLoadingColor: {
type: StringConstructor;
default: string;
};
/**
* 选中时的值
*
* @type {String,Number,Boolean}
*/
trueValue: {
type: (NumberConstructor | BooleanConstructor | StringConstructor)[];
default: boolean;
};
/**
* 没有选中时的值
*
* @type {String,Number,Boolean}
*/
falseValue: {
type: (NumberConstructor | BooleanConstructor | StringConstructor)[];
default: boolean;
};
/**
* 指定当前是否开启,可以使用 v-model 双向绑定数据
*
* @type {String,Number,Boolean}
*/
modelValue: {
type: (NumberConstructor | BooleanConstructor | StringConstructor)[];
default: boolean;
};
/**
* 开关的尺寸,可选值为large、small、default或者不写。建议如果使用了2个汉字的文字,使用 large
*
* @type {String,Number,Boolean}
*/
size: {
type: PropType<Size>;
validator(value: string): boolean;
default(): string;
};
/**
* 返回 Promise 可以阻止切换
*
* @type {Function}
*/
beforeChange: {
type: FunctionConstructor;
};
/**
* 颜色
*
* @type {String | Array}
*/
color: {
type: (StringConstructor | ArrayConstructor)[];
default: string;
};
/**
* 文字颜色
*
* @type {String}
*/
textColor: {
type: StringConstructor;
default: string;
};
/**
* 输入时是否触发表单的校验
*
* @type {Boolean}
*/
validateEvent: {
type: BooleanConstructor;
default: boolean;
};
}, {
currentValue: import("vue").Ref<string | number | boolean>;
inputId: import("vue").Ref<string>;
inputDisabled: import("vue").ComputedRef<boolean>;
wrapClasses: import("vue").ComputedRef<{
[x: string]: string | boolean | any[];
}>;
embossClass: import("vue").ComputedRef<{
[x: string]: string | boolean;
}>;
embossTrackClass: import("vue").ComputedRef<(string | {
[x: string]: boolean;
})[]>;
embossThumbClass: import("vue").ComputedRef<(string | {
[x: string]: boolean;
})[]>;
embossLoadingClass: import("vue").ComputedRef<{
[x: string]: boolean;
}>;
embossRippleClass: import("vue").ComputedRef<(string | {
[x: string]: boolean;
})[]>;
innerClasses: import("vue").ComputedRef<string>;
computedRipple: import("vue").ComputedRef<false | {
center: boolean;
}>;
setColor: import("vue").ComputedRef<any>;
toggle: (event: Event) => false | void;
setTextColor: (color: string | string[], data?: any) => {
style?: any;
class?: any;
};
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("on-change" | "update:modelValue")[], "on-change" | "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
/**
* 浮雕按钮
*
* @type {Boolean}
*/
emboss: {
type: BooleanConstructor;
default: boolean;
};
/**
* 取消的颜色
*
* @type {String}
*/
falseColor: {
type: (StringConstructor | ArrayConstructor)[];
};
/**
* 是否禁用开关
*
* @type {Boolean}
*/
disabled: {
type: BooleanConstructor;
default: boolean;
};
/**
* 禁用水波纹
*
* @type {Boolean}
*/
rippleDisabled: {
type: BooleanConstructor;
default: boolean;
};
/**
* 加载中的开关
*
* @type {Boolean}
*/
loading: {
type: BooleanConstructor;
default: boolean;
};
/**
* 进度条颜色
*
* @type {String}
*/
embossLoadingColor: {
type: StringConstructor;
default: string;
};
/**
* 选中时的值
*
* @type {String,Number,Boolean}
*/
trueValue: {
type: (NumberConstructor | BooleanConstructor | StringConstructor)[];
default: boolean;
};
/**
* 没有选中时的值
*
* @type {String,Number,Boolean}
*/
falseValue: {
type: (NumberConstructor | BooleanConstructor | StringConstructor)[];
default: boolean;
};
/**
* 指定当前是否开启,可以使用 v-model 双向绑定数据
*
* @type {String,Number,Boolean}
*/
modelValue: {
type: (NumberConstructor | BooleanConstructor | StringConstructor)[];
default: boolean;
};
/**
* 开关的尺寸,可选值为large、small、default或者不写。建议如果使用了2个汉字的文字,使用 large
*
* @type {String,Number,Boolean}
*/
size: {
type: PropType<Size>;
validator(value: string): boolean;
default(): string;
};
/**
* 返回 Promise 可以阻止切换
*
* @type {Function}
*/
beforeChange: {
type: FunctionConstructor;
};
/**
* 颜色
*
* @type {String | Array}
*/
color: {
type: (StringConstructor | ArrayConstructor)[];
default: string;
};
/**
* 文字颜色
*
* @type {String}
*/
textColor: {
type: StringConstructor;
default: string;
};
/**
* 输入时是否触发表单的校验
*
* @type {Boolean}
*/
validateEvent: {
type: BooleanConstructor;
default: boolean;
};
}>> & {
"onOn-change"?: (...args: any[]) => any;
"onUpdate:modelValue"?: (...args: any[]) => any;
}, {
modelValue: string | number | boolean;
disabled: boolean;
size: Size;
validateEvent: boolean;
loading: boolean;
color: string | unknown[];
textColor: string;
emboss: boolean;
rippleDisabled: boolean;
embossLoadingColor: string;
trueValue: string | number | boolean;
falseValue: string | number | boolean;
}>;
export default _sfc_main;