y-design-ssr
Version:
SSR component library of YUI with Vue3
59 lines (58 loc) • 1.16 kB
TypeScript
import { ExtractPropTypes } from 'vue';
export declare const checkboxGroupProps: {
/**
* @ignore
*/
modelValue: {
type: () => string[];
default: () => string[];
};
/**
* 最多选中数目
*/
max: {
type: NumberConstructor;
default: null;
};
/**
* 最少选中数目
*/
min: {
type: NumberConstructor;
default: null;
};
/**
* 禁用
*/
disabled: {
type: BooleanConstructor;
default: null;
};
/**
* 是否为方形
*/
square: {
type: BooleanConstructor;
default: null;
};
/**
* 选中颜色
*/
checkedColor: {
type: StringConstructor;
default: null;
};
/**
* 水平排列
*/
horizontal: {
type: BooleanConstructor;
default: boolean;
};
};
export type CheckboxGroupPropKeys = keyof ExtractPropTypes<typeof checkboxGroupProps>;
export interface CheckboxGroupProvide {
props: ExtractPropTypes<typeof checkboxGroupProps>;
allItemNames: string[];
onItemChange: (name: string) => void;
}