This repository has been archived on 2024-07-27. You can view files and clone it, but cannot push or open issues or pull requests.
keksAccountGUI/node_modulesOLD/vuetify/lib/components/VExpansionPanel/VExpansionPanelContent.js

41 lines
1.1 KiB
JavaScript
Raw Normal View History

2019-08-11 18:48:02 +00:00
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