label-print-design
Version:
操作简单,组件丰富的一站式打印解决方案打印设计器
1 lines • 1.87 kB
Source Map (JSON)
{"version":3,"file":"history-input-number.vue2.mjs","sources":["../../../../../../src/components/my/input/history-input-number.vue"],"sourcesContent":["<template>\n <my-input-number :model-value=\"modelValue\"\n ref=\"numRef\"\n class=\"custom-input-number\"\n :controls=\"false\" :precision=\"2\"\n @update:model-value=\"(val:any)=>emit('update:modelValue', val)\"\n @change=\"change\">\n </my-input-number>\n</template>\n\n<script setup lang=\"ts\">\nimport { changeWrapper } from '@myprint/design/utils/historyUtil';\nimport { onMounted, ref } from 'vue-demi';\nimport MyInputNumber from '@myprint/design/components/my/input/my-input-number.vue';\n\nconst emit = defineEmits(['update:modelValue', 'change']);\nconst numRef = ref(<InstanceType<any>>{});\n// const props = defineProps({\n// modelValue: {\n// type: , default: null\n// },\n// historyLabel: String\n// })\nconst props = withDefaults(defineProps<{\n modelValue?: number | null | undefined,\n historyLabel: string,\n}>(), {\n modelValue: undefined,\n historyLabel: undefined\n});\n\nfunction change(val: any) {\n changeWrapper(val, props.historyLabel);\n emit('change', val);\n}\n\nonMounted(() => {\n // const inputNumber = numRef.value.$el.querySelector('.el-input__inner');\n // inputNumber.onmousewheel = null; // for most browsers\n // inputNumber.onwheel = null; // for Firefox\n});\n\n</script>\n"],"names":[],"mappings":";;;;;;;;;;;;;AAeA,IAAA,MAAM,IAAO,GAAA,MAAA,CAAA;AACb,IAAM,MAAA,MAAA,GAAS,GAAuB,CAAA,EAAE,CAAA,CAAA;AAOxC,IAAA,MAAM,KAAQ,GAAA,OAAA,CAAA;AAQd,IAAA,SAAS,OAAO,GAAU,EAAA;AACtB,MAAc,aAAA,CAAA,GAAA,EAAK,MAAM,YAAY,CAAA,CAAA;AACrC,MAAA,IAAA,CAAK,UAAU,GAAG,CAAA,CAAA;AAAA,KACtB;AAEA,IAAA,SAAA,CAAU,MAAM;AAAA,KAIf,CAAA,CAAA;;;;;;;;;;;;;;;;;;"}