mirror of
https://gitee.com/dromara/go-view.git
synced 2026-04-23 00:00:12 +08:00
fix: 解决动态变更颜色,部分组件不会更新的问题
This commit is contained in:
@@ -34,7 +34,7 @@
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import { ref } from 'vue'
|
||||
import { ref, computed } from 'vue'
|
||||
import { animations } from '@/settings/animations/index'
|
||||
import { CollapseItem } from '@/components/Pages/ChartItemSetting'
|
||||
import { useDesignStore } from '@/store/modules/designStore/designStore'
|
||||
@@ -42,12 +42,16 @@ import { useTargetData } from '../hooks/useTargetData.hook'
|
||||
|
||||
// 全局颜色
|
||||
const designStore = useDesignStore()
|
||||
const themeColor = ref(designStore.getAppTheme)
|
||||
|
||||
const hoverPreviewAnimate = ref('')
|
||||
|
||||
const { targetData } = useTargetData()
|
||||
|
||||
// 颜色
|
||||
const themeColor = computed(() => {
|
||||
return designStore.getAppTheme
|
||||
})
|
||||
|
||||
// * 选中的动画样式
|
||||
const activeIndex = (value: string) => {
|
||||
const selectValue = targetData.value.styles.animations
|
||||
|
||||
Reference in New Issue
Block a user