primevue-mirror/components/lib/panel/BasePanel.vue

32 lines
687 B
Vue
Raw Normal View History

2023-05-19 10:33:07 +00:00
<script>
import BaseComponent from 'primevue/basecomponent';
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
}
},
style: PanelStyle,
provide() {
return {
$pcPanel: this,
$parentInstance: this
};
2023-05-19 10:33:07 +00:00
}
};
</script>