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

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 (96) 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.script.vue.js +86 -0
  12. package/dist/components/render-dataset/components/batch-delete-dataset-data/index.vue.css +16 -0
  13. package/dist/components/render-dataset/components/batch-delete-dataset-data/index.vue.d.ts +16 -0
  14. package/dist/components/render-dataset/components/batch-delete-dataset-data/index.vue.js +5 -0
  15. package/dist/components/render-dataset/components/batch-edit-valid-dataset-data/index.script.vue.js.js +133 -0
  16. package/dist/components/render-dataset/components/batch-edit-valid-dataset-data/index.vue.css +4 -0
  17. package/dist/components/render-dataset/components/batch-edit-valid-dataset-data/index.vue.d.ts +16 -0
  18. package/dist/components/render-dataset/components/batch-edit-valid-dataset-data/index.vue.js +5 -0
  19. package/dist/components/render-dataset/components/dataset-data-tool-icons/index.script.vue.js +1 -1
  20. package/dist/components/render-dataset/components/dataset-data-valid/index.script.vue.js.js +176 -0
  21. package/dist/components/render-dataset/components/dataset-data-valid/index.vue.css +4 -0
  22. package/dist/components/render-dataset/components/dataset-data-valid/index.vue.d.ts +16 -0
  23. package/dist/components/render-dataset/components/dataset-data-valid/index.vue.js +5 -0
  24. package/dist/components/render-dataset/components/edit-dataset-data/index.vue.css +3 -3
  25. package/dist/components/render-dataset/components/edit-dataset-data/index.vue.js +1 -1
  26. package/dist/components/render-dataset/components/operation-record/index.vue.css +4 -4
  27. package/dist/components/render-dataset/components/operation-record/index.vue.js +1 -1
  28. package/dist/components/render-dataset/components/operation-record/table/index.vue.css +1 -1
  29. package/dist/components/render-dataset/components/operation-record/table/index.vue.js +1 -1
  30. package/dist/components/render-dataset/components/operation-record/view-op-result/index.vue.css +2 -2
  31. package/dist/components/render-dataset/components/operation-record/view-op-result/index.vue.js +1 -1
  32. package/dist/components/render-dataset/components/plus-dataset/index.vue.css +2 -2
  33. package/dist/components/render-dataset/components/plus-dataset/index.vue.js +1 -1
  34. package/dist/components/render-dataset/components/plus-dataset-data/form/api.vue.css +2 -2
  35. package/dist/components/render-dataset/components/plus-dataset-data/form/api.vue.js +1 -1
  36. package/dist/components/render-dataset/components/plus-dataset-data/form/footer.vue.css +1 -1
  37. package/dist/components/render-dataset/components/plus-dataset-data/form/footer.vue.js +1 -1
  38. package/dist/components/render-dataset/components/plus-dataset-data/form/index.vue.css +2 -2
  39. package/dist/components/render-dataset/components/plus-dataset-data/form/index.vue.js +1 -1
  40. package/dist/components/render-dataset/components/review-dataset-data/index.vue.css +10 -10
  41. package/dist/components/render-dataset/components/review-dataset-data/index.vue.js +1 -1
  42. package/dist/components/render-dataset/components/search-dataset-data/index.script.vue.js.js +14 -0
  43. package/dist/components/render-dataset-detail-origin-data/components/batch-operation/index.script.vue.js.js +61 -39
  44. package/dist/components/render-dataset-detail-origin-data/components/table/index.script.vue.js +73 -59
  45. package/dist/components/render-dataset-detail-origin-data/index.vue.css +3 -3
  46. package/dist/components/render-dataset-detail-origin-data/index.vue.js +1 -1
  47. package/dist/components/render-dataset-list/components/main.vue.css +3 -3
  48. package/dist/components/render-dataset-list/components/main.vue.d.ts +2 -2
  49. package/dist/components/render-dataset-list/components/main.vue.js +1 -1
  50. package/dist/components/render-dataset-list/components/table.script.vue.js +72 -75
  51. package/dist/components/render-dataset-list/components/table.vue.d.ts +2 -2
  52. package/dist/components/render-dataset-list/index.vue.css +2 -2
  53. package/dist/components/render-dataset-list/index.vue.js +1 -1
  54. package/dist/components/render-dropdown/index.script.vue.js.js +171 -0
  55. package/dist/components/render-dropdown/index.vue.css +29 -0
  56. package/dist/components/render-dropdown/index.vue.d.ts +64 -0
  57. package/dist/components/render-dropdown/index.vue.js +4 -0
  58. package/dist/components/render-file-card/index.vue.css +11 -11
  59. package/dist/components/render-file-card/index.vue.js +1 -1
  60. package/dist/components/render-file-type-icon/index.vue.css +5 -5
  61. package/dist/components/render-file-type-icon/index.vue.js +1 -1
  62. package/dist/components/render-header/index.vue.css +3 -3
  63. package/dist/components/render-header/index.vue.js +1 -1
  64. package/dist/components/render-like/index.vue.css +5 -5
  65. package/dist/components/render-like/index.vue.js +1 -1
  66. package/dist/components/render-router-tab/index.vue.css +3 -3
  67. package/dist/components/render-router-tab/index.vue.js +1 -1
  68. package/dist/components/render-search-select/index.script.vue.js.js +1 -0
  69. package/dist/components/render-t-table/index.vue.css +28 -25
  70. package/dist/components/render-t-table/index.vue.js +1 -1
  71. package/dist/components/render-tag-tree/index.script.vue.js.js +34 -18
  72. package/dist/components/render-tag-tree/index.vue.css +7 -7
  73. package/dist/components/render-tag-tree/index.vue.d.ts +1 -0
  74. package/dist/components/render-tag-tree/index.vue.js +1 -1
  75. package/dist/components.d.ts +2 -1
  76. package/dist/components.ts.js +2 -1
  77. package/dist/css/tailwind.css +13 -1
  78. package/dist/hooks/use-common-http.d.ts +4 -0
  79. package/dist/hooks/use-common-http.ts.js +12 -2
  80. package/dist/hooks/use-dataset-http.d.ts +2 -1
  81. package/dist/hooks/use-dataset-http.ts.js +8 -1
  82. package/dist/hooks/use-ellipsis-tooltip.d.ts +0 -1
  83. package/dist/hooks/use-ellipsis-tooltip.ts.js +0 -1
  84. package/dist/hooks/use-style.d.ts +1 -0
  85. package/dist/hooks/use-style.ts.js +1 -0
  86. package/dist/http/helper/agent.d.ts +13 -1
  87. package/dist/http/helper/agent.ts.js +69 -24
  88. package/dist/http/helper/dataset.d.ts +7 -1
  89. package/dist/http/helper/dataset.ts.js +16 -2
  90. package/dist/transforms.d.ts +1 -0
  91. package/dist/transforms.ts.js +1 -0
  92. package/dist/types/agent.d.ts +41 -24
  93. package/dist/types/dataset.d.ts +14 -0
  94. package/dist/types/enum.d.ts +8 -1
  95. package/dist/types/enum.ts.js +8 -0
  96. package/package.json +1 -1
