UNPKG

tav-ui

Version:
55 lines (50 loc) 2.1 kB
'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); var vue = require('vue'); var antDesignVue = require('ant-design-vue'); var useFormItem = require('../../../hooks/component/useFormItem2.js'); var countButton = require('../../count-button/src/count-button2.js'); var types = require('./types2.js'); var pluginVue_exportHelper = require('../../../../_virtual/plugin-vue_export-helper.js'); const _sfc_main = vue.defineComponent({ name: "TaCountDownInput", components: { TaCountButton: countButton["default"], Input: antDesignVue.Input }, inheritAttrs: false, props: types.countDownInputProps, setup(props) { const prefixCls = "ta-countdown-input"; const [state] = useFormItem.useRuleFormItem(props); return { prefixCls, state }; } }); function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) { const _component_TaCountButton = vue.resolveComponent("TaCountButton"); const _component_Input = vue.resolveComponent("Input"); return vue.openBlock(), vue.createBlock(_component_Input, vue.mergeProps(_ctx.$attrs, { class: _ctx.prefixCls, size: _ctx.size, value: _ctx.state }), vue.createSlots({ addonAfter: vue.withCtx(() => [ vue.createVNode(_component_TaCountButton, { size: _ctx.size, count: _ctx.count, value: _ctx.state, "before-start-func": _ctx.sendCodeApi }, null, 8, ["size", "count", "value", "before-start-func"]) ]), _: 2 }, [ vue.renderList(Object.keys(_ctx.$slots).filter((k) => k !== "addonAfter"), (item) => { return { name: item, fn: vue.withCtx((data) => [ vue.renderSlot(_ctx.$slots, item, vue.normalizeProps(vue.guardReactiveProps(data || {}))) ]) }; }) ]), 1040, ["class", "size", "value"]); } var CountDownInput = /* @__PURE__ */ pluginVue_exportHelper["default"](_sfc_main, [["render", _sfc_render], ["__file", "/home/runner/work/tav-ui/tav-ui/packages/components/count-down/src/count-down-input.vue"]]); exports["default"] = CountDownInput; //# sourceMappingURL=count-down-input2.js.map