@blueking/ai-ui-sdk 0.1.19-beta.34 → 0.1.19-beta.35

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 (64) hide show
  1. package/dist/components/render-auto-height-textarea/index.vue.css +11 -11
  2. package/dist/components/render-auto-height-textarea/index.vue.js +1 -1
  3. package/dist/components/render-auto-refresh/index.vue.css +8 -8
  4. package/dist/components/render-auto-refresh/index.vue.js +1 -1
  5. package/dist/components/render-checkbox/index.vue.css +9 -9
  6. package/dist/components/render-checkbox/index.vue.js +1 -1
  7. package/dist/components/render-choose-tag/index.vue.css +7 -7
  8. package/dist/components/render-choose-tag/index.vue.js +1 -1
  9. package/dist/components/render-collapse/index.vue.css +2 -2
  10. package/dist/components/render-collapse/index.vue.js +1 -1
  11. package/dist/components/render-dataset/components/batch-delete-dataset-data/index.vue.css +3 -3
  12. package/dist/components/render-dataset/components/batch-delete-dataset-data/index.vue.js +1 -1
  13. package/dist/components/render-dataset/components/batch-edit-valid-dataset-data/index.vue.css +1 -1
  14. package/dist/components/render-dataset/components/batch-edit-valid-dataset-data/index.vue.js +1 -1
  15. package/dist/components/render-dataset/components/dataset-data-tool-icons/index.script.vue.js +1 -1
  16. package/dist/components/render-dataset/components/dataset-data-valid/index.vue.css +1 -1
  17. package/dist/components/render-dataset/components/dataset-data-valid/index.vue.js +1 -1
  18. package/dist/components/render-dataset/components/edit-dataset-data/index.vue.css +3 -3
  19. package/dist/components/render-dataset/components/edit-dataset-data/index.vue.js +1 -1
  20. package/dist/components/render-dataset/components/operation-record/index.vue.css +4 -4
  21. package/dist/components/render-dataset/components/operation-record/index.vue.js +1 -1
  22. package/dist/components/render-dataset/components/operation-record/table/index.vue.css +1 -1
  23. package/dist/components/render-dataset/components/operation-record/table/index.vue.js +1 -1
  24. package/dist/components/render-dataset/components/operation-record/view-op-result/index.vue.css +2 -2
  25. package/dist/components/render-dataset/components/operation-record/view-op-result/index.vue.js +1 -1
  26. package/dist/components/render-dataset/components/plus-dataset/index.vue.css +2 -2
  27. package/dist/components/render-dataset/components/plus-dataset/index.vue.js +1 -1
  28. package/dist/components/render-dataset/components/plus-dataset-data/form/api.vue.css +2 -2
  29. package/dist/components/render-dataset/components/plus-dataset-data/form/api.vue.js +1 -1
  30. package/dist/components/render-dataset/components/plus-dataset-data/form/footer.vue.css +1 -1
  31. package/dist/components/render-dataset/components/plus-dataset-data/form/footer.vue.js +1 -1
  32. package/dist/components/render-dataset/components/plus-dataset-data/form/index.vue.css +2 -2
  33. package/dist/components/render-dataset/components/plus-dataset-data/form/index.vue.js +1 -1
  34. package/dist/components/render-dataset/components/review-dataset-data/index.vue.css +10 -10
  35. package/dist/components/render-dataset/components/review-dataset-data/index.vue.js +1 -1
  36. package/dist/components/render-dataset-detail-origin-data/index.vue.css +3 -3
  37. package/dist/components/render-dataset-detail-origin-data/index.vue.js +1 -1
  38. package/dist/components/render-dataset-list/components/main.vue.css +3 -3
  39. package/dist/components/render-dataset-list/components/main.vue.js +1 -1
  40. package/dist/components/render-dataset-list/index.vue.css +2 -2
  41. package/dist/components/render-dataset-list/index.vue.js +1 -1
  42. package/dist/components/render-file-card/index.vue.css +11 -11
  43. package/dist/components/render-file-card/index.vue.js +1 -1
  44. package/dist/components/render-file-type-icon/index.vue.css +5 -5
  45. package/dist/components/render-file-type-icon/index.vue.js +1 -1
  46. package/dist/components/render-header/index.vue.css +3 -3
  47. package/dist/components/render-header/index.vue.js +1 -1
  48. package/dist/components/render-like/index.vue.css +5 -5
  49. package/dist/components/render-like/index.vue.js +1 -1
  50. package/dist/components/render-router-tab/index.vue.css +3 -3
  51. package/dist/components/render-router-tab/index.vue.js +1 -1
  52. package/dist/components/render-t-table/index.script.vue.js +7 -1
  53. package/dist/components/render-t-table/index.vue.css +25 -25
  54. package/dist/components/render-t-table/index.vue.js +1 -1
  55. package/dist/components/render-tag-tree/index.script.vue.js.js +14 -25
  56. package/dist/components/render-tag-tree/index.vue.css +7 -7
  57. package/dist/components/render-tag-tree/index.vue.d.ts +0 -1
  58. package/dist/components/render-tag-tree/index.vue.js +1 -1
  59. package/dist/hooks/use-common-http.d.ts +0 -4
  60. package/dist/hooks/use-common-http.ts.js +1 -11
  61. package/dist/types/common.d.ts +7 -3
  62. package/dist/types/enum.d.ts +7 -1
  63. package/dist/types/enum.ts.js +7 -0
  64. package/package.json +1 -1
