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

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.script.vue.js.js +23 -6
  8. package/dist/components/render-choose-tag/index.vue.css +7 -7
  9. package/dist/components/render-choose-tag/index.vue.js +1 -1
  10. package/dist/components/render-collapse/index.vue.css +2 -2
  11. package/dist/components/render-collapse/index.vue.js +1 -1
  12. package/dist/components/render-dataset/components/dataset-data-status/index.script.vue.js.js +6 -8
  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.vue.css +1 -1
  19. package/dist/components/render-dataset/components/operation-record/table/index.vue.js +1 -1
  20. package/dist/components/render-dataset/components/operation-record/view-op-result/index.vue.css +2 -2
  21. package/dist/components/render-dataset/components/operation-record/view-op-result/index.vue.js +1 -1
  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/header.script.vue.js.js +1 -0
  35. package/dist/components/render-dataset-list/components/main.vue.css +3 -3
  36. package/dist/components/render-dataset-list/components/main.vue.js +1 -1
  37. package/dist/components/render-dataset-list/index.vue.css +1 -1
  38. package/dist/components/render-dataset-list/index.vue.js +1 -1
  39. package/dist/components/render-file-card/index.script.vue.js.js +4 -14
  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-t-table/index.vue.css +16 -16
  51. package/dist/components/render-t-table/index.vue.js +1 -1
  52. package/dist/components/render-tag-tree/index.script.vue.js.js +5 -7
  53. package/dist/components/render-tag-tree/index.vue.css +7 -7
  54. package/dist/components/render-tag-tree/index.vue.js +1 -1
  55. package/dist/hooks/use-chat.d.ts +8 -2
  56. package/dist/hooks/use-ellipsis-tooltip.d.ts +3 -0
  57. package/dist/hooks/use-ellipsis-tooltip.ts.js +63 -0
  58. package/dist/hooks.d.ts +1 -0
  59. package/dist/hooks.ts.js +1 -0
  60. package/dist/http/helper/knowledge.ts.js +1 -0
  61. package/dist/http/helper/tool.ts.js +4 -2
  62. package/dist/types/knowledge.d.ts +2 -0
  63. package/dist/types/tool.d.ts +3 -1
  64. package/package.json +2 -1
@@ -1,5 +1,5 @@
1
1
  import script from './index.script.vue.js.js';
2
- script.__scopeId = "data-v-gbq4qoi6";
2
+ script.__scopeId = "data-v-m966zb9v";
3
3
  script.__file = "./src/components/render-dataset-detail-origin-data/index.vue";
4
4
  import './index.vue.css';
5
5
  export default script;
