quickcommand.updateSelectList

This commit is contained in:
fofolee
2022-04-12 00:58:33 +08:00
parent 70c23e63c8
commit 0e8f95a0a1
2 changed files with 4 additions and 5 deletions

View File

@@ -75,6 +75,10 @@ export default {
},
mounted() {
window.SelectList = this;
quickcommand.updateSelectList = (opt, id) => {
if (typeof id === "undefined") this.items.push(opt);
else this.items[id] = opt;
};
this.options.enableSearch && this.setSubInput();
this.setUtoolsHeight(this.itemHeight * this.matchedItemsSize);
},