Merge pull request #4059 from dataease/pr@dev@fix_label

fix(视图): 修复指标卡、文本卡没有垂直居中的问题
This commit is contained in:
Junjun 2022-12-12 10:29:32 +08:00 committed by GitHub
commit 84686039ee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -157,7 +157,7 @@ export default {
this.$nextTick(function() {
if (that.$refs.tableContainer) {
const currentHeight = that.$refs.tableContainer.offsetHeight
const contentHeight = currentHeight - that.$refs.title.offsetHeight - 16
const contentHeight = currentHeight - that.$refs.title.offsetHeight - 8
that.height = contentHeight + 'px'
that.content_class.height = that.height
}