perf: 优化层级UI展示
This commit is contained in:
parent
6f5d1d9459
commit
6ea3f0701e
@ -19,9 +19,10 @@
|
|||||||
|
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { computed, PropType } from 'vue'
|
import { computed, PropType } from 'vue'
|
||||||
import { LayerModeEnum } from '../../index.d'
|
import { useDesignStore } from '@/store/modules/designStore/designStore'
|
||||||
import { PublicConfigType } from '@/packages/index.d'
|
import { PublicConfigType } from '@/packages/index.d'
|
||||||
import { useChartEditStore } from '@/store/modules/chartEditStore/chartEditStore'
|
import { useChartEditStore } from '@/store/modules/chartEditStore/chartEditStore'
|
||||||
|
import { LayerModeEnum } from '../../index.d'
|
||||||
import { icon } from '@/plugins'
|
import { icon } from '@/plugins'
|
||||||
|
|
||||||
const props = defineProps({
|
const props = defineProps({
|
||||||
@ -44,6 +45,12 @@ const props = defineProps({
|
|||||||
|
|
||||||
const { LockClosedOutlineIcon, LockOpenOutlineIcon, EyeOutlineIcon, EyeOffOutlineIcon } = icon.ionicons5
|
const { LockClosedOutlineIcon, LockOpenOutlineIcon, EyeOutlineIcon, EyeOffOutlineIcon } = icon.ionicons5
|
||||||
const chartEditStore = useChartEditStore()
|
const chartEditStore = useChartEditStore()
|
||||||
|
const designStore = useDesignStore()
|
||||||
|
|
||||||
|
// 颜色
|
||||||
|
const themeColor = computed(() => {
|
||||||
|
return designStore.getAppTheme
|
||||||
|
})
|
||||||
|
|
||||||
// 隐藏 / 展示
|
// 隐藏 / 展示
|
||||||
const showHandle = (e: MouseEvent) => {
|
const showHandle = (e: MouseEvent) => {
|
||||||
@ -59,7 +66,7 @@ const lockHandle = (e: MouseEvent) => {
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
$activeColor: #ebcb87;
|
$activeColor: v-bind('themeColor');
|
||||||
|
|
||||||
.icon-item {
|
.icon-item {
|
||||||
opacity: 0;
|
opacity: 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user