yanzhen-design-vue
Version:
29 lines (28 loc) • 1.04 kB
JavaScript
;
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
const checkbox = require("ant-design-vue/es/checkbox");
const utilsVue = require("@yanzhen-libs/utils-vue");
require("../../../hooks/index.cjs");
const event = require("../../../constants/event.cjs");
const index = require("../../../hooks/use-namespace/index.cjs");
const ns = index.useNamespace("checkbox");
const checkboxOptions = {
ns,
class: ns.b(),
name: ns.defineVNodeName()
};
const checkboxName = checkboxOptions.name;
const AntCheckbox = utilsVue.propsSeparate(checkbox.checkboxProps());
const checkboxProps = utilsVue.buildProps({
...AntCheckbox.props,
label: utilsVue.definePropType([String, Object])
});
const checkboxEmits = utilsVue.buildEmits({
...AntCheckbox.emits,
[event.UPDATE_VALUE_EVENT]: AntCheckbox.emits["update:checked"]
});
exports.AntCheckbox = AntCheckbox;
exports.checkboxEmits = checkboxEmits;
exports.checkboxName = checkboxName;
exports.checkboxOptions = checkboxOptions;
exports.checkboxProps = checkboxProps;