mirror of
https://github.com/mayswind/ezbookkeeping.git
synced 2026-05-15 23:47:33 +08:00
27 lines
670 B
Vue
27 lines
670 B
Vue
<template>
|
|
<f7-list-input
|
|
type="text"
|
|
:readonly="!!readonly"
|
|
:disabled="!!disabled"
|
|
:label="label"
|
|
:placeholder="placeholder"
|
|
v-model:value="currentValue"
|
|
@keydown="onKeyUpDown"
|
|
@keyup="onKeyUpDown"
|
|
@paste="onPaste"
|
|
></f7-list-input>
|
|
</template>
|
|
|
|
<script setup lang="ts">
|
|
import { type NumberInputProps, type NumberInputEmits, useNumberInputBase } from '@/components/base/NumberInputBase.ts';
|
|
|
|
const props = defineProps<NumberInputProps>();
|
|
const emit = defineEmits<NumberInputEmits>();
|
|
|
|
const {
|
|
currentValue,
|
|
onKeyUpDown,
|
|
onPaste
|
|
} = useNumberInputBase(props, emit);
|
|
</script>
|