提交 77f4d1ea 编写于 作者: Q qiang

fix: input 使用 UniInputElement 类型

上级 52451519
......@@ -276,11 +276,11 @@
this.onMaxLengthInputValue = event.detail.value
},
setCursor: function (cursor : number) {
(this.$refs['input'] as Element).focus();
(this.$refs['input'] as UniInputElement).focus();
this.cursor = cursor;
},
setSelection: function (selectionStart : number, selectionEnd : number) {
(this.$refs['input2'] as Element).focus();
(this.$refs['input2'] as UniInputElement).focus();
this.selectionStart = selectionStart;
this.selectionEnd = selectionEnd;
},
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册