UNPKG

quasar-framework

Version:

Simultaneously build desktop/mobile SPA websites & phone/tablet apps with VueJS

55 lines (50 loc) 1.25 kB
export function textStyle (n) { return n === void 0 || n < 2 ? {} : {overflow: 'hidden', display: '-webkit-box', '-webkit-box-orient': 'vertical', '-webkit-line-clamp': n} } export default { props: { dark: Boolean, link: Boolean, dense: Boolean, sparse: Boolean, separator: Boolean, insetSeparator: Boolean, multiline: Boolean, highlight: Boolean, icon: String, rightIcon: String, image: String, rightImage: String, avatar: String, rightAvatar: String, letter: String, rightLetter: String, label: String, sublabel: String, labelLines: [String, Number], sublabelLines: [String, Number], tag: { type: String, default: 'div' } }, computed: { itemClasses () { return { 'q-item': true, 'q-item-division': true, 'relative-position': true, 'q-item-dark': this.dark, 'q-item-dense': this.dense, 'q-item-sparse': this.sparse, 'q-item-separator': this.separator, 'q-item-inset-separator': this.insetSeparator, 'q-item-multiline': this.multiline, 'q-item-highlight': this.highlight, 'q-item-link': this.to || this.link } } } }