quasar-framework
Version:
Build responsive SPA, SSR, PWA, Hybrid Mobile Apps and Electron apps, all simultaneously using the same codebase
18 lines (17 loc) • 371 B
JavaScript
export default {
name: 'QToolbarTitle',
props: {
shrink: Boolean
},
render (h) {
return h('div', {
staticClass: 'q-toolbar-title',
'class': this.shrink ? 'col-auto' : null
}, [
this.$slots.default,
this.$slots.subtitle
? h('div', { staticClass: 'q-toolbar-subtitle' }, this.$slots.subtitle)
: null
])
}
}