Support async hooks in TreeExplorerNode (#888)

* Support async hooks in TreeExplorerNode

* rebase

* nit

* Fix component test failure

* Add edit vitest

* Add more tests

* Add component test
This commit is contained in:
Chenlei Hu
2024-09-19 20:10:43 +09:00
committed by GitHub
parent 609984d400
commit 810a63f808
8 changed files with 229 additions and 46 deletions

View File

@@ -60,7 +60,7 @@ watch(
const start = 0
const end = fileName.length
const inputElement = inputRef.value.$el
inputElement.setSelectionRange(start, end)
inputElement.setSelectionRange?.(start, end)
})
}
},