diff --git a/src/core/view/components/input/index.vue b/src/core/view/components/input/index.vue index b418bef7683b5487c6a8adf84be6d189ff7a5df9..618cb9587fed73eedeae0a5bb762b55adafada86 100644 --- a/src/core/view/components/input/index.vue +++ b/src/core/view/components/input/index.vue @@ -132,7 +132,7 @@ export default { this.$emit('update:value', value) }, maxlength (value) { - const realValue = this.realValue.slice(0, parseInt(value, 10)) + const realValue = this.inputValue.slice(0, parseInt(value, 10)) realValue !== this.inputValue && (this.inputValue = realValue) } },