From 31c874e1bac6ca1572bf4b846976c36996c13e14 Mon Sep 17 00:00:00 2001 From: aixianling Date: Wed, 18 Dec 2024 15:08:55 +0800 Subject: [PATCH] =?UTF-8?q?refactor(core):=20=E9=87=8D=E6=9E=84=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=E5=AD=97=E5=85=B8=E7=BB=84=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 将 AppDictionary 组件拆分为 dictList 和 DictDetail 两个子组件 -优化数据字典列表的渲染逻辑 --- packages/core/AppDictionary/AppDictionary.vue | 136 +---------------- packages/core/AppDictionary/dictList.vue | 142 ++++++++++++++++++ ui/lib/styles/common.scss | 2 +- ui/packages/layout/AiPage.vue | 2 +- 4 files changed, 150 insertions(+), 132 deletions(-) create mode 100644 packages/core/AppDictionary/dictList.vue diff --git a/packages/core/AppDictionary/AppDictionary.vue b/packages/core/AppDictionary/AppDictionary.vue index ce0e0b16..aff3d1b7 100644 --- a/packages/core/AppDictionary/AppDictionary.vue +++ b/packages/core/AppDictionary/AppDictionary.vue @@ -1,151 +1,27 @@ diff --git a/packages/core/AppDictionary/dictList.vue b/packages/core/AppDictionary/dictList.vue new file mode 100644 index 00000000..4d45be04 --- /dev/null +++ b/packages/core/AppDictionary/dictList.vue @@ -0,0 +1,142 @@ + + + + diff --git a/ui/lib/styles/common.scss b/ui/lib/styles/common.scss index 34f65c74..763b418c 100644 --- a/ui/lib/styles/common.scss +++ b/ui/lib/styles/common.scss @@ -357,7 +357,7 @@ div[flex], .flex { display: grid; gap: 8px; grid-template-columns: repeat(2, 1fr); - @for $i from 2 through 5 { + @for $i from 2 through 10 { &.c-#{$i} { grid-template-columns: repeat($i, 1fr); } diff --git a/ui/packages/layout/AiPage.vue b/ui/packages/layout/AiPage.vue index 68e7ba1e..2c5d7e04 100644 --- a/ui/packages/layout/AiPage.vue +++ b/ui/packages/layout/AiPage.vue @@ -15,7 +15,7 @@ export default {
-
+