UNPKG

nly-adminlte-vue

Version:
25 lines (24 loc) 576 B
export default { props: { stacked: { type: [Boolean, String], default: false } }, computed: { isStacked() { // `true` when always stacked, or returns breakpoint specified return this.stacked === "" ? true : this.stacked; }, isStackedAlways() { return this.isStacked === true; }, stackedTableClasses() { return { "nly-table-stacked": this.isStackedAlways, [`nly-table-stacked-${this.stacked}`]: !this.isStackedAlways && this.isStacked }; } } };