This commit is contained in:
youxingzhi
2019-03-13 12:05:34 +08:00
parent 106708217f
commit 2164d032ca

View File

@@ -178,8 +178,9 @@
setEditable () { setEditable () {
this.editable = true this.editable = true
this.$nextTick(() => { this.$nextTick(() => {
this.$refs.nodeInput.focus() const $input = this.$refs.nodeInput
// fireFocusEvent(this.$refs.nodeInput) $input.focus()
$input.setSelectionRange(0, $input.value.length)
}) })
}, },