fix: 新增组件搜索功能

This commit is contained in:
奔跑的面条
2022-04-21 22:35:28 +08:00
parent 17f29d3773
commit 798a7eb49a
13 changed files with 185 additions and 21 deletions
+12 -7
View File
@@ -12,6 +12,10 @@
<bar-chart-icon></bar-chart-icon>
</n-icon>
</template>
<template #top-right>
<charts-search v-show="getCharts" :menuOptions="menuOptions"></charts-search>
</template>
<!-- 图表 -->
<aside>
<div class="menu-width-box">
@@ -22,20 +26,20 @@
:icon-size="16"
:indent="18"
@update:value="clickItemHandle"
></n-menu>
></n-menu>
<div class="menu-component-box">
<go-skeleton
:load="!selectOptions"
round
text
:repeat="2"
style="width: 90%;"
></go-skeleton>
<option-content
style="width: 90%"
></go-skeleton>
<charts-option-content
v-if="selectOptions"
:selectOptions="selectOptions"
:key="selectValue"
></option-content>
></charts-option-content>
</div>
</div>
</aside>
@@ -44,7 +48,8 @@
<script setup lang="ts">
import { ContentBox } from '../contentBox/index'
import { OptionContent } from './components/OptionContent'
import { ChartsOptionContent } from './components/ChartsOptionContent'
import { ChartsSearch } from './components/ChartsSearch'
import {
getCharts,
BarChartIcon,
@@ -52,7 +57,7 @@ import {
selectOptions,
selectValue,
clickItemHandle,
menuOptions
menuOptions,
} from './hooks/useAside.hook'
</script>