@@ -0,0 +1,64 @@
1
+ import { type Instance, type Placement, type Props } from 'tippy.js';
2
+ export interface IProps {
3
+ /** 位置 */
4
+ placement?: Placement;
5
+ /** 是否显示箭头 */
6
+ arrow?: boolean;
7
+ /** 主题 */
8
+ theme?: 'light' | 'light-border' | 'material' | 'translucent';
9
+ /** 动画效果 */
10
+ animation?: 'fade' | 'shift-away' | 'shift-toward' | 'scale' | 'perspective';
11
+ /** 延迟显示(毫秒) */
12
+ delay?: number | [number | null, number | null];
13
+ /** 最大宽度 */
14
+ maxWidth?: number | string;
15
+ /** 是否禁用 */
16
+ disabled?: boolean;
17
+ /** 额外的 Tippy 配置 */
18
+ tippyOptions?: Partial<Props>;
19
+ }
20
+ export interface IEmits {
21
+ show: [instance: Instance];
22
+ hide: [instance: Instance];
23
+ mount: [instance: Instance];
24
+ shown: [instance: Instance];
25
+ hidden: [instance: Instance];
26
+ }
27
+ declare var __VLS_1: {}, __VLS_3: {};
28
+ type __VLS_Slots = {} & {
29
+ trigger?: (props: typeof __VLS_1) => any;
30
+ } & {
31
+ content?: (props: typeof __VLS_3) => any;
32
+ };
33
+ declare const __VLS_base: import("vue").DefineComponent<IProps, {
34
+ show: () => void;
35
+ hide: () => void;
36
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
37
+ hidden: (instance: Instance<Props>) => any;
38
+ mount: (instance: Instance<Props>) => any;
39
+ show: (instance: Instance<Props>) => any;
40
+ hide: (instance: Instance<Props>) => any;
41
+ shown: (instance: Instance<Props>) => any;
42
+ }, string, import("vue").PublicProps, Readonly<IProps> & Readonly<{
43
+ onHidden?: (instance: Instance<Props>) => any;
44
+ onMount?: (instance: Instance<Props>) => any;
45
+ onShow?: (instance: Instance<Props>) => any;
46
+ onHide?: (instance: Instance<Props>) => any;
47
+ onShown?: (instance: Instance<Props>) => any;
48
+ }>, {
49
+ disabled: boolean;
50
+ theme: "light" | "light-border" | "material" | "translucent";
51
+ placement: Placement;
52
+ arrow: boolean;
53
+ animation: "fade" | "shift-away" | "shift-toward" | "scale" | "perspective";
54
+ delay: number | [number | null, number | null];
55
+ maxWidth: number | string;
56
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
57
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
58
+ declare const _default: typeof __VLS_export;
59
+ export default _default;
60
+ type __VLS_WithSlots<T, S> = T & {
61
+ new (): {
62
+ $slots: S;
63
+ };
64
+ };
@@ -0,0 +1,4 @@
1
+ import script from './index.script.vue.js.js';
2
+ script.__file = "./src/components/render-dropdown/index.vue";
3
+ import './index.vue.css';
4
+ export default script;
@@ -1,21 +1,21 @@
1
1
 
2
- .upload-file-home[data-v-33vdf8ar] {
2
+ .upload-file-home[data-v-p2k8ky6n] {
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-33vdf8ar]:hover {
9
+ .upload-file-home[data-v-p2k8ky6n]:hover {
10
10
  border: 1px solid #3A84FF;
11
11
  }
12
- .upload-file-home:hover .file-icons[data-v-33vdf8ar] {
12
+ .upload-file-home:hover .file-icons[data-v-p2k8ky6n] {
13
13
  display: flex;
14
14
  }
15
- .upload-file-home .file-icon[data-v-33vdf8ar] {
15
+ .upload-file-home .file-icon[data-v-p2k8ky6n] {
16
16
  font-size: 32px;
17
17
  }
18
- .upload-file-home .file-content[data-v-33vdf8ar] {
18
+ .upload-file-home .file-content[data-v-p2k8ky6n] {
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-33vdf8ar] {
26
+ .upload-file-home .file-content .file-name[data-v-p2k8ky6n] {
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-33vdf8ar] {
31
+ .upload-file-home .file-content .file-size[data-v-p2k8ky6n] {
32
32
  font-size: 12px;
33
33
  color: #979BA5;
34
34
  line-height: 20px;
35
35
  }
36
- .upload-file-home .file-icons[data-v-33vdf8ar] {
36
+ .upload-file-home .file-icons[data-v-p2k8ky6n] {
37
37
  display: none;
38
38
  color: #979BA5;
39
39
  }
40
- .upload-file-home .file-icons .bkaidev-icon[data-v-33vdf8ar] {
40
+ .upload-file-home .file-icons .bkaidev-icon[data-v-p2k8ky6n] {
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-33vdf8ar]:hover {
45
+ .upload-file-home .file-icons .bkaidev-icon[data-v-p2k8ky6n]:hover {
46
46
  color: #3A84FF;
47
47
  }
48
- .upload-file-home .file-icons .bkaidev-delete[data-v-33vdf8ar] {
48
+ .upload-file-home .file-icons .bkaidev-delete[data-v-p2k8ky6n] {
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-33vdf8ar";
2
+ script.__scopeId = "data-v-p2k8ky6n";
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-1bfggbjt] {
2
+ .ai-ui-sdk-icon.ai-ui-sdk-pdf[data-v-7snu34ak] {
3
3
  color: #EA3636;
4
4
  }
5
- .ai-ui-sdk-icon.ai-ui-sdk-doc-2[data-v-1bfggbjt], .ai-ui-sdk-icon.ai-ui-sdk-ppt-2[data-v-1bfggbjt], .ai-ui-sdk-icon.ai-ui-sdk-markdown[data-v-1bfggbjt] {
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] {
6
6
  color: #3A84FF;
7
7
  }
8
- .ai-ui-sdk-icon.ai-ui-sdk-folder-fill[data-v-1bfggbjt] {
8
+ .ai-ui-sdk-icon.ai-ui-sdk-folder-fill[data-v-7snu34ak] {
9
9
  color: #C4C6CC;
10
10
  }
11
- .ai-ui-sdk-icon.ai-ui-sdk-excel[data-v-1bfggbjt] {
11
+ .ai-ui-sdk-icon.ai-ui-sdk-excel[data-v-7snu34ak] {
12
12
  color: #2DCB56;
13
13
  }
14
- .ai-ui-sdk-icon.ai-ui-sdk-wangye[data-v-1bfggbjt] {
14
+ .ai-ui-sdk-icon.ai-ui-sdk-wangye[data-v-7snu34ak] {
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-1bfggbjt";
2
+ script.__scopeId = "data-v-7snu34ak";
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-2uwmgoat] {
2
+ .header-home[data-v-m8f7xl3b] {
3
3
  width: 100%;
4
4
  background: #FFFFFF;
5
5
  box-shadow: 0 3px 4px 0 #0000000a;
6
6
  }
7
- .render-tab[data-v-2uwmgoat] {
7
+ .render-tab[data-v-m8f7xl3b] {
8
8
  border-bottom: 2px solid transparent;
9
9
  }
10
- .render-tab.active[data-v-2uwmgoat] {
10
+ .render-tab.active[data-v-m8f7xl3b] {
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-2uwmgoat";
2
+ script.__scopeId = "data-v-m8f7xl3b";
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-gzfmddtl] {
2
+ .dislike-icon[data-v-a34m3fgv] {
3
3
  transform: rotateX(180deg);
4
4
  }
5
- .option-items[data-v-gzfmddtl] {
5
+ .option-items[data-v-a34m3fgv] {
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-gzfmddtl]:hover {
11
+ .option-items[data-v-a34m3fgv]:hover {
12
12
  background-color: #E1ECFF;
13
13
  color: #3A84FF;
14
14
  }
15
- .option-items-selected[data-v-gzfmddtl]{
15
+ .option-items-selected[data-v-a34m3fgv]{
16
16
  background-color: #E1ECFF;
17
17
  }
18
- [data-v-gzfmddtl] .bk-form-item {
18
+ [data-v-a34m3fgv] .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-gzfmddtl";
2
+ script.__scopeId = "data-v-a34m3fgv";
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-hx27auis] {
2
+ .router-tab[data-v-tg2k1ztp] {
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-hx27auis] {
9
+ .router-tab a[data-v-tg2k1ztp] {
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-hx27auis] {
18
+ .router-tab a.router-link-exact-active[data-v-tg2k1ztp] {
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-hx27auis";
2
+ script.__scopeId = "data-v-tg2k1ztp";
3
3
  script.__file = "./src/components/render-router-tab/index.vue";
4
4
  import './index.vue.css';
5
5
  export default script;
@@ -119,6 +119,7 @@ export default /*@__PURE__*/ _defineComponent({
119
119
  const _component_bk_search_select = _resolveComponent("bk-search-select");
120
120
  return _openBlock(), _createBlock(_component_bk_search_select, {
121
121
  "unique-select": "",
122
+ "value-behavior": "need-key",
122
123
  "model-value": renderValue.value,
123
124
  data: _ctx.data,
124
125
  placeholder: _ctx.placeholder,
@@ -1,12 +1,12 @@
1
1
 
2
- .t-t-pagination[data-v-dswtt8f9] {
2
+ .t-t-pagination[data-v-9zuv4jjd] {
3
3
  position: relative;
4
4
  padding: 16px 16px 0 16px;
5
5
  }
6
- .t-t-pagination[data-v-dswtt8f9] .bk-pagination-list.is-last {
6
+ .t-t-pagination[data-v-9zuv4jjd] .bk-pagination-list.is-last {
7
7
  margin-left: auto;
8
8
  }
9
- .pagination-loading[data-v-dswtt8f9]::after {
9
+ .pagination-loading[data-v-9zuv4jjd]::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-dswtt8f9] {
19
+ .t-t-table[data-v-9zuv4jjd] {
20
20
  display: inline;
21
21
  font-size: 12px;
22
22
  }
23
- .t-t-table[data-v-dswtt8f9] .t-table__th-cell-inner {
23
+ .t-t-table[data-v-9zuv4jjd] .t-table__th-cell-inner {
24
24
  color: #313238;
25
25
  }
26
- .t-t-table[data-v-dswtt8f9] th {
26
+ .t-t-table[data-v-9zuv4jjd] th {
27
27
  padding: 0 16px;
28
28
  height: 42px;
29
29
  background-color: #FAFBFD !important;
30
30
  }
31
- .t-t-table[data-v-dswtt8f9] .t-table__body tr {
31
+ .t-t-table[data-v-9zuv4jjd] .t-table__body tr {
32
32
  color: #63656e;
33
33
  font-size: 12px;
34
34
  }
35
- .t-t-table[data-v-dswtt8f9] .t-table__body tr td {
35
+ .t-t-table[data-v-9zuv4jjd] .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-dswtt8f9] .t-table__body tr:hover td {
40
+ .t-t-table[data-v-9zuv4jjd] .t-table__body tr:hover td {
41
41
  background-color: #f5f7fa !important;
42
42
  color: #63656E;
43
43
  }
44
- .t-t-table[data-v-dswtt8f9] .t-table__content .t-table__body .t-table__empty-row {
44
+ .t-t-table[data-v-9zuv4jjd] .t-table__content .t-table__body .t-table__empty-row {
45
45
  background-color: #fff !important;
46
46
  }
47
- .t-t-table[data-v-dswtt8f9] .t-table__content .t-table__body .t-table__empty-row >td {
47
+ .t-t-table[data-v-9zuv4jjd] .t-table__content .t-table__body .t-table__empty-row >td {
48
48
  border: none;
49
49
  }
50
- .t-t-table[data-v-dswtt8f9] th .t-table__ellipsis {
50
+ .t-t-table[data-v-9zuv4jjd] th .t-table__ellipsis {
51
51
  width: auto !important;
52
52
  }
53
- .t-t-table[data-v-dswtt8f9] .t-loading__gradient.t-icon-loading {
53
+ .t-t-table[data-v-9zuv4jjd] .t-loading__gradient.t-icon-loading {
54
54
  display: none;
55
55
  }
56
- .t-t-table[data-v-dswtt8f9]:first-of-type .t-table__affixed-header-elm-wrap{
56
+ .t-t-table[data-v-9zuv4jjd]:first-of-type .t-table__affixed-header-elm-wrap{
57
57
  width: calc(100% - 6px) !important;
58
58
  }
59
- .t-t-table[data-v-dswtt8f9] .t-table__affixed-header-elm-wrap>div {
59
+ .t-t-table[data-v-9zuv4jjd] .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-dswtt8f9] .t-table--layout-fixed{
63
+ .t-t-table[data-v-9zuv4jjd] .t-table--layout-fixed{
64
64
  width: 100% !important;
65
65
  }
66
- .t-t-table[data-v-dswtt8f9] .bk-exception-description{
66
+ .t-t-table[data-v-9zuv4jjd] .bk-exception-description{
67
67
  margin-bottom: 0;
68
68
  }
69
- .t-t-table[data-v-dswtt8f9] .t-table__content{
69
+ .t-t-table[data-v-9zuv4jjd] .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-dswtt8f9] .t-table__content::-webkit-scrollbar {
74
+ .t-t-table[data-v-9zuv4jjd] .t-table__content::-webkit-scrollbar {
75
75
  width: 6px;
76
76
  height: 6px;
77
77
  }
78
- .t-t-table[data-v-dswtt8f9] .t-table__content::-webkit-scrollbar-thumb {
78
+ .t-t-table[data-v-9zuv4jjd] .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-dswtt8f9] .t-table__content::-webkit-scrollbar-thumb:hover {
84
+ .t-t-table[data-v-9zuv4jjd] .t-table__content::-webkit-scrollbar-thumb:hover {
85
85
  background-color: #979ba5;
86
86
  }
87
- .t-t-table[data-v-dswtt8f9] .t-table__ellipsis.t-text-ellipsis:has(.checkbox){
87
+ .t-t-table[data-v-9zuv4jjd] .t-table__ellipsis.t-text-ellipsis:has(.checkbox){
88
88
  line-height: 100%;
89
89
  }
90
- .t-t-table[data-v-dswtt8f9] .t-table__cell--sort-trigger.t-table__double-icons{
90
+ .t-t-table[data-v-9zuv4jjd] .t-table__cell--sort-trigger.t-table__double-icons{
91
91
  gap: 5px;
92
92
  }
93
- .t-t-table[data-v-dswtt8f9] .t-table__sort-icon--active>i{
93
+ .t-t-table[data-v-9zuv4jjd] .t-table__sort-icon--active>i{
94
94
  color: #3a84ff !important;
95
95
  }
96
- .t-t-table[data-v-dswtt8f9] .t-table__cell--fixed-left:has(.checkbox){
96
+ .t-t-table[data-v-9zuv4jjd] .t-table__cell--fixed-left:has(.checkbox){
97
97
  line-height: 100%;
98
98
  }
99
99
 
@@ -104,6 +104,9 @@
104
104
  box-shadow: 0 0 6px #dcdee5;
105
105
  color: #26323d;
106
106
  }
107
+ .t-table-dialog .t-checkbox-group .t-checkbox .bkaidev-shezhi {
108
+ display: none;
109
+ }
107
110
  .t-table-dialog .t-table-dialog-header {
108
111
  margin: 24px;
109
112
  font-weight: 400;
@@ -1,5 +1,5 @@
1
1
  import script from './index.script.vue.js';
2
- script.__scopeId = "data-v-dswtt8f9";
2
+ script.__scopeId = "data-v-9zuv4jjd";
3
3
  script.__file = "./src/components/render-t-table/index.vue";
4
4
  import './index.vue.css';
5
5
  export default script;
@@ -55,7 +55,10 @@ export default /*@__PURE__*/ _defineComponent({
55
55
  groupType: {},
56
56
  generateType: {},
57
57
  apiPrefix: {},
58
- spaceId: {}
58
+ spaceId: {},
59
+ isMarket: {
60
+ type: Boolean
61
+ }
59
62
  },
60
63
  emits: [
61
64
  "update:tag-id",
@@ -64,7 +67,7 @@ export default /*@__PURE__*/ _defineComponent({
64
67
  setup (__props, { expose: __expose, emit: __emit }) {
65
68
  const props = __props;
66
69
  const emit = __emit;
67
- const { getTagTree } = useCommonHttp(props.apiPrefix, toRef(props, 'spaceId'));
70
+ const { getTagTree, getMarketTagTree } = useCommonHttp(props.apiPrefix, toRef(props, 'spaceId'));
68
71
  const isExistNoTags = ref(false);
69
72
  const loadingTagsTree = ref(false);
70
73
  const openedIds = ref([]);
@@ -86,9 +89,6 @@ export default /*@__PURE__*/ _defineComponent({
86
89
  };
87
90
  const handleUpdateTagName = (tagName)=>{
88
91
  emit('update:tagName', tagName);
89
- if (tagName) {
90
- emit('update:tag-id', undefined);
91
- }
92
92
  };
93
93
  // 设置搜索命中的展开节点
94
94
  const handleSetSearchOpenedIds = (datas, search)=>{
@@ -118,29 +118,45 @@ export default /*@__PURE__*/ _defineComponent({
118
118
  };
119
119
  // 获取标签树列表
120
120
  const handleGetTagsTree = ()=>{
121
- getTagTree.abort();
122
- loadingTagsTree.value = true;
123
- getTagTree(props.module, props.subModule, props.tagName, props.groupType, props.generateType).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
- });
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
+ }
133
141
  };
134
142
  watch(()=>[
135
143
  props.groupType,
136
144
  props.spaceId,
137
145
  props.generateType
138
- ], handleGetTagsTree, {
146
+ ], ()=>{
147
+ if (props.tagName) {
148
+ handleUpdateTagName('');
149
+ } else {
150
+ handleGetTagsTree();
151
+ handleUpdateTagId(undefined);
152
+ }
153
+ }, {
139
154
  immediate: true
140
155
  });
141
156
  watch(()=>props.tagName, function() {
142
157
  var _ref = _async_to_generator(function*(val) {
143
158
  yield handleGetTagsTree();
159
+ handleUpdateTagId(undefined);
144
160
  handleSetSearchOpenedIds(tags.value, val);
145
161
  });
146
162
  return function(val) {
@@ -1,27 +1,27 @@
1
1
 
2
- .tag-tree[data-v-dhdmge1w] {
2
+ .tag-tree[data-v-ig41fzsm] {
3
3
  font-size: 12px;
4
4
  height: auto;
5
5
  }
6
- .tag-tree .manage-tree-item[data-v-dhdmge1w] {
6
+ .tag-tree .manage-tree-item[data-v-ig41fzsm] {
7
7
  height: 32px;
8
8
  flex: 1;
9
9
  }
10
- .tag-tree .quick-icon[data-v-dhdmge1w] {
10
+ .tag-tree .quick-icon[data-v-ig41fzsm] {
11
11
  margin-left: -24px;
12
12
  padding-left: 8px;
13
13
  }
14
- .tag-tree[data-v-dhdmge1w] .tree-item:has(.bottom-line) {
14
+ .tag-tree[data-v-ig41fzsm] .tree-item:has(.bottom-line) {
15
15
  border-bottom: 1px solid #F0F1F5;
16
16
  }
17
- .tag-tree[data-v-dhdmge1w] .tree-item.active .quick-icon {
17
+ .tag-tree[data-v-ig41fzsm] .tree-item.active .quick-icon {
18
18
  color: #3A84FF;
19
19
  }
20
- .tag-tree[data-v-dhdmge1w] .tree-item.active .tag-number {
20
+ .tag-tree[data-v-ig41fzsm] .tree-item.active .tag-number {
21
21
  background: #A3C5FD;
22
22
  color: #fff;
23
23
  }
24
- .tag-number[data-v-dhdmge1w] {
24
+ .tag-number[data-v-ig41fzsm] {
25
25
  line-height: 16px;
26
26
  padding: 0 4px;
27
27
  background-color: #F0F1F5;
@@ -8,6 +8,7 @@ interface IProps {
8
8
  generateType?: EnumCharacter;
9
9
  apiPrefix: string;
10
10
  spaceId?: string;
11
+ isMarket?: boolean;
11
12
  }
12
13
  interface IExpose {
13
14
  handleGetTagsTree: () => void;
@@ -1,5 +1,5 @@
1
1
  import script from './index.script.vue.js.js';
2
- script.__scopeId = "data-v-dhdmge1w";
2
+ script.__scopeId = "data-v-ig41fzsm";
3
3
  script.__file = "./src/components/render-tag-tree/index.vue";
4
4
  import './index.vue.css';
5
5
  export default script;
@@ -7,6 +7,7 @@ import RenderDataset from './components/render-dataset/index.vue';
7
7
  import RenderDatasetDetail from './components/render-dataset-detail/index.vue';
8
8
  import RenderDatasetDetailOriginData from './components/render-dataset-detail-origin-data/index.vue';
9
9
  import RenderDatasetList from './components/render-dataset-list/index.vue';
10
+ import RenderDropdown from './components/render-dropdown/index.vue';
10
11
  import RenderHeader from './components/render-header/index.vue';
11
12
  import RenderLike from './components/render-like/index.vue';
12
13
  import RenderMarkdown from './components/render-markdown/mark-down';
@@ -15,4 +16,4 @@ import RenderSearchSelect from './components/render-search-select/index.vue';
15
16
  import RenderTTable from './components/render-t-table/index.vue';
16
17
  import RenderTagTree from './components/render-tag-tree/index.vue';
17
18
  import RenderTree from './components/render-tree/index.vue';
18
- export { renderAuthDialog, RenderAutoRefresh, RenderDataset, RenderDatasetDetail, RenderDatasetList, RenderHeader, RenderAutoHeightTextarea, RenderDatasetDetailOriginData, RenderCheckbox, RenderChooseTag, RenderMarkdown, RenderSearchEmpty, RenderSearchSelect, RenderLike, RenderTree, RenderTagTree, RenderTTable, };
19
+ export { renderAuthDialog, RenderAutoRefresh, RenderDataset, RenderDatasetDetail, RenderDatasetList, RenderHeader, RenderAutoHeightTextarea, RenderDatasetDetailOriginData, RenderCheckbox, RenderChooseTag, RenderMarkdown, RenderSearchEmpty, RenderSearchSelect, RenderLike, RenderTree, RenderTagTree, RenderTTable, RenderDropdown, };
@@ -8,6 +8,7 @@ import RenderDataset from './components/render-dataset/index.vue.js';
8
8
  import RenderDatasetDetail from './components/render-dataset-detail/index.vue.js';
9
9
  import RenderDatasetDetailOriginData from './components/render-dataset-detail-origin-data/index.vue.js';
10
10
  import RenderDatasetList from './components/render-dataset-list/index.vue.js';
11
+ import RenderDropdown from './components/render-dropdown/index.vue.js';
11
12
  import RenderHeader from './components/render-header/index.vue.js';
12
13
  import RenderLike from './components/render-like/index.vue.js';
13
14
  import RenderMarkdown from './components/render-markdown/mark-down.ts.js';
@@ -16,4 +17,4 @@ import RenderSearchSelect from './components/render-search-select/index.vue.js';
16
17
  import RenderTTable from './components/render-t-table/index.vue.js';
17
18
  import RenderTagTree from './components/render-tag-tree/index.vue.js';
18
19
  import RenderTree from './components/render-tree/index.vue.js';
19
- export { renderAuthDialog, RenderAutoRefresh, RenderDataset, RenderDatasetDetail, RenderDatasetList, RenderHeader, RenderAutoHeightTextarea, RenderDatasetDetailOriginData, RenderCheckbox, RenderChooseTag, RenderMarkdown, RenderSearchEmpty, RenderSearchSelect, RenderLike, RenderTree, RenderTagTree, RenderTTable };
20
+ export { renderAuthDialog, RenderAutoRefresh, RenderDataset, RenderDatasetDetail, RenderDatasetList, RenderHeader, RenderAutoHeightTextarea, RenderDatasetDetailOriginData, RenderCheckbox, RenderChooseTag, RenderMarkdown, RenderSearchEmpty, RenderSearchSelect, RenderLike, RenderTree, RenderTagTree, RenderTTable, RenderDropdown };
@@ -33,6 +33,10 @@
33
33
  align-items: flex-start !important;
34
34
  }
35
35
 
36
+ .g-align-end {
37
+ align-items: end;
38
+ }
39
+
36
40
  .g-align-self-center {
37
41
  align-self: center !important;
38
42
  }
@@ -1003,9 +1007,17 @@
1003
1007
  }
1004
1008
 
1005
1009
  .g-z-index-9999 {
1006
- z-index: 9999;
1010
+ z-index: 9999 !important;
1007
1011
  }
1008
1012
 
1009
1013
  .g-fill-current-color {
1010
1014
  fill: currentColor;
1011
1015
  }
1016
+
1017
+ .g-line-clamp-3 {
1018
+ display: -webkit-box !important;
1019
+ -webkit-box-orient: vertical !important;
1020
+ -webkit-line-clamp: 3 !important;
1021
+ overflow: hidden !important;
1022
+ word-break: break-word;
1023
+ }
@@ -5,4 +5,8 @@ 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
+ };
8
12
  };
@@ -1,7 +1,7 @@
1
1
  import fetch, { withAbort } from '../http/fetch/index.ts.js';
2
2
  import { transferTagTreeApiToTagTree } from '../http/helper/common.ts.js';
3
3
  export const useCommonHttp = (apiPrefix, spaceId)=>{
4
- // 获取标签树
4
+ // 获取资源标签树
5
5
  const getTagTree = withAbort((signal, module, subModule, tagName, groupType, generateType)=>fetch.get(`${apiPrefix}/${module}/v1/${subModule}/tag_tree/`, {
6
6
  tag_name: tagName,
7
7
  group_type: groupType,
@@ -12,7 +12,17 @@ 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)));
15
24
  return {
16
- getTagTree
25
+ getTagTree,
26
+ getMarketTagTree
17
27
  };
18
28
  };