perf: 优化标尺的展示方式

This commit is contained in:
奔跑的面条
2022-08-21 14:42:31 +08:00
parent 177fa6bfbe
commit 558512220e
4 changed files with 56 additions and 28 deletions
+10 -4
View File
@@ -1,4 +1,5 @@
<template>
<edit-rule></edit-rule>
<content-box
id="go-chart-edit-layout"
:flex="true"
@@ -24,8 +25,12 @@
<!-- 图表 -->
<div v-for="(item, index) in chartEditStore.getComponentList" :key="item.id">
<!-- 分组 -->
<edit-group v-if="item.isGroup" :groupData="(item as CreateComponentGroupType)" :groupIndex="index"></edit-group>
<edit-group
v-if="item.isGroup"
:groupData="(item as CreateComponentGroupType)"
:groupIndex="index"
></edit-group>
<!-- 单组件 -->
<edit-shape-box
v-else
@@ -88,6 +93,7 @@ import { useComponentStyle, useSizeStyle } from './hooks/useStyle.hook'
import { ContentBox } from '../ContentBox/index'
import { EditGroup } from './components/EditGroup'
import { EditRange } from './components/EditRange'
import { EditRule } from './components/EditRule'
import { EditBottom } from './components/EditBottom'
import { EditShapeBox } from './components/EditShapeBox'
import { EditTools } from './components/EditTools'
@@ -115,7 +121,7 @@ const optionsHandle = (
// 多选处理
if (chartEditStore.getTargetChart.selectId.length > 1) {
const list: MenuOptionsItemType[] = []
allList.forEach(item => {
// 成组
if (moreMenuEnums.includes(item.key as MenuEnum)) {
@@ -174,7 +180,7 @@ onMounted(() => {
@include background-image('background-point');
@include goId('chart-edit-content') {
border-radius: 10px;
margin: 15px;
margin: 25px;
overflow: hidden;
@extend .go-transition;
@include fetch-theme('box-shadow');