diff --git a/ui/src/api/type/application.ts b/ui/src/api/type/application.ts
new file mode 100644
index 000000000..ff4f7b8e0
--- /dev/null
+++ b/ui/src/api/type/application.ts
@@ -0,0 +1,10 @@
+interface ApplicationFormType {
+ name: string
+ desc: string
+ model_id: string
+ multiple_rounds_dialogue: boolean
+ prologue: string
+ example: string[]
+ dataset_id_list: string[]
+}
+export type { ApplicationFormType }
diff --git a/ui/src/components/ai-dialog/index.vue b/ui/src/components/ai-dialog/index.vue
index f1c38dff7..03b587719 100644
--- a/ui/src/components/ai-dialog/index.vue
+++ b/ui/src/components/ai-dialog/index.vue
@@ -15,31 +15,23 @@
@@ -87,8 +79,8 @@
import { ref } from 'vue'
const props = defineProps({
data: {
- type: Array
,
- default: () => []
+ type: Object,
+ default: () => {}
}
})
const inputValue = ref('')
@@ -122,7 +114,12 @@ const inputValue = ref('')
border-radius: 8px;
background: var(--app-layout-bg-color);
height: 46px;
- justify-content: left;
+ padding: 0 12px;
+ line-height: 46px;
+ box-sizing: border-box;
+ color: var(--el-text-color-regular);
+ -webkit-line-clamp: 1;
+ word-break: break-all;
&:hover {
background: var(--el-color-primary-light-9);
}
diff --git a/ui/src/styles/app.scss b/ui/src/styles/app.scss
index 34909148e..27bb8856c 100644
--- a/ui/src/styles/app.scss
+++ b/ui/src/styles/app.scss
@@ -214,7 +214,7 @@ h4 {
.ellipsis-1 {
display: inline-block;
- max-width: 100px;
+ max-width: 130px;
text-overflow: ellipsis;
white-space: nowrap;
overflow: hidden;
diff --git a/ui/src/styles/element-plus.scss b/ui/src/styles/element-plus.scss
index 9f05a554f..a554b543a 100644
--- a/ui/src/styles/element-plus.scss
+++ b/ui/src/styles/element-plus.scss
@@ -172,8 +172,10 @@
}
.input-with-select {
-
.el-input-group__prepend {
background-color: var(--el-fill-color-blank);
}
}
+.el-textarea__inner {
+ font-size: 13px;
+}
diff --git a/ui/src/views/application/CreateApplication.vue b/ui/src/views/application/CreateApplication.vue
index 3dfd92334..749f2dc0f 100644
--- a/ui/src/views/application/CreateApplication.vue
+++ b/ui/src/views/application/CreateApplication.vue
@@ -1,13 +1,127 @@
-
+
-
+
+
+
应用信息
+
+
+
+ 取消
+ 创建
+
+
调试预览
-
DataEase 智能客服
-
-
+
{{ applicationForm?.name || '应用名称' }}
+
@@ -15,15 +129,48 @@