@@ -1,5 +1,5 @@
1
1
  import script from './index.script.vue.js.js';
2
- script.__scopeId = "data-v-k4p5rcsm";
2
+ script.__scopeId = "data-v-p07y19na";
3
3
  script.__file = "./src/components/render-dataset-list/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-p2k8ky6n] {
2
+ .upload-file-home[data-v-5d0h7q0h] {
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-p2k8ky6n]:hover {
9
+ .upload-file-home[data-v-5d0h7q0h]:hover {
10
10
  border: 1px solid #3A84FF;
11
11
  }
12
- .upload-file-home:hover .file-icons[data-v-p2k8ky6n] {
12
+ .upload-file-home:hover .file-icons[data-v-5d0h7q0h] {
13
13
  display: flex;
14
14
  }
15
- .upload-file-home .file-icon[data-v-p2k8ky6n] {
15
+ .upload-file-home .file-icon[data-v-5d0h7q0h] {
16
16
  font-size: 32px;
17
17
  }
18
- .upload-file-home .file-content[data-v-p2k8ky6n] {
18
+ .upload-file-home .file-content[data-v-5d0h7q0h] {
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-p2k8ky6n] {
26
+ .upload-file-home .file-content .file-name[data-v-5d0h7q0h] {
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-p2k8ky6n] {
31
+ .upload-file-home .file-content .file-size[data-v-5d0h7q0h] {
32
32
  font-size: 12px;
33
33
  color: #979BA5;
34
34
  line-height: 20px;
35
35
  }
36
- .upload-file-home .file-icons[data-v-p2k8ky6n] {
36
+ .upload-file-home .file-icons[data-v-5d0h7q0h] {
37
37
  display: none;
38
38
  color: #979BA5;
39
39
  }
40
- .upload-file-home .file-icons .bkaidev-icon[data-v-p2k8ky6n] {
40
+ .upload-file-home .file-icons .bkaidev-icon[data-v-5d0h7q0h] {
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-p2k8ky6n]:hover {
45
+ .upload-file-home .file-icons .bkaidev-icon[data-v-5d0h7q0h]:hover {
46
46
  color: #3A84FF;
47
47
  }
48
- .upload-file-home .file-icons .bkaidev-delete[data-v-p2k8ky6n] {
48
+ .upload-file-home .file-icons .bkaidev-delete[data-v-5d0h7q0h] {
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-p2k8ky6n";
2
+ script.__scopeId = "data-v-5d0h7q0h";
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-7snu34ak] {
2
+ .ai-ui-sdk-icon.ai-ui-sdk-pdf[data-v-eendykir] {
3
3
  color: #EA3636;
4
4
  }
5
- .ai-ui-sdk-icon.ai-ui-sdk-doc-2[data-v-7snu34ak], .ai-ui-sdk-icon.ai-ui-sdk-ppt-2[data-v-7snu34ak], .ai-ui-sdk-icon.ai-ui-sdk-markdown[data-v-7snu34ak] {
5
+ .ai-ui-sdk-icon.ai-ui-sdk-doc-2[data-v-eendykir], .ai-ui-sdk-icon.ai-ui-sdk-ppt-2[data-v-eendykir], .ai-ui-sdk-icon.ai-ui-sdk-markdown[data-v-eendykir] {
6
6
  color: #3A84FF;
7
7
  }
8
- .ai-ui-sdk-icon.ai-ui-sdk-folder-fill[data-v-7snu34ak] {
8
+ .ai-ui-sdk-icon.ai-ui-sdk-folder-fill[data-v-eendykir] {
9
9
  color: #C4C6CC;
10
10
  }
11
- .ai-ui-sdk-icon.ai-ui-sdk-excel[data-v-7snu34ak] {
11
+ .ai-ui-sdk-icon.ai-ui-sdk-excel[data-v-eendykir] {
12
12
  color: #2DCB56;
13
13
  }
14
- .ai-ui-sdk-icon.ai-ui-sdk-wangye[data-v-7snu34ak] {
14
+ .ai-ui-sdk-icon.ai-ui-sdk-wangye[data-v-eendykir] {
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-7snu34ak";
2
+ script.__scopeId = "data-v-eendykir";
3
3
  script.__file = "./src/components/render-file-type-icon/index.vue";
4
4
  import './index.vue.css';
5
5
  export default script;
@@ -1,13 +1,13 @@
1
1
 
2
- .header-home[data-v-m8f7xl3b] {
2
+ .header-home[data-v-sqkkju3w] {
3
3
  width: 100%;
4
4
  background: #FFFFFF;
5
5
  box-shadow: 0 3px 4px 0 #0000000a;
6
6
  }
7
- .render-tab[data-v-m8f7xl3b] {
7
+ .render-tab[data-v-sqkkju3w] {
8
8
  border-bottom: 2px solid transparent;
9
9
  }
10
- .render-tab.active[data-v-m8f7xl3b] {
10
+ .render-tab.active[data-v-sqkkju3w] {
11
11
  color: #3A84FF;
12
12
  border-bottom: 2px solid #3A84FF;
13
13
  }
@@ -1,5 +1,5 @@
1
1
  import script from './index.script.vue.js.js';
2
- script.__scopeId = "data-v-m8f7xl3b";
2
+ script.__scopeId = "data-v-sqkkju3w";
3
3
  script.__file = "./src/components/render-header/index.vue";
4
4
  import './index.vue.css';
5
5
  export default script;
@@ -1,20 +1,20 @@
1
1
 
2
- .dislike-icon[data-v-a34m3fgv] {
2
+ .dislike-icon[data-v-ucgq6i2d] {
3
3
  transform: rotateX(180deg);
4
4
  }
5
- .option-items[data-v-a34m3fgv] {
5
+ .option-items[data-v-ucgq6i2d] {
6
6
  padding: 1px 8px;
7
7
  background-color: #F0F1F5;
8
8
  line-height: 22px;
9
9
  border-radius: 2px;
10
10
  }
11
- .option-items[data-v-a34m3fgv]:hover {
11
+ .option-items[data-v-ucgq6i2d]:hover {
12
12
  background-color: #E1ECFF;
13
13
  color: #3A84FF;
14
14
  }
15
- .option-items-selected[data-v-a34m3fgv]{
15
+ .option-items-selected[data-v-ucgq6i2d]{
16
16
  background-color: #E1ECFF;
17
17
  }
18
- [data-v-a34m3fgv] .bk-form-item {
18
+ [data-v-ucgq6i2d] .bk-form-item {
19
19
  margin-bottom: 17px;
20
20
  }
@@ -1,5 +1,5 @@
1
1
  import script from './index.script.vue.js.js';
2
- script.__scopeId = "data-v-a34m3fgv";
2
+ script.__scopeId = "data-v-ucgq6i2d";
3
3
  script.__file = "./src/components/render-like/index.vue";
4
4
  import './index.vue.css';
5
5
  export default script;
@@ -1,12 +1,12 @@
1
1
 
2
- .router-tab[data-v-tg2k1ztp] {
2
+ .router-tab[data-v-60wi93wm] {
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 24px;
8
8
  }
9
- .router-tab a[data-v-tg2k1ztp] {
9
+ .router-tab a[data-v-60wi93wm] {
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-tg2k1ztp] {
18
+ .router-tab a.router-link-exact-active[data-v-60wi93wm] {
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-tg2k1ztp";
2
+ script.__scopeId = "data-v-60wi93wm";
3
3
  script.__file = "./src/components/render-router-tab/index.vue";
4
4
  import './index.vue.css';
5
5
  export default script;
@@ -1,8 +1,9 @@
1
1
  import { defineComponent as _defineComponent, Fragment as _Fragment, createVNode as _createVNode2, createTextVNode as _createTextVNode2 } from 'vue';
2
- import { createTextVNode as _createTextVNode, resolveComponent as _resolveComponent, withCtx as _withCtx, createVNode as _createVNode, createElementVNode as _createElementVNode, renderSlot as _renderSlot, mergeProps as _mergeProps, normalizeClass as _normalizeClass, openBlock as _openBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode, normalizeStyle as _normalizeStyle, createElementBlock as _createElementBlock } from "vue";
2
+ import { createTextVNode as _createTextVNode, resolveComponent as _resolveComponent, withCtx as _withCtx, createVNode as _createVNode, createElementVNode as _createElementVNode, renderSlot as _renderSlot, unref as _unref, mergeProps as _mergeProps, normalizeClass as _normalizeClass, openBlock as _openBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode, normalizeStyle as _normalizeStyle, createElementBlock as _createElementBlock } from "vue";
3
3
  const _hoisted_1 = {
4
4
  class: "t-table-row-height"
5
5
  };
6
+ import { Funnel } from 'bkui-vue/lib/icon';
6
7
  import { ref, watch } from 'vue';
7
8
  import RenderSearchEmpty from '../render-search-empty/index.vue.js';
8
9
  export default /*@__PURE__*/ _defineComponent({
@@ -278,6 +279,11 @@ export default /*@__PURE__*/ _defineComponent({
278
279
  loading: true
279
280
  })
280
281
  ]),
282
+ filterIcon: _withCtx(()=>[
283
+ _createVNode(_unref(Funnel), {
284
+ class: "g-text-light-gray g-text-14"
285
+ })
286
+ ]),
281
287
  _: 3 /* FORWARDED */
282
288
  }, 16 /* FULL_PROPS */ , [
283
289
  "column-controller-visible",
@@ -1,12 +1,12 @@
1
1
 
2
- .t-t-pagination[data-v-9zuv4jjd] {
2
+ .t-t-pagination[data-v-32d356ko] {
3
3
  position: relative;
4
4
  padding: 16px 16px 0 16px;
5
5
  }
6
- .t-t-pagination[data-v-9zuv4jjd] .bk-pagination-list.is-last {
6
+ .t-t-pagination[data-v-32d356ko] .bk-pagination-list.is-last {
7
7
  margin-left: auto;
8
8
  }
9
- .pagination-loading[data-v-9zuv4jjd]::after {
9
+ .pagination-loading[data-v-32d356ko]::after {
10
10
  content: '';
11
11
  position: absolute;
12
12
  top: 0;
@@ -16,84 +16,84 @@
16
16
  background-color: rgba(255, 255, 255, 0.6);
17
17
  z-index: 72;
18
18
  }
19
- .t-t-table[data-v-9zuv4jjd] {
19
+ .t-t-table[data-v-32d356ko] {
20
20
  display: inline;
21
21
  font-size: 12px;
22
22
  }
23
- .t-t-table[data-v-9zuv4jjd] .t-table__th-cell-inner {
23
+ .t-t-table[data-v-32d356ko] .t-table__th-cell-inner {
24
24
  color: #313238;
25
25
  }
26
- .t-t-table[data-v-9zuv4jjd] th {
26
+ .t-t-table[data-v-32d356ko] th {
27
27
  padding: 0 16px;
28
28
  height: 42px;
29
29
  background-color: #FAFBFD !important;
30
30
  }
31
- .t-t-table[data-v-9zuv4jjd] .t-table__body tr {
31
+ .t-t-table[data-v-32d356ko] .t-table__body tr {
32
32
  color: #63656e;
33
33
  font-size: 12px;
34
34
  }
35
- .t-t-table[data-v-9zuv4jjd] .t-table__body tr td {
35
+ .t-t-table[data-v-32d356ko] .t-table__body tr td {
36
36
  padding: 0 16px;
37
37
  height: 40px;
38
38
  background-color: #fff;
39
39
  }
40
- .t-t-table[data-v-9zuv4jjd] .t-table__body tr:hover td {
40
+ .t-t-table[data-v-32d356ko] .t-table__body tr:hover td {
41
41
  background-color: #f5f7fa !important;
42
42
  color: #63656E;
43
43
  }
44
- .t-t-table[data-v-9zuv4jjd] .t-table__content .t-table__body .t-table__empty-row {
44
+ .t-t-table[data-v-32d356ko] .t-table__content .t-table__body .t-table__empty-row {
45
45
  background-color: #fff !important;
46
46
  }
47
- .t-t-table[data-v-9zuv4jjd] .t-table__content .t-table__body .t-table__empty-row >td {
47
+ .t-t-table[data-v-32d356ko] .t-table__content .t-table__body .t-table__empty-row >td {
48
48
  border: none;
49
49
  }
50
- .t-t-table[data-v-9zuv4jjd] th .t-table__ellipsis {
50
+ .t-t-table[data-v-32d356ko] th .t-table__ellipsis {
51
51
  width: auto !important;
52
52
  }
53
- .t-t-table[data-v-9zuv4jjd] .t-loading__gradient.t-icon-loading {
53
+ .t-t-table[data-v-32d356ko] .t-loading__gradient.t-icon-loading {
54
54
  display: none;
55
55
  }
56
- .t-t-table[data-v-9zuv4jjd]:first-of-type .t-table__affixed-header-elm-wrap{
56
+ .t-t-table[data-v-32d356ko]:first-of-type .t-table__affixed-header-elm-wrap{
57
57
  width: calc(100% - 6px) !important;
58
58
  }
59
- .t-t-table[data-v-9zuv4jjd] .t-table__affixed-header-elm-wrap>div {
59
+ .t-t-table[data-v-32d356ko] .t-table__affixed-header-elm-wrap>div {
60
60
  width: 100% !important;
61
61
  scrollbar-width: none;
62
62
  }
63
- .t-t-table[data-v-9zuv4jjd] .t-table--layout-fixed{
63
+ .t-t-table[data-v-32d356ko] .t-table--layout-fixed{
64
64
  width: 100% !important;
65
65
  }
66
- .t-t-table[data-v-9zuv4jjd] .bk-exception-description{
66
+ .t-t-table[data-v-32d356ko] .bk-exception-description{
67
67
  margin-bottom: 0;
68
68
  }
69
- .t-t-table[data-v-9zuv4jjd] .t-table__content{
69
+ .t-t-table[data-v-32d356ko] .t-table__content{
70
70
  z-index: 2;
71
71
  max-height: 100%;
72
72
  overflow: auto;
73
73
  }
74
- .t-t-table[data-v-9zuv4jjd] .t-table__content::-webkit-scrollbar {
74
+ .t-t-table[data-v-32d356ko] .t-table__content::-webkit-scrollbar {
75
75
  width: 6px;
76
76
  height: 6px;
77
77
  }
78
- .t-t-table[data-v-9zuv4jjd] .t-table__content::-webkit-scrollbar-thumb {
78
+ .t-t-table[data-v-32d356ko] .t-table__content::-webkit-scrollbar-thumb {
79
79
  width: 6px;
80
80
  height: 6px;
81
81
  border-radius: 3px;
82
82
  background-color: #dcdee5;
83
83
  }
84
- .t-t-table[data-v-9zuv4jjd] .t-table__content::-webkit-scrollbar-thumb:hover {
84
+ .t-t-table[data-v-32d356ko] .t-table__content::-webkit-scrollbar-thumb:hover {
85
85
  background-color: #979ba5;
86
86
  }
87
- .t-t-table[data-v-9zuv4jjd] .t-table__ellipsis.t-text-ellipsis:has(.checkbox){
87
+ .t-t-table[data-v-32d356ko] .t-table__ellipsis.t-text-ellipsis:has(.checkbox){
88
88
  line-height: 100%;
89
89
  }
90
- .t-t-table[data-v-9zuv4jjd] .t-table__cell--sort-trigger.t-table__double-icons{
90
+ .t-t-table[data-v-32d356ko] .t-table__cell--sort-trigger.t-table__double-icons{
91
91
  gap: 5px;
92
92
  }
93
- .t-t-table[data-v-9zuv4jjd] .t-table__sort-icon--active>i{
93
+ .t-t-table[data-v-32d356ko] .t-table__sort-icon--active>i{
94
94
  color: #3a84ff !important;
95
95
  }
96
- .t-t-table[data-v-9zuv4jjd] .t-table__cell--fixed-left:has(.checkbox){
96
+ .t-t-table[data-v-32d356ko] .t-table__cell--fixed-left:has(.checkbox){
97
97
  line-height: 100%;
98
98
  }
99
99
 
@@ -1,5 +1,5 @@
1
1
  import script from './index.script.vue.js';
2
- script.__scopeId = "data-v-9zuv4jjd";
2
+ script.__scopeId = "data-v-32d356ko";
3
3
  script.__file = "./src/components/render-t-table/index.vue";
4
4
  import './index.vue.css';
5
5
  export default script;
@@ -55,10 +55,7 @@ export default /*@__PURE__*/ _defineComponent({
55
55
  groupType: {},
56
56
  generateType: {},
57
57
  apiPrefix: {},
58
- spaceId: {},
59
- isMarket: {
60
- type: Boolean
61
- }
58
+ spaceId: {}
62
59
  },
63
60
  emits: [
64
61
  "update:tag-id",
@@ -67,7 +64,7 @@ export default /*@__PURE__*/ _defineComponent({
67
64
  setup (__props, { expose: __expose, emit: __emit }) {
68
65
  const props = __props;
69
66
  const emit = __emit;
70
- const { getTagTree, getMarketTagTree } = useCommonHttp(props.apiPrefix, toRef(props, 'spaceId'));
67
+ const { getTagTree } = useCommonHttp(props.apiPrefix, toRef(props, 'spaceId'));
71
68
  const isExistNoTags = ref(false);
72
69
  const loadingTagsTree = ref(false);
73
70
  const openedIds = ref([]);
@@ -118,26 +115,18 @@ export default /*@__PURE__*/ _defineComponent({
118
115
  };
119
116
  // 获取标签树列表
120
117
  const handleGetTagsTree = ()=>{
121
- const executeApiCall = (apiCall)=>{
122
- loadingTagsTree.value = true;
123
- apiCall.then((data)=>{
124
- allDataMap.value.count = data.all;
125
- tags.value = data.all <= 0 && props.tagName ? data.tree : [
126
- allDataMap.value,
127
- ...data.tree
128
- ];
129
- isExistNoTags.value = tags.value.some((item)=>item.tagId === -1);
130
- }).finally(()=>{
131
- loadingTagsTree.value = false;
132
- });
133
- };
134
- if (props.isMarket) {
135
- getMarketTagTree.abort();
136
- executeApiCall(getMarketTagTree(props.module, props.tagName));
137
- } else {
138
- getTagTree.abort();
139
- executeApiCall(getTagTree(props.module, props.subModule, props.tagName, props.groupType, props.generateType));
140
- }
118
+ loadingTagsTree.value = true;
119
+ getTagTree.abort();
120
+ getTagTree(props.module, props.subModule, props.tagName, props.groupType, props.generateType).then((data)=>{
121
+ allDataMap.value.count = data.all;
122
+ tags.value = data.all <= 0 && props.tagName ? data.tree : [
123
+ allDataMap.value,
124
+ ...data.tree
125
+ ];
126
+ isExistNoTags.value = tags.value.some((item)=>item.tagId === -1);
127
+ }).finally(()=>{
128
+ loadingTagsTree.value = false;
129
+ });
141
130
  };
142
131
  watch(()=>[
143
132
  props.groupType,
@@ -1,27 +1,27 @@
1
1
 
2
- .tag-tree[data-v-ig41fzsm] {
2
+ .tag-tree[data-v-5o1s0xzy] {
3
3
  font-size: 12px;
4
4
  height: auto;
5
5
  }
6
- .tag-tree .manage-tree-item[data-v-ig41fzsm] {
6
+ .tag-tree .manage-tree-item[data-v-5o1s0xzy] {
7
7
  height: 32px;
8
8
  flex: 1;
9
9
  }
10
- .tag-tree .quick-icon[data-v-ig41fzsm] {
10
+ .tag-tree .quick-icon[data-v-5o1s0xzy] {
11
11
  margin-left: -24px;
12
12
  padding-left: 8px;
13
13
  }
14
- .tag-tree[data-v-ig41fzsm] .tree-item:has(.bottom-line) {
14
+ .tag-tree[data-v-5o1s0xzy] .tree-item:has(.bottom-line) {
15
15
  border-bottom: 1px solid #F0F1F5;
16
16
  }
17
- .tag-tree[data-v-ig41fzsm] .tree-item.active .quick-icon {
17
+ .tag-tree[data-v-5o1s0xzy] .tree-item.active .quick-icon {
18
18
  color: #3A84FF;
19
19
  }
20
- .tag-tree[data-v-ig41fzsm] .tree-item.active .tag-number {
20
+ .tag-tree[data-v-5o1s0xzy] .tree-item.active .tag-number {
21
21
  background: #A3C5FD;
22
22
  color: #fff;
23
23
  }
24
- .tag-number[data-v-ig41fzsm] {
24
+ .tag-number[data-v-5o1s0xzy] {
25
25
  line-height: 16px;
26
26
  padding: 0 4px;
27
27
  background-color: #F0F1F5;
@@ -8,7 +8,6 @@ interface IProps {
8
8
  generateType?: EnumCharacter;
9
9
  apiPrefix: string;
10
10
  spaceId?: string;
11
- isMarket?: boolean;
12
11
  }
13
12
  interface IExpose {
14
13
  handleGetTagsTree: () => void;
@@ -1,5 +1,5 @@
1
1
  import script from './index.script.vue.js.js';
2
- script.__scopeId = "data-v-ig41fzsm";
2
+ script.__scopeId = "data-v-5o1s0xzy";
3
3
  script.__file = "./src/components/render-tag-tree/index.vue";
4
4
  import './index.vue.css';
5
5
  export default script;
@@ -5,8 +5,4 @@ export declare const useCommonHttp: (apiPrefix: string, spaceId?: Ref<string>) =
5
5
  (module: Module, subModule: Module, tagName: string, groupType?: GroupType, generateType?: EnumCharacter): Promise<import("@/types/common").ITagTree>;
6
6
  abort(): void;
7
7
  };
8
- getMarketTagTree: {
9
- (module: Module, tagName: string): Promise<import("@/types/common").ITagTree>;
10
- abort(): void;
11
- };
12
8
  };
@@ -12,17 +12,7 @@ export const useCommonHttp = (apiPrefix, spaceId)=>{
12
12
  },
13
13
  signal
14
14
  }).then((data)=>transferTagTreeApiToTagTree(data)));
15
- // 获取市场标签树
16
- const getMarketTagTree = withAbort((signal, module, tagName)=>fetch.get(`${apiPrefix}/market/v1/${module}/tag_tree/`, {
17
- tag_name: tagName
18
- }, {
19
- headers: {
20
- 'x-space-id': spaceId === null || spaceId === void 0 ? void 0 : spaceId.value
21
- },
22
- signal
23
- }).then((data)=>transferTagTreeApiToTagTree(data)));
24
15
  return {
25
- getTagTree,
26
- getMarketTagTree
16
+ getTagTree
27
17
  };
28
18
  };
@@ -1,5 +1,5 @@
1
- import type { PrimaryTableCol } from 'tdesign-vue-next';
2
- import { OrderMethod } from './enum';
1
+ import type { PrimaryTableCol, TableColumnFilter } from 'tdesign-vue-next';
2
+ import { OrderMethod, TTableFilterType } from './enum';
3
3
  export interface ITab {
4
4
  id?: string | number;
5
5
  name: string;
@@ -20,13 +20,17 @@ export interface ITTableColEllipsis {
20
20
  placement?: string;
21
21
  className?: string;
22
22
  }
23
- export interface ITTableCol<T> extends Omit<PrimaryTableCol<T>, 'type' | 'align' | 'fixed' | 'sortKey' | 'ellipsis'> {
23
+ export interface ITTableColFilter extends Omit<TableColumnFilter, 'type'> {
24
+ type?: TTableFilterType;
25
+ }
26
+ export interface ITTableCol<T> extends Omit<PrimaryTableCol<T>, 'type' | 'align' | 'fixed' | 'sortKey' | 'ellipsis' | 'filter'> {
24
27
  defaultShow?: boolean;
25
28
  sortKey?: string;
26
29
  type?: string;
27
30
  fixed?: string;
28
31
  align?: string;
29
32
  ellipsis?: boolean | ITTableColEllipsis;
33
+ filter?: ITTableColFilter;
30
34
  }
31
35
  export interface IPaginationParam {
32
36
  page?: number;
@@ -152,7 +152,8 @@ export declare enum Module {
152
152
  PromptVariables = "prompt_variables",
153
153
  Dataset = "dataset",
154
154
  Meta = "meta",
155
- Cr = "cr"
155
+ Cr = "cr",
156
+ Market = "market"
156
157
  }
157
158
  export declare enum ResourcePermissionAction {
158
159
  AccessModel = "access_model",
@@ -251,3 +252,8 @@ export declare enum AgentCommandType {
251
252
  Number = "number",
252
253
  Select = "select"
253
254
  }
255
+ export declare enum TTableFilterType {
256
+ Input = "input",
257
+ Single = "single",
258
+ Multiple = "multiple"
259
+ }
@@ -173,6 +173,7 @@ export var Module;
173
173
  Module["Dataset"] = "dataset";
174
174
  Module["Meta"] = "meta";
175
175
  Module["Cr"] = "cr";
176
+ Module["Market"] = "market";
176
177
  })(Module || (Module = {}));
177
178
  export var ResourcePermissionAction;
178
179
  (function(ResourcePermissionAction) {
@@ -282,3 +283,9 @@ export var AgentCommandType;
282
283
  AgentCommandType["Number"] = "number";
283
284
  AgentCommandType["Select"] = "select";
284
285
  })(AgentCommandType || (AgentCommandType = {}));
286
+ export var TTableFilterType;
287
+ (function(TTableFilterType) {
288
+ TTableFilterType["Input"] = "input";
289
+ TTableFilterType["Single"] = "single";
290
+ TTableFilterType["Multiple"] = "multiple";
291
+ })(TTableFilterType || (TTableFilterType = {}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blueking/ai-ui-sdk",
3
- "version": "0.1.19-beta.34",
3
+ "version": "0.1.19-beta.35",
4
4
  "description": "蓝鲸AI UI SDK",
5
5
  "main": "dist/main.js",
6
6
  "types": "dist/main.d.ts",