UNPKG

tav-ui

Version:
51 lines (48 loc) 2.06 kB
import { defineComponent, resolveComponent, openBlock, createBlock, mergeProps, createSlots, withCtx, createVNode, renderList, renderSlot, normalizeProps, guardReactiveProps } from 'vue'; import { Input } from 'ant-design-vue'; import { useRuleFormItem } from '../../../hooks/component/useFormItem2.mjs'; import CountButton from '../../count-button/src/count-button2.mjs'; import { countDownInputProps } from './types2.mjs'; import _export_sfc from '../../../../_virtual/plugin-vue_export-helper.mjs'; const _sfc_main = defineComponent({ name: "TaCountDownInput", components: { TaCountButton: CountButton, Input }, inheritAttrs: false, props: countDownInputProps, setup(props) { const prefixCls = "ta-countdown-input"; const [state] = useRuleFormItem(props); return { prefixCls, state }; } }); function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) { const _component_TaCountButton = resolveComponent("TaCountButton"); const _component_Input = resolveComponent("Input"); return openBlock(), createBlock(_component_Input, mergeProps(_ctx.$attrs, { class: _ctx.prefixCls, size: _ctx.size, value: _ctx.state }), createSlots({ addonAfter: withCtx(() => [ 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 }, [ renderList(Object.keys(_ctx.$slots).filter((k) => k !== "addonAfter"), (item) => { return { name: item, fn: withCtx((data) => [ renderSlot(_ctx.$slots, item, normalizeProps(guardReactiveProps(data || {}))) ]) }; }) ]), 1040, ["class", "size", "value"]); } var CountDownInput = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "/home/runner/work/tav-ui/tav-ui/packages/components/count-down/src/count-down-input.vue"]]); export { CountDownInput as default }; //# sourceMappingURL=count-down-input2.mjs.map