mirror of https://github.com/rancher/dashboard.git
26 lines
445 B
TypeScript
26 lines
445 B
TypeScript
|
|
export default {
|
|
props: {
|
|
compact: {
|
|
type: Boolean,
|
|
default: null
|
|
},
|
|
label: {
|
|
type: String,
|
|
default: null
|
|
},
|
|
|
|
labelKey: {
|
|
type: String,
|
|
default: null
|
|
},
|
|
},
|
|
|
|
computed: {
|
|
isCompact(): boolean {
|
|
// Compact if explicitly set - otherwise compact if there is no label
|
|
return this.compact !== null ? this.compact : !(this.label || this.labelKey);
|
|
}
|
|
}
|
|
};
|