UNPKG

yanzhen-design-vue

Version:

43 lines (42 loc) 1.16 kB
"use strict"; Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" }); const utilsVue = require("@yanzhen-libs/utils-vue"); const index$1 = require("ant-design-vue/es/tag/index"); require("../../../hooks/index.cjs"); const index = require("../../../hooks/use-namespace/index.cjs"); const ns = index.useNamespace("tag"); const tagOptions = { ns, class: ns.b(), name: ns.defineVNodeName() }; const tagName = tagOptions.name; const AntTag = utilsVue.propsSeparate({ ...index$1.tagProps(), closeIcon: utilsVue.epPropType.any, icon: utilsVue.epPropType.any }); const tagProps = utilsVue.buildProps({ ...AntTag.props, value: utilsVue.definePropType([Array, String]), hidden: Boolean, disabled: Boolean, isEdit: Boolean, // 新增标签的提示文字 addName: String, // 最大显示长度 maxShowLength: { type: Number, default: 20 } }); const tagEmits = utilsVue.buildEmits({ ...AntTag.emits, "update:value": (_value) => void 0, blur: AntTag.emits["click"] }); exports.AntTag = AntTag; exports.tagEmits = tagEmits; exports.tagName = tagName; exports.tagOptions = tagOptions; exports.tagProps = tagProps;