We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e7f8f34 commit c63b757Copy full SHA for c63b757
src/components/MdTable/MdTable.vue
@@ -90,7 +90,7 @@
90
mdCard: Boolean,
91
mdFixedHeader: Boolean,
92
mdHeight: {
93
- type: Number,
+ type: [Number, String],
94
default: 400
95
},
96
mdSort: String,
@@ -180,7 +180,10 @@
180
181
contentStyles () {
182
if (this.mdFixedHeader) {
183
- return `height: ${this.mdHeight}px;max-height: ${this.mdHeight}px`
+ const height = typeof this.mdHeight === 'number'
184
+ ? `${this.mdHeight}px`
185
+ : this.mdHeight
186
+ return `height: ${height};max-height: ${height}`
187
}
188
189
contentClasses () {
0 commit comments