feat: 解决分组在预览会失效的问题

This commit is contained in:
奔跑的面条 2023-09-03 23:09:54 +08:00
parent 30e7a76de9
commit 8883c47023

View File

@ -6,8 +6,8 @@
:key="item.id" :key="item.id"
:style="{ :style="{
...getComponentAttrStyle(item.attr, groupIndex), ...getComponentAttrStyle(item.attr, groupIndex),
...getFilterStyle(item.styles), ...getFilterStyle(groupData.styles),
...getTransformStyle(item.styles), ...getTransformStyle(groupData.styles),
...getStatusStyle(item.status), ...getStatusStyle(item.status),
...getPreviewConfigStyle(item.preview), ...getPreviewConfigStyle(item.preview),
...getBlendModeStyle(item.styles) as any ...getBlendModeStyle(item.styles) as any
@ -19,7 +19,11 @@
:chartConfig="item" :chartConfig="item"
:themeSetting="themeSetting" :themeSetting="themeSetting"
:themeColor="themeColor" :themeColor="themeColor"
:style="{ ...getSizeStyle(item.attr) }" :style="{
...getSizeStyle(item.attr),
...getFilterStyle(item.styles),
...getTransformStyle(item.styles)
}"
v-on="useLifeHandler(item)" v-on="useLifeHandler(item)"
></component> ></component>
</div> </div>