diff --git a/src/components/BaseKeyboardInput.vue b/src/components/BaseKeyboardInput.vue index 31128cb..b00124e 100644 --- a/src/components/BaseKeyboardInput.vue +++ b/src/components/BaseKeyboardInput.vue @@ -28,7 +28,7 @@ const props = defineProps({ // 保留几位小数 layoutName为number时生效 precision: { type: Number, - default: 2 + default: 10 }, // 获取焦点打开键盘 isOpen: { @@ -132,7 +132,7 @@ const keyboardInit = () => { } const onInit = (keyboard: any) => { - keyboard.setInput(model.value) + keyboard.setInput(String(model.value || '')) keyboard.setCaretPosition(inputRef.value?.ref.selectionEnd) document.addEventListener('click', handlePopClose) } diff --git a/src/views/ParamsConfig/index.vue b/src/views/ParamsConfig/index.vue index ce331fc..9b01438 100644 --- a/src/views/ParamsConfig/index.vue +++ b/src/views/ParamsConfig/index.vue @@ -32,12 +32,14 @@