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