perf: 优化层级UI展示

This commit is contained in:
奔跑的面条 2022-09-29 09:12:05 +08:00
parent 6f5d1d9459
commit 6ea3f0701e

View File

@ -19,9 +19,10 @@
<script setup lang="ts">
import { computed, PropType } from 'vue'
import { LayerModeEnum } from '../../index.d'
import { useDesignStore } from '@/store/modules/designStore/designStore'
import { PublicConfigType } from '@/packages/index.d'
import { useChartEditStore } from '@/store/modules/chartEditStore/chartEditStore'
import { LayerModeEnum } from '../../index.d'
import { icon } from '@/plugins'
const props = defineProps({
@ -44,6 +45,12 @@ const props = defineProps({
const { LockClosedOutlineIcon, LockOpenOutlineIcon, EyeOutlineIcon, EyeOffOutlineIcon } = icon.ionicons5
const chartEditStore = useChartEditStore()
const designStore = useDesignStore()
//
const themeColor = computed(() => {
return designStore.getAppTheme
})
// /
const showHandle = (e: MouseEvent) => {
@ -59,7 +66,7 @@ const lockHandle = (e: MouseEvent) => {
</script>
<style lang="scss" scoped>
$activeColor: #ebcb87;
$activeColor: v-bind('themeColor');
.icon-item {
opacity: 0;