Tweak UI
This commit is contained in:
parent
1ec3338d2e
commit
d4c4e30fe4
5 changed files with 28 additions and 15 deletions
|
|
@ -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({
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue