diff --git a/sheep/ui/su-number-box/su-number-box.vue b/sheep/ui/su-number-box/su-number-box.vue index 4f3d5924f8a23953bbd583444ff343a7b1ab6cbf..1821c937c59e6814acab646ef1723834a28d4112 100644 --- a/sheep/ui/su-number-box/su-number-box.vue +++ b/sheep/ui/su-number-box/su-number-box.vue @@ -177,6 +177,8 @@ this.inputValue = value.toFixed(String(scale).length - 1); this.$emit('change', +this.inputValue); this.$emit('input', +this.inputValue); + // vue3 兼容 + this.$emit('update:modelValue', +this.inputValue); }, _onFocus(event) { this.$emit('focus', event);