2023-05-29 20:37:34 +00:00
|
|
|
<script>
|
|
|
|
import BaseComponent from 'primevue/basecomponent';
|
2024-04-18 14:19:35 +00:00
|
|
|
import DrawerStyle from 'primevue/drawer/style';
|
2023-05-29 20:37:34 +00:00
|
|
|
|
|
|
|
export default {
|
2024-04-18 14:19:35 +00:00
|
|
|
name: 'BaseDrawer',
|
2023-05-29 20:37:34 +00:00
|
|
|
extends: BaseComponent,
|
|
|
|
props: {
|
|
|
|
visible: {
|
|
|
|
type: Boolean,
|
|
|
|
default: false
|
|
|
|
},
|
|
|
|
position: {
|
|
|
|
type: String,
|
|
|
|
default: 'left'
|
|
|
|
},
|
2023-11-20 07:41:12 +00:00
|
|
|
header: {
|
|
|
|
type: null,
|
|
|
|
default: null
|
|
|
|
},
|
2023-05-29 20:37:34 +00:00
|
|
|
baseZIndex: {
|
|
|
|
type: Number,
|
|
|
|
default: 0
|
|
|
|
},
|
|
|
|
autoZIndex: {
|
|
|
|
type: Boolean,
|
|
|
|
default: true
|
|
|
|
},
|
|
|
|
dismissable: {
|
|
|
|
type: Boolean,
|
|
|
|
default: true
|
|
|
|
},
|
|
|
|
showCloseIcon: {
|
|
|
|
type: Boolean,
|
|
|
|
default: true
|
|
|
|
},
|
2024-04-15 08:08:42 +00:00
|
|
|
closeButtonProps: {
|
|
|
|
type: Object,
|
|
|
|
default: () => {
|
|
|
|
return { severity: 'secondary', text: true, rounded: true };
|
|
|
|
}
|
|
|
|
},
|
2023-05-29 20:37:34 +00:00
|
|
|
closeIcon: {
|
|
|
|
type: String,
|
|
|
|
default: undefined
|
|
|
|
},
|
|
|
|
modal: {
|
|
|
|
type: Boolean,
|
|
|
|
default: true
|
|
|
|
},
|
|
|
|
blockScroll: {
|
|
|
|
type: Boolean,
|
|
|
|
default: false
|
|
|
|
}
|
|
|
|
},
|
2024-04-18 14:19:35 +00:00
|
|
|
style: DrawerStyle,
|
2023-05-30 12:28:04 +00:00
|
|
|
provide() {
|
|
|
|
return {
|
2024-04-25 01:26:06 +00:00
|
|
|
$pcDrawer: this,
|
2023-05-30 12:28:04 +00:00
|
|
|
$parentInstance: this
|
|
|
|
};
|
2023-05-29 20:37:34 +00:00
|
|
|
}
|
|
|
|
};
|
|
|
|
</script>
|