@blueking/ai-ui-sdk 0.1.2-beta.7 → 0.1.2-beta.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (44) hide show
  1. package/dist/components/render-aside/index.vue.css +9 -9
  2. package/dist/components/render-aside/index.vue.js +1 -1
  3. package/dist/components/render-auto-height-textarea/index.vue.css +11 -11
  4. package/dist/components/render-auto-height-textarea/index.vue.js +1 -1
  5. package/dist/components/render-collapse/index.vue.css +2 -2
  6. package/dist/components/render-collapse/index.vue.js +1 -1
  7. package/dist/components/render-dataset/components/edit-dataset-data/index.vue.css +3 -3
  8. package/dist/components/render-dataset/components/edit-dataset-data/index.vue.js +1 -1
  9. package/dist/components/render-dataset/components/operation-record/index.vue.css +4 -4
  10. package/dist/components/render-dataset/components/operation-record/index.vue.js +1 -1
  11. package/dist/components/render-dataset/components/operation-record/table/index.vue.css +1 -1
  12. package/dist/components/render-dataset/components/operation-record/table/index.vue.js +1 -1
  13. package/dist/components/render-dataset/components/operation-record/view-op-result/index.vue.css +2 -2
  14. package/dist/components/render-dataset/components/operation-record/view-op-result/index.vue.js +1 -1
  15. package/dist/components/render-dataset/components/plus-dataset/dataset-form.script.vue.js +12 -15
  16. package/dist/components/render-dataset/components/plus-dataset/index.vue.css +2 -2
  17. package/dist/components/render-dataset/components/plus-dataset/index.vue.js +1 -1
  18. package/dist/components/render-dataset/components/plus-dataset-data/form/footer.vue.css +1 -1
  19. package/dist/components/render-dataset/components/plus-dataset-data/form/footer.vue.js +1 -1
  20. package/dist/components/render-dataset/components/plus-dataset-data/form/index.vue.css +2 -2
  21. package/dist/components/render-dataset/components/plus-dataset-data/form/index.vue.js +1 -1
  22. package/dist/components/render-dataset/components/source-type-icon/index.vue.css +3 -3
  23. package/dist/components/render-dataset/components/source-type-icon/index.vue.js +1 -1
  24. package/dist/components/render-dataset/index.vue.css +1 -1
  25. package/dist/components/render-dataset/index.vue.js +1 -1
  26. package/dist/components/render-dataset-detail-origin-data/components/table/index.vue.css +1 -1
  27. package/dist/components/render-dataset-detail-origin-data/components/table/index.vue.js +1 -1
  28. package/dist/components/render-dataset-detail-origin-data/index.vue.css +3 -3
  29. package/dist/components/render-dataset-detail-origin-data/index.vue.js +1 -1
  30. package/dist/components/render-dataset-list/components/main.vue.css +3 -3
  31. package/dist/components/render-dataset-list/components/main.vue.js +1 -1
  32. package/dist/components/render-dataset-list/components/table.script.vue.js.js +28 -22
  33. package/dist/components/render-expand-collapse/index.vue.css +3 -3
  34. package/dist/components/render-expand-collapse/index.vue.js +1 -1
  35. package/dist/components/render-file-card/index.vue.css +11 -11
  36. package/dist/components/render-file-card/index.vue.js +1 -1
  37. package/dist/components/render-file-type-icon/index.vue.css +5 -5
  38. package/dist/components/render-file-type-icon/index.vue.js +1 -1
  39. package/dist/components/render-header/index.vue.css +5 -5
  40. package/dist/components/render-header/index.vue.js +1 -1
  41. package/dist/components/render-router-tab/index.vue.css +3 -3
  42. package/dist/components/render-router-tab/index.vue.js +1 -1
  43. package/dist/hooks/use-chat.ts.js +13 -12
  44. package/package.json +1 -1
@@ -1,12 +1,12 @@
1
1
 
