ivue-material-plus
Version:
A high quality UI components Library with Vue.js
155 lines (154 loc) • 3.8 kB
TypeScript
import { PropType } from 'vue';
import { Size } from './types/radio-group';
declare const _sfc_main: import("vue").DefineComponent<{
/**
* 指定当前选中的项目数据。可以使用 v-model 双向绑定数据
*
* @type {String | Number}
*/
modelValue: {
type: (NumberConstructor | StringConstructor)[];
default: string;
};
/**
* name 属性
*
* @type {String}
*/
name: {
type: StringConstructor;
default: () => string;
};
/**
* 垂直排列
*
* @type {Boolean}
*/
vertical: {
type: BooleanConstructor;
default: boolean;
};
/**
* 可选值为 button 或不填,为 button 时使用按钮样式
*
* @type {String}
*/
type: {
type: StringConstructor;
validator(value: string): boolean;
};
/**
* 按钮样式,可选值为 default 和 solid
*
* @type {String}
*/
buttonStyle: {
type: StringConstructor;
validator(value: string): boolean;
default: string;
};
/**
* 单选框的尺寸,可选值为 large、small、default 或者不设置
*
* @type {String}
*/
size: {
type: PropType<Size>;
validator(value: string): boolean;
default(): string;
};
/**
* 输入时是否触发表单的校验
*
* @type {Boolean}
*/
validateEvent: {
type: BooleanConstructor;
default: boolean;
};
}, {
prefixCls: string;
currentValue: import("vue").Ref<string | number>;
inputId: import("vue").Ref<string>;
wrapperClasses: import("vue").ComputedRef<(string | {
[x: string]: boolean;
})[]>;
handleChange: (value: string | number) => void;
}, 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<{
/**
* 指定当前选中的项目数据。可以使用 v-model 双向绑定数据
*
* @type {String | Number}
*/
modelValue: {
type: (NumberConstructor | StringConstructor)[];
default: string;
};
/**
* name 属性
*
* @type {String}
*/
name: {
type: StringConstructor;
default: () => string;
};
/**
* 垂直排列
*
* @type {Boolean}
*/
vertical: {
type: BooleanConstructor;
default: boolean;
};
/**
* 可选值为 button 或不填,为 button 时使用按钮样式
*
* @type {String}
*/
type: {
type: StringConstructor;
validator(value: string): boolean;
};
/**
* 按钮样式,可选值为 default 和 solid
*
* @type {String}
*/
buttonStyle: {
type: StringConstructor;
validator(value: string): boolean;
default: string;
};
/**
* 单选框的尺寸,可选值为 large、small、default 或者不设置
*
* @type {String}
*/
size: {
type: PropType<Size>;
validator(value: string): boolean;
default(): string;
};
/**
* 输入时是否触发表单的校验
*
* @type {Boolean}
*/
validateEvent: {
type: BooleanConstructor;
default: boolean;
};
}>> & {
"onOn-change"?: (...args: any[]) => any;
"onUpdate:modelValue"?: (...args: any[]) => any;
}, {
name: string;
modelValue: string | number;
size: Size;
validateEvent: boolean;
vertical: boolean;
buttonStyle: string;
}>;
export default _sfc_main;