UNPKG

myprint-design

Version:

操作简单,组件丰富的一站式打印解决方案打印设计器

34 lines (31 loc) 1.04 kB
import { defineComponent, openBlock, createBlock, unref } from 'vue'; import { definePropType } from '../../../constants/common.mjs'; import { changeWrapper } from '../../../utils/historyUtil.mjs'; import MyInput from './my-input.vue.mjs'; var _sfc_main = /* @__PURE__ */ defineComponent({ __name: "history-input", props: { modelValue: { type: definePropType([ String, Number, Object ]), default: null }, historyLabel: String }, emits: ["update:modelValue"], setup(__props, { emit: __emit }) { const emit = __emit; return (_ctx, _cache) => { return openBlock(), createBlock(MyInput, { "model-value": __props.modelValue, "onUpdate:modelValue": _cache[0] || (_cache[0] = (val) => emit("update:modelValue", val)), onChange: _cache[1] || (_cache[1] = (val) => unref(changeWrapper)(val, __props.historyLabel)) }, null, 8, ["model-value"]); }; } }); export { _sfc_main as default }; //# sourceMappingURL=history-input.vue2.mjs.map