mirror of
https://github.com/mayswind/ezbookkeeping.git
synced 2026-05-15 23:47:33 +08:00
use custom number input box to replace the system input box
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
<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>
|
||||
Reference in New Issue
Block a user