@opensig/opendesign
Version:
<p align="center"><img src="../docs/public/opendesign-logo-light.png"/></p> <h1 align="center">opendesign</h1> <p align="center">一个 Vue 3 组件库</p> <p align="center"><b>皮肤可定制,使用 TypeScript</b></p>
51 lines (50 loc) • 1.25 kB
TypeScript
import { ExtractPropTypes, PropType } from 'vue';
export declare const checkboxProps: {
/**
* @zh-CN 多选框value,会作为 modelValue 的值
* @en-US Checkbox value, which will be the value of modelValue
*/
value: {
type: (NumberConstructor | StringConstructor)[];
required: true;
};
/**
* @zh-CN 多选框双向绑定值
* @en-US Checkbox two-way binding value
*/
modelValue: {
type: PropType<Array<string | number>>;
};
/**
* @zh-CN 非受控状态时,默认是否选中
* @en-US Default checked when uncontrolled
*/
defaultChecked: {
type: BooleanConstructor;
default: boolean;
};
/**
* @zh-CN 是否禁用
* @en-US Whether to disable
*/
disabled: {
type: BooleanConstructor;
default: boolean;
};
/**
* @zh-CN 是否半选
* @en-US Whether to select half
*/
indeterminate: {
type: BooleanConstructor;
default: boolean;
};
/**
* @zh-CN 输入框的 id
* @en-US The id of the input box
*/
inputId: {
type: StringConstructor;
};
};
export type CheckboxPropsT = ExtractPropTypes<typeof checkboxProps>;