NEZ-944 fix: table高度修复

This commit is contained in:
chenjinsong
2021-08-29 21:35:04 +08:00
parent 295c9366c5
commit dc8d5c2561
14 changed files with 34 additions and 20 deletions

View File

@@ -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 {