@blueking/ai-ui-sdk 0.1.19-beta.18 → 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 (61) 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/dataset-data-tool-icons/index.script.vue.js +1 -1
  12. package/dist/components/render-dataset/components/edit-dataset-data/index.vue.css +3 -3
  13. package/dist/components/render-dataset/components/edit-dataset-data/index.vue.js +1 -1
  14. package/dist/components/render-dataset/components/operation-record/index.vue.css +4 -4
  15. package/dist/components/render-dataset/components/operation-record/index.vue.js +1 -1
  16. package/dist/components/render-dataset/components/operation-record/table/index.script.vue.js +1 -1
  17. package/dist/components/render-dataset/components/operation-record/table/index.vue.css +1 -1
  18. package/dist/components/render-dataset/components/operation-record/table/index.vue.js +1 -1
  19. package/dist/components/render-dataset/components/operation-record/view-op-result/index.vue.css +2 -2
  20. package/dist/components/render-dataset/components/operation-record/view-op-result/index.vue.js +1 -1
  21. package/dist/components/render-dataset/components/plus-dataset/dataset-form.script.vue.js +3 -10
  22. package/dist/components/render-dataset/components/plus-dataset/index.vue.css +2 -2
  23. package/dist/components/render-dataset/components/plus-dataset/index.vue.js +1 -1
  24. package/dist/components/render-dataset/components/plus-dataset-data/form/api.vue.css +2 -2
  25. package/dist/components/render-dataset/components/plus-dataset-data/form/api.vue.js +1 -1
  26. package/dist/components/render-dataset/components/plus-dataset-data/form/footer.vue.css +1 -1
  27. package/dist/components/render-dataset/components/plus-dataset-data/form/footer.vue.js +1 -1
  28. package/dist/components/render-dataset/components/plus-dataset-data/form/index.vue.css +2 -2
  29. package/dist/components/render-dataset/components/plus-dataset-data/form/index.vue.js +1 -1
  30. package/dist/components/render-dataset/components/review-dataset-data/index.vue.css +10 -10
  31. package/dist/components/render-dataset/components/review-dataset-data/index.vue.js +1 -1
  32. package/dist/components/render-dataset-detail-origin-data/index.vue.css +3 -3
  33. package/dist/components/render-dataset-detail-origin-data/index.vue.js +1 -1
  34. package/dist/components/render-dataset-list/components/main.vue.css +3 -3
  35. package/dist/components/render-dataset-list/components/main.vue.js +1 -1
  36. package/dist/components/render-dataset-list/components/table.script.vue.js +3 -1
  37. package/dist/components/render-dataset-list/index.vue.css +2 -2
  38. package/dist/components/render-dataset-list/index.vue.js +1 -1
  39. package/dist/components/render-file-card/index.script.vue.js.js +1 -1
  40. package/dist/components/render-file-card/index.vue.css +11 -11
  41. package/dist/components/render-file-card/index.vue.js +1 -1
  42. package/dist/components/render-file-type-icon/index.vue.css +5 -5
  43. package/dist/components/render-file-type-icon/index.vue.js +1 -1
  44. package/dist/components/render-header/index.vue.css +3 -3
  45. package/dist/components/render-header/index.vue.js +1 -1
  46. package/dist/components/render-like/index.vue.css +5 -5
  47. package/dist/components/render-like/index.vue.js +1 -1
  48. package/dist/components/render-router-tab/index.vue.css +3 -3
  49. package/dist/components/render-router-tab/index.vue.js +1 -1
  50. package/dist/components/render-search-empty/index.script.vue.js.js +1 -1
  51. package/dist/components/render-t-table/index.vue.css +16 -16
  52. package/dist/components/render-t-table/index.vue.js +1 -1
  53. package/dist/components/render-tag-tree/index.script.vue.js.js +4 -0
  54. package/dist/components/render-tag-tree/index.vue.css +7 -7
  55. package/dist/components/render-tag-tree/index.vue.js +1 -1
  56. package/dist/css/tailwind.css +69 -12
  57. package/dist/hooks/use-common-http.d.ts +4 -1
  58. package/dist/hooks/use-common-http.ts.js +5 -4
  59. package/dist/hooks/use-ellipsis-tooltip.ts.js +6 -3
  60. package/dist/types/common.d.ts +7 -1
  61. package/package.json +1 -1
@@ -1,5 +1,5 @@
1
1
  import script from './index.script.vue.js.js';
2
- script.__scopeId = "data-v-vtaaiy97";
2
+ script.__scopeId = "data-v-hhz8760p";
3
3
  script.__file = "./src/components/render-dataset-list/index.vue";
4
4
  import './index.vue.css';
5
5
  export default script;
@@ -4,7 +4,7 @@ const _hoisted_1 = {
4
4
  class: "upload-file-home g-flex-row"
5
5
  };
6
6
  const _hoisted_2 = {
7
- class: "file-content g-flex-column"
7
+ class: "file-content g-flex-column g-align-center"
8
8
  };
