diff --git a/src/plugins/icon.ts b/src/plugins/icon.ts index fac68f4d..03bdfa43 100644 --- a/src/plugins/icon.ts +++ b/src/plugins/icon.ts @@ -51,7 +51,8 @@ import { ColorWand as ColorWandIcon, ArrowBack as ArrowBackIcon, ArrowForward as ArrowForwardIcon, - Planet as PawIcon + Planet as PawIcon, + Search as SearchIcon } from '@vicons/ionicons5' import { @@ -183,7 +184,9 @@ const ionicons5 = { // 前进 ArrowForwardIcon, // 狗爪 - PawIcon + PawIcon, + // 搜索(放大镜) + SearchIcon } const carbon = { diff --git a/src/styles/common/format.scss b/src/styles/common/format.scss index 93559397..30163c51 100644 --- a/src/styles/common/format.scss +++ b/src/styles/common/format.scss @@ -2,6 +2,9 @@ body { overflow: hidden; } +* { + list-style: none; +} /* 设置滚动条的样式 */ ::-webkit-scrollbar { width: 8px; diff --git a/src/styles/common/style.scss b/src/styles/common/style.scss index 72f1b9c2..a57d9e60 100644 --- a/src/styles/common/style.scss +++ b/src/styles/common/style.scss @@ -72,6 +72,14 @@ background-size: 15px 15px, 15px 15px; } +// 省略号 +.ellipsis-1 { + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; + word-break: break-all; +} + // todo 使用 scss 循环写一套完整的 // margin .go-mt-0 { diff --git a/src/views/chart/ContentCharts/components/ChartsItemBox/index.ts b/src/views/chart/ContentCharts/components/ChartsItemBox/index.ts new file mode 100644 index 00000000..e9fe1d41 --- /dev/null +++ b/src/views/chart/ContentCharts/components/ChartsItemBox/index.ts @@ -0,0 +1,3 @@ +import ChartsItemBox from './index.vue' + +export { ChartsItemBox } diff --git a/src/views/chart/ContentCharts/components/ItemBox/index.vue b/src/views/chart/ContentCharts/components/ChartsItemBox/index.vue similarity index 100% rename from src/views/chart/ContentCharts/components/ItemBox/index.vue rename to src/views/chart/ContentCharts/components/ChartsItemBox/index.vue diff --git a/src/views/chart/ContentCharts/components/ChartsOptionContent/index.ts b/src/views/chart/ContentCharts/components/ChartsOptionContent/index.ts new file mode 100644 index 00000000..8fffb84d --- /dev/null +++ b/src/views/chart/ContentCharts/components/ChartsOptionContent/index.ts @@ -0,0 +1,3 @@ +import ChartsOptionContent from './index.vue' + +export { ChartsOptionContent } diff --git a/src/views/chart/ContentCharts/components/OptionContent/index.vue b/src/views/chart/ContentCharts/components/ChartsOptionContent/index.vue similarity index 95% rename from src/views/chart/ContentCharts/components/OptionContent/index.vue rename to src/views/chart/ContentCharts/components/ChartsOptionContent/index.vue index e673acd0..ec123885 100644 --- a/src/views/chart/ContentCharts/components/OptionContent/index.vue +++ b/src/views/chart/ContentCharts/components/ChartsOptionContent/index.vue @@ -12,7 +12,7 @@ >
- +
@@ -24,8 +24,8 @@ import { ConfigType } from '@/packages/index.d' import { useSettingStore } from '@/store/modules/settingStore/settingStore' import { loadAsyncComponent } from '@/utils' -const ItemBox = loadAsyncComponent(() => - import('../ItemBox/index.vue') +const ChartsItemBox = loadAsyncComponent(() => + import('../ChartsItemBox/index.vue') ) const props = defineProps({ diff --git a/src/views/chart/ContentCharts/components/ChartsSearch/index.ts b/src/views/chart/ContentCharts/components/ChartsSearch/index.ts new file mode 100644 index 00000000..119c9989 --- /dev/null +++ b/src/views/chart/ContentCharts/components/ChartsSearch/index.ts @@ -0,0 +1,3 @@ +import ChartsSearch from './index.vue' + +export { ChartsSearch } diff --git a/src/views/chart/ContentCharts/components/ChartsSearch/index.vue b/src/views/chart/ContentCharts/components/ChartsSearch/index.vue new file mode 100644 index 00000000..945b3d8f --- /dev/null +++ b/src/views/chart/ContentCharts/components/ChartsSearch/index.vue @@ -0,0 +1,139 @@ + + + + + \ No newline at end of file diff --git a/src/views/chart/ContentCharts/components/ItemBox/index.ts b/src/views/chart/ContentCharts/components/ItemBox/index.ts deleted file mode 100644 index 8ec7f82e..00000000 --- a/src/views/chart/ContentCharts/components/ItemBox/index.ts +++ /dev/null @@ -1,3 +0,0 @@ -import ItemBox from './index.vue' - -export { ItemBox } diff --git a/src/views/chart/ContentCharts/components/OptionContent/index.ts b/src/views/chart/ContentCharts/components/OptionContent/index.ts deleted file mode 100644 index 5bfd99ec..00000000 --- a/src/views/chart/ContentCharts/components/OptionContent/index.ts +++ /dev/null @@ -1,3 +0,0 @@ -import OptionContent from './index.vue' - -export { OptionContent } diff --git a/src/views/chart/ContentCharts/hooks/useAside.hook.ts b/src/views/chart/ContentCharts/hooks/useAside.hook.ts index 0bc6a259..eb69d0c1 100644 --- a/src/views/chart/ContentCharts/hooks/useAside.hook.ts +++ b/src/views/chart/ContentCharts/hooks/useAside.hook.ts @@ -15,14 +15,17 @@ const { GraphicalDataFlowIcon, } = icon.carbon + // 图表 -const { getPackagesList } = usePackagesStore() -const menuOptions:{ +export type MenuOptionsType = { key: string icon: ReturnType label: ReturnType list: PackagesType -}[] = [] +} + +const { getPackagesList } = usePackagesStore() +const menuOptions: MenuOptionsType[] = [] const packagesListObj = { [PackagesCategoryEnum.CHARTS]: { diff --git a/src/views/chart/ContentCharts/index.vue b/src/views/chart/ContentCharts/index.vue index 75a6cda3..cc3b00d7 100644 --- a/src/views/chart/ContentCharts/index.vue +++ b/src/views/chart/ContentCharts/index.vue @@ -12,6 +12,10 @@ + + @@ -44,7 +48,8 @@