UNPKG

yanzhen-design-vue

Version:

50 lines (49 loc) 1.47 kB
"use strict"; Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" }); const utilsVue = require("@yanzhen-libs/utils-vue"); const core = require("@yanzhen-lowcode/core"); const select = require("ant-design-vue/es/select"); require("../../../hooks/index.cjs"); const selectCommonProps = require("./hooks/select-common-props.cjs"); const index = require("../../../hooks/use-namespace/index.cjs"); const ns = index.useNamespace("select"); const selectOptions = { ns, class: ns.b(), name: ns.defineVNodeName() }; const selectName = selectOptions.name; const AntSelect = utilsVue.propsSeparate(select.selectProps()); const selectExtraProps = utilsVue.buildProps({ max: Number, maxMsg: String, showTag: Boolean, fetching: Boolean, showCreateOption: Boolean, dataSource: String, params: Object, id: String, bizObjectModelCode: String, tswColumnCode: String, tswColumnBizType: String, createOptionMaxLength: { type: Number, default: 36 } }); const selectProps = utilsVue.buildProps({ ...core.apiProviderBaseProps, ...AntSelect.props, ...selectCommonProps.optionsProps(), ...selectExtraProps }); const selectEmits = utilsVue.buildEmits({ ...AntSelect.emits, addOption: (value) => true }); exports.AntSelect = AntSelect; exports.selectEmits = selectEmits; exports.selectExtraProps = selectExtraProps; exports.selectName = selectName; exports.selectOptions = selectOptions; exports.selectProps = selectProps;