2.x
parent
1a22f01600
commit
c0f99345a3
|
@ -75,7 +75,7 @@ export default {
|
|||
methods: {
|
||||
itemClick(event) {
|
||||
const item = event.item;
|
||||
if (item.disabled) {
|
||||
if (this.disabled(item)) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -200,6 +200,9 @@ export default {
|
|||
visible(item) {
|
||||
return (typeof item.visible === 'function' ? item.visible() : item.visible !== false);
|
||||
},
|
||||
disabled(item) {
|
||||
return (typeof item.disabled === 'function' ? item.disabled() : item.disabled);
|
||||
},
|
||||
label(item) {
|
||||
return (typeof item.label === 'function' ? item.label() : item.label);
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue