UNPKG

quasar-framework

Version:

Build responsive SPA, SSR, PWA, Hybrid Mobile Apps and Electron apps, all simultaneously using the same codebase

26 lines (25 loc) 544 B
export default { name: 'QCardMedia', props: { overlayPosition: { type: String, default: 'bottom', validator: v => ['top', 'bottom', 'full'].includes(v) } }, render (h) { return h('div', { staticClass: 'q-card-media relative-position' }, [ this.$slots.default, this.$slots.overlay ? h('div', { staticClass: 'q-card-media-overlay', 'class': `absolute-${this.overlayPosition}` }, [ this.$slots.overlay ]) : null ]) } }