重构代码.

This commit is contained in:
lijiahangmax
2023-09-24 23:28:02 +08:00
parent 6fa57c616c
commit 024a8b4596
21 changed files with 48 additions and 38 deletions

View File

@@ -22,9 +22,9 @@
const emits = defineEmits(['update:modelValue']);
const value = computed({
const value = computed<number>({
get() {
return props.modelValue;
return props.modelValue as number;
},
set(e) {
if (e) {

View File

@@ -22,9 +22,9 @@
const emits = defineEmits(['update:modelValue']);
const value = computed({
const value = computed<number>({
get() {
return props.modelValue;
return props.modelValue as number;
},
set(e) {
if (e) {