UNPKG

yanzhen-design-vue

Version:

29 lines (28 loc) 887 B
import { checkboxProps as checkboxProps$1 } from "ant-design-vue/es/checkbox"; import { propsSeparate, buildProps, definePropType, buildEmits } from "@yanzhen-libs/utils-vue"; import "../../../hooks/index.mjs"; import { UPDATE_VALUE_EVENT } from "../../../constants/event.mjs"; import { useNamespace } from "../../../hooks/use-namespace/index.mjs"; const ns = useNamespace("checkbox"); const checkboxOptions = { ns, class: ns.b(), name: ns.defineVNodeName() }; const checkboxName = checkboxOptions.name; const AntCheckbox = propsSeparate(checkboxProps$1()); const checkboxProps = buildProps({ ...AntCheckbox.props, label: definePropType([String, Object]) }); const checkboxEmits = buildEmits({ ...AntCheckbox.emits, [UPDATE_VALUE_EVENT]: AntCheckbox.emits["update:checked"] }); export { AntCheckbox, checkboxEmits, checkboxName, checkboxOptions, checkboxProps };