UNPKG

quasar

Version:

Build high-performance VueJS user interfaces (SPA, PWA, SSR, Mobile and Desktop) in record time

34 lines (26 loc) 571 B
import Vue from 'vue' import { PanelChildMixin } from '../../mixins/panel.js' import { slot } from '../../utils/slot.js' export default Vue.extend({ name: 'QCarouselSlide', mixins: [ PanelChildMixin ], props: { imgSrc: String }, computed: { style () { if (this.imgSrc) { return { backgroundImage: `url("${this.imgSrc}")` } } } }, render (h) { return h('div', { staticClass: 'q-carousel__slide', style: this.style, on: { ...this.qListeners } }, slot(this, 'default')) } })