@@ -56,6 +56,7 @@ export default /*@__PURE__*/ _defineComponent({
56
56
  loading: loading.value,
57
57
  tabs: tabs.value,
58
58
  "group-type": _ctx.groupType,
59
+ title: "数据集",
59
60
  "onUpdate:groupType": handleUpdateGroupType
60
61
  }, null, 8 /* PROPS */ , [
61
62
  "loading",
@@ -1,15 +1,15 @@
1
1
 
2
- .main-content[data-v-hrdr5nsu] {
2
+ .main-content[data-v-mqwoosup] {
3
3
  padding: 20px 24px;
4
4
  height: 100%;
5
5
  }
6
- .main-panel[data-v-hrdr5nsu] {
6
+ .main-panel[data-v-mqwoosup] {
7
7
  height: 100%;
8
8
  padding: 20px 24px 0;
9
9
  background: #ffffff;
10
10
  box-shadow: 0 2px 4px 0 #1919290d;
11
11
  border-radius: 2px;
12
12
  }
13
- .main-search[data-v-hrdr5nsu] {
13
+ .main-search[data-v-mqwoosup] {
14
14
  width: 6.17rem;
15
15
  }
@@ -1,5 +1,5 @@
1
1
  import script from './main.script.vue.js.js';
2
- script.__scopeId = "data-v-hrdr5nsu";
2
+ script.__scopeId = "data-v-mqwoosup";
3
3
  script.__file = "./src/components/render-dataset-list/components/main.vue";
4
4
  import './main.vue.css';
5
5
  export default script;
@@ -1,5 +1,5 @@
1
1
 
2
- .dataset-main[data-v-7tasxyl9] {
2
+ .dataset-main[data-v-dcvqs14e] {
3
3
  height: calc(100% - 90px);
4
4
  margin-top: 2px;
5
5
  }
@@ -1,5 +1,5 @@
1
1
  import script from './index.script.vue.js.js';
2
- script.__scopeId = "data-v-7tasxyl9";
2
+ script.__scopeId = "data-v-dcvqs14e";
3
3
  script.__file = "./src/components/render-dataset-list/index.vue";
4
4
  import './index.vue.css';
5
5
  export default script;
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as _defineComponent } from 'vue';
2
- import { createVNode as _createVNode, toDisplayString as _toDisplayString, createTextVNode as _createTextVNode, resolveDirective as _resolveDirective, openBlock as _openBlock, createElementBlock as _createElementBlock, withDirectives as _withDirectives, unref as _unref, createElementVNode as _createElementVNode, renderSlot as _renderSlot, withModifiers as _withModifiers, resolveComponent as _resolveComponent, withCtx as _withCtx } from "vue";
2
+ import { createVNode as _createVNode, toDisplayString as _toDisplayString, createElementVNode as _createElementVNode, unref as _unref, renderSlot as _renderSlot, withModifiers as _withModifiers, resolveDirective as _resolveDirective, withDirectives as _withDirectives, resolveComponent as _resolveComponent, withCtx as _withCtx, openBlock as _openBlock, createElementBlock as _createElementBlock } from "vue";
3
3
  const _hoisted_1 = {
4
4
  class: "upload-file-home g-flex-row"
5
5
  };
@@ -7,7 +7,8 @@ const _hoisted_2 = {
7
7
  class: "file-content g-flex-column"
8
8
  };
9
9
  const _hoisted_3 = {
10
- class: "file-name g-truncate"
10
+ class: "file-name g-truncate",
11
+ "data-ellipsis-tooltip": ""
11
12
  };
12
13
  const _hoisted_4 = {
13
14
  class: "file-size"
@@ -32,7 +33,6 @@ export default /*@__PURE__*/ _defineComponent({
32
33
  };
33
34
  return (_ctx, _cache)=>{
34
35
  const _component_bk_pop_confirm = _resolveComponent("bk-pop-confirm");
35
- const _directive_overflow_title = _resolveDirective("overflow-title");
36
36
  const _directive_bk_tooltips = _resolveDirective("bk-tooltips");
37
37
  return _openBlock(), _createElementBlock("section", _hoisted_1, [
38
38
  _createVNode(RenderFileTypeIcon, {
@@ -42,17 +42,7 @@ export default /*@__PURE__*/ _defineComponent({
42
42
  "type"
43
43
  ]),
44
44
  _createElementVNode("p", _hoisted_2, [
45
- _withDirectives((_openBlock(), _createElementBlock("span", _hoisted_3, [
46
- _createTextVNode(_toDisplayString(_ctx.file.fileName), 1 /* TEXT */ )
47
- ])), [
48
- [
49
- _directive_overflow_title,
50
- {
51
- type: 'tips',
52
- content: _ctx.file.fileName
53
- }
54
- ]
55
- ]),
45
+ _createElementVNode("span", _hoisted_3, _toDisplayString(_ctx.file.fileName), 1 /* TEXT */ ),
56
46
  _createElementVNode("span", _hoisted_4, _toDisplayString(_unref(getFileSizeTxt)(_ctx.file.fileSize)), 1 /* TEXT */ )
57
47
  ]),
58
48
  _createElementVNode("span", _hoisted_5, [
@@ -1,21 +1,21 @@
1
1
 
2
- .upload-file-home[data-v-0j345l0h] {
2
+ .upload-file-home[data-v-d28s9a4m] {
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-0j345l0h]:hover {
9
+ .upload-file-home[data-v-d28s9a4m]:hover {
10
10
  border: 1px solid #3A84FF;
11
11
  }
12
- .upload-file-home:hover .file-icons[data-v-0j345l0h] {
12
+ .upload-file-home:hover .file-icons[data-v-d28s9a4m] {
13
13
  display: flex;
14
14
  }
15
- .upload-file-home .file-icon[data-v-0j345l0h] {
15
+ .upload-file-home .file-icon[data-v-d28s9a4m] {
16
16
  font-size: 32px;
17
17
  }
18
- .upload-file-home .file-content[data-v-0j345l0h] {
18
+ .upload-file-home .file-content[data-v-d28s9a4m] {
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-0j345l0h] {
26
+ .upload-file-home .file-content .file-name[data-v-d28s9a4m] {
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-0j345l0h] {
31
+ .upload-file-home .file-content .file-size[data-v-d28s9a4m] {
32
32
  font-size: 12px;
33
33
  color: #979BA5;
34
34
  line-height: 20px;
35
35
  }
36
- .upload-file-home .file-icons[data-v-0j345l0h] {
36
+ .upload-file-home .file-icons[data-v-d28s9a4m] {
37
37
  display: none;
38
38
  color: #979BA5;
39
39
  }
40
- .upload-file-home .file-icons .bkaidev-icon[data-v-0j345l0h] {
40
+ .upload-file-home .file-icons .bkaidev-icon[data-v-d28s9a4m] {
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-0j345l0h]:hover {
45
+ .upload-file-home .file-icons .bkaidev-icon[data-v-d28s9a4m]:hover {
46
46
  color: #3A84FF;
47
47
  }
48
- .upload-file-home .file-icons .bkaidev-delete[data-v-0j345l0h] {
48
+ .upload-file-home .file-icons .bkaidev-delete[data-v-d28s9a4m] {
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-0j345l0h";
2
+ script.__scopeId = "data-v-d28s9a4m";
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-h604d4rt] {
2
+ .ai-ui-sdk-icon.ai-ui-sdk-pdf[data-v-8dmc01ov] {
3
3
  color: #EA3636;
4
4
  }
5
- .ai-ui-sdk-icon.ai-ui-sdk-doc-2[data-v-h604d4rt], .ai-ui-sdk-icon.ai-ui-sdk-ppt-2[data-v-h604d4rt], .ai-ui-sdk-icon.ai-ui-sdk-markdown[data-v-h604d4rt] {
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] {
6
6
  color: #3A84FF;
7
7
  }
8
- .ai-ui-sdk-icon.ai-ui-sdk-folder-fill[data-v-h604d4rt] {
8
+ .ai-ui-sdk-icon.ai-ui-sdk-folder-fill[data-v-8dmc01ov] {
9
9
  color: #C4C6CC;
10
10
  }
11
- .ai-ui-sdk-icon.ai-ui-sdk-excel[data-v-h604d4rt] {
11
+ .ai-ui-sdk-icon.ai-ui-sdk-excel[data-v-8dmc01ov] {
12
12
  color: #2DCB56;
13
13
  }
14
- .ai-ui-sdk-icon.ai-ui-sdk-wangye[data-v-h604d4rt] {
14
+ .ai-ui-sdk-icon.ai-ui-sdk-wangye[data-v-8dmc01ov] {
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-h604d4rt";
2
+ script.__scopeId = "data-v-8dmc01ov";
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-6dzllhju] {
2
+ .header-home[data-v-0rk9h9h3] {
3
3
  width: 100%;
4
4
  background: #FFFFFF;
5
5
  box-shadow: 0 3px 4px 0 #0000000a;
6
6
  }
7
- .render-tab[data-v-6dzllhju] {
7
+ .render-tab[data-v-0rk9h9h3] {
8
8
  border-bottom: 2px solid transparent;
9
9
  }
10
- .render-tab.active[data-v-6dzllhju] {
10
+ .render-tab.active[data-v-0rk9h9h3] {
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-6dzllhju";
2
+ script.__scopeId = "data-v-0rk9h9h3";
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-7i8l7mf8] {
2
+ .dislike-icon[data-v-uaiwa9gg] {
3
3
  transform: rotateX(180deg);
4
4
  }
5
- .option-items[data-v-7i8l7mf8] {
5
+ .option-items[data-v-uaiwa9gg] {
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-7i8l7mf8]:hover {
11
+ .option-items[data-v-uaiwa9gg]:hover {
12
12
  background-color: #E1ECFF;
13
13
  color: #3A84FF;
14
14
  }
15
- .option-items-selected[data-v-7i8l7mf8]{
15
+ .option-items-selected[data-v-uaiwa9gg]{
16
16
  background-color: #E1ECFF;
17
17
  }
18
- [data-v-7i8l7mf8] .bk-form-item {
18
+ [data-v-uaiwa9gg] .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-7i8l7mf8";
2
+ script.__scopeId = "data-v-uaiwa9gg";
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-hs0p2ouw] {
2
+ .router-tab[data-v-l0q6tv82] {
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-hs0p2ouw] {
9
+ .router-tab a[data-v-l0q6tv82] {
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-hs0p2ouw] {
18
+ .router-tab a.router-link-exact-active[data-v-l0q6tv82] {
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-hs0p2ouw";
2
+ script.__scopeId = "data-v-l0q6tv82";
3
3
  script.__file = "./src/components/render-router-tab/index.vue";
4
4
  import './index.vue.css';
5
5
  export default script;
@@ -1,62 +1,62 @@
1
1
 
2
- .t-t-pagination[data-v-fyj82wsl] {
2
+ .t-t-pagination[data-v-65aao9ar] {
3
3
  position: sticky;
4
4
  bottom: 0;
5
5
  }
6
- .t-t-pagination[data-v-fyj82wsl] .bk-pagination-list.is-last {
6
+ .t-t-pagination[data-v-65aao9ar] .bk-pagination-list.is-last {
7
7
  margin-left: auto;
8
8
  }
9
- .t-t-table[data-v-fyj82wsl] {
9
+ .t-t-table[data-v-65aao9ar] {
10
10
  display: inline;
11
11
  height: calc(100% - 64px);
12
12
  }
13
- .t-t-table[data-v-fyj82wsl] .t-table__affixed-header-elm-wrap{
13
+ .t-t-table[data-v-65aao9ar] .t-table__affixed-header-elm-wrap{
14
14
  width: 100% !important;
15
15
  top: -2px;
16
16
  }
17
- .t-t-table[data-v-fyj82wsl] .t-table__affixed-header-elm-wrap>div {
17
+ .t-t-table[data-v-65aao9ar] .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-fyj82wsl] .t-table--layout-fixed{
22
+ .t-t-table[data-v-65aao9ar] .t-table--layout-fixed{
23
23
  width: 100% !important;
24
24
  }
25
- .t-t-table[data-v-fyj82wsl] .bk-exception-description{
25
+ .t-t-table[data-v-65aao9ar] .bk-exception-description{
26
26
  margin-bottom: 0;
27
27
  }
28
- .t-t-table[data-v-fyj82wsl] .t-table--layout-fixed .t-table__header{
28
+ .t-t-table[data-v-65aao9ar] .t-table--layout-fixed .t-table__header{
29
29
  position: sticky;
30
30
  top: -4px;
31
31
  }
32
- .t-t-table[data-v-fyj82wsl] .t-table__content{
32
+ .t-t-table[data-v-65aao9ar] .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-fyj82wsl] .t-table__content::-webkit-scrollbar {
37
+ .t-t-table[data-v-65aao9ar] .t-table__content::-webkit-scrollbar {
38
38
  width: 6px;
39
39
  height: 6px;
40
40
  }
41
- .t-t-table[data-v-fyj82wsl] .t-table__content::-webkit-scrollbar-thumb {
41
+ .t-t-table[data-v-65aao9ar] .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-fyj82wsl] .t-table__content::-webkit-scrollbar-thumb:hover {
47
+ .t-t-table[data-v-65aao9ar] .t-table__content::-webkit-scrollbar-thumb:hover {
48
48
  background-color: #979ba5;
49
49
  }
50
- .t-t-table[data-v-fyj82wsl] .t-table__ellipsis.t-text-ellipsis:has(.checkbox){
50
+ .t-t-table[data-v-65aao9ar] .t-table__ellipsis.t-text-ellipsis:has(.checkbox){
51
51
  line-height: 100%;
52
52
  }
53
- .t-t-table[data-v-fyj82wsl] .t-table__cell--sort-trigger.t-table__double-icons{
53
+ .t-t-table[data-v-65aao9ar] .t-table__cell--sort-trigger.t-table__double-icons{
54
54
  gap: 5px;
55
55
  }
56
- .t-t-table[data-v-fyj82wsl] .t-table__sort-icon--active>i{
56
+ .t-t-table[data-v-65aao9ar] .t-table__sort-icon--active>i{
57
57
  color: #3a84ff !important;
58
58
  }
59
- .t-t-table[data-v-fyj82wsl] .t-table__cell--fixed-left:has(.checkbox){
59
+ .t-t-table[data-v-65aao9ar] .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-fyj82wsl";
2
+ script.__scopeId = "data-v-65aao9ar";
3
3
  script.__file = "./src/components/render-t-table/index.vue";
4
4
  import './index.vue.css';
5
5
  export default script;
@@ -14,9 +14,10 @@ const _hoisted_3 = {
14
14
  const _hoisted_4 = {
15
15
  class: "g-flex-row manage-tree-item"
16
16
  };
17
- const _hoisted_5 = [
18
- "title"
19
- ];
17
+ const _hoisted_5 = {
18
+ class: "g-flex-truncate g-mr-4",
19
+ "data-ellipsis-tooltip": ""
20
+ };
20
21
  const _hoisted_6 = {
21
22
  class: "tag-number g-number-font"
22
23
  };
@@ -117,10 +118,7 @@ export default /*@__PURE__*/ _defineComponent({
117
118
  data.tagId === undefined ? (_openBlock(), _createElementBlock("i", _hoisted_2)) : _createCommentVNode("v-if", true),
118
119
  data.tagId === -1 ? (_openBlock(), _createElementBlock("i", _hoisted_3)) : _createCommentVNode("v-if", true),
119
120
  _createElementVNode("section", _hoisted_4, [
120
- _createElementVNode("span", {
121
- class: "g-flex-truncate g-mr-4",
122
- title: data.tagName
123
- }, _toDisplayString(data.tagName), 9 /* TEXT, PROPS */ , _hoisted_5),
121
+ _createElementVNode("span", _hoisted_5, _toDisplayString(data.tagName), 1 /* TEXT */ ),
124
122
  _createElementVNode("span", _hoisted_6, _toDisplayString(data.count), 1 /* TEXT */ )
125
123
  ])
126
124
  ]),
@@ -1,27 +1,27 @@
1
1
 
2
- .tag-tree[data-v-a26j7dbe] {
2
+ .tag-tree[data-v-d81f1qzx] {
3
3
  font-size: 12px;
4
4
  height: auto;
5
5
  }
6
- .tag-tree .manage-tree-item[data-v-a26j7dbe] {
6
+ .tag-tree .manage-tree-item[data-v-d81f1qzx] {
7
7
  height: 32px;
8
8
  flex: 1;
9
9
  }
10
- .tag-tree .quick-icon[data-v-a26j7dbe] {
10
+ .tag-tree .quick-icon[data-v-d81f1qzx] {
11
11
  margin-left: -24px;
12
12
  padding-left: 8px;
13
13
  }
14
- .tag-tree[data-v-a26j7dbe] .tree-item:has(.quick-icon.ai-ui-sdk-wubiaoqian) {
14
+ .tag-tree[data-v-d81f1qzx] .tree-item:has(.quick-icon.ai-ui-sdk-wubiaoqian) {
15
15
  border-bottom: 1px solid #F0F1F5;
16
16
  }
17
- .tag-tree[data-v-a26j7dbe] .tree-item.active .quick-icon {
17
+ .tag-tree[data-v-d81f1qzx] .tree-item.active .quick-icon {
18
18
  color: #3A84FF;
19
19
  }
20
- .tag-tree[data-v-a26j7dbe] .tree-item.active .tag-number {
20
+ .tag-tree[data-v-d81f1qzx] .tree-item.active .tag-number {
21
21
  background: #A3C5FD;
22
22
  color: #fff;
23
23
  }
24
- .tag-number[data-v-a26j7dbe] {
24
+ .tag-number[data-v-d81f1qzx] {
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-a26j7dbe";
2
+ script.__scopeId = "data-v-d81f1qzx";
3
3
  script.__file = "./src/components/render-tag-tree/index.vue";
4
4
  import './index.vue.css';
5
5
  export default script;
@@ -92,7 +92,8 @@ export declare const useChat: ({ handleStart, handleText, handleReferenceDoc, ha
92
92
  }[];
93
93
  creator: string;
94
94
  createTime: string;
95
- updateTime: string;
95
+ updatedBy?: string;
96
+ updatedAt?: string;
96
97
  toolCode: string;
97
98
  toolName: string;
98
99
  tagNames: string[][];
@@ -329,6 +330,7 @@ export declare const useChat: ({ handleStart, handleText, handleReferenceDoc, ha
329
330
  folderNumber?: number;
330
331
  url?: string;
331
332
  updatedBy?: string;
333
+ updatedAt?: string;
332
334
  indexConfig?: {
333
335
  vector_indexes: {
334
336
  index_name: string;
@@ -425,6 +427,7 @@ export declare const useChat: ({ handleStart, handleText, handleReferenceDoc, ha
425
427
  folderNumber?: number;
426
428
  url?: string;
427
429
  updatedBy?: string;
430
+ updatedAt?: string;
428
431
  indexConfig?: {
429
432
  vector_indexes: {
430
433
  index_name: string;
@@ -582,7 +585,8 @@ export declare const useChat: ({ handleStart, handleText, handleReferenceDoc, ha
582
585
  }[];
583
586
  creator: string;
584
587
  createTime: string;
585
- updateTime: string;
588
+ updatedBy?: string;
589
+ updatedAt?: string;
586
590
  toolCode: string;
587
591
  toolName: string;
588
592
  tagNames: string[][];
@@ -819,6 +823,7 @@ export declare const useChat: ({ handleStart, handleText, handleReferenceDoc, ha
819
823
  folderNumber?: number;
820
824
  url?: string;
821
825
  updatedBy?: string;
826
+ updatedAt?: string;
822
827
  indexConfig?: {
823
828
  vector_indexes: {
824
829
  index_name: string;
@@ -915,6 +920,7 @@ export declare const useChat: ({ handleStart, handleText, handleReferenceDoc, ha
915
920
  folderNumber?: number;
916
921
  url?: string;
917
922
  updatedBy?: string;
923
+ updatedAt?: string;
918
924
  indexConfig?: {
919
925
  vector_indexes: {
920
926
  index_name: string;
@@ -0,0 +1,3 @@
1
+ export declare const useEllipsisTooltip: () => {
2
+ handleInitEllipsisTooltip: () => void;
3
+ };
@@ -0,0 +1,63 @@
1
+ import tippy from 'tippy.js';
2
+ // 全局事件代理,如果文本溢出,则显示 tooltip
3
+ export const useEllipsisTooltip = ()=>{
4
+ let tippyInstance = null;
5
+ const handleInitEllipsisTooltip = ()=>{
6
+ handleInitEvent();
7
+ handleInitStyle();
8
+ };
9
+ const handleInitEvent = ()=>{
10
+ document.addEventListener('mouseenter', handleMouseEnter, true);
11
+ };
12
+ const handleInitStyle = ()=>{
13
+ const style = document.createElement('style');
14
+ style.textContent = `
15
+ .tippy-content {
16
+ font-size: 12px !important;
17
+ }
18
+ .tippy-box[data-placement^=top]>.tippy-arrow:before {
19
+ bottom: -5px !important;
20
+ }
21
+ .tippy-box[data-placement^=bottom]>.tippy-arrow:before {
22
+ top: -5px !important;
23
+ }
24
+ `;
25
+ document.head.appendChild(style);
26
+ };
27
+ const handleMouseEnter = (event)=>{
28
+ var _target_hasAttribute;
29
+ const target = event.target;
30
+ // 没有标识,什么都不做
31
+ if (!(target === null || target === void 0 ? void 0 : (_target_hasAttribute = target.hasAttribute) === null || _target_hasAttribute === void 0 ? void 0 : _target_hasAttribute.call(target, 'data-ellipsis-tooltip'))) return;
32
+ const isOverflow = target.scrollWidth > target.clientWidth || target.scrollHeight > target.clientHeight;
33
+ // 没有溢出,什么都不做
34
+ if (!isOverflow) return;
35
+ // 如果有旧实例,先销毁
36
+ if (tippyInstance) {
37
+ tippyInstance.destroy();
38
+ tippyInstance = null;
39
+ }
40
+ tippyInstance = tippy(target, {
41
+ content: target.getAttribute('data-ellipsis-tooltip') || target.textContent,
42
+ interactive: true,
43
+ arrow: true,
44
+ appendTo: ()=>document.body,
45
+ hideOnClick: false,
46
+ offset: [
47
+ 0,
48
+ 2
49
+ ],
50
+ onHidden: (instance)=>{
51
+ // tooltip 隐藏后销毁实例
52
+ instance.destroy();
53
+ if (tippyInstance === instance) {
54
+ tippyInstance = null;
55
+ }
56
+ }
57
+ });
58
+ tippyInstance.show();
59
+ };
60
+ return {
61
+ handleInitEllipsisTooltip
62
+ };
63
+ };
package/dist/hooks.d.ts CHANGED
@@ -9,3 +9,4 @@ export * from './hooks/use-think';
9
9
  export * from './hooks/use-reference-doc';
10
10
  export * from './hooks/use-member-http';
11
11
  export * from './hooks/use-t-table';
12
+ export * from './hooks/use-ellipsis-tooltip';
package/dist/hooks.ts.js CHANGED
@@ -9,3 +9,4 @@ export * from './hooks/use-think.ts.js';
9
9
  export * from './hooks/use-reference-doc.ts.js';
10
10
  export * from './hooks/use-member-http.ts.js';
11
11
  export * from './hooks/use-t-table.ts.js';
12
+ export * from './hooks/use-ellipsis-tooltip.ts.js';
@@ -229,6 +229,7 @@ import { transferResourcePermission } from './permission.ts.js';
229
229
  number: data.knowledge_count,
230
230
  folderNumber: data.folder_num,
231
231
  updatedBy: data.updated_by,
232
+ updatedAt: data.updated_at,
232
233
  anchorPath: data.anchor_path,
233
234
  description: data.description,
234
235
  indexConfig: data.index_config,
@@ -10,7 +10,8 @@ import { transferResourcePermission } from './permission.ts.js';
10
10
  path: data.property.path,
11
11
  creator: data.created_by,
12
12
  createTime: data.created_at,
13
- updateTime: data.updated_at,
13
+ updatedBy: data.updated_by,
14
+ updatedAt: data.updated_at,
14
15
  toolCode: data.tool_code,
15
16
  toolName: data.tool_name,
16
17
  tagNames: data.tag_names,
@@ -36,7 +37,8 @@ import { transferResourcePermission } from './permission.ts.js';
36
37
  */ export const transferTool = (data)=>({
37
38
  created_by: data.creator,
38
39
  created_at: data.createTime,
39
- updated_at: data.updateTime,
40
+ updated_by: data.updatedBy,
41
+ updated_at: data.updatedAt,
40
42
  tool_code: data.toolCode,
41
43
  tool_name: data.toolName,
42
44
  tag_names: data.tagNames,
@@ -111,6 +111,7 @@ export interface IKnowledgebaseApi {
111
111
  knowledge_count?: number;
112
112
  folder_num?: number;
113
113
  updated_by?: string;
114
+ updated_at?: string;
114
115
  index_config?: IKnowledgeIndexConfig;
115
116
  permission?: IResourcePermissionApi;
116
117
  children?: Array<IKnowledgeApi>;
@@ -141,6 +142,7 @@ export interface IKnowledgebase {
141
142
  folderNumber?: number;
142
143
  url?: string;
143
144
  updatedBy?: string;
145
+ updatedAt?: string;
144
146
  indexConfig?: IKnowledgeIndexConfig;
145
147
  permission?: IResourcePermission;
146
148
  children?: Array<IKnowledgebase>;
@@ -26,6 +26,7 @@ export interface IToolApi {
26
26
  space_id?: string;
27
27
  created_by: string;
28
28
  created_at: string;
29
+ updated_by: string;
29
30
  updated_at: string;
30
31
  tool_code: string;
31
32
  tool_name: string;
@@ -52,7 +53,8 @@ export interface ITool {
52
53
  path?: IToolParam[];
53
54
  creator: string;
54
55
  createTime: string;
55
- updateTime: string;
56
+ updatedBy?: string;
57
+ updatedAt?: string;
56
58
  toolCode: string;
57
59
  toolName: string;
58
60
  tagNames: string[][];