9
9
  const _hoisted_3 = {
10
10
  class: "file-name g-truncate",
@@ -1,21 +1,21 @@
1
1
 
2
- .upload-file-home[data-v-8aazb3sp] {
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-8aazb3sp]: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-8aazb3sp] {
12
+ .upload-file-home:hover .file-icons[data-v-njr5mmim] {
13
13
  display: flex;
14
14
  }
15
- .upload-file-home .file-icon[data-v-8aazb3sp] {
15
+ .upload-file-home .file-icon[data-v-njr5mmim] {
16
16
  font-size: 32px;
17
17
  }
18
- .upload-file-home .file-content[data-v-8aazb3sp] {
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-8aazb3sp] {
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-8aazb3sp] {
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-8aazb3sp] {
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-8aazb3sp] {
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-8aazb3sp]: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-8aazb3sp] {
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-8aazb3sp";
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-xu4a951d] {
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-xu4a951d], .ai-ui-sdk-icon.ai-ui-sdk-ppt-2[data-v-xu4a951d], .ai-ui-sdk-icon.ai-ui-sdk-markdown[data-v-xu4a951d] {
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-xu4a951d] {
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-xu4a951d] {
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-xu4a951d] {
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-xu4a951d";
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-npj1hv09] {
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-npj1hv09] {
7
+ .render-tab[data-v-qo685zoe] {
8
8
  border-bottom: 2px solid transparent;
9
9
  }
10
- .render-tab.active[data-v-npj1hv09] {
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-npj1hv09";
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-aslf63rc] {
2
+ .dislike-icon[data-v-beu0m4xp] {
3
3
  transform: rotateX(180deg);
4
4
  }
5
- .option-items[data-v-aslf63rc] {
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-aslf63rc]: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-aslf63rc]{
15
+ .option-items-selected[data-v-beu0m4xp]{
16
16
  background-color: #E1ECFF;
17
17
  }
18
- [data-v-aslf63rc] .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-aslf63rc";
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-i7scbl8c] {
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-i7scbl8c] {
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-i7scbl8c] {
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-i7scbl8c";
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,
@@ -1,62 +1,62 @@
1
1
 
2
- .t-t-pagination[data-v-1xuilim3] {
2
+ .t-t-pagination[data-v-qkzuso6f] {
3
3
  position: sticky;
4
4
  bottom: 0;
5
5
  }
6
- .t-t-pagination[data-v-1xuilim3] .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-1xuilim3] {
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-1xuilim3] .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-1xuilim3] .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-1xuilim3] .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-1xuilim3] .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-1xuilim3] .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-1xuilim3] .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-1xuilim3] .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-1xuilim3] .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-1xuilim3] .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-1xuilim3] .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-1xuilim3] .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-1xuilim3] .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-1xuilim3] .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
 
@@ -1,5 +1,5 @@
1
1
  import script from './index.script.vue.js';
2
- script.__scopeId = "data-v-1xuilim3";
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-wejd9od8] {
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-wejd9od8] {
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-wejd9od8] {
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-wejd9od8] .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-wejd9od8] .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-wejd9od8] .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-wejd9od8] {
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-wejd9od8";
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 {
@@ -654,8 +697,12 @@
654
697
  height: 42px;
655
698
  }
656
699
 
657
- .g-height-56 {
658
- height: 56px;
700
+ .g-height-60 {
701
+ height: 60px;
702
+ }
703
+
704
+ .g-height-78 {
705
+ height: 78px;
659
706
  }
660
707
 
661
708
  .g-height-60 {
@@ -666,10 +713,6 @@
666
713
  height: 64px;
667
714
  }
668
715
 
669
- .g-height-70 {
670
- height: 70px !important;
671
- }
672
-
673
716
  .g-height-88 {
674
717
  height: 88px;
675
718
  }
@@ -730,6 +773,12 @@
730
773
  }
731
774
  }
732
775
 
776
+ .g-hover-text-normal {
777
+ &:hover {
778
+ color: #4d4f56;
779
+ }
780
+ }
781
+
733
782
  .g-hover-border-blue {
734
783
  &:hover {
735
784
  border: 1px solid #3a84ff !important;
@@ -858,6 +907,10 @@
858
907
  column-gap: 16px;
859
908
  }
860
909
 
910
+ .g-gap-x-20 {
911
+ column-gap: 20px;
912
+ }
913
+
861
914
  .g-gap-x-21 {
862
915
  column-gap: 21px;
863
916
  }
@@ -939,3 +992,7 @@
939
992
  .g-rounded-2 {
940
993
  border-radius: 2px;
941
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
  };
@@ -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();
@@ -15,12 +15,18 @@ export interface ITTableSort {
15
15
  descending?: OrderMethod;
16
16
  sortKey?: string;
17
17
  }
18
- export interface ITTableCol<T> extends Omit<PrimaryTableCol<T>, 'type' | 'align' | 'fixed' | 'sortKey'> {
18
+ export interface ITTableColEllipsis {
19
+ theme?: string;
20
+ placement?: string;
21
+ className?: string;
22
+ }
23
+ export interface ITTableCol<T> extends Omit<PrimaryTableCol<T>, 'type' | 'align' | 'fixed' | 'sortKey' | 'ellipsis'> {
19
24
  defaultShow?: boolean;
20
25
  sortKey?: string;
21
26
  type?: string;
22
27
  fixed?: string;
23
28
  align?: string;
29
+ ellipsis?: boolean | ITTableColEllipsis;
24
30
  }
25
31
  export interface IPaginationParam {
26
32
  page?: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blueking/ai-ui-sdk",
3
- "version": "0.1.19-beta.18",
3
+ "version": "0.1.19-beta.19",
4
4
  "description": "蓝鲸AI UI SDK",
5
5
  "main": "dist/main.js",
6
6
  "types": "dist/main.d.ts",