mirror of
https://github.com/fofolee/uTools-quickcommand.git
synced 2025-06-06 13:04:10 +08:00
列表长度超出选中对象的索引时,索引重置为0
This commit is contained in:
parent
f0069e2a16
commit
2b088a76ce
1
.gitignore
vendored
1
.gitignore
vendored
@ -32,3 +32,4 @@ yarn-error.log*
|
||||
*.njsproj
|
||||
*.sln
|
||||
.vscode
|
||||
.vscode/**
|
||||
|
13
.vscode/settings.json
vendored
13
.vscode/settings.json
vendored
@ -3,16 +3,9 @@
|
||||
"editor.guides.bracketPairs": true,
|
||||
"editor.formatOnSave": true,
|
||||
"editor.defaultFormatter": "esbenp.prettier-vscode",
|
||||
"editor.codeActionsOnSave": [
|
||||
"source.fixAll.eslint"
|
||||
],
|
||||
"eslint.validate": [
|
||||
"javascript",
|
||||
"javascriptreact",
|
||||
"typescript",
|
||||
"vue"
|
||||
],
|
||||
"editor.codeActionsOnSave": ["source.fixAll.eslint"],
|
||||
"eslint.validate": ["javascript", "javascriptreact", "typescript", "vue"],
|
||||
"[vue]": {
|
||||
"editor.defaultFormatter": "octref.vetur"
|
||||
"editor.defaultFormatter": "Vue.volar"
|
||||
}
|
||||
}
|
||||
|
@ -196,6 +196,7 @@ export default {
|
||||
setSubInput() {
|
||||
utools.setSubInput(({ text }) => {
|
||||
this.searchWords = text;
|
||||
if (this.matchedItems.length < this.currentIndex + 1) this.currentIndex = 0
|
||||
}, this.options.options.placeholder);
|
||||
},
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user