UNPKG

@opensig/opendesign

Version:

53 lines (52 loc) 1.35 kB
import { DirectionT } from '../_utils/types'; import { ExtractPropTypes, PropType } from 'vue'; export declare const checkboxGroupProps: { /** * @zh-CN 复选框组双向绑定值 * @en-US checkbox group two-way binding value */ modelValue: { type: PropType<Array<string | number>>; }; /** * @zh-CN 非受控状态时,复选框组默认值 * @en-US Default value when not controlled */ defaultValue: { type: PropType<Array<string | number>>; default: () => never[]; }; /** * @zh-CN 是否禁用复选框组 * @en-US Whether to disable the checkbox group */ disabled: { type: BooleanConstructor; default: boolean; }; /** * @zh-CN 复选框组布局方向 * @en-US Layout direction of checkbox group */ direction: { type: PropType<DirectionT>; default: string; }; /** * @zh-CN 最少选择数量 * @en-US Minimum number of selections */ min: { type: NumberConstructor; default: undefined; }; /** * @zh-CN 最多选择数量 * @en-US Maximum number of selections */ max: { type: NumberConstructor; default: undefined; }; }; export type CheckboxGroupPropsT = ExtractPropTypes<typeof checkboxGroupProps>;