UNPKG

yanzhen-design-vue

Version:

43 lines (42 loc) 1.3 kB
"use strict"; Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" }); const utilsVue = require("@yanzhen-libs/utils-vue"); const antInputProps = require("ant-design-vue/es/input/inputProps"); require("../../../hooks/index.cjs"); const index = require("../../../hooks/use-namespace/index.cjs"); const ns = index.useNamespace("input"); const inputOptions = { ns, class: ns.b(), name: ns.defineVNodeName() }; const inputName = inputOptions.name; const inputPreviewName = ns.defineVNodeName("preview"); const AntInput = utilsVue.propsSeparate({ ...antInputProps(), inputElement: utilsVue.epPropType.any, addonBefore: utilsVue.epPropType.any, addonAfter: utilsVue.epPropType.any, prefix: utilsVue.epPropType.any, suffix: utilsVue.epPropType.any, clearIcon: utilsVue.epPropType.any }); const inputProps = utilsVue.buildProps({ ...AntInput.props, type: { type: String, values: ["text", "textarea", "number"], default: "text" }, dataSource: String, columnBizType: String }); const inputEmits = utilsVue.buildEmits({ ...AntInput.emits }); exports.AntInput = AntInput; exports.inputEmits = inputEmits; exports.inputName = inputName; exports.inputOptions = inputOptions; exports.inputPreviewName = inputPreviewName; exports.inputProps = inputProps;