fix: 视图明细滚动

This commit is contained in:
junjun 2022-06-29 10:43:18 +08:00
parent 0b654f84b5
commit d7143d1bc7
2 changed files with 12 additions and 6 deletions

View File

@ -19,7 +19,7 @@
</div>
</de-main-container>
<de-main-container v-show="!showChartCanvas">
<table-normal :chart="chartTable" :show-summary="false" class="table-class" />
<table-normal :enable-scroll="false" :chart="chartTable" :show-summary="false" class="table-class" />
</de-main-container>
</de-container>
</template>

View File

@ -24,8 +24,7 @@
sortable
:title="field.name"
:width="columnWidth"
>
</ux-table-column>
/>
</ux-grid>
<el-row v-show="showPage" class="table-page">
@ -74,6 +73,11 @@ export default {
type: Boolean,
required: false,
default: true
},
enableScroll: {
type: Boolean,
required: false,
default: true
}
},
data() {
@ -230,9 +234,11 @@ export default {
this.height = 'auto'
}
this.$nextTick(() => {
this.initScroll()
})
if (this.enableScroll) {
this.$nextTick(() => {
this.initScroll()
})
}
}
})
},