41 lines
No EOL
1.1 KiB
JavaScript
41 lines
No EOL
1.1 KiB
JavaScript
import { VExpandTransition } from '../transitions'; // Mixins
|
|
|
|
import Bootable from '../../mixins/bootable';
|
|
import { inject as RegistrableInject } from '../../mixins/registrable'; // Utilities
|
|
|
|
import { getSlot } from '../../util/helpers';
|
|
import mixins from '../../util/mixins';
|
|
const baseMixins = mixins(Bootable, RegistrableInject('expansionPanel', 'v-expansion-panel-content', 'v-expansion-panel'));
|
|
/* @vue/component */
|
|
|
|
export default baseMixins.extend().extend({
|
|
name: 'v-expansion-panel-content',
|
|
computed: {
|
|
isActive() {
|
|
return this.expansionPanel.isActive;
|
|
}
|
|
|
|
},
|
|
|
|
created() {
|
|
this.expansionPanel.registerContent(this);
|
|
},
|
|
|
|
beforeDestroy() {
|
|
this.expansionPanel.unregisterContent();
|
|
},
|
|
|
|
render(h) {
|
|
return h(VExpandTransition, [h('div', {
|
|
staticClass: 'v-expansion-panel-content',
|
|
directives: [{
|
|
name: 'show',
|
|
value: this.isActive
|
|
}]
|
|
}, this.showLazyContent([h('div', {
|
|
class: 'v-expansion-panel-content__wrap'
|
|
}, getSlot(this))]))]);
|
|
}
|
|
|
|
});
|
|
//# sourceMappingURL=VExpansionPanelContent.js.map
|