@blueking/ai-ui-sdk 0.1.0-beta.2 → 0.1.0-beta.3

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 (52) 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/plus-dataset/dataset-form.vue.css +3 -3
  8. package/dist/components/render-dataset/components/plus-dataset/dataset-form.vue.js +1 -1
  9. package/dist/components/render-dataset/components/plus-dataset/index.vue.css +3 -3
  10. package/dist/components/render-dataset/components/plus-dataset/index.vue.js +1 -1
  11. package/dist/components/render-dataset/components/plus-dataset-data/form/dataset.script.vue.js.js +2 -2
  12. package/dist/components/render-dataset/components/plus-dataset-data/form/dataset.vue.d.ts +1 -1
  13. package/dist/components/render-dataset/components/plus-dataset-data/form/file.script.vue.js.js +2 -2
  14. package/dist/components/render-dataset/components/plus-dataset-data/form/file.vue.d.ts +1 -1
  15. package/dist/components/render-dataset/components/plus-dataset-data/form/footer.vue.css +1 -1
  16. package/dist/components/render-dataset/components/plus-dataset-data/form/footer.vue.js +1 -1
  17. package/dist/components/render-dataset/components/plus-dataset-data/form/index.vue.css +3 -3
  18. package/dist/components/render-dataset/components/plus-dataset-data/form/index.vue.js +1 -1
  19. package/dist/components/render-dataset/components/plus-dataset-data/form/manual.script.vue.js.js +4 -4
  20. package/dist/components/render-dataset/components/plus-dataset-data/form/manual.vue.d.ts +1 -1
  21. package/dist/components/render-dataset/components/source-type-icon/index.vue.css +3 -3
  22. package/dist/components/render-dataset/components/source-type-icon/index.vue.js +1 -1
  23. package/dist/components/render-dataset/index.vue.css +1 -1
  24. package/dist/components/render-dataset/index.vue.js +1 -1
  25. package/dist/components/render-dataset-detail-origin-data/components/edit-data/index.vue.css +8 -8
  26. package/dist/components/render-dataset-detail-origin-data/components/edit-data/index.vue.js +1 -1
  27. package/dist/components/render-dataset-detail-origin-data/components/operation-record/index.vue.css +4 -4
  28. package/dist/components/render-dataset-detail-origin-data/components/operation-record/index.vue.js +1 -1
  29. package/dist/components/render-dataset-detail-origin-data/components/operation-record/table/index.vue.css +1 -1
  30. package/dist/components/render-dataset-detail-origin-data/components/operation-record/table/index.vue.js +1 -1
  31. package/dist/components/render-dataset-detail-origin-data/components/operation-record/view-op-result/index.vue.css +1 -1
  32. package/dist/components/render-dataset-detail-origin-data/components/operation-record/view-op-result/index.vue.js +1 -1
  33. package/dist/components/render-dataset-detail-origin-data/components/table/index.vue.css +1 -1
  34. package/dist/components/render-dataset-detail-origin-data/components/table/index.vue.js +1 -1
  35. package/dist/components/render-dataset-detail-origin-data/index.vue.css +3 -3
  36. package/dist/components/render-dataset-detail-origin-data/index.vue.js +1 -1
  37. package/dist/components/render-dataset-list/components/main.vue.css +3 -3
  38. package/dist/components/render-dataset-list/components/main.vue.js +1 -1
  39. package/dist/components/render-expand-collapse/index.vue.css +3 -3
  40. package/dist/components/render-expand-collapse/index.vue.js +1 -1
  41. package/dist/components/render-file-card/index.vue.css +11 -11
  42. package/dist/components/render-file-card/index.vue.js +1 -1
  43. package/dist/components/render-file-type-icon/index.vue.css +5 -5
  44. package/dist/components/render-file-type-icon/index.vue.js +1 -1
  45. package/dist/components/render-header/index.vue.css +5 -5
  46. package/dist/components/render-header/index.vue.js +1 -1
  47. package/dist/components/render-router-tab/index.vue.css +3 -3
  48. package/dist/components/render-router-tab/index.vue.js +1 -1
  49. package/dist/hooks/use-dataset-http.ts.js +1 -3
  50. package/dist/http/fetch/error-interceptor.ts.js +5 -3
  51. package/dist/http/fetch/success-interceptor.ts.js +7 -4
  52. package/package.json +1 -1
