UNPKG

quasar

Version:

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

27 lines (21 loc) 484 B
import Vue from 'vue' import slot from '../../utils/slot.js' export default Vue.extend({ name: 'QBar', props: { dense: Boolean, dark: Boolean }, computed: { classes () { return `q-bar--${this.dense ? 'dense' : 'standard'} q-bar--${this.dark ? 'dark' : 'light'}` } }, render (h) { return h('div', { staticClass: 'q-bar row no-wrap items-center', class: this.classes, on: this.$listeners }, slot(this, 'default')) } })