重构代码.
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user