Merge branch 'dev'

This commit is contained in:
奔跑的面条 2023-09-18 11:43:20 +08:00
commit fdc39e18dc
3 changed files with 31 additions and 24 deletions

View File

@ -1,4 +1,11 @@
<template>
<div
:class="animationsClass(groupData.styles.animations)"
:style="{
...getSizeStyle(groupData.attr),
...getFilterStyle(groupData.styles),
}"
>
<div
class="chart-item"
v-for="item in groupData.groupList"
@ -6,8 +13,6 @@
:key="item.id"
:style="{
...getComponentAttrStyle(item.attr, groupIndex),
...getFilterStyle(groupData.styles),
...getTransformStyle(groupData.styles),
...getStatusStyle(item.status),
...getPreviewConfigStyle(item.preview),
...getBlendModeStyle(item.styles) as any
@ -27,6 +32,7 @@
v-on="useLifeHandler(item)"
></component>
</div>
</div>
</template>
<script setup lang="ts">

View File

@ -6,7 +6,6 @@
:key="item.id"
:style="{
...getComponentAttrStyle(item.attr, index),
...getFilterStyle(item.styles),
...getTransformStyle(item.styles),
...getStatusStyle(item.status),
...getPreviewConfigStyle(item.preview),
@ -31,7 +30,10 @@
:chartConfig="item"
:themeSetting="themeSetting"
:themeColor="themeColor"
:style="{ ...getSizeStyle(item.attr) }"
:style="{
...getSizeStyle(item.attr),
...getFilterStyle(item.styles)
}"
v-on="useLifeHandler(item)"
></component>
</div>

View File

@ -15,8 +15,7 @@ let key = ref(Date.now())
// ->
;[SavePageEnum.JSON, SavePageEnum.CHART_TO_PREVIEW].forEach((saveEvent: string) => {
if (!window.opener) return
if(!(window.opener === window)) return
if (!window.opener && !window.opener.addEventListener) return
window.opener.addEventListener(saveEvent, async (e: any) => {
const localStorageInfo: ChartEditStorageType = await getSessionStorageInfo() as unknown as ChartEditStorageType
setSessionStorage(StorageEnum.GO_CHART_STORAGE_LIST, [{ ...e.detail, id: localStorageInfo.id }])