2
- .aside-home[data-v-sj9k4nvg] {
2
+ .aside-home[data-v-mop9d21v] {
3
3
  width: 300px;
4
4
  height: 100%;
5
5
  background: #FFFFFF;
6
6
  padding: 16px;
7
7
  border-right: 1px solid #eaebf0;
8
8
  }
9
- [data-v-sj9k4nvg] .aside-item {
9
+ [data-v-mop9d21v] .aside-item {
10
10
  width: 268px;
11
11
  line-height: 36px;
12
12
  border-radius: 2px;
@@ -16,30 +16,30 @@
16
16
  justify-content: space-between;
17
17
  color: #979BA5;
18
18
  }
19
- [data-v-sj9k4nvg] .aside-item.is-tab {
19
+ [data-v-mop9d21v] .aside-item.is-tab {
20
20
  background: #F5F7FA;
21
21
  cursor: pointer;
22
22
  color: #4D4F56;
23
23
  }
24
- [data-v-sj9k4nvg] .aside-item.is-tab:hover {
24
+ [data-v-mop9d21v] .aside-item.is-tab:hover {
25
25
  background: #F0F5FF;
26
26
  }
27
- [data-v-sj9k4nvg] .aside-item.active {
27
+ [data-v-mop9d21v] .aside-item.active {
28
28
  background: #F0F5FF;
29
29
  color: #3A84FF;
30
30
  font-weight: 700;
31
31
  }
32
- [data-v-sj9k4nvg] .aside-item.active .tab-num {
32
+ [data-v-mop9d21v] .aside-item.active .tab-num {
33
33
  background: #3A84FF;
34
34
  color: #fff;
35
35
  }
36
- [data-v-sj9k4nvg] .aside-item.active .active-text {
36
+ [data-v-mop9d21v] .aside-item.active .active-text {
37
37
  color: #3A84FF;
38
38
  }
39
- [data-v-sj9k4nvg] .aside-item .tab-name {
39
+ [data-v-mop9d21v] .aside-item .tab-name {
40
40
  flex: 1;
41
41
  }
42
- [data-v-sj9k4nvg] .aside-item .tab-num {
42
+ [data-v-mop9d21v] .aside-item .tab-num {
43
43
  background: #EAEBF0;
44
44
  border-radius: 2px;
45
45
  margin-left: 5px;
@@ -1,5 +1,5 @@
1
1
  import script from './index.script.vue.js';
2
- script.__scopeId = "data-v-sj9k4nvg";
2
+ script.__scopeId = "data-v-mop9d21v";
3
3
  script.__file = "./src/components/render-aside/index.vue";
4
4
  import './index.vue.css';
5
5
  export default script;
@@ -1,40 +1,40 @@
1
1
 
2
- .send-container[data-v-wsf2z401] {
2
+ .send-container[data-v-zlt381z3] {
3
3
  position: relative;
4
4
  }
5
- .send-container[data-v-wsf2z401]:has(textarea:focus) {
5
+ .send-container[data-v-zlt381z3]:has(textarea:focus) {
6
6
  z-index: 2;
7
7
  }
8
- .send-container:hover .send-clear[data-v-wsf2z401] {
8
+ .send-container:hover .send-clear[data-v-zlt381z3] {
9
9
  display: inline-flex !important;
10
10
  }
11
- .send-input[data-v-wsf2z401] {
11
+ .send-input[data-v-zlt381z3] {
12
12
  width: 100%;
13
13
  flex-direction: row;
14
14
  height: var(--origin-height);
15
15
  }
16
- .send-input[data-v-wsf2z401]:has(textarea:focus) {
16
+ .send-input[data-v-zlt381z3]:has(textarea:focus) {
17
17
  height: var(--text-height);
18
18
  }
19
- .send-input[data-v-wsf2z401] textarea {
19
+ .send-input[data-v-zlt381z3] textarea {
20
20
  font-size: 12px;
21
21
  line-height: 16px;
22
22
  padding: 7px;
23
23
  resize: none !important;
24
24
  }
25
- .send-input[data-v-wsf2z401] textarea::-webkit-scrollbar {
25
+ .send-input[data-v-zlt381z3] textarea::-webkit-scrollbar {
26
26
  width: 4px;
27
27
  height: 4px;
28
28
  }
29
- .send-input[data-v-wsf2z401] textarea::-webkit-scrollbar-thumb {
29
+ .send-input[data-v-zlt381z3] textarea::-webkit-scrollbar-thumb {
30
30
  height: 5px;
31
31
  border-radius: 3px;
32
32
  background-color: #dcdee5;
33
33
  }
34
- .send-input[data-v-wsf2z401] textarea::placeholder {
34
+ .send-input[data-v-zlt381z3] textarea::placeholder {
35
35
  line-height: 16px;
36
36
  }
37
- .send-clear[data-v-wsf2z401] {
37
+ .send-clear[data-v-zlt381z3] {
38
38
  display: none !important;
39
39
  position: absolute;
40
40
  right: 10px;
@@ -43,6 +43,6 @@
43
43
  font-size: 14px;
44
44
  cursor: pointer;
45
45
  }
46
- .send-clear[data-v-wsf2z401]:hover {
46
+ .send-clear[data-v-zlt381z3]:hover {
47
47
  color: #313238;
48
48
  }
@@ -1,5 +1,5 @@
1
1
  import script from './index.script.vue.js.js';
2
- script.__scopeId = "data-v-wsf2z401";
2
+ script.__scopeId = "data-v-zlt381z3";
3
3
  script.__file = "./src/components/render-auto-height-textarea/index.vue";
4
4
  import './index.vue.css';
5
5
  export default script;
@@ -1,10 +1,10 @@
1
1
 
2
- .collapse-title[data-v-p9buzzdz] {
2
+ .collapse-title[data-v-cm8swy56] {
3
3
  height: 28px;
4
4
  background: #F0F1F5;
5
5
  border-radius: 2px;
6
6
  padding: 0 12px;
7
7
  }
8
- .collapse-title .is-hidden[data-v-p9buzzdz] {
8
+ .collapse-title .is-hidden[data-v-cm8swy56] {
9
9
  transform: rotate(-90deg);
10
10
  }
@@ -1,5 +1,5 @@
1
1
  import script from './index.script.vue.js.js';
2
- script.__scopeId = "data-v-p9buzzdz";
2
+ script.__scopeId = "data-v-cm8swy56";
3
3
  script.__file = "./src/components/render-collapse/index.vue";
4
4
  import './index.vue.css';
5
5
  export default script;
@@ -1,15 +1,15 @@
1
1
 
2
- .content[data-v-eglkg6th] {
2
+ .content[data-v-g97kezqz] {
3
3
  padding: 18px 24px 0;
4
4
  height: 100%;
5
5
  overflow: auto;
6
6
  }
7
- .data-set-edit-slider .value-content[data-v-eglkg6th] {
7
+ .data-set-edit-slider .value-content[data-v-g97kezqz] {
8
8
  padding: 16px;
9
9
  border: 1px solid #DCDEE5;
10
10
  line-height: 22px;
11
11
  }
12
- .data-set-edit-slider[data-v-eglkg6th] .bk-sideslider-title {
12
+ .data-set-edit-slider[data-v-g97kezqz] .bk-sideslider-title {
13
13
  justify-content: space-between;
14
14
  width: 100%;
15
15
  }
@@ -1,5 +1,5 @@
1
1
  import script from './index.script.vue.js.js';
2
- script.__scopeId = "data-v-eglkg6th";
2
+ script.__scopeId = "data-v-g97kezqz";
3
3
  script.__file = "./src/components/render-dataset/components/edit-dataset-data/index.vue";
4
4
  import './index.vue.css';
5
5
  export default script;
@@ -1,18 +1,18 @@
1
1
 
2
- .content[data-v-tat3zsyq] {
2
+ .content[data-v-qm96j3mh] {
3
3
  padding: 0 24px 0px 32px;
4
4
  height: 100%;
5
5
  }
6
- .content .toolbar[data-v-tat3zsyq] {
6
+ .content .toolbar[data-v-qm96j3mh] {
7
7
  margin: 16px 0;
8
8
  display: flex;
9
9
  align-items: center;
10
10
  justify-content: right;
11
11
  gap: 8px;
12
12
  }
13
- .content .toolbar .record-search[data-v-tat3zsyq] {
13
+ .content .toolbar .record-search[data-v-qm96j3mh] {
14
14
  width: 360px;
15
15
  }
16
- .content .toolbar .record-data-picker[data-v-tat3zsyq] {
16
+ .content .toolbar .record-data-picker[data-v-qm96j3mh] {
17
17
  width: 260px;
18
18
  }
@@ -1,5 +1,5 @@
1
1
  import script from './index.script.vue.js.js';
2
- script.__scopeId = "data-v-tat3zsyq";
2
+ script.__scopeId = "data-v-qm96j3mh";
3
3
  script.__file = "./src/components/render-dataset/components/operation-record/index.vue";
4
4
  import './index.vue.css';
5
5
  export default script;
@@ -1,5 +1,5 @@
1
1
 
2
- .text[data-v-ljg72kez] {
2
+ .text[data-v-7oa4jxdm] {
3
3
  display: -webkit-box;
4
4
  -webkit-line-clamp: 2;
5
5
  -webkit-box-orient: vertical;
@@ -1,5 +1,5 @@
1
1
  import script from './index.script.vue.js.js';
2
- script.__scopeId = "data-v-ljg72kez";
2
+ script.__scopeId = "data-v-7oa4jxdm";
3
3
  script.__file = "./src/components/render-dataset/components/operation-record/table/index.vue";
4
4
  import './index.vue.css';
5
5
  export default script;
@@ -1,10 +1,10 @@
1
1
 
2
- .content[data-v-9kcnf738] {
2
+ .content[data-v-h9u9iy8n] {
3
3
  padding: 18px 24px 0;
4
4
  height: 100%;
5
5
  overflow: auto;
6
6
  }
7
- .content .value-content[data-v-9kcnf738] {
7
+ .content .value-content[data-v-h9u9iy8n] {
8
8
  margin-top: 8px;
9
9
  padding: 16px;
10
10
  border: 1px solid #DCDEE5;
@@ -1,5 +1,5 @@
1
1
  import script from './index.script.vue.js.js';
2
- script.__scopeId = "data-v-9kcnf738";
2
+ script.__scopeId = "data-v-h9u9iy8n";
3
3
  script.__file = "./src/components/render-dataset/components/operation-record/view-op-result/index.vue";
4
4
  import './index.vue.css';
5
5
  export default script;
@@ -23,7 +23,7 @@ export default /*@__PURE__*/ _defineComponent({
23
23
  const emits = __emit;
24
24
  const { getComponentList, getSchemaList, getCompanyList } = useDatasetHttp(props.apiPrefix);
25
25
  const rules = {
26
- datasetCode: [
26
+ datasetName: [
27
27
  {
28
28
  validator: (value)=>!/[\\/:*?"<>|]/.test(value),
29
29
  message: '禁止包含下列字符 \\ /:*?"<>|',
@@ -35,7 +35,7 @@ export default /*@__PURE__*/ _defineComponent({
35
35
  trigger: 'change'
36
36
  }
37
37
  ],
38
- datasetName: [
38
+ datasetCode: [
39
39
  {
40
40
  validator: (value)=>/^[a-zA-Z0-9-]+$/.test(value),
41
41
  message: '需要是英文字符、数字、中划线',
@@ -133,18 +133,16 @@ export default /*@__PURE__*/ _defineComponent({
133
133
  }, " 基本信息 ", -1 /* HOISTED */ )),
134
134
  _createVNode(_component_bk_form_item, {
135
135
  label: "名称",
136
- property: "datasetCode",
136
+ property: "datasetName",
137
137
  required: ""
138
138
  }, {
139
139
  default: _withCtx(()=>[
140
140
  _createVNode(_component_bk_input, {
141
141
  clearable: "",
142
142
  placeholder: "禁止包含字符\\ /:*?\"<>|,且在 50 个字符内",
143
- disabled: !!_ctx.id,
144
- "model-value": _ctx.formData.datasetCode,
145
- onChange: _cache[0] || (_cache[0] = (value)=>handleChange('datasetCode', value))
143
+ "model-value": _ctx.formData.datasetName,
144
+ onChange: _cache[0] || (_cache[0] = (value)=>handleChange('datasetName', value))
146
145
  }, null, 8 /* PROPS */ , [
147
- "disabled",
148
146
  "model-value"
149
147
  ])
150
148
  ]),
@@ -152,16 +150,18 @@ export default /*@__PURE__*/ _defineComponent({
152
150
  }),
153
151
  _createVNode(_component_bk_form_item, {
154
152
  label: "英文名称",
155
- property: "datasetName",
153
+ property: "datasetCode",
156
154
  required: ""
157
155
  }, {
158
156
  default: _withCtx(()=>[
159
157
  _createVNode(_component_bk_input, {
160
158
  clearable: "",
161
159
  placeholder: "可以填入英文字符、数字、中划线,且在 50 个字符内",
162
- "model-value": _ctx.formData.datasetName,
163
- onChange: _cache[1] || (_cache[1] = (value)=>handleChange('datasetName', value))
160
+ disabled: !!_ctx.id,
161
+ "model-value": _ctx.formData.datasetCode,
162
+ onChange: _cache[1] || (_cache[1] = (value)=>handleChange('datasetCode', value))
164
163
  }, null, 8 /* PROPS */ , [
164
+ "disabled",
165
165
  "model-value"
166
166
  ])
167
167
  ]),
@@ -274,7 +274,6 @@ export default /*@__PURE__*/ _defineComponent({
274
274
  ]),
275
275
  _: 1 /* STABLE */
276
276
  })) : _createCommentVNode("v-if", true),
277
- _createCommentVNode(" <bk-form-item\n label=\"来源团队\"\n property=\"sourceTeam\"\n required\n >\n <bk-select\n id-key=\"id\"\n display-key=\"companyName\"\n :model-value=\"formData.sourceTeam\"\n :list=\"companyList\"\n @change=\"(value: string) => handleChange('sourceTeam', value)\"\n />\n </bk-form-item> "),
278
277
  _createVNode(_component_bk_form_item, {
279
278
  label: "所属组件",
280
279
  property: "componentIds",
@@ -296,8 +295,7 @@ export default /*@__PURE__*/ _defineComponent({
296
295
  _createVNode(_component_bk_form_item, {
297
296
  label: "描述",
298
297
  property: "description",
299
- class: "g-last-form-item",
300
- required: ""
298
+ class: "g-last-form-item"
301
299
  }, {
302
300
  default: _withCtx(()=>[
303
301
  _createVNode(RenderAutoHeightTextarea, {
@@ -310,8 +308,7 @@ export default /*@__PURE__*/ _defineComponent({
310
308
  ]),
311
309
  _: 1 /* STABLE */
312
310
  })
313
- ]),
314
- _createCommentVNode(" <section>\n <div class=\"g-text-14 g-text-black g-weight-bold g-mb-16\">权限</div>\n <bk-form-item label=\"数据人员\">\n <member-selector v-model=\"formData.dataPerson\" />\n </bk-form-item>\n <bk-form-item label=\"算法人员\">\n <member-selector v-model=\"formData.algorithmPerson\" />\n </bk-form-item>\n </section> ")
311
+ ])
315
312
  ]),
316
313
  _: 1 /* STABLE */
317
314
  }, 8 /* PROPS */ , [
@@ -1,8 +1,8 @@
1
1
 
2
- .dataset-data-content[data-v-cyqryqir] {
2
+ .dataset-data-content[data-v-8vqrej1s] {
3
3
  padding: 20px 24px;
4
4
  height: 100%;
5
5
  }
6
- .dataset-data-slider[data-v-cyqryqir] .bk-modal-content {
6
+ .dataset-data-slider[data-v-8vqrej1s] .bk-modal-content {
7
7
  scrollbar-gutter: inherit !important;
8
8
  }
@@ -1,5 +1,5 @@
1
1
  import script from './index.script.vue.js.js';
2
- script.__scopeId = "data-v-cyqryqir";
2
+ script.__scopeId = "data-v-8vqrej1s";
3
3
  script.__file = "./src/components/render-dataset/components/plus-dataset/index.vue";
4
4
  import './index.vue.css';
5
5
  export default script;
@@ -1,5 +1,5 @@
1
1
 
2
- .footer-button[data-v-gw7tfll9] {
2
+ .footer-button[data-v-4a6jdiog] {
3
3
  width: 88px;
4
4
  margin-right: 8px;
5
5
  }
@@ -1,5 +1,5 @@
1
1
  import script from './footer.script.vue.js.js';
2
- script.__scopeId = "data-v-gw7tfll9";
2
+ script.__scopeId = "data-v-4a6jdiog";
3
3
  script.__file = "./src/components/render-dataset/components/plus-dataset-data/form/footer.vue";
4
4
  import './footer.vue.css';
5
5
  export default script;
@@ -1,7 +1,7 @@
1
1
 
2
- .plus-dataset-data[data-v-p9xyfndt] {
2
+ .plus-dataset-data[data-v-aagaa84r] {
3
3
  padding: 20px 24px;
4
4
  }
5
- .plus-dataset-sideslider[data-v-p9xyfndt] .bk-modal-content {
5
+ .plus-dataset-sideslider[data-v-aagaa84r] .bk-modal-content {
6
6
  scrollbar-gutter: inherit !important;
7
7
  }
@@ -1,5 +1,5 @@
1
1
  import script from './index.script.vue.js.js';
2
- script.__scopeId = "data-v-p9xyfndt";
2
+ script.__scopeId = "data-v-aagaa84r";
3
3
  script.__file = "./src/components/render-dataset/components/plus-dataset-data/form/index.vue";
4
4
  import './index.vue.css';
5
5
  export default script;
@@ -1,10 +1,10 @@
1
1
 
2
- .bkaidev-markdown[data-v-p72m6ymm] {
2
+ .bkaidev-markdown[data-v-lbqd0pzo] {
3
3
  color: #3a84ff;
4
4
  }
5
- .bkaidev-wangye[data-v-p72m6ymm] {
5
+ .bkaidev-wangye[data-v-lbqd0pzo] {
6
6
  color: #14A568;
7
7
  }
8
- .bkaidev-wenben[data-v-p72m6ymm] {
8
+ .bkaidev-wenben[data-v-lbqd0pzo] {
9
9
  color: #979ba5;
10
10
  }
@@ -1,5 +1,5 @@
1
1
  import script from './index.script.vue.js.js';
2
- script.__scopeId = "data-v-p72m6ymm";
2
+ script.__scopeId = "data-v-lbqd0pzo";
3
3
  script.__file = "./src/components/render-dataset/components/source-type-icon/index.vue";
4
4
  import './index.vue.css';
5
5
  export default script;
@@ -1,5 +1,5 @@
1
1
 
2
- .dataset-main[data-v-3up5vb7a] {
2
+ .dataset-main[data-v-mo8cghte] {
3
3
  flex: 1;
4
4
  width: calc(100vw - 300px);
5
5
  height: 100%;
@@ -1,5 +1,5 @@
1
1
  import script from './index.script.vue.js.js';
2
- script.__scopeId = "data-v-3up5vb7a";
2
+ script.__scopeId = "data-v-mo8cghte";
3
3
  script.__file = "./src/components/render-dataset/index.vue";
4
4
  import './index.vue.css';
5
5
  export default script;
@@ -1,5 +1,5 @@
1
1
 
2
- .ellipsis-text[data-v-eiclszf8] {
2
+ .ellipsis-text[data-v-ef5zigwi] {
3
3
  display: -webkit-box;
4
4
  -webkit-line-clamp: 2;
5
5
  -webkit-box-orient: vertical;
@@ -1,5 +1,5 @@
1
1
  import script from './index.script.vue.js';
2
- script.__scopeId = "data-v-eiclszf8";
2
+ script.__scopeId = "data-v-ef5zigwi";
3
3
  script.__file = "./src/components/render-dataset-detail-origin-data/components/table/index.vue";
4
4
  import './index.vue.css';
5
5
  export default script;
@@ -1,15 +1,15 @@
1
1
 
2
- .origin-data-content[data-v-20szr5g0] {
2
+ .origin-data-content[data-v-3yg3dp27] {
3
3
  padding: 24px;
4
4
  height: calc(100% - 52px - 44px);
5
5
  }
6
- .origin-data-panel[data-v-20szr5g0] {
6
+ .origin-data-panel[data-v-3yg3dp27] {
7
7
  height: 100%;
8
8
  padding: 20px;
9
9
  background: #ffffff;
10
10
  box-shadow: 0 2px 4px 0 #1919290d;
11
11
  border-radius: 2px;
12
12
  }
13
- .origin-data-panel .toolbar-search[data-v-20szr5g0] {
13
+ .origin-data-panel .toolbar-search[data-v-3yg3dp27] {
14
14
  width: 6.17rem;
15
15
  }
@@ -1,5 +1,5 @@
1
1
  import script from './index.script.vue.js.js';
2
- script.__scopeId = "data-v-20szr5g0";
2
+ script.__scopeId = "data-v-3yg3dp27";
3
3
  script.__file = "./src/components/render-dataset-detail-origin-data/index.vue";
4
4
  import './index.vue.css';
5
5
  export default script;
@@ -1,15 +1,15 @@
1
1
 
2
- .main-content[data-v-wz21xqci] {
2
+ .main-content[data-v-cpjtm5d0] {
3
3
  padding: 20px 24px;
4
4
  height: calc(100% - 52px);
5
5
  }
6
- .main-panel[data-v-wz21xqci] {
6
+ .main-panel[data-v-cpjtm5d0] {
7
7
  height: 100%;
8
8
  padding: 20px 24px 0;
9
9
  background: #ffffff;
10
10
  box-shadow: 0 2px 4px 0 #1919290d;
11
11
  border-radius: 2px;
12
12
  }
13
- .main-search[data-v-wz21xqci] {
13
+ .main-search[data-v-cpjtm5d0] {
14
14
  width: 6.17rem;
15
15
  }
@@ -1,5 +1,5 @@
1
1
  import script from './main.script.vue.js.js';
2
- script.__scopeId = "data-v-wz21xqci";
2
+ script.__scopeId = "data-v-cpjtm5d0";
3
3
  script.__file = "./src/components/render-dataset-list/components/main.vue";
4
4
  import './main.vue.css';
5
5
  export default script;
@@ -37,6 +37,9 @@ const _hoisted_2 = [
37
37
  const _hoisted_3 = [
38
38
  "onClick"
39
39
  ];
40
+ const _hoisted_4 = [
41
+ "onClick"
42
+ ];
40
43
  import { ref, watch } from 'vue';
41
44
  import { useRouter } from 'vue-router';
42
45
  import OperationRecord from '../../render-dataset/components/operation-record/index.vue.js';
@@ -68,11 +71,11 @@ export default /*@__PURE__*/ _defineComponent({
68
71
  fields: [
69
72
  {
70
73
  label: '名称',
71
- field: 'datasetCode'
74
+ field: 'datasetName'
72
75
  },
73
76
  {
74
77
  label: '英文名称',
75
- field: 'datasetName'
78
+ field: 'datasetCode'
76
79
  },
77
80
  {
78
81
  label: '数据量',
@@ -83,7 +86,7 @@ export default /*@__PURE__*/ _defineComponent({
83
86
  field: 'type'
84
87
  },
85
88
  {
86
- label: '来源团队',
89
+ label: '来源公司',
87
90
  field: 'companyName'
88
91
  },
89
92
  {
@@ -104,8 +107,8 @@ export default /*@__PURE__*/ _defineComponent({
104
107
  }
105
108
  ],
106
109
  checked: [
107
- 'datasetCode',
108
110
  'datasetName',
111
+ 'datasetCode',
109
112
  'datasetItemCount',
110
113
  'type',
111
114
  'companyName',
@@ -179,7 +182,7 @@ export default /*@__PURE__*/ _defineComponent({
179
182
  default: _withCtx(()=>[
180
183
  _createVNode(_component_bk_table_column, {
181
184
  label: "名称",
182
- field: "datasetCode"
185
+ field: "datasetName"
183
186
  }, {
184
187
  default: _withCtx(({ row })=>[
185
188
  _createVNode(_component_bk_button, {
@@ -188,7 +191,7 @@ export default /*@__PURE__*/ _defineComponent({
188
191
  onClick: ($event)=>handleGoToDetail(row)
189
192
  }, {
190
193
  default: _withCtx(()=>[
191
- _createTextVNode(_toDisplayString(row.datasetCode), 1 /* TEXT */ )
194
+ _createTextVNode(_toDisplayString(row.datasetName), 1 /* TEXT */ )
192
195
  ]),
193
196
  _: 2 /* DYNAMIC */
194
197
  }, 1032 /* PROPS, DYNAMIC_SLOTS */ , [
@@ -199,7 +202,7 @@ export default /*@__PURE__*/ _defineComponent({
199
202
  }),
200
203
  _createVNode(_component_bk_table_column, {
201
204
  label: "英文名称",
202
- field: "datasetName"
205
+ field: "datasetCode"
203
206
  }),
204
207
  _createVNode(_component_bk_table_column, {
205
208
  label: "数据量",
@@ -215,7 +218,7 @@ export default /*@__PURE__*/ _defineComponent({
215
218
  _: 1 /* STABLE */
216
219
  }),
217
220
  _createVNode(_component_bk_table_column, {
218
- label: "来源团队",
221
+ label: "来源公司",
219
222
  field: "companyName"
220
223
  }),
221
224
  _createVNode(_component_bk_table_column, {
@@ -242,7 +245,7 @@ export default /*@__PURE__*/ _defineComponent({
242
245
  _createVNode(_component_bk_table_column, {
243
246
  label: "操作",
244
247
  fixed: "right",
245
- width: "280"
248
+ width: "230"
246
249
  }, {
247
250
  default: _withCtx(({ row })=>[
248
251
  _createVNode(RenderPlusDatasetData, {
@@ -272,17 +275,6 @@ export default /*@__PURE__*/ _defineComponent({
272
275
  }, 1032 /* PROPS, DYNAMIC_SLOTS */ , [
273
276
  "onClick"
274
277
  ]),
275
- _createVNode(RenderPlusDataset, {
276
- text: "",
277
- theme: "primary",
278
- "api-prefix": _ctx.apiPrefix,
279
- dataset: row,
280
- onSuccessPlus: _unref(triggerApi)
281
- }, null, 8 /* PROPS */ , [
282
- "api-prefix",
283
- "dataset",
284
- "onSuccessPlus"
285
- ]),
286
278
  _createVNode(_component_bk_popover, {
287
279
  placement: "bottom-start",
288
280
  theme: "light",
@@ -298,6 +290,20 @@ export default /*@__PURE__*/ _defineComponent({
298
290
  'g-none': !showMoreIds.value.includes(row.id)
299
291
  })
300
292
  }, [
293
+ _createElementVNode("li", {
294
+ onClick: ($event)=>handleHideMore(row)
295
+ }, [
296
+ _createVNode(RenderPlusDataset, {
297
+ text: "",
298
+ "api-prefix": _ctx.apiPrefix,
299
+ dataset: row,
300
+ onSuccessPlus: _unref(triggerApi)
301
+ }, null, 8 /* PROPS */ , [
302
+ "api-prefix",
303
+ "dataset",
304
+ "onSuccessPlus"
305
+ ])
306
+ ], 8 /* PROPS */ , _hoisted_2),
301
307
  _createElementVNode("li", {
302
308
  onClick: ($event)=>handleHideMore(row)
303
309
  }, [
@@ -309,7 +315,7 @@ export default /*@__PURE__*/ _defineComponent({
309
315
  "api-prefix",
310
316
  "dataset-id"
311
317
  ])
312
- ], 8 /* PROPS */ , _hoisted_2),
318
+ ], 8 /* PROPS */ , _hoisted_3),
313
319
  _createVNode(_component_bk_pop_confirm, {
314
320
  trigger: "manual",
315
321
  title: "确认删除?",
@@ -327,7 +333,7 @@ export default /*@__PURE__*/ _defineComponent({
327
333
  onClick: ($event)=>handleShowDelete(row)
328
334
  }, _cache[1] || (_cache[1] = [
329
335
  _createTextVNode(" 删除 ")
330
- ]), 10 /* CLASS, PROPS */ , _hoisted_3)), [
336
+ ]), 10 /* CLASS, PROPS */ , _hoisted_4)), [
331
337
  [
332
338
  _directive_bk_tooltips,
333
339
  {
@@ -1,5 +1,5 @@
1
1
 
2
- .expend-collapse-home[data-v-tzzxxkmz] {
2
+ .expend-collapse-home[data-v-6v3q3s39] {
3
3
  width: 16px;
4
4
  height: 64px;
5
5
  background: #DCDEE5;
@@ -15,9 +15,9 @@
15
15
  cursor: pointer;
16
16
  z-index: 1550;
17
17
  }
18
- .expend-collapse-home[data-v-tzzxxkmz]:hover {
18
+ .expend-collapse-home[data-v-6v3q3s39]:hover {
19
19
  background: #979BA5;
20
20
  }
21
- .expend-collapse-home.is-close[data-v-tzzxxkmz] {
21
+ .expend-collapse-home.is-close[data-v-6v3q3s39] {
22
22
  left: 0;
23
23
  }
@@ -1,5 +1,5 @@
1
1
  import script from './index.script.vue.js.js';
2
- script.__scopeId = "data-v-tzzxxkmz";
2
+ script.__scopeId = "data-v-6v3q3s39";
3
3
  script.__file = "./src/components/render-expand-collapse/index.vue";
4
4
  import './index.vue.css';
5
5
  export default script;
@@ -1,21 +1,21 @@
1
1
 
2
- .upload-file-home[data-v-z26ny02d] {
2
+ .upload-file-home[data-v-2e92b5k1] {
3
3
  position: relative;
4
4
  background: #FFFFFF;
5
5
  border: 1px solid #DCDEE5;
6
6
  border-radius: 4px;
7
7
  padding: 12px 12px 10px 12px;
8
8
  }
9
- .upload-file-home[data-v-z26ny02d]:hover {
9
+ .upload-file-home[data-v-2e92b5k1]:hover {
10
10
  border: 1px solid #3A84FF;
11
11
  }
12
- .upload-file-home:hover .file-icons[data-v-z26ny02d] {
12
+ .upload-file-home:hover .file-icons[data-v-2e92b5k1] {
13
13
  display: flex;
14
14
  }
15
- .upload-file-home .file-icon[data-v-z26ny02d] {
15
+ .upload-file-home .file-icon[data-v-2e92b5k1] {
16
16
  font-size: 32px;
17
17
  }
18
- .upload-file-home .file-content[data-v-z26ny02d] {
18
+ .upload-file-home .file-content[data-v-2e92b5k1] {
19
19
  font-size: 12px;
20
20
  flex: 1;
21
21
  align-items: flex-start;
@@ -23,28 +23,28 @@
23
23
  font-weight: normal;
24
24
  width: 0;
25
25
  }
26
- .upload-file-home .file-content .file-name[data-v-z26ny02d] {
26
+ .upload-file-home .file-content .file-name[data-v-2e92b5k1] {
27
27
  width: 100%;
28
28
  font-size: 14px;
29
29
  line-height: 20px;
30
30
  }
31
- .upload-file-home .file-content .file-size[data-v-z26ny02d] {
31
+ .upload-file-home .file-content .file-size[data-v-2e92b5k1] {
32
32
  font-size: 12px;
33
33
  color: #979BA5;
34
34
  line-height: 20px;
35
35
  }
36
- .upload-file-home .file-icons[data-v-z26ny02d] {
36
+ .upload-file-home .file-icons[data-v-2e92b5k1] {
37
37
  display: none;
38
38
  color: #979BA5;
39
39
  }
40
- .upload-file-home .file-icons .bkaidev-icon[data-v-z26ny02d] {
40
+ .upload-file-home .file-icons .bkaidev-icon[data-v-2e92b5k1] {
41
41
  cursor: pointer;
42
42
  margin-right: 15px;
43
43
  font-size: 16px;
44
44
  }
45
- .upload-file-home .file-icons .bkaidev-icon[data-v-z26ny02d]:hover {
45
+ .upload-file-home .file-icons .bkaidev-icon[data-v-2e92b5k1]:hover {
46
46
  color: #3A84FF;
47
47
  }
48
- .upload-file-home .file-icons .bkaidev-delete[data-v-z26ny02d] {
48
+ .upload-file-home .file-icons .bkaidev-delete[data-v-2e92b5k1] {
49
49
  margin: 0;
50
50
  }
@@ -1,5 +1,5 @@
1
1
  import script from './index.script.vue.js.js';
2
- script.__scopeId = "data-v-z26ny02d";
2
+ script.__scopeId = "data-v-2e92b5k1";
3
3
  script.__file = "./src/components/render-file-card/index.vue";
4
4
  import './index.vue.css';
5
5
  export default script;
@@ -1,16 +1,16 @@
1
1
 
2
- .ai-ui-sdk-icon.ai-ui-sdk-pdf[data-v-i7flhp72] {
2
+ .ai-ui-sdk-icon.ai-ui-sdk-pdf[data-v-ru09c92z] {
3
3
  color: #EA3636;
4
4
  }
5
- .ai-ui-sdk-icon.ai-ui-sdk-doc-2[data-v-i7flhp72], .ai-ui-sdk-icon.ai-ui-sdk-ppt-2[data-v-i7flhp72], .ai-ui-sdk-icon.ai-ui-sdk-markdown[data-v-i7flhp72] {
5
+ .ai-ui-sdk-icon.ai-ui-sdk-doc-2[data-v-ru09c92z], .ai-ui-sdk-icon.ai-ui-sdk-ppt-2[data-v-ru09c92z], .ai-ui-sdk-icon.ai-ui-sdk-markdown[data-v-ru09c92z] {
6
6
  color: #3A84FF;
7
7
  }
8
- .ai-ui-sdk-icon.ai-ui-sdk-folder-fill[data-v-i7flhp72] {
8
+ .ai-ui-sdk-icon.ai-ui-sdk-folder-fill[data-v-ru09c92z] {
9
9
  color: #C4C6CC;
10
10
  }
11
- .ai-ui-sdk-icon.ai-ui-sdk-excel[data-v-i7flhp72] {
11
+ .ai-ui-sdk-icon.ai-ui-sdk-excel[data-v-ru09c92z] {
12
12
  color: #2DCB56;
13
13
  }
14
- .ai-ui-sdk-icon.ai-ui-sdk-wangye[data-v-i7flhp72] {
14
+ .ai-ui-sdk-icon.ai-ui-sdk-wangye[data-v-ru09c92z] {
15
15
  color: #14A568;
16
16
  }
@@ -1,5 +1,5 @@
1
1
  import script from './index.script.vue.js.js';
2
- script.__scopeId = "data-v-i7flhp72";
2
+ script.__scopeId = "data-v-ru09c92z";
3
3
  script.__file = "./src/components/render-file-type-icon/index.vue";
4
4
  import './index.vue.css';
5
5
  export default script;
@@ -1,5 +1,5 @@
1
1
 
2
- .header-home[data-v-4fmzg6qq] {
2
+ .header-home[data-v-jsfdy1nb] {
3
3
  width: 100%;
4
4
  height: 52px;
5
5
  background: #FFFFFF;
@@ -7,14 +7,14 @@
7
7
  position: relative;
8
8
  z-index: 2;
9
9
  }
10
- .header-title[data-v-4fmzg6qq] {
10
+ .header-title[data-v-jsfdy1nb] {
11
11
  position: absolute;
12
12
  left: 24px;
13
13
  top: 14px;
14
14
  font-size: 16px;
15
15
  color: #313238;
16
16
  }
17
- .header-main[data-v-4fmzg6qq] {
17
+ .header-main[data-v-jsfdy1nb] {
18
18
  display: flex;
19
19
  align-items: center;
20
20
  justify-content: flex-end;
@@ -22,13 +22,13 @@
22
22
  height: 100%;
23
23
  margin: 0 auto;
24
24
  }
25
- .header-select[data-v-4fmzg6qq] {
25
+ .header-select[data-v-jsfdy1nb] {
26
26
  width: 300px;
27
27
  margin-right: 8px;
28
28
  z-index: 9;
29
29
  font-size: 12px;
30
30
  }
31
- .header-input[data-v-4fmzg6qq] {
31
+ .header-input[data-v-jsfdy1nb] {
32
32
  width: 300px;
33
33
  font-size: 12px;
34
34
  }
@@ -1,5 +1,5 @@
1
1
  import script from './index.script.vue.js.js';
2
- script.__scopeId = "data-v-4fmzg6qq";
2
+ script.__scopeId = "data-v-jsfdy1nb";
3
3
  script.__file = "./src/components/render-header/index.vue";
4
4
  import './index.vue.css';
5
5
  export default script;
@@ -1,12 +1,12 @@
1
1
 
2
- .router-tab[data-v-zkly8nwn] {
2
+ .router-tab[data-v-roxlls6s] {
3
3
  margin-top: 2px;
4
4
  height: 42px;
5
5
  background: #FFFFFF;
6
6
  box-shadow: 0 2px 4px 0 #1919290d;
7
7
  padding: 0 45px;
8
8
  }
9
- .router-tab a[data-v-zkly8nwn] {
9
+ .router-tab a[data-v-roxlls6s] {
10
10
  padding: 0 8px;
11
11
  margin-right: 24px;
12
12
  font-size: 14px;
@@ -15,7 +15,7 @@
15
15
  color: #4D4F56;
16
16
  box-sizing: border-box;
17
17
  }
18
- .router-tab a.router-link-exact-active[data-v-zkly8nwn] {
18
+ .router-tab a.router-link-exact-active[data-v-roxlls6s] {
19
19
  color: #3A84FF;
20
20
  border-bottom: 2px solid #3A84FF;
21
21
  }
@@ -1,5 +1,5 @@
1
1
  import script from './index.script.vue.js.js';
2
- script.__scopeId = "data-v-zkly8nwn";
2
+ script.__scopeId = "data-v-roxlls6s";
3
3
  script.__file = "./src/components/render-router-tab/index.vue";
4
4
  import './index.vue.css';
5
5
  export default script;
@@ -89,20 +89,12 @@ import { transferSessionContent2SessionPrompt, transferSessionPrompt2SessionCont
89
89
  import { HttpErrorCode, SessionContentRole, SessionContentStatus } from '../types/enum.ts.js';
90
90
  // ai 聊天
91
91
  export const useChat = ({ handleStart, handleText, handleReferenceDoc, handleThink, handleEnd, handleError, requestOptions })=>{
92
- // 用 ref 存储 requestOptions,使其可更新
93
- const currentRequestOptions = ref(requestOptions);
94
92
  // 创建一个变量保存当前的API实现
95
- let apiImpl = useSessionHttp(currentRequestOptions.value.url, currentRequestOptions.value.headers);
96
- // 更新 requestOptions 的方法
97
- function updateRequestOptions(newOptions) {
98
- // 合并新旧配置
99
- currentRequestOptions.value = _object_spread({}, currentRequestOptions.value, newOptions);
100
- // 如果 URL 变更,重新获取 API
101
- if (newOptions.url) {
102
- apiImpl = useSessionHttp(currentRequestOptions.value.url, currentRequestOptions.value.headers);
103
- }
104
- }
93
+ let apiImpl = useSessionHttp(requestOptions.url, requestOptions.headers);
94
+ // start message
105
95
  const startMessage = '内容正在生成中...';
96
+ // 用 ref 存储 requestOptions,使其可更新
97
+ const currentRequestOptions = ref(requestOptions);
106
98
  // 聊天上下文
107
99
  const currentSession = ref();
108
100
  const sessionLoadingMap = ref({});
@@ -222,6 +214,15 @@ export const useChat = ({ handleStart, handleText, handleReferenceDoc, handleThi
222
214
  handleEnd: handleEndChat,
223
215
  handleError: handleErrorChat
224
216
  });
217
+ // 更新 requestOptions 的方法
218
+ function updateRequestOptions(newOptions) {
219
+ // 合并新旧配置
220
+ currentRequestOptions.value = _object_spread({}, currentRequestOptions.value, newOptions);
221
+ // 如果 URL 变更,重新获取 API
222
+ if (newOptions.url) {
223
+ apiImpl = useSessionHttp(currentRequestOptions.value.url, currentRequestOptions.value.headers);
224
+ }
225
+ }
225
226
  // 新增 db
226
227
  function plusSessionContent2Db(sessionContent) {
227
228
  return apiImpl.plusSessionContent(sessionContent).then((result)=>{
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blueking/ai-ui-sdk",
3
- "version": "0.1.2-beta.7",
3
+ "version": "0.1.2-beta.8",
4
4
  "description": "蓝鲸AI UI SDK",
5
5
  "main": "dist/main.js",
6
6
  "types": "dist/main.d.ts",