/** * @description checkbox api * @author 阿怪 * @date 2023/4/20 21:55 * @version v1.0.0 * * 江湖的业务千篇一律,复杂的代码好几百行。 */ import { MCOPO, MPropType } from '../../types/props'; import { CheckboxGroupProps, CheckboxProps } from './index'; export const props: MCOPO = { label: { type: String, default: '' }, checked: { type: Boolean, default: undefined }, value: { type: null, default: undefined }, modelValue: { type: null, default: undefined }, indeterminate: { type: Boolean, default: false }, disabled: { type: Boolean, default: false }, }; export const checkboxGroupProps: MCOPO = { value: { type: Array, default: () => [] }, type: { type: String as MPropType<'single' | 'multiple'>, default: 'single' }, };