From c83d7586d2de6a554c057c3ee0a35a3b00ffe361 Mon Sep 17 00:00:00 2001 From: wangdan-fit2cloud Date: Fri, 17 Nov 2023 11:36:16 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=BA=94=E7=94=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ui/src/components/ai-dialog/index.vue | 20 +++++++++++++++++++ ui/src/components/card-box/index.vue | 2 +- ui/src/components/tag-ellipsis/index.vue | 2 +- ui/src/router/modules/application.ts | 2 +- ui/src/router/routes.ts | 2 +- .../views/application/CreateApplication.vue | 7 ++++--- .../dataset/component/EditParagraphDialog.vue | 2 +- ui/src/views/dataset/step/StepSecond.vue | 4 ++-- .../paragraph/component/ParagraphDialog.vue | 3 +-- 9 files changed, 32 insertions(+), 12 deletions(-) create mode 100644 ui/src/components/ai-dialog/index.vue diff --git a/ui/src/components/ai-dialog/index.vue b/ui/src/components/ai-dialog/index.vue new file mode 100644 index 000000000..9a9d0fa36 --- /dev/null +++ b/ui/src/components/ai-dialog/index.vue @@ -0,0 +1,20 @@ + + + diff --git a/ui/src/components/card-box/index.vue b/ui/src/components/card-box/index.vue index 34ead065e..aed8ea2ad 100644 --- a/ui/src/components/card-box/index.vue +++ b/ui/src/components/card-box/index.vue @@ -53,7 +53,7 @@ function cardLeave() { font-size: 14px; position: relative; min-height: var(--card-min-height); - + border: 1px solid #ffffff; .description { display: -webkit-box; -webkit-box-orient: vertical; diff --git a/ui/src/components/tag-ellipsis/index.vue b/ui/src/components/tag-ellipsis/index.vue index 098774af9..09ec24de7 100644 --- a/ui/src/components/tag-ellipsis/index.vue +++ b/ui/src/components/tag-ellipsis/index.vue @@ -16,7 +16,7 @@ import { ref, computed, useSlots } from 'vue' defineOptions({ name: 'TagEllipsis' }) const slots = useSlots() -const tooltipContent = slots.default()?.[0].children || '' +const tooltipContent = slots.default?.()?.[0].children || '' const tagLabel = ref() const isShowTooltip = computed(() => { const containerWeight = tagLabel.value?.scrollWidth diff --git a/ui/src/router/modules/application.ts b/ui/src/router/modules/application.ts index da630133d..763243d65 100644 --- a/ui/src/router/modules/application.ts +++ b/ui/src/router/modules/application.ts @@ -11,7 +11,7 @@ const applicationRouter = { component: () => import('@/views/application/index.vue') }, { - path: '/application/create', // create + path: '/application/create', name: 'CreateApplication', meta: { activeMenu: '/application' }, component: () => import('@/views/application/CreateApplication.vue'), diff --git a/ui/src/router/routes.ts b/ui/src/router/routes.ts index b127cfe5d..b894a7405 100644 --- a/ui/src/router/routes.ts +++ b/ui/src/router/routes.ts @@ -9,7 +9,7 @@ export const routes: Array = [ path: '/', name: 'home', component: () => import('@/layout/app-layout/index.vue'), - redirect: '/dataset', + redirect: '/application', children: [ // { // path: '/first', diff --git a/ui/src/views/application/CreateApplication.vue b/ui/src/views/application/CreateApplication.vue index 9e07d9608..6d3a66b37 100644 --- a/ui/src/views/application/CreateApplication.vue +++ b/ui/src/views/application/CreateApplication.vue @@ -1,8 +1,9 @@ diff --git a/ui/src/views/dataset/component/EditParagraphDialog.vue b/ui/src/views/dataset/component/EditParagraphDialog.vue index ca9d1d6f0..99a09b49f 100644 --- a/ui/src/views/dataset/component/EditParagraphDialog.vue +++ b/ui/src/views/dataset/component/EditParagraphDialog.vue @@ -1,6 +1,6 @@