51 lines
1022 B
Vue
51 lines
1022 B
Vue
|
<script>
|
||
|
import BaseComponent from '@primevue/core/basecomponent';
|
||
|
import MenuStyle from 'primevue/menu/style';
|
||
|
|
||
|
export default {
|
||
|
name: 'BaseMenu',
|
||
|
extends: BaseComponent,
|
||
|
props: {
|
||
|
popup: {
|
||
|
type: Boolean,
|
||
|
default: false
|
||
|
},
|
||
|
model: {
|
||
|
type: Array,
|
||
|
default: null
|
||
|
},
|
||
|
appendTo: {
|
||
|
type: [String, Object],
|
||
|
default: 'body'
|
||
|
},
|
||
|
autoZIndex: {
|
||
|
type: Boolean,
|
||
|
default: true
|
||
|
},
|
||
|
baseZIndex: {
|
||
|
type: Number,
|
||
|
default: 0
|
||
|
},
|
||
|
tabindex: {
|
||
|
type: Number,
|
||
|
default: 0
|
||
|
},
|
||
|
ariaLabel: {
|
||
|
type: String,
|
||
|
default: null
|
||
|
},
|
||
|
ariaLabelledby: {
|
||
|
type: String,
|
||
|
default: null
|
||
|
}
|
||
|
},
|
||
|
style: MenuStyle,
|
||
|
provide() {
|
||
|
return {
|
||
|
$pcMenu: this,
|
||
|
$parentInstance: this
|
||
|
};
|
||
|
}
|
||
|
};
|
||
|
</script>
|