2023-05-19 10:33:07 +00:00
|
|
|
<script>
|
|
|
|
import BaseComponent from 'primevue/basecomponent';
|
2023-10-02 10:46:09 +00:00
|
|
|
import PanelStyle from 'primevue/panel/style';
|
2023-05-19 10:33:07 +00:00
|
|
|
|
|
|
|
export default {
|
|
|
|
name: 'BasePanel',
|
|
|
|
extends: BaseComponent,
|
|
|
|
props: {
|
|
|
|
header: String,
|
|
|
|
toggleable: Boolean,
|
|
|
|
collapsed: Boolean,
|
|
|
|
toggleButtonProps: {
|
2024-04-15 08:08:42 +00:00
|
|
|
type: Object,
|
|
|
|
default: () => {
|
|
|
|
return {
|
|
|
|
severity: 'secondary',
|
|
|
|
text: true,
|
|
|
|
rounded: true
|
|
|
|
};
|
|
|
|
}
|
2023-05-19 10:33:07 +00:00
|
|
|
}
|
|
|
|
},
|
2023-10-02 10:46:09 +00:00
|
|
|
style: PanelStyle,
|
2023-05-30 09:59:17 +00:00
|
|
|
provide() {
|
|
|
|
return {
|
|
|
|
$parentInstance: this
|
|
|
|
};
|
2023-05-19 10:33:07 +00:00
|
|
|
}
|
|
|
|
};
|
|
|
|
</script>
|