mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2024-12-15 04:42:23 +08:00
feat(advance-table): add minHeight props
This commit is contained in:
parent
6eb8c9651c
commit
d5befae3a3
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "naive-ui",
|
||||
"version": "0.2.33",
|
||||
"version": "0.2.34",
|
||||
"description": "",
|
||||
"main": "index.js",
|
||||
"scripts": {
|
||||
|
@ -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 () {
|
||||
|
Loading…
Reference in New Issue
Block a user