NEZ-944 fix: table高度修复
This commit is contained in:
@@ -25,7 +25,7 @@
|
||||
<div v-if="showLayout.indexOf('clickSearch') > -1" class="search-box">
|
||||
<slot name="search"></slot>
|
||||
</div>
|
||||
<div v-show="bottomBox.mainResizeShow" class="nz-table2" :style="showLayout.indexOf('clickSearch') > -1 ? `height:${tableBoxHeight}` : ''">
|
||||
<div v-show="bottomBox.mainResizeShow" :style="{ height: nzTableHeight }" class="nz-table2">
|
||||
<slot v-bind:mainResizeShow="bottomBox.mainResizeShow"></slot>
|
||||
</div>
|
||||
<div v-show="bottomBox.mainResizeShow" v-if="showLayout.indexOf('pagination') > -1" class="pagination-bottom">
|
||||
@@ -91,7 +91,17 @@ export default {
|
||||
searchMsg: {
|
||||
type: Object
|
||||
},
|
||||
tableBoxHeight: {}
|
||||
nzTableHeightOffset: Number
|
||||
},
|
||||
computed: {
|
||||
nzTableHeight () {
|
||||
if (this.nzTableHeightOffset) {
|
||||
if (this.layout.indexOf('clickSearch') > -1) {
|
||||
return `calc(100% - ${this.nzTableHeightOffset}px`
|
||||
}
|
||||
}
|
||||
return ''
|
||||
}
|
||||
},
|
||||
data () {
|
||||
return {
|
||||
|
||||
Reference in New Issue
Block a user