fix: 处理创建分组后,预览不显示的bug

This commit is contained in:
奔跑的面条 2022-12-31 20:50:08 +08:00
parent 36fdc22634
commit 3c1b741c37

View File

@ -2,7 +2,7 @@
<div <div
class="chart-item" class="chart-item"
v-for="(item, index) in localStorageInfo.componentList" v-for="(item, index) in localStorageInfo.componentList"
:class="animationsClass(item.styles.animations)" :class="[animationsClass(item.styles.animations), !item.isGroup && 'hidden']"
:key="item.id" :key="item.id"
:style="{ :style="{
...getComponentAttrStyle(item.attr, index), ...getComponentAttrStyle(item.attr, index),
@ -78,6 +78,8 @@ onMounted(() => {
<style lang="scss" scoped> <style lang="scss" scoped>
.chart-item { .chart-item {
position: absolute; position: absolute;
overflow: hidden; &.hidden {
overflow: hidden;
}
} }
</style> </style>