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);
},

View File

@ -112,11 +112,6 @@ const quickcommand = {
console.log('取消')
})
}),
// 更新选项列表
updateSelectList: () => {
},
}
export default quickcommand