@@ -1,12 +1,12 @@
1
1
 
2
- .aside-home[data-v-l2e9t8e5] {
2
+ .aside-home[data-v-6cgy4iso] {
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-l2e9t8e5] .aside-item {
9
+ [data-v-6cgy4iso] .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-l2e9t8e5] .aside-item.is-tab {
19
+ [data-v-6cgy4iso] .aside-item.is-tab {
20
20
  background: #F5F7FA;
21
21
  cursor: pointer;
22
22
  color: #4D4F56;
23
23
  }
24
- [data-v-l2e9t8e5] .aside-item.is-tab:hover {
24
+ [data-v-6cgy4iso] .aside-item.is-tab:hover {
25
25
  background: #F0F5FF;
26
26
  }
27
- [data-v-l2e9t8e5] .aside-item.active {
27
+ [data-v-6cgy4iso] .aside-item.active {
28
28
  background: #F0F5FF;
29
29
  color: #3A84FF;
30
30
  font-weight: 700;
31
31
  }
32
- [data-v-l2e9t8e5] .aside-item.active .tab-num {
32
+ [data-v-6cgy4iso] .aside-item.active .tab-num {
33
33
  background: #3A84FF;
34
34
  color: #fff;
35
35
  }
36
- [data-v-l2e9t8e5] .aside-item.active .active-text {
36
+ [data-v-6cgy4iso] .aside-item.active .active-text {
37
37
  color: #3A84FF;
38
38
  }
39
- [data-v-l2e9t8e5] .aside-item .tab-name {
39
+ [data-v-6cgy4iso] .aside-item .tab-name {
40
40
  flex: 1;
41
41
  }
42
- [data-v-l2e9t8e5] .aside-item .tab-num {
42
+ [data-v-6cgy4iso] .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-l2e9t8e5";
2
+ script.__scopeId = "data-v-6cgy4iso";
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-dv33lwz3] {
2
+ .send-container[data-v-hxfg179q] {
3
3
  position: relative;
4
4
  }
5
- .send-container[data-v-dv33lwz3]:has(textarea:focus) {
5
+ .send-container[data-v-hxfg179q]:has(textarea:focus) {
6
6
  z-index: 2;
7
7
  }
8
- .send-container:hover .send-clear[data-v-dv33lwz3] {
8
+ .send-container:hover .send-clear[data-v-hxfg179q] {
9
9
  display: inline-flex !important;
10
10
  }
11
- .send-input[data-v-dv33lwz3] {
11
+ .send-input[data-v-hxfg179q] {
12
12
  width: 100%;
13
13
  flex-direction: row;
14
14
  height: var(--origin-height);
15
15
  }
16
- .send-input[data-v-dv33lwz3]:has(textarea:focus) {
16
+ .send-input[data-v-hxfg179q]:has(textarea:focus) {
17
17
  height: var(--text-height);
18
18
  }
19
- .send-input[data-v-dv33lwz3] textarea {
19
+ .send-input[data-v-hxfg179q] 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-dv33lwz3] textarea::-webkit-scrollbar {
25
+ .send-input[data-v-hxfg179q] textarea::-webkit-scrollbar {
26
26
  width: 4px;
27
27
  height: 4px;
28
28
  }
29
- .send-input[data-v-dv33lwz3] textarea::-webkit-scrollbar-thumb {
29
+ .send-input[data-v-hxfg179q] 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-dv33lwz3] textarea::placeholder {
34
+ .send-input[data-v-hxfg179q] textarea::placeholder {
35
35
  line-height: 16px;
36
36
  }
37
- .send-clear[data-v-dv33lwz3] {
37
+ .send-clear[data-v-hxfg179q] {
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-dv33lwz3]:hover {
46
+ .send-clear[data-v-hxfg179q]: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-dv33lwz3";
2
+ script.__scopeId = "data-v-hxfg179q";
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-dyhcgmio] {
2
+ .collapse-title[data-v-faojwd00] {
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-dyhcgmio] {
8
+ .collapse-title .is-hidden[data-v-faojwd00] {
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-dyhcgmio";
2
+ script.__scopeId = "data-v-faojwd00";
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
- .schema-preview-content[data-v-i5d3v6aj] {
2
+ .schema-preview-content[data-v-wn1crk1w] {
3
3
  display: flex;
4
4
  border: 1px solid #DCDEE5;
5
5
  border-radius: 2px;
6
6
  }
7
- .schema-preview-content .label[data-v-i5d3v6aj], .schema-preview-content .text[data-v-i5d3v6aj] {
7
+ .schema-preview-content .label[data-v-wn1crk1w], .schema-preview-content .text[data-v-wn1crk1w] {
8
8
  height: 42px;
9
9
  line-height: 42px;
10
10
  padding-left: 16px;
11
11
  }
12
- .schema-preview-content .label[data-v-i5d3v6aj] {
12
+ .schema-preview-content .label[data-v-wn1crk1w] {
13
13
  background: #F0F1F5;
14
14
  border-bottom: 1px solid #DCDEE5;
15
15
  }
@@ -1,5 +1,5 @@
1
1
  import script from './dataset-form.script.vue.js.js';
2
- script.__scopeId = "data-v-i5d3v6aj";
2
+ script.__scopeId = "data-v-wn1crk1w";
3
3
  script.__file = "./src/components/render-dataset/components/plus-dataset/dataset-form.vue";
4
4
  import './dataset-form.vue.css';
5
5
  export default script;
@@ -1,11 +1,11 @@
1
1
 
2
- .dataset-data-content[data-v-elhw2a1m] {
2
+ .dataset-data-content[data-v-zuq4kf2m] {
3
3
  padding: 20px 24px;
4
4
  height: 100%;
5
5
  }
6
- .dataset-data-slider[data-v-elhw2a1m] .bk-sideslider-footer {
6
+ .dataset-data-slider[data-v-zuq4kf2m] .bk-sideslider-footer {
7
7
  margin-top: 0;
8
8
  }
9
- .dataset-data-slider[data-v-elhw2a1m] .bk-modal-content {
9
+ .dataset-data-slider[data-v-zuq4kf2m] .bk-modal-content {
10
10
  scrollbar-gutter: inherit !important;
11
11
  }
@@ -1,5 +1,5 @@
1
1
  import script from './index.script.vue.js.js';
2
- script.__scopeId = "data-v-elhw2a1m";
2
+ script.__scopeId = "data-v-zuq4kf2m";
3
3
  script.__file = "./src/components/render-dataset/components/plus-dataset/index.vue";
4
4
  import './index.vue.css';
5
5
  export default script;
@@ -52,7 +52,7 @@ function _object_spread_props(target, source) {
52
52
  }
53
53
  import { defineComponent as _defineComponent } from 'vue';
54
54
  import { resolveComponent as _resolveComponent, createVNode as _createVNode, withCtx as _withCtx, openBlock as _openBlock, createBlock as _createBlock } from "vue";
55
- import { onBeforeMount, ref } from 'vue';
55
+ import { onBeforeMount, ref, useTemplateRef } from 'vue';
56
56
  import { useDatasetHttp } from '../../../../../hooks/use-dataset-http.ts.js';
57
57
  export default /*@__PURE__*/ _defineComponent({
58
58
  props: {
@@ -65,9 +65,9 @@ export default /*@__PURE__*/ _defineComponent({
65
65
  const props = __props;
66
66
  const emits = __emit;
67
67
  const { getDatasetList } = useDatasetHttp();
68
+ const formRef = useTemplateRef('formRef');
68
69
  const loading = ref(false);
69
70
  const datasets = ref([]);
70
- const formRef = ref();
71
71
  const validate = ()=>formRef.value.validate();
72
72
  const handleChange = (val)=>{
73
73
  const dataset = _object_spread_props(_object_spread({}, props.modelValue), {
@@ -3,7 +3,7 @@ interface IProps {
3
3
  modelValue: IDatasetDataForm;
4
4
  }
5
5
  declare const _default: import("vue").DefineComponent<IProps, {
6
- validate: () => Promise<boolean>;
6
+ validate: () => Promise<unknown>;
7
7
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
8
8
  "update:modelValue": (val: IDatasetDataForm) => any;
9
9
  }, string, import("vue").PublicProps, Readonly<IProps> & Readonly<{
@@ -81,7 +81,7 @@ function _object_spread_props(target, source) {
81
81
  }
82
82
  import { defineComponent as _defineComponent } from 'vue';
83
83
  import { unref as _unref, createElementVNode as _createElementVNode, createTextVNode as _createTextVNode, resolveComponent as _resolveComponent, withCtx as _withCtx, createVNode as _createVNode, renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode } from "vue";
84
- import { ref } from 'vue';
84
+ import { ref, useTemplateRef } from 'vue';
85
85
  import { chooseFile } from '../../../../../common/util.ts.js';
86
86
  import RenderFileCard from '../../../../render-file-card/index.vue.js';
87
87
  import { useDatasetHttp } from '../../../../../hooks/use-dataset-http.ts.js';
@@ -97,8 +97,8 @@ export default /*@__PURE__*/ _defineComponent({
97
97
  const props = __props;
98
98
  const emits = __emit;
99
99
  const { uploadDatasetDataFiles } = useDatasetHttp();
100
+ const formRef = useTemplateRef('formRef');
100
101
  const loading = ref(false);
101
- const formRef = ref();
102
102
  const validate = ()=>formRef.value.validate();
103
103
  const handleUploadFile = function() {
104
104
  var _ref = _async_to_generator(function*() {
@@ -3,7 +3,7 @@ interface IProps {
3
3
  modelValue: IDatasetDataForm;
4
4
  }
5
5
  declare const _default: import("vue").DefineComponent<IProps, {
6
- validate: () => Promise<boolean>;
6
+ validate: () => Promise<unknown>;
7
7
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
8
8
  "update:modelValue": (val: IDatasetDataForm) => any;
9
9
  }, string, import("vue").PublicProps, Readonly<IProps> & Readonly<{
@@ -1,5 +1,5 @@
1
1
 
2
- .footer-button[data-v-eww7o5k6] {
2
+ .footer-button[data-v-zdsoh2li] {
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-eww7o5k6";
2
+ script.__scopeId = "data-v-zdsoh2li";
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,10 +1,10 @@
1
1
 
2
- .plus-dataset-data[data-v-cyx34obi] {
2
+ .plus-dataset-data[data-v-2pl21qci] {
3
3
  padding: 20px 24px;
4
4
  }
5
- .plus-dataset-sideslider[data-v-cyx34obi] .bk-sideslider-footer {
5
+ .plus-dataset-sideslider[data-v-2pl21qci] .bk-sideslider-footer {
6
6
  margin-top: 0;
7
7
  }
8
- .plus-dataset-sideslider[data-v-cyx34obi] .bk-modal-content {
8
+ .plus-dataset-sideslider[data-v-2pl21qci] .bk-modal-content {
9
9
  scrollbar-gutter: inherit !important;
10
10
  }
@@ -1,5 +1,5 @@
1
1
  import script from './index.script.vue.js.js';
2
- script.__scopeId = "data-v-cyx34obi";
2
+ script.__scopeId = "data-v-2pl21qci";
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;
@@ -52,7 +52,7 @@ function _object_spread_props(target, source) {
52
52
  }
53
53
  import { defineComponent as _defineComponent } from 'vue';
54
54
  import { unref as _unref, renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, createVNode as _createVNode, resolveComponent as _resolveComponent, withCtx as _withCtx, createBlock as _createBlock, resolveDirective as _resolveDirective, withDirectives as _withDirectives, createCommentVNode as _createCommentVNode } from "vue";
55
- import { ref, watch } from 'vue';
55
+ import { ref, useTemplateRef, watch } from 'vue';
56
56
  import AutoHeightTextarea from '../../../../render-auto-height-textarea/index.vue.js';
57
57
  import { useDatasetHttp } from '../../../../../hooks/use-dataset-http.ts.js';
58
58
  import { DatasetDataSourceType } from '../../../../../types/enum.ts.js';
@@ -67,9 +67,9 @@ export default /*@__PURE__*/ _defineComponent({
67
67
  const props = __props;
68
68
  const emits = __emit;
69
69
  const { getSchemaList } = useDatasetHttp();
70
+ const formRef = useTemplateRef('formRef');
70
71
  const loading = ref(false);
71
72
  const schema = ref({});
72
- const formRef = ref();
73
73
  const validate = ()=>formRef.value.validate();
74
74
  const handleUpdate = (key, value)=>{
75
75
  const modelValue = _object_spread_props(_object_spread({}, props.modelValue), {
@@ -138,11 +138,11 @@ export default /*@__PURE__*/ _defineComponent({
138
138
  "model-value": _ctx.modelValue.data[key],
139
139
  placeholder: schema.value[key],
140
140
  height: 150,
141
- "onUpdate:modelValue": (value)=>handleUpdate(key, value)
141
+ onInput: (value)=>handleUpdate(key, value)
142
142
  }, null, 8 /* PROPS */ , [
143
143
  "model-value",
144
144
  "placeholder",
145
- "onUpdate:modelValue"
145
+ "onInput"
146
146
  ])
147
147
  ]),
148
148
  _: 2 /* DYNAMIC */
@@ -3,7 +3,7 @@ interface IProps {
3
3
  modelValue: IDatasetDataForm;
4
4
  }
5
5
  declare const _default: import("vue").DefineComponent<IProps, {
6
- validate: () => Promise<boolean>;
6
+ validate: () => Promise<unknown>;
7
7
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
8
8
  "update:modelValue": (val: IDatasetDataForm) => any;
9
9
  }, string, import("vue").PublicProps, Readonly<IProps> & Readonly<{
@@ -1,10 +1,10 @@
1
1
 
2
- .bkaidev-markdown[data-v-3qedpdh9] {
2
+ .bkaidev-markdown[data-v-ntea8cxx] {
3
3
  color: #3a84ff;
4
4
  }
5
- .bkaidev-wangye[data-v-3qedpdh9] {
5
+ .bkaidev-wangye[data-v-ntea8cxx] {
6
6
  color: #14A568;
7
7
  }
8
- .bkaidev-wenben[data-v-3qedpdh9] {
8
+ .bkaidev-wenben[data-v-ntea8cxx] {
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-3qedpdh9";
2
+ script.__scopeId = "data-v-ntea8cxx";
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-270lqciz] {
2
+ .dataset-main[data-v-fowxn3fb] {
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-270lqciz";
2
+ script.__scopeId = "data-v-fowxn3fb";
3
3
  script.__file = "./src/components/render-dataset/index.vue";
4
4
  import './index.vue.css';
5
5
  export default script;
@@ -1,19 +1,19 @@
1
1
 
2
- .content[data-v-wnpsq6w3] {
2
+ .content[data-v-6jop091p] {
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-wnpsq6w3] {
7
+ .data-set-edit-slider .value-content[data-v-6jop091p] {
8
8
  margin-top: 8px;
9
9
  padding: 16px;
10
10
  border: 1px solid #DCDEE5;
11
11
  }
12
- .data-set-edit-slider[data-v-wnpsq6w3] .bk-sideslider-title {
12
+ .data-set-edit-slider[data-v-6jop091p] .bk-sideslider-title {
13
13
  justify-content: space-between;
14
14
  width: 100%;
15
15
  }
16
- .data-set-edit-slider[data-v-wnpsq6w3] .bk-sideslider-title .id::before {
16
+ .data-set-edit-slider[data-v-6jop091p] .bk-sideslider-title .id::before {
17
17
  content: '';
18
18
  display: inline-block;
19
19
  width: 1px;
@@ -21,18 +21,18 @@
21
21
  background: #DCDEE5;
22
22
  margin: 0 8px 0 16px;
23
23
  }
24
- .data-set-edit-slider[data-v-wnpsq6w3] .bk-sideslider-content {
24
+ .data-set-edit-slider[data-v-6jop091p] .bk-sideslider-content {
25
25
  height: calc(100vh - 60px - 56px);
26
26
  }
27
- .data-set-edit-slider[data-v-wnpsq6w3] .bk-sideslider-content .edit-textarea {
27
+ .data-set-edit-slider[data-v-6jop091p] .bk-sideslider-content .edit-textarea {
28
28
  height: calc(100% - 40px);
29
29
  margin-top: 8px;
30
30
  }
31
- .data-set-edit-slider[data-v-wnpsq6w3] .bk-sideslider-content .edit-textarea textarea {
31
+ .data-set-edit-slider[data-v-6jop091p] .bk-sideslider-content .edit-textarea textarea {
32
32
  padding: 16px;
33
33
  height: 100%;
34
34
  }
35
- .footer-button[data-v-wnpsq6w3] {
35
+ .footer-button[data-v-6jop091p] {
36
36
  width: 88px;
37
37
  margin-right: 8px;
38
38
  }
@@ -1,5 +1,5 @@
1
1
  import script from './index.script.vue.js.js';
2
- script.__scopeId = "data-v-wnpsq6w3";
2
+ script.__scopeId = "data-v-6jop091p";
3
3
  script.__file = "./src/components/render-dataset-detail-origin-data/components/edit-data/index.vue";
4
4
  import './index.vue.css';
5
5
  export default script;
@@ -1,18 +1,18 @@
1
1
 
2
- .content[data-v-o3svya1i] {
2
+ .content[data-v-7lijqmir] {
3
3
  padding: 0 24px 0px 32px;
4
4
  height: 100%;
5
5
  }
6
- .content .toolbar[data-v-o3svya1i] {
6
+ .content .toolbar[data-v-7lijqmir] {
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-o3svya1i] {
13
+ .content .toolbar .record-search[data-v-7lijqmir] {
14
14
  width: 360px;
15
15
  }
16
- .content .toolbar .record-data-picker[data-v-o3svya1i] {
16
+ .content .toolbar .record-data-picker[data-v-7lijqmir] {
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-o3svya1i";
2
+ script.__scopeId = "data-v-7lijqmir";
3
3
  script.__file = "./src/components/render-dataset-detail-origin-data/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-qlr5q9ta] {
2
+ .text[data-v-y37i1bz6] {
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-qlr5q9ta";
2
+ script.__scopeId = "data-v-y37i1bz6";
3
3
  script.__file = "./src/components/render-dataset-detail-origin-data/components/operation-record/table/index.vue";
4
4
  import './index.vue.css';
5
5
  export default script;
@@ -1,5 +1,5 @@
1
1
 
2
- .content[data-v-6jnpi7h5] {
2
+ .content[data-v-dbqdd9ik] {
3
3
  padding: 18px 24px 0;
4
4
  height: 100%;
5
5
  overflow: auto;
@@ -1,5 +1,5 @@
1
1
  import script from './index.script.vue.js.js';
2
- script.__scopeId = "data-v-6jnpi7h5";
2
+ script.__scopeId = "data-v-dbqdd9ik";
3
3
  script.__file = "./src/components/render-dataset-detail-origin-data/components/operation-record/view-op-result/index.vue";
4
4
  import './index.vue.css';
5
5
  export default script;
@@ -1,5 +1,5 @@
1
1
 
2
- .ellipsis-text[data-v-yrlo79o6] {
2
+ .ellipsis-text[data-v-l37ngd2t] {
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-yrlo79o6";
2
+ script.__scopeId = "data-v-l37ngd2t";
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-abqf5pp0] {
2
+ .origin-data-content[data-v-r8hjicuc] {
3
3
  padding: 24px;
4
4
  height: calc(100% - 52px - 44px);
5
5
  }
6
- .origin-data-panel[data-v-abqf5pp0] {
6
+ .origin-data-panel[data-v-r8hjicuc] {
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-abqf5pp0] {
13
+ .origin-data-panel .toolbar-search[data-v-r8hjicuc] {
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-abqf5pp0";
2
+ script.__scopeId = "data-v-r8hjicuc";
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-78bqk4ph] {
2
+ .main-content[data-v-mw261nd1] {
3
3
  padding: 20px 24px;
4
4
  height: calc(100% - 52px);
5
5
  }
6
- .main-panel[data-v-78bqk4ph] {
6
+ .main-panel[data-v-mw261nd1] {
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-78bqk4ph] {
13
+ .main-search[data-v-mw261nd1] {
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-78bqk4ph";
2
+ script.__scopeId = "data-v-mw261nd1";
3
3
  script.__file = "./src/components/render-dataset-list/components/main.vue";
4
4
  import './main.vue.css';
5
5
  export default script;
@@ -1,5 +1,5 @@
1
1
 
2
- .expend-collapse-home[data-v-n8hjwcru] {
2
+ .expend-collapse-home[data-v-e0e95ec0] {
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-n8hjwcru]:hover {
18
+ .expend-collapse-home[data-v-e0e95ec0]:hover {
19
19
  background: #979BA5;
20
20
  }
21
- .expend-collapse-home.is-close[data-v-n8hjwcru] {
21
+ .expend-collapse-home.is-close[data-v-e0e95ec0] {
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-n8hjwcru";
2
+ script.__scopeId = "data-v-e0e95ec0";
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-9skqx2vv] {
2
+ .upload-file-home[data-v-oqfvxbxx] {
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-9skqx2vv]:hover {
9
+ .upload-file-home[data-v-oqfvxbxx]:hover {
10
10
  border: 1px solid #3A84FF;
11
11
  }
12
- .upload-file-home:hover .file-icons[data-v-9skqx2vv] {
12
+ .upload-file-home:hover .file-icons[data-v-oqfvxbxx] {
13
13
  display: flex;
14
14
  }
15
- .upload-file-home .file-icon[data-v-9skqx2vv] {
15
+ .upload-file-home .file-icon[data-v-oqfvxbxx] {
16
16
  font-size: 32px;
17
17
  }
18
- .upload-file-home .file-content[data-v-9skqx2vv] {
18
+ .upload-file-home .file-content[data-v-oqfvxbxx] {
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-9skqx2vv] {
26
+ .upload-file-home .file-content .file-name[data-v-oqfvxbxx] {
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-9skqx2vv] {
31
+ .upload-file-home .file-content .file-size[data-v-oqfvxbxx] {
32
32
  font-size: 12px;
33
33
  color: #979BA5;
34
34
  line-height: 20px;
35
35
  }
36
- .upload-file-home .file-icons[data-v-9skqx2vv] {
36
+ .upload-file-home .file-icons[data-v-oqfvxbxx] {
37
37
  display: none;
38
38
  color: #979BA5;
39
39
  }
40
- .upload-file-home .file-icons .bkaidev-icon[data-v-9skqx2vv] {
40
+ .upload-file-home .file-icons .bkaidev-icon[data-v-oqfvxbxx] {
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-9skqx2vv]:hover {
45
+ .upload-file-home .file-icons .bkaidev-icon[data-v-oqfvxbxx]:hover {
46
46
  color: #3A84FF;
47
47
  }
48
- .upload-file-home .file-icons .bkaidev-delete[data-v-9skqx2vv] {
48
+ .upload-file-home .file-icons .bkaidev-delete[data-v-oqfvxbxx] {
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-9skqx2vv";
2
+ script.__scopeId = "data-v-oqfvxbxx";
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
- .bkaidev-icon.bkaidev-pdf[data-v-76vcvs1q] {
2
+ .bkaidev-icon.bkaidev-pdf[data-v-xm8gbjin] {
3
3
  color: #EA3636;
4
4
  }
5
- .bkaidev-icon.bkaidev-doc-2[data-v-76vcvs1q], .bkaidev-icon.bkaidev-ppt-2[data-v-76vcvs1q], .bkaidev-icon.bkaidev-markdown[data-v-76vcvs1q] {
5
+ .bkaidev-icon.bkaidev-doc-2[data-v-xm8gbjin], .bkaidev-icon.bkaidev-ppt-2[data-v-xm8gbjin], .bkaidev-icon.bkaidev-markdown[data-v-xm8gbjin] {
6
6
  color: #3A84FF;
7
7
  }
8
- .bkaidev-icon.bkaidev-folder-fill[data-v-76vcvs1q] {
8
+ .bkaidev-icon.bkaidev-folder-fill[data-v-xm8gbjin] {
9
9
  color: #C4C6CC;
10
10
  }
11
- .bkaidev-icon.bkaidev-excel[data-v-76vcvs1q] {
11
+ .bkaidev-icon.bkaidev-excel[data-v-xm8gbjin] {
12
12
  color: #2DCB56;
13
13
  }
14
- .bkaidev-icon.bkaidev-wangye[data-v-76vcvs1q] {
14
+ .bkaidev-icon.bkaidev-wangye[data-v-xm8gbjin] {
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-76vcvs1q";
2
+ script.__scopeId = "data-v-xm8gbjin";
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-q89xc5h6] {
2
+ .header-home[data-v-smptpciz] {
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-q89xc5h6] {
10
+ .header-title[data-v-smptpciz] {
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-q89xc5h6] {
17
+ .header-main[data-v-smptpciz] {
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-q89xc5h6] {
25
+ .header-select[data-v-smptpciz] {
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-q89xc5h6] {
31
+ .header-input[data-v-smptpciz] {
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-q89xc5h6";
2
+ script.__scopeId = "data-v-smptpciz";
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-e4l1o7hr] {
2
+ .router-tab[data-v-9rimebke] {
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-e4l1o7hr] {
9
+ .router-tab a[data-v-9rimebke] {
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-e4l1o7hr] {
18
+ .router-tab a.router-link-exact-active[data-v-9rimebke] {
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-e4l1o7hr";
2
+ script.__scopeId = "data-v-9rimebke";
3
3
  script.__file = "./src/components/render-router-tab/index.vue";
4
4
  import './index.vue.css';
5
5
  export default script;
@@ -43,9 +43,7 @@ export const useDatasetHttp = (prefix)=>{
43
43
  files.forEach((file)=>{
44
44
  form.append('files', file);
45
45
  });
46
- return fetch.post(`${apiPrefix}/${datasetPerfix}/dataset_item/upload/`, {
47
- form
48
- }, {
46
+ return fetch.post(`${apiPrefix}/${datasetPerfix}/dataset_item/upload/`, form, {
49
47
  requestType: 'formData'
50
48
  }).then((data)=>data.map(transferDatasetDataFileApi2DatasetDataFile));
51
49
  };
@@ -1,10 +1,12 @@
1
1
  import { Message } from 'bkui-vue';
2
2
  import { emitEvent } from '../../event/index.ts.js';
3
3
  import { EventType, HttpErrorCode } from '../../types/enum.ts.js';
4
+ import RequestError from './request-error.ts.js';
4
5
  // 请求执行失败拦截器
5
6
  export default ((data, config)=>{
6
- const { code, error, response } = data;
7
- const message = (error === null || error === void 0 ? void 0 : error.message) || data.message || (response === null || response === void 0 ? void 0 : response.message) || '请求失败,请稍后重试';
7
+ var _data_error, _data_response, _data_error1;
8
+ const message = (data === null || data === void 0 ? void 0 : (_data_error = data.error) === null || _data_error === void 0 ? void 0 : _data_error.message) || (data === null || data === void 0 ? void 0 : data.message) || (data === null || data === void 0 ? void 0 : (_data_response = data.response) === null || _data_response === void 0 ? void 0 : _data_response.message) || '系统错误';
9
+ const code = (data === null || data === void 0 ? void 0 : (_data_error1 = data.error) === null || _data_error1 === void 0 ? void 0 : _data_error1.code) || (data === null || data === void 0 ? void 0 : data.code) || -1;
8
10
  // 用户登录状态失效
9
11
  if ([
10
12
  'ret: 1002',
@@ -22,5 +24,5 @@ export default ((data, config)=>{
22
24
  width: 'auto'
23
25
  });
24
26
  }
25
- return Promise.reject(error);
27
+ return Promise.reject(new RequestError(code, message, data));
26
28
  });
@@ -31,7 +31,10 @@ import RequestError from './request-error.ts.js';
31
31
  // 处理数据
32
32
  const handleData = function() {
33
33
  var _ref = _async_to_generator(function*(response, config) {
34
- const { code = response.code, data, message = response.statusText } = yield response[config.responseType]();
34
+ const result = yield response[config.responseType]();
35
+ const data = result.error || result;
36
+ const code = data.code || response.code || -1;
37
+ const message = data.message || response.statusText || '系统错误';
35
38
  if (response.ok) {
36
39
  // 对应 HTTP 请求的状态码 200 到 299
37
40
  // 校验接口返回的数据,status 为 success 表示业务成功
@@ -39,14 +42,14 @@ const handleData = function() {
39
42
  // 接口请求成功
40
43
  case 'success':
41
44
  case 0:
42
- return Promise.resolve(data);
45
+ return Promise.resolve(data.data);
43
46
  // 后端业务处理报错
44
47
  default:
45
- throw new RequestError(code, message || '系统错误', data);
48
+ throw new RequestError(code, message, data);
46
49
  }
47
50
  } else {
48
51
  // 处理 http 非 200 异常
49
- throw new RequestError(code || -1, message || '系统错误', data);
52
+ throw new RequestError(code, message, data);
50
53
  }
51
54
  });
52
55
  return function handleData(response, config) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blueking/ai-ui-sdk",
3
- "version": "0.1.0-beta.2",
3
+ "version": "0.1.0-beta.3",
4
4
  "description": "蓝鲸AI UI SDK",
5
5
  "main": "dist/main.js",
6
6
  "types": "dist/main.d.ts",