提交 ed1f55c1 编写于 作者: X xiaoyucoding

fix: 修复 input 动态设置 maxlength 报错的问题

上级 90bfdb1c
......@@ -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)
}
},
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册