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
|
*.njsproj
|
||||||
*.sln
|
*.sln
|
||||||
.vscode
|
.vscode
|
||||||
|
.vscode/**
|
||||||
|
25
.vscode/settings.json
vendored
25
.vscode/settings.json
vendored
@ -1,18 +1,11 @@
|
|||||||
{
|
{
|
||||||
"editor.bracketPairColorization.enabled": true,
|
"editor.bracketPairColorization.enabled": true,
|
||||||
"editor.guides.bracketPairs": true,
|
"editor.guides.bracketPairs": true,
|
||||||
"editor.formatOnSave": true,
|
"editor.formatOnSave": true,
|
||||||
"editor.defaultFormatter": "esbenp.prettier-vscode",
|
"editor.defaultFormatter": "esbenp.prettier-vscode",
|
||||||
"editor.codeActionsOnSave": [
|
"editor.codeActionsOnSave": ["source.fixAll.eslint"],
|
||||||
"source.fixAll.eslint"
|
"eslint.validate": ["javascript", "javascriptreact", "typescript", "vue"],
|
||||||
],
|
"[vue]": {
|
||||||
"eslint.validate": [
|
"editor.defaultFormatter": "Vue.volar"
|
||||||
"javascript",
|
}
|
||||||
"javascriptreact",
|
|
||||||
"typescript",
|
|
||||||
"vue"
|
|
||||||
],
|
|
||||||
"[vue]": {
|
|
||||||
"editor.defaultFormatter": "octref.vetur"
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
@ -196,6 +196,7 @@ export default {
|
|||||||
setSubInput() {
|
setSubInput() {
|
||||||
utools.setSubInput(({ text }) => {
|
utools.setSubInput(({ text }) => {
|
||||||
this.searchWords = text;
|
this.searchWords = text;
|
||||||
|
if (this.matchedItems.length < this.currentIndex + 1) this.currentIndex = 0
|
||||||
}, this.options.options.placeholder);
|
}, this.options.options.placeholder);
|
||||||
},
|
},
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user