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/VCarousel/VCarouselItem.js
2019-08-11 20:48:02 +02:00

49 lines
No EOL
1.1 KiB
JavaScript

// Extensions
import VWindowItem from '../VWindow/VWindowItem'; // Components
import { VImg } from '../VImg'; // Utilities
import mixins from '../../util/mixins';
import Routable from '../../mixins/routable'; // Types
const baseMixins = mixins(VWindowItem, Routable);
/* @vue/component */
export default baseMixins.extend({
name: 'v-carousel-item',
inheritAttrs: false,
methods: {
genDefaultSlot() {
return [this.$createElement(VImg, {
staticClass: 'v-carousel__item',
props: { ...this.$attrs,
height: this.windowGroup.internalHeight
},
on: this.$listeners
}, this.$slots.default)];
},
genWindowItem() {
const {
tag,
data
} = this.generateRouteLink();
data.staticClass = 'v-window-item';
data.directives.push({
name: 'show',
value: this.isActive
});
return this.$createElement(tag, data, this.showLazyContent(this.genDefaultSlot()));
},
onBeforeEnter() {},
onEnter() {},
onAfterEnter() {},
onEnterCancelled() {}
}
});
//# sourceMappingURL=VCarouselItem.js.map