fix(视图): 修复指标卡、文本卡没有垂直居中的问题

This commit is contained in:
junjun 2022-12-12 10:21:48 +08:00
parent ab417ba3c8
commit fd48e55021

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
}