This commit is contained in:
syuilo
2021-04-11 12:31:24 +09:00
parent 1ec3338d2e
commit d4c4e30fe4
5 changed files with 28 additions and 15 deletions

View File

@@ -99,7 +99,14 @@ export default defineComponent({
},
menu(ev) {
const menu = this.info.menu ? this.info.menu() : [];
let menu = this.info.menu ? this.info.menu() : [];
if (!this.showActions && this.info.actions) {
menu = [...this.info.actions.map(x => ({
text: x.text,
icon: x.icon,
action: x.handler
})), menu.length > 0 ? null : undefined, ...menu];
}
if (this.info.share) {
if (menu.length > 0) menu.push(null);
menu.push({