UNPKG

yanzhen-design-vue

Version:

38 lines (37 loc) 1.28 kB
"use strict"; Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" }); const utils = require("@yanzhen-libs/utils"); const utilsVue = require("@yanzhen-libs/utils-vue"); const props = require("ant-design-vue/es/date-picker/generatePicker/props"); require("../../../hooks/index.cjs"); const index = require("../../../hooks/use-namespace/index.cjs"); const ns = index.useNamespace("range-time"); const rangeTimeOptions = { ns, class: ns.b(), name: ns.defineVNodeName() }; const rangeTimeName = rangeTimeOptions.name; const antRangePickerProps = utilsVue.propsSeparate( utilsVue.buildProps({ ...props.commonProps(), ...props.rangePickerProps() }) ); const rangeTimeProps = utilsVue.buildProps({ ...antRangePickerProps.props, // 开始时间 beginTime: utilsVue.definePropType([Object, String]), // 结束时间 endTime: utilsVue.definePropType([Object, String]) }); const rangeTimeEmits = utils.mergeWith({ ...antRangePickerProps.emits, "update:beginTime": (_value) => true, "update:endTime": (_value) => true }); exports.antRangePickerProps = antRangePickerProps; exports.rangeTimeEmits = rangeTimeEmits; exports.rangeTimeName = rangeTimeName; exports.rangeTimeOptions = rangeTimeOptions; exports.rangeTimeProps = rangeTimeProps;