mirror of
https://github.com/fofolee/uTools-quickcommand.git
synced 2025-06-09 23:16:18 +08:00
quickcommand.updateSelectList
This commit is contained in:
parent
70c23e63c8
commit
0e8f95a0a1
@ -75,6 +75,10 @@ export default {
|
|||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
window.SelectList = this;
|
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.options.enableSearch && this.setSubInput();
|
||||||
this.setUtoolsHeight(this.itemHeight * this.matchedItemsSize);
|
this.setUtoolsHeight(this.itemHeight * this.matchedItemsSize);
|
||||||
},
|
},
|
||||||
|
@ -112,11 +112,6 @@ const quickcommand = {
|
|||||||
console.log('取消')
|
console.log('取消')
|
||||||
})
|
})
|
||||||
}),
|
}),
|
||||||
|
|
||||||
// 更新选项列表
|
|
||||||
updateSelectList: () => {
|
|
||||||
|
|
||||||
},
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export default quickcommand
|
export default quickcommand
|
Loading…
x
Reference in New Issue
Block a user