fix: 优化组件渲染方式

This commit is contained in:
MTrun
2022-01-14 22:07:02 +08:00
parent 02c3f7478d
commit 3e511069b5
35 changed files with 359 additions and 232 deletions
@@ -23,11 +23,14 @@
@update:value="clickItemHandle"
/>
<div class="menu-component-box">
<transition name="component-fade" mode="out-in">
<keep-alive>
<component :is="selecOptions.node" :packagesList="selecOptions.packagesList" :key="selectValue"></component>
</keep-alive>
</transition>
<Skeleton
:load="!selectOptions"
round
text
:repeat="2"
style="width: 90%;"
/>
<OptionContent v-if="selectOptions" :selectOptions="selectOptions" :key="selectValue" />
</div>
</div>
</aside>
@@ -37,11 +40,12 @@
<script setup lang="ts">
import { reactive, ref, toRefs } from 'vue'
import { ContentBox } from '../ContentBox/index'
import { OptionContent } from './components/OptionContent'
import {
getCharts,
BarChartIcon,
themeColor,
selecOptions,
selectOptions,
selectValue,
clickItemHandle,
menuOptions