feat(advance-table): add minHeight props

This commit is contained in:
JiwenBai 2019-07-25 11:30:16 +08:00
parent 6eb8c9651c
commit d5befae3a3
2 changed files with 11 additions and 1 deletions

View File

@ -1,6 +1,6 @@
{
"name": "naive-ui",
"version": "0.2.33",
"version": "0.2.34",
"description": "",
"main": "index.js",
"scripts": {

View File

@ -166,6 +166,10 @@ export default {
type: Function,
default: null
},
minHeight: {
type: [Number, String],
default: 'unset'
},
maxHeight: {
type: [Number, String],
default: 'auto'
@ -261,6 +265,12 @@ export default {
? this.maxWidth + 'px'
: this.maxWidth
}
if (this.minHeight !== 'unset') {
stl.minHeight =
typeof this.minHeight === 'number'
? this.minHeight + 'px'
: this.minHeight
}
return stl
},
colGroup () {