UNPKG

quasar

Version:

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

38 lines (31 loc) 844 B
import Vue from 'vue' import DarkMixin from '../../mixins/dark.js' export default Vue.extend({ name: 'QSeparator', mixins: [ DarkMixin ], props: { spaced: Boolean, inset: [Boolean, String], vertical: Boolean, color: String }, computed: { classes () { return { [`bg-${this.color}`]: this.color, 'q-separator--dark': this.isDark, 'q-separator--spaced': this.spaced, 'q-separator--inset': this.inset === true, 'q-separator--item-inset': this.inset === 'item', 'q-separator--item-thumbnail-inset': this.inset === 'item-thumbnail', [`q-separator--${this.vertical ? 'vertical self-stretch' : 'horizontal col-grow'}`]: true } } }, render (h) { return h('hr', { staticClass: 'q-separator', class: this.classes }) } })