2023-05-29 20:18:28 +00:00
|
|
|
<script>
|
|
|
|
import BaseComponent from 'primevue/basecomponent';
|
2024-04-18 14:16:37 +00:00
|
|
|
import PopoverStyle from 'primevue/popover/style';
|
2023-05-29 20:18:28 +00:00
|
|
|
|
|
|
|
export default {
|
2024-04-18 14:16:37 +00:00
|
|
|
name: 'BasePopover',
|
2023-05-29 20:18:28 +00:00
|
|
|
extends: BaseComponent,
|
|
|
|
props: {
|
|
|
|
dismissable: {
|
|
|
|
type: Boolean,
|
|
|
|
default: true
|
|
|
|
},
|
|
|
|
appendTo: {
|
2024-01-08 09:33:05 +00:00
|
|
|
type: [String, Object],
|
2023-05-29 20:18:28 +00:00
|
|
|
default: 'body'
|
|
|
|
},
|
|
|
|
baseZIndex: {
|
|
|
|
type: Number,
|
|
|
|
default: 0
|
|
|
|
},
|
|
|
|
autoZIndex: {
|
|
|
|
type: Boolean,
|
|
|
|
default: true
|
|
|
|
},
|
|
|
|
breakpoints: {
|
|
|
|
type: Object,
|
|
|
|
default: null
|
|
|
|
},
|
2023-10-15 19:26:56 +00:00
|
|
|
closeOnEscape: {
|
|
|
|
type: Boolean,
|
|
|
|
default: true
|
2023-05-29 20:18:28 +00:00
|
|
|
}
|
|
|
|
},
|
2024-04-18 14:16:37 +00:00
|
|
|
style: PopoverStyle,
|
2023-05-30 12:28:04 +00:00
|
|
|
provide() {
|
|
|
|
return {
|
2024-04-25 01:26:06 +00:00
|
|
|
$pcPopover: this,
|
2023-05-30 12:28:04 +00:00
|
|
|
$parentInstance: this
|
|
|
|
};
|
2023-05-29 20:18:28 +00:00
|
|
|
}
|
|
|
|
};
|
|
|
|
</script>
|