37 lines
834 B
TypeScript
Raw Normal View History

2024-11-05 10:14:41 +08:00
import { buildProps } from '../../../../utils'
import { useFormSizeProps } from '../../composables/use-component-common-props'
import { checkboxCheckedShapes } from '../../types/checkbox'
export const checkboxBaseProps = buildProps({
/**
* @description
*/
size: useFormSizeProps,
/**
* @description
*/
checkedShape: {
type: String,
values: checkboxCheckedShapes,
},
/**
* @description
*/
disabled: Boolean,
/**
* @description
*/
labelDisabled: Boolean,
/**
* @description
*/
border: Boolean,
/**
* @description tn开头则使用图鸟内置的颜色只支持普通颜色
*/
activeColor: {
type: String,
default: '',
},
} as const)