Add toggleable class
parent
2ca82bf177
commit
5fec14aa2d
|
@ -1,5 +1,5 @@
|
||||||
<template>
|
<template>
|
||||||
<div class="p-panel p-component">
|
<div :class="containerClass">
|
||||||
<div class="p-panel-titlebar">
|
<div class="p-panel-titlebar">
|
||||||
<slot name="header">
|
<slot name="header">
|
||||||
<span class="p-panel-title" v-if="header" :id="ariaId + '_header'">{{header}}</span>
|
<span class="p-panel-title" v-if="header" :id="ariaId + '_header'">{{header}}</span>
|
||||||
|
@ -41,6 +41,9 @@ export default {
|
||||||
computed: {
|
computed: {
|
||||||
ariaId() {
|
ariaId() {
|
||||||
return UniqueComponentId();
|
return UniqueComponentId();
|
||||||
|
},
|
||||||
|
containerClass() {
|
||||||
|
return ['p-panel p-component', {'p-panel-toggleable': this.toggleable}];
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
|
Loading…
Reference in New Issue