perf: 优化滤镜模糊问题,默认不开启

This commit is contained in:
奔跑的面条
2022-09-19 17:51:12 +08:00
8 changed files with 26 additions and 4 deletions
+7 -2
View File
@@ -19,7 +19,7 @@
<!-- 滤镜预览 -->
<div
:style="{
...getFilterStyle(chartEditStore.getEditCanvasConfig),
...getFilterStyle(filterShow ? chartEditStore.getEditCanvasConfig : undefined),
...rangeStyle
}"
>
@@ -54,7 +54,7 @@
:themeColor="themeColor"
:style="{
...useSizeStyle(item.attr),
...getFilterStyle(item.styles),
...getFilterStyle(filterShow ? item.styles : undefined),
...getTransformStyle(item.styles)
}"
></component>
@@ -148,6 +148,11 @@ const themeColor = computed(() => {
return chartColors[chartThemeColor]
})
// 是否展示渲染
const filterShow = computed(() => {
return chartEditStore.getEditCanvasConfig.filterShow
})
// 背景
const rangeStyle = computed(() => {
// 设置背景色和图片背景