mirror of
https://gitee.com/dromara/go-view.git
synced 2026-04-23 00:00:12 +08:00
perf: 优化滤镜模糊问题,默认不开启
This commit is contained in:
@@ -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(() => {
|
||||
// 设置背景色和图片背景
|
||||
|
||||
Reference in New Issue
Block a user