Commit a9e412df authored by 黄奎's avatar 黄奎

页面修改

parent b5a78eaa
......@@ -28,19 +28,19 @@
}
if(this.textLength) this.$el.innerText = this.$el.innerText.slice(0,this.textLength)
this.$emit("input", this.$el.innerText);
setTimeout(() => {
var range = sel.getRangeAt(0);
if (range) {
var textNode = range.startContainer;
if (textNode) {
range.setStart(textNode, offset)
}
if (sel) {
sel.removeAllRanges()
sel.addRange(range)
}
}
}, 0)
// setTimeout(() => {
// var range = sel.getRangeAt(0);
// if (range) {
// var textNode = range.startContainer;
// if (textNode) {
// range.setStart(textNode, offset)
// }
// if (sel) {
// sel.removeAllRanges()
// sel.addRange(range)
// }
// }
// }, 0)
}
}
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment