@blueking/ai-ui-sdk 0.1.19-beta.17 → 0.1.19-beta.19

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 (84) hide show
  1. package/dist/components/render-auth/auth-dialog.script.vue.js.js +26 -25
  2. package/dist/components/render-auto-height-textarea/index.vue.css +11 -11
  3. package/dist/components/render-auto-height-textarea/index.vue.js +1 -1
  4. package/dist/components/render-auto-refresh/index.vue.css +8 -8
  5. package/dist/components/render-auto-refresh/index.vue.js +1 -1
  6. package/dist/components/render-checkbox/index.vue.css +9 -9
  7. package/dist/components/render-checkbox/index.vue.js +1 -1
  8. package/dist/components/render-choose-tag/index.script.vue.js.js +3 -3
  9. package/dist/components/render-choose-tag/index.vue.css +7 -7
  10. package/dist/components/render-choose-tag/index.vue.js +1 -1
  11. package/dist/components/render-collapse/index.vue.css +2 -2
  12. package/dist/components/render-collapse/index.vue.js +1 -1
  13. package/dist/components/render-dataset/components/dataset-data-tool-icons/index.script.vue.js +1 -1
  14. package/dist/components/render-dataset/components/edit-dataset-data/index.vue.css +3 -3
  15. package/dist/components/render-dataset/components/edit-dataset-data/index.vue.js +1 -1
  16. package/dist/components/render-dataset/components/operation-record/index.vue.css +4 -4
  17. package/dist/components/render-dataset/components/operation-record/index.vue.js +1 -1
  18. package/dist/components/render-dataset/components/operation-record/table/index.script.vue.js +165 -0
  19. package/dist/components/render-dataset/components/operation-record/table/index.vue.css +1 -1
  20. package/dist/components/render-dataset/components/operation-record/table/index.vue.js +2 -2
  21. package/dist/components/render-dataset/components/operation-record/view-op-result/index.vue.css +2 -2
  22. package/dist/components/render-dataset/components/operation-record/view-op-result/index.vue.js +1 -1
  23. package/dist/components/render-dataset/components/plus-dataset/dataset-form.script.vue.js +20 -42
  24. package/dist/components/render-dataset/components/plus-dataset/index.vue.css +2 -2
  25. package/dist/components/render-dataset/components/plus-dataset/index.vue.js +1 -1
  26. package/dist/components/render-dataset/components/plus-dataset-data/form/api.script.vue.js.js +21 -29
  27. package/dist/components/render-dataset/components/plus-dataset-data/form/api.vue.css +2 -2
  28. package/dist/components/render-dataset/components/plus-dataset-data/form/api.vue.js +1 -1
  29. package/dist/components/render-dataset/components/plus-dataset-data/form/footer.vue.css +1 -1
  30. package/dist/components/render-dataset/components/plus-dataset-data/form/footer.vue.js +1 -1
  31. package/dist/components/render-dataset/components/plus-dataset-data/form/index.vue.css +2 -2
  32. package/dist/components/render-dataset/components/plus-dataset-data/form/index.vue.js +1 -1
  33. package/dist/components/render-dataset/components/plus-dataset-data/index.script.vue.js.js +6 -1
  34. package/dist/components/render-dataset/components/plus-dataset-data/index.vue.d.ts +1 -0
  35. package/dist/components/render-dataset/components/review-dataset-data/index.vue.css +10 -10
  36. package/dist/components/render-dataset/components/review-dataset-data/index.vue.js +1 -1
  37. package/dist/components/render-dataset-detail-origin-data/components/table/index.script.vue.js +230 -388
  38. package/dist/components/render-dataset-detail-origin-data/components/table/index.vue.d.ts +3 -1
  39. package/dist/components/render-dataset-detail-origin-data/index.script.vue.js.js +7 -6
  40. package/dist/components/render-dataset-detail-origin-data/index.vue.css +3 -3
  41. package/dist/components/render-dataset-detail-origin-data/index.vue.js +1 -1
  42. package/dist/components/render-dataset-list/components/main.script.vue.js.js +6 -5
  43. package/dist/components/render-dataset-list/components/main.vue.css +3 -3
  44. package/dist/components/render-dataset-list/components/main.vue.js +1 -1
  45. package/dist/components/render-dataset-list/components/table.script.vue.js +406 -0
  46. package/dist/components/render-dataset-list/components/table.vue.d.ts +2 -0
  47. package/dist/components/render-dataset-list/components/table.vue.js +1 -1
  48. package/dist/components/render-dataset-list/index.vue.css +4 -1
  49. package/dist/components/render-dataset-list/index.vue.js +1 -1
  50. package/dist/components/render-file-card/index.script.vue.js.js +1 -1
  51. package/dist/components/render-file-card/index.vue.css +11 -11
  52. package/dist/components/render-file-card/index.vue.js +1 -1
  53. package/dist/components/render-file-type-icon/index.vue.css +5 -5
  54. package/dist/components/render-file-type-icon/index.vue.js +1 -1
  55. package/dist/components/render-header/index.vue.css +3 -3
  56. package/dist/components/render-header/index.vue.js +1 -1
  57. package/dist/components/render-like/index.vue.css +5 -5
  58. package/dist/components/render-like/index.vue.js +1 -1
  59. package/dist/components/render-router-tab/index.vue.css +3 -3
  60. package/dist/components/render-router-tab/index.vue.js +1 -1
  61. package/dist/components/render-search-empty/index.script.vue.js.js +1 -1
  62. package/dist/components/render-t-table/index.script.vue.js +5 -2
  63. package/dist/components/render-t-table/index.vue.css +19 -19
  64. package/dist/components/render-t-table/index.vue.d.ts +1 -0
  65. package/dist/components/render-t-table/index.vue.js +1 -1
  66. package/dist/components/render-tag-tree/index.script.vue.js.js +4 -0
  67. package/dist/components/render-tag-tree/index.vue.css +7 -7
  68. package/dist/components/render-tag-tree/index.vue.js +1 -1
  69. package/dist/css/tailwind.css +71 -6
  70. package/dist/hooks/use-common-http.d.ts +4 -1
  71. package/dist/hooks/use-common-http.ts.js +5 -4
  72. package/dist/hooks/use-dataset-http.d.ts +2 -2
  73. package/dist/hooks/use-dataset-http.ts.js +6 -4
  74. package/dist/hooks/use-ellipsis-tooltip.ts.js +6 -3
  75. package/dist/hooks/use-meta-http.d.ts +2 -2
  76. package/dist/hooks/use-meta-http.ts.js +6 -4
  77. package/dist/http/helper/common.ts.js +4 -4
  78. package/dist/http/helper/dataset.ts.js +1 -1
  79. package/dist/http/helper/knowledge.ts.js +2 -1
  80. package/dist/http/helper/tool.ts.js +1 -0
  81. package/dist/types/common.d.ts +7 -1
  82. package/package.json +1 -1
  83. package/dist/components/render-dataset/components/operation-record/table/index.script.vue.js.js +0 -226
  84. package/dist/components/render-dataset-list/components/table.script.vue.js.js +0 -590
@@ -1,21 +1,21 @@
1
1
 
2
- .upload-file-home[data-v-d28s9a4m] {
2
+ .upload-file-home[data-v-njr5mmim] {
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-d28s9a4m]:hover {
9
+ .upload-file-home[data-v-njr5mmim]:hover {
10
10
  border: 1px solid #3A84FF;
11
11
  }
12
- .upload-file-home:hover .file-icons[data-v-d28s9a4m] {
12
+ .upload-file-home:hover .file-icons[data-v-njr5mmim] {
13
13
  display: flex;
14
14
  }
15
- .upload-file-home .file-icon[data-v-d28s9a4m] {
15
+ .upload-file-home .file-icon[data-v-njr5mmim] {
16
16
  font-size: 32px;
17
17
  }
18
- .upload-file-home .file-content[data-v-d28s9a4m] {
18
+ .upload-file-home .file-content[data-v-njr5mmim] {
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-d28s9a4m] {
26
+ .upload-file-home .file-content .file-name[data-v-njr5mmim] {
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-d28s9a4m] {
31
+ .upload-file-home .file-content .file-size[data-v-njr5mmim] {
32
32
  font-size: 12px;
33
33
  color: #979BA5;
34
34
  line-height: 20px;
35
35
  }
36
- .upload-file-home .file-icons[data-v-d28s9a4m] {
36
+ .upload-file-home .file-icons[data-v-njr5mmim] {
37
37
  display: none;
38
38
  color: #979BA5;
39
39
  }
40
- .upload-file-home .file-icons .bkaidev-icon[data-v-d28s9a4m] {
40
+ .upload-file-home .file-icons .bkaidev-icon[data-v-njr5mmim] {
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-d28s9a4m]:hover {
45
+ .upload-file-home .file-icons .bkaidev-icon[data-v-njr5mmim]:hover {
46
46
  color: #3A84FF;
47
47
  }
48
- .upload-file-home .file-icons .bkaidev-delete[data-v-d28s9a4m] {
48
+ .upload-file-home .file-icons .bkaidev-delete[data-v-njr5mmim] {
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-d28s9a4m";
2
+ script.__scopeId = "data-v-njr5mmim";
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-8dmc01ov] {
2
+ .ai-ui-sdk-icon.ai-ui-sdk-pdf[data-v-kybnf5uq] {
3
3
  color: #EA3636;
4
4
  }
5
- .ai-ui-sdk-icon.ai-ui-sdk-doc-2[data-v-8dmc01ov], .ai-ui-sdk-icon.ai-ui-sdk-ppt-2[data-v-8dmc01ov], .ai-ui-sdk-icon.ai-ui-sdk-markdown[data-v-8dmc01ov] {
5
+ .ai-ui-sdk-icon.ai-ui-sdk-doc-2[data-v-kybnf5uq], .ai-ui-sdk-icon.ai-ui-sdk-ppt-2[data-v-kybnf5uq], .ai-ui-sdk-icon.ai-ui-sdk-markdown[data-v-kybnf5uq] {
6
6
  color: #3A84FF;
7
7
  }
8
- .ai-ui-sdk-icon.ai-ui-sdk-folder-fill[data-v-8dmc01ov] {
8
+ .ai-ui-sdk-icon.ai-ui-sdk-folder-fill[data-v-kybnf5uq] {
9
9
  color: #C4C6CC;
10
10
  }
11
- .ai-ui-sdk-icon.ai-ui-sdk-excel[data-v-8dmc01ov] {
11
+ .ai-ui-sdk-icon.ai-ui-sdk-excel[data-v-kybnf5uq] {
12
12
  color: #2DCB56;
13
13
  }
14
- .ai-ui-sdk-icon.ai-ui-sdk-wangye[data-v-8dmc01ov] {
14
+ .ai-ui-sdk-icon.ai-ui-sdk-wangye[data-v-kybnf5uq] {
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-8dmc01ov";
2
+ script.__scopeId = "data-v-kybnf5uq";
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-0rk9h9h3] {
2
+ .header-home[data-v-qo685zoe] {
3
3
  width: 100%;
4
4
  background: #FFFFFF;
5
5
  box-shadow: 0 3px 4px 0 #0000000a;
6
6
  }
7
- .render-tab[data-v-0rk9h9h3] {
7
+ .render-tab[data-v-qo685zoe] {
8
8
  border-bottom: 2px solid transparent;
9
9
  }
10
- .render-tab.active[data-v-0rk9h9h3] {
10
+ .render-tab.active[data-v-qo685zoe] {
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-0rk9h9h3";
2
+ script.__scopeId = "data-v-qo685zoe";
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-uaiwa9gg] {
2
+ .dislike-icon[data-v-beu0m4xp] {
3
3
  transform: rotateX(180deg);
4
4
  }
5
- .option-items[data-v-uaiwa9gg] {
5
+ .option-items[data-v-beu0m4xp] {
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-uaiwa9gg]:hover {
11
+ .option-items[data-v-beu0m4xp]:hover {
12
12
  background-color: #E1ECFF;
13
13
  color: #3A84FF;
14
14
  }
15
- .option-items-selected[data-v-uaiwa9gg]{
15
+ .option-items-selected[data-v-beu0m4xp]{
16
16
  background-color: #E1ECFF;
17
17
  }
18
- [data-v-uaiwa9gg] .bk-form-item {
18
+ [data-v-beu0m4xp] .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-uaiwa9gg";
2
+ script.__scopeId = "data-v-beu0m4xp";
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-l0q6tv82] {
2
+ .router-tab[data-v-un8f5i2c] {
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-l0q6tv82] {
9
+ .router-tab a[data-v-un8f5i2c] {
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-l0q6tv82] {
18
+ .router-tab a.router-link-exact-active[data-v-un8f5i2c] {
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-l0q6tv82";
2
+ script.__scopeId = "data-v-un8f5i2c";
3
3
  script.__file = "./src/components/render-router-tab/index.vue";
4
4
  import './index.vue.css';
5
5
  export default script;
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as _defineComponent } from 'vue';
2
2
  import { unref as _unref, resolveComponent as _resolveComponent, normalizeClass as _normalizeClass, createVNode as _createVNode, createElementVNode as _createElementVNode, createTextVNode as _createTextVNode, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode } from "vue";
3
3
  const _hoisted_1 = {
4
- class: "g-flex-column g-mb-40"
4
+ class: "g-flex-column g-align-center g-mb-40"
5
5
  };
6
6
  const _hoisted_2 = {
7
7
  key: 0,
@@ -23,7 +23,10 @@ export default /*@__PURE__*/ _defineComponent({
23
23
  containerHeight: {},
24
24
  search: {},
25
25
  rowClassName: {},
26
- rowKey: {}
26
+ rowKey: {},
27
+ rowHeight: {
28
+ default: 'g-height-32'
29
+ }
27
30
  },
28
31
  emits: [
29
32
  "sort-change",
@@ -38,7 +41,7 @@ export default /*@__PURE__*/ _defineComponent({
38
41
  setup (__props, { emit: __emit }) {
39
42
  const props = __props;
40
43
  const emits = __emit;
41
- const rowHeight = ref('g-height-32');
44
+ const rowHeight = ref(props.rowHeight);
42
45
  const columnControllerVisible = ref(false);
43
46
  const getDefaultColumns = ()=>{
44
47
  // 只要有一项配置了 defaultShow 则需要列配置按钮
@@ -1,68 +1,68 @@
1
1
 
2
- .t-t-pagination[data-v-65aao9ar] {
2
+ .t-t-pagination[data-v-qkzuso6f] {
3
3
  position: sticky;
4
4
  bottom: 0;
5
5
  }
6
- .t-t-pagination[data-v-65aao9ar] .bk-pagination-list.is-last {
6
+ .t-t-pagination[data-v-qkzuso6f] .bk-pagination-list.is-last {
7
7
  margin-left: auto;
8
8
  }
9
- .t-t-table[data-v-65aao9ar] {
9
+ .t-t-table[data-v-qkzuso6f] {
10
10
  display: inline;
11
11
  height: calc(100% - 64px);
12
12
  }
13
- .t-t-table[data-v-65aao9ar] .t-table__affixed-header-elm-wrap{
13
+ .t-t-table[data-v-qkzuso6f] .t-table__affixed-header-elm-wrap{
14
14
  width: 100% !important;
15
15
  top: -2px;
16
16
  }
17
- .t-t-table[data-v-65aao9ar] .t-table__affixed-header-elm-wrap>div {
17
+ .t-t-table[data-v-qkzuso6f] .t-table__affixed-header-elm-wrap>div {
18
18
  width: 100% !important;
19
19
  top: -2px;
20
20
  scrollbar-width: none;
21
21
  }
22
- .t-t-table[data-v-65aao9ar] .t-table--layout-fixed{
22
+ .t-t-table[data-v-qkzuso6f] .t-table--layout-fixed{
23
23
  width: 100% !important;
24
24
  }
25
- .t-t-table[data-v-65aao9ar] .bk-exception-description{
25
+ .t-t-table[data-v-qkzuso6f] .bk-exception-description{
26
26
  margin-bottom: 0;
27
27
  }
28
- .t-t-table[data-v-65aao9ar] .t-table--layout-fixed .t-table__header{
28
+ .t-t-table[data-v-qkzuso6f] .t-table--layout-fixed .t-table__header{
29
29
  position: sticky;
30
30
  top: -4px;
31
31
  }
32
- .t-t-table[data-v-65aao9ar] .t-table__content{
32
+ .t-t-table[data-v-qkzuso6f] .t-table__content{
33
33
  z-index: 2;
34
34
  max-height: 100%;
35
35
  overflow: auto;
36
36
  }
37
- .t-t-table[data-v-65aao9ar] .t-table__content::-webkit-scrollbar {
37
+ .t-t-table[data-v-qkzuso6f] .t-table__content::-webkit-scrollbar {
38
38
  width: 6px;
39
39
  height: 6px;
40
40
  }
41
- .t-t-table[data-v-65aao9ar] .t-table__content::-webkit-scrollbar-thumb {
41
+ .t-t-table[data-v-qkzuso6f] .t-table__content::-webkit-scrollbar-thumb {
42
42
  width: 6px;
43
43
  height: 6px;
44
44
  border-radius: 3px;
45
45
  background-color: #dcdee5;
46
46
  }
47
- .t-t-table[data-v-65aao9ar] .t-table__content::-webkit-scrollbar-thumb:hover {
47
+ .t-t-table[data-v-qkzuso6f] .t-table__content::-webkit-scrollbar-thumb:hover {
48
48
  background-color: #979ba5;
49
49
  }
50
- .t-t-table[data-v-65aao9ar] .t-table__ellipsis.t-text-ellipsis:has(.checkbox){
50
+ .t-t-table[data-v-qkzuso6f] .t-table__ellipsis.t-text-ellipsis:has(.checkbox){
51
51
  line-height: 100%;
52
52
  }
53
- .t-t-table[data-v-65aao9ar] .t-table__cell--sort-trigger.t-table__double-icons{
53
+ .t-t-table[data-v-qkzuso6f] .t-table__cell--sort-trigger.t-table__double-icons{
54
54
  gap: 5px;
55
55
  }
56
- .t-t-table[data-v-65aao9ar] .t-table__sort-icon--active>i{
56
+ .t-t-table[data-v-qkzuso6f] .t-table__sort-icon--active>i{
57
57
  color: #3a84ff !important;
58
58
  }
59
- .t-t-table[data-v-65aao9ar] .t-table__cell--fixed-left:has(.checkbox){
59
+ .t-t-table[data-v-qkzuso6f] .t-table__cell--fixed-left:has(.checkbox){
60
60
  line-height: 100%;
61
61
  }
62
62
 
63
63
 
64
64
  .t-table-dialog {
65
- padding: 0px;
65
+ padding: 0px !important;
66
66
  border-radius: 0px;
67
67
  box-shadow: 0 0 6px #dcdee5;
68
68
  color: #26323d;
@@ -91,8 +91,8 @@
91
91
  .t-table-dialog .t-table__column-controller-block {
92
92
  justify-content: end;
93
93
  display: flex;
94
- border: none;
95
- padding: 0;
94
+ border: none !important;
95
+ padding: 0 !important;
96
96
  }
97
97
  .t-table-dialog .t-table__column-controller-desc {
98
98
  font-size: 14px;
@@ -10,6 +10,7 @@ declare const __VLS_export: <T, S>(__VLS_props: NonNullable<Awaited<typeof __VLS
10
10
  search?: S;
11
11
  rowClassName?: string | string[] | Record<string, boolean> | ((row: T, index: number) => string | number | string[] | Record<string, boolean>);
12
12
  rowKey: string;
13
+ rowHeight?: string;
13
14
  } & {
14
15
  "onUpdate:search"?: (search: S) => any;
15
16
  "onRow-mouseleave"?: () => any;
@@ -1,5 +1,5 @@
1
1
  import script from './index.script.vue.js';
2
- script.__scopeId = "data-v-65aao9ar";
2
+ script.__scopeId = "data-v-qkzuso6f";
3
3
  script.__file = "./src/components/render-t-table/index.vue";
4
4
  import './index.vue.css';
5
5
  export default script;
@@ -62,9 +62,13 @@ export default /*@__PURE__*/ _defineComponent({
62
62
  };
63
63
  const handleUpdateTagName = (tagName)=>{
64
64
  emit('update:tagName', tagName);
65
+ if (tagName) {
66
+ emit('update:tag-id', undefined);
67
+ }
65
68
  };
66
69
  // 获取标签树列表
67
70
  const handleGetTagsTree = ()=>{
71
+ getTagTree.abort();
68
72
  loadingTagsTree.value = true;
69
73
  getTagTree(props.module, props.subModule, props.tagName, props.groupType).then((data)=>{
70
74
  allDataMap.value.count = data.all;
@@ -1,27 +1,27 @@
1
1
 
2
- .tag-tree[data-v-d81f1qzx] {
2
+ .tag-tree[data-v-y5bryic0] {
3
3
  font-size: 12px;
4
4
  height: auto;
5
5
  }
6
- .tag-tree .manage-tree-item[data-v-d81f1qzx] {
6
+ .tag-tree .manage-tree-item[data-v-y5bryic0] {
7
7
  height: 32px;
8
8
  flex: 1;
9
9
  }
10
- .tag-tree .quick-icon[data-v-d81f1qzx] {
10
+ .tag-tree .quick-icon[data-v-y5bryic0] {
11
11
  margin-left: -24px;
12
12
  padding-left: 8px;
13
13
  }
14
- .tag-tree[data-v-d81f1qzx] .tree-item:has(.quick-icon.ai-ui-sdk-wubiaoqian) {
14
+ .tag-tree[data-v-y5bryic0] .tree-item:has(.quick-icon.ai-ui-sdk-wubiaoqian) {
15
15
  border-bottom: 1px solid #F0F1F5;
16
16
  }
17
- .tag-tree[data-v-d81f1qzx] .tree-item.active .quick-icon {
17
+ .tag-tree[data-v-y5bryic0] .tree-item.active .quick-icon {
18
18
  color: #3A84FF;
19
19
  }
20
- .tag-tree[data-v-d81f1qzx] .tree-item.active .tag-number {
20
+ .tag-tree[data-v-y5bryic0] .tree-item.active .tag-number {
21
21
  background: #A3C5FD;
22
22
  color: #fff;
23
23
  }
24
- .tag-number[data-v-d81f1qzx] {
24
+ .tag-number[data-v-y5bryic0] {
25
25
  line-height: 16px;
26
26
  padding: 0 4px;
27
27
  background-color: #F0F1F5;
@@ -1,5 +1,5 @@
1
1
  import script from './index.script.vue.js.js';
2
- script.__scopeId = "data-v-d81f1qzx";
2
+ script.__scopeId = "data-v-y5bryic0";
3
3
  script.__file = "./src/components/render-tag-tree/index.vue";
4
4
  import './index.vue.css';
5
5
  export default script;
@@ -22,6 +22,9 @@
22
22
  .g-flex-column {
23
23
  display: flex;
24
24
  flex-direction: column;
25
+ }
26
+
27
+ .g-align-center {
25
28
  align-items: center;
26
29
  }
27
30
 
@@ -45,6 +48,10 @@
45
48
  justify-content: end;
46
49
  }
47
50
 
51
+ .g-justify-start {
52
+ justify-content: start;
53
+ }
54
+
48
55
  .g-overflow-hidden {
49
56
  overflow: hidden;
50
57
  }
@@ -74,6 +81,14 @@
74
81
  padding: 4px;
75
82
  }
76
83
 
84
+ .g-p-12 {
85
+ padding: 12px;
86
+ }
87
+
88
+ .g-p-16 {
89
+ padding: 16px;
90
+ }
91
+
77
92
  .g-p-24 {
78
93
  padding: 24px;
79
94
  }
@@ -134,10 +149,6 @@
134
149
  margin-top: 25px;
135
150
  }
136
151
 
137
- .g-mt-30 {
138
- margin-top: 30px;
139
- }
140
-
141
152
  .g-mt-100 {
142
153
  margin-top: 100px;
143
154
  }
@@ -362,6 +373,14 @@
362
373
  padding-right: 5px !important;
363
374
  }
364
375
 
376
+ .g-pr-8 {
377
+ padding-right: 8px;
378
+ }
379
+
380
+ .g-pr-14 {
381
+ padding-right: 14px;
382
+ }
383
+
365
384
  .g-pr-16 {
366
385
  padding-right: 16px !important;
367
386
  }
@@ -374,10 +393,18 @@
374
393
  padding-top: 4px;
375
394
  }
376
395
 
396
+ .g-pt-8 {
397
+ padding-top: 8px;
398
+ }
399
+
377
400
  .g-pt-12 {
378
401
  padding-top: 12px;
379
402
  }
380
403
 
404
+ .g-pt-14 {
405
+ padding-top: 14px;
406
+ }
407
+
381
408
  .g-pt-16 {
382
409
  padding-top: 16px;
383
410
  }
@@ -402,10 +429,22 @@
402
429
  padding-bottom: 4px;
403
430
  }
404
431
 
432
+ .g-pb-8 {
433
+ padding-bottom: 8px;
434
+ }
435
+
436
+ .g-pb-10 {
437
+ padding-bottom: 10px;
438
+ }
439
+
405
440
  .g-pb-12 {
406
441
  padding-bottom: 12px;
407
442
  }
408
443
 
444
+ .g-pb-14 {
445
+ padding-bottom: 14px;
446
+ }
447
+
409
448
  .g-pb-16 {
410
449
  padding-bottom: 16px;
411
450
  }
@@ -426,6 +465,10 @@
426
465
  padding: 0 3px;
427
466
  }
428
467
 
468
+ .g-w-auto {
469
+ width: auto !important;
470
+ }
471
+
429
472
  .g-w-8 {
430
473
  width: 8px;
431
474
  }
@@ -614,8 +657,8 @@
614
657
  width: 108px;
615
658
  }
616
659
 
617
- .g-width-6rem {
618
- width: 6rem !important;
660
+ .g-width-5rem {
661
+ width: 5rem !important;
619
662
  }
620
663
 
621
664
  .g-height-max-600 {
@@ -658,6 +701,14 @@
658
701
  height: 60px;
659
702
  }
660
703
 
704
+ .g-height-78 {
705
+ height: 78px;
706
+ }
707
+
708
+ .g-height-60 {
709
+ height: 60px;
710
+ }
711
+
661
712
  .g-height-64 {
662
713
  height: 64px;
663
714
  }
@@ -722,6 +773,12 @@
722
773
  }
723
774
  }
724
775
 
776
+ .g-hover-text-normal {
777
+ &:hover {
778
+ color: #4d4f56;
779
+ }
780
+ }
781
+
725
782
  .g-hover-border-blue {
726
783
  &:hover {
727
784
  border: 1px solid #3a84ff !important;
@@ -850,6 +907,10 @@
850
907
  column-gap: 16px;
851
908
  }
852
909
 
910
+ .g-gap-x-20 {
911
+ column-gap: 20px;
912
+ }
913
+
853
914
  .g-gap-x-21 {
854
915
  column-gap: 21px;
855
916
  }
@@ -931,3 +992,7 @@
931
992
  .g-rounded-2 {
932
993
  border-radius: 2px;
933
994
  }
995
+
996
+ .g-z-index-9999 {
997
+ z-index: 9999;
998
+ }
@@ -1,5 +1,8 @@
1
1
  import { type Ref } from 'vue';
2
2
  import { GroupType, Module } from '@/types/enum';
3
3
  export declare const useCommonHttp: (apiPrefix: string, spaceId?: Ref<string>) => {
4
- getTagTree: (module: Module, subModule: Module, tagName: string, groupType?: GroupType) => Promise<import("@/types/common").ITagTree>;
4
+ getTagTree: {
5
+ (module: Module, subModule: Module, tagName: string, groupType?: GroupType): Promise<import("@/types/common").ITagTree>;
6
+ abort(): void;
7
+ };
5
8
  };
@@ -1,15 +1,16 @@
1
- import fetch from '../http/fetch/index.ts.js';
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
- const getTagTree = (module, subModule, tagName, groupType)=>fetch.get(`${apiPrefix}/${module}/v1/${subModule}/tag_tree/`, {
5
+ const getTagTree = withAbort((signal, module, subModule, tagName, groupType)=>fetch.get(`${apiPrefix}/${module}/v1/${subModule}/tag_tree/`, {
6
6
  tag_name: tagName,
7
7
  group_type: groupType
8
8
  }, {
9
9
  headers: {
10
10
  'x-space-id': spaceId === null || spaceId === void 0 ? void 0 : spaceId.value
11
- }
12
- }).then((data)=>transferTagTreeApiToTagTree(data));
11
+ },
12
+ signal
13
+ }).then((data)=>transferTagTreeApiToTagTree(data)));
13
14
  return {
14
15
  getTagTree
15
16
  };
@@ -47,6 +47,6 @@ export declare const useDatasetHttp: (apiPrefix?: string, spaceId?: Ref<string>)
47
47
  batchReviewDatasetData: (data: IBatchReviewDatasetData) => Promise<unknown>;
48
48
  batchRetryReviewDatasetData: (data: IBatchRetryReviewDatasetData) => Promise<unknown>;
49
49
  getTags: (module: Module) => Promise<import("@/types/meta").ITag[]>;
50
- plusTag: (tagNames: string[][]) => Promise<ITagApi>;
51
- checkTag: (tagNames: string[][]) => Promise<boolean>;
50
+ plusTag: (tagNames: string[][], module: Module) => Promise<ITagApi>;
51
+ checkTag: (tagNames: string[][], module: Module) => Promise<boolean>;
52
52
  };
@@ -210,8 +210,9 @@ export const useDatasetHttp = (apiPrefix, spaceId)=>{
210
210
  }
211
211
  }).then((result)=>result.map(transferTagApi2Tag));
212
212
  // 新增 tag
213
- const plusTag = (tagNames)=>fetch.post(`${apiPrefix}/${datasetPerfix}/tag/`, {
214
- tag_names: tagNames
213
+ const plusTag = (tagNames, module)=>fetch.post(`${apiPrefix}/${datasetPerfix}/tag/`, {
214
+ tag_names: tagNames,
215
+ scope_name: module
215
216
  }, {
216
217
  globalError: false,
217
218
  headers: {
@@ -219,8 +220,9 @@ export const useDatasetHttp = (apiPrefix, spaceId)=>{
219
220
  }
220
221
  });
221
222
  // check tag
222
- const checkTag = (tagNames)=>fetch.post(`${apiPrefix}/${datasetPerfix}/tag/check/`, {
223
- tag_names: tagNames
223
+ const checkTag = (tagNames, module)=>fetch.post(`${apiPrefix}/${datasetPerfix}/tag/check/`, {
224
+ tag_names: tagNames,
225
+ scope_name: module
224
226
  }, {
225
227
  globalError: false,
226
228
  headers: {
@@ -12,13 +12,15 @@ export const useEllipsisTooltip = ()=>{
12
12
  const handleInitStyle = ()=>{
13
13
  const style = document.createElement('style');
14
14
  style.textContent = `
15
- .tippy-content {
15
+ .tippy-box[data-theme~='ellipsis-tooltip'] .tippy-content {
16
16
  font-size: 12px !important;
17
+ padding: 7px 14px !important;
18
+ white-space: pre-wrap !important;
17
19
  }
18
- .tippy-box[data-placement^=top]>.tippy-arrow:before {
20
+ .tippy-box[data-theme~='ellipsis-tooltip'][data-placement^=top]>.tippy-arrow:before {
19
21
  bottom: -5px !important;
20
22
  }
21
- .tippy-box[data-placement^=bottom]>.tippy-arrow:before {
23
+ .tippy-box[data-theme~='ellipsis-tooltip'][data-placement^=bottom]>.tippy-arrow:before {
22
24
  top: -5px !important;
23
25
  }
24
26
  `;
@@ -47,6 +49,7 @@ export const useEllipsisTooltip = ()=>{
47
49
  0,
48
50
  2
49
51
  ],
52
+ theme: 'ellipsis-tooltip',
50
53
  onHidden: (instance)=>{
51
54
  // tooltip 隐藏后销毁实例
52
55
  instance.destroy();
@@ -11,6 +11,6 @@ export declare const useMetaHttp: (apiPrefix: string, spaceId?: Ref<string>) =>
11
11
  message: string;
12
12
  }>;
13
13
  getTags: (module: Module) => Promise<import("@/types/meta").ITag[]>;
14
- plusTag: (tagNames: string[][]) => Promise<ITagApi>;
15
- checkTag: (tagNames: string[][]) => Promise<boolean>;
14
+ plusTag: (tagNames: string[][], module: Module) => Promise<ITagApi>;
15
+ checkTag: (tagNames: string[][], module: Module) => Promise<boolean>;
16
16
  };