primevue-mirror/packages/primevue/src/menu/BaseMenu.vue

51 lines
1022 B
Vue
Raw Normal View History

2023-05-29 09:09:48 +00:00
<script>
2024-06-11 12:21:12 +00:00
import BaseComponent from '@primevue/core/basecomponent';
import MenuStyle from 'primevue/menu/style';
2023-05-29 09:09:48 +00:00
export default {
name: 'BaseMenu',
extends: BaseComponent,
props: {
popup: {
type: Boolean,
default: false
},
model: {
type: Array,
default: null
},
appendTo: {
type: [String, Object],
2023-05-29 09:09:48 +00:00
default: 'body'
},
autoZIndex: {
type: Boolean,
default: true
},
baseZIndex: {
type: Number,
default: 0
},
tabindex: {
type: Number,
default: 0
},
ariaLabel: {
2023-05-29 09:09:48 +00:00
type: String,
default: null
},
ariaLabelledby: {
2023-05-29 09:09:48 +00:00
type: String,
default: null
}
},
style: MenuStyle,
provide() {
return {
$pcMenu: this,
$parentInstance: this
};
2023-05-29 09:09:48 +00:00
}
};
</script>