nly-adminlte-vue
Version:
nly adminlte3 components
25 lines (24 loc) • 576 B
JavaScript
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
};
}
}
};