UNPKG

quasar

Version:

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

29 lines (23 loc) 539 B
import Vue from 'vue' import slot from '../../utils/slot.js' export default Vue.extend({ name: 'QCard', props: { dark: Boolean, square: Boolean, flat: Boolean, bordered: Boolean }, render (h) { return h('div', { staticClass: 'q-card', class: { 'q-card--dark': this.dark, 'q-card--bordered': this.bordered, 'q-card--square no-border-radius': this.square, 'q-card--flat no-shadow': this.flat }, on: this.$listeners }, slot(this, 'default')) } })