|
@@ -4,7 +4,11 @@
|
|
|
:class="animationsClass(item.styles.animations)"
|
|
:class="animationsClass(item.styles.animations)"
|
|
|
v-for="(item, index) in localStorageInfo.componentList"
|
|
v-for="(item, index) in localStorageInfo.componentList"
|
|
|
:key="item.id"
|
|
:key="item.id"
|
|
|
- :style="{ ...getComponentAttrStyle(item.attr, index), ...getStyle(item.styles)}"
|
|
|
|
|
|
|
+ :style="{
|
|
|
|
|
+ ...getComponentAttrStyle(item.attr, index),
|
|
|
|
|
+ ...getFilterStyle(item.styles),
|
|
|
|
|
+ ...getTranstormStyle(item.styles)
|
|
|
|
|
+ }"
|
|
|
>
|
|
>
|
|
|
<component
|
|
<component
|
|
|
:is="item.chartConfig.chartKey"
|
|
:is="item.chartConfig.chartKey"
|
|
@@ -20,7 +24,8 @@
|
|
|
import { PropType, computed } from 'vue'
|
|
import { PropType, computed } from 'vue'
|
|
|
import { ChartEditStorageType } from '../../index.d'
|
|
import { ChartEditStorageType } from '../../index.d'
|
|
|
import { chartColors } from '@/settings/chartThemes/index'
|
|
import { chartColors } from '@/settings/chartThemes/index'
|
|
|
-import { getSizeStyle, getStyle, getComponentAttrStyle, animationsClass } from '../../utils'
|
|
|
|
|
|
|
+import { getSizeStyle, getFilterStyle, getTranstormStyle, getComponentAttrStyle, animationsClass } from '../../utils'
|
|
|
|
|
+
|
|
|
|
|
|
|
|
const props = defineProps({
|
|
const props = defineProps({
|
|
|
localStorageInfo: {
|
|
localStorageInfo: {
|
|
@@ -29,6 +34,8 @@ const props = defineProps({
|
|
|
}
|
|
}
|
|
|
})
|
|
})
|
|
|
|
|
|
|
|
|
|
+console.log(getTranstormStyle(props.localStorageInfo.componentList[0].styles))
|
|
|
|
|
+
|
|
|
// 主题色
|
|
// 主题色
|
|
|
const themeSetting = computed(() => {
|
|
const themeSetting = computed(() => {
|
|
|
const chartThemeSetting = props.localStorageInfo.editCanvasConfig.chartThemeSetting
|
|
const chartThemeSetting = props.localStorageInfo.editCanvasConfig.chartThemeSetting
|