@blueking/ai-ui-sdk 0.1.19-beta.16 → 0.1.19-beta.18
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.
- package/dist/components/render-auth/auth-dialog.script.vue.js.js +26 -25
- package/dist/components/render-auto-height-textarea/index.vue.css +11 -11
- package/dist/components/render-auto-height-textarea/index.vue.js +1 -1
- package/dist/components/render-auto-refresh/index.vue.css +8 -8
- package/dist/components/render-auto-refresh/index.vue.js +1 -1
- package/dist/components/render-checkbox/index.vue.css +9 -9
- package/dist/components/render-checkbox/index.vue.js +1 -1
- package/dist/components/render-choose-tag/index.script.vue.js.js +3 -3
- package/dist/components/render-choose-tag/index.vue.css +7 -7
- package/dist/components/render-choose-tag/index.vue.js +1 -1
- package/dist/components/render-collapse/index.vue.css +2 -2
- package/dist/components/render-collapse/index.vue.js +1 -1
- package/dist/components/render-dataset/components/dataset-data-status/index.script.vue.js.js +6 -8
- package/dist/components/render-dataset/components/dataset-data-tool-icons/index.script.vue.js +1 -1
- package/dist/components/render-dataset/components/edit-dataset-data/index.vue.css +3 -3
- package/dist/components/render-dataset/components/edit-dataset-data/index.vue.js +1 -1
- package/dist/components/render-dataset/components/operation-record/index.vue.css +4 -4
- package/dist/components/render-dataset/components/operation-record/index.vue.js +1 -1
- package/dist/components/render-dataset/components/operation-record/table/index.script.vue.js +165 -0
- package/dist/components/render-dataset/components/operation-record/table/index.vue.css +1 -1
- package/dist/components/render-dataset/components/operation-record/table/index.vue.js +2 -2
- package/dist/components/render-dataset/components/operation-record/view-op-result/index.vue.css +2 -2
- package/dist/components/render-dataset/components/operation-record/view-op-result/index.vue.js +1 -1
- package/dist/components/render-dataset/components/plus-dataset/dataset-form.script.vue.js +19 -34
- package/dist/components/render-dataset/components/plus-dataset/index.vue.css +2 -2
- package/dist/components/render-dataset/components/plus-dataset/index.vue.js +1 -1
- package/dist/components/render-dataset/components/plus-dataset-data/form/api.script.vue.js.js +21 -29
- package/dist/components/render-dataset/components/plus-dataset-data/form/api.vue.css +2 -2
- package/dist/components/render-dataset/components/plus-dataset-data/form/api.vue.js +1 -1
- package/dist/components/render-dataset/components/plus-dataset-data/form/footer.vue.css +1 -1
- package/dist/components/render-dataset/components/plus-dataset-data/form/footer.vue.js +1 -1
- package/dist/components/render-dataset/components/plus-dataset-data/form/index.vue.css +2 -2
- package/dist/components/render-dataset/components/plus-dataset-data/form/index.vue.js +1 -1
- package/dist/components/render-dataset/components/plus-dataset-data/index.script.vue.js.js +6 -1
- package/dist/components/render-dataset/components/plus-dataset-data/index.vue.d.ts +1 -0
- package/dist/components/render-dataset/components/review-dataset-data/index.vue.css +10 -10
- package/dist/components/render-dataset/components/review-dataset-data/index.vue.js +1 -1
- package/dist/components/render-dataset-detail-origin-data/components/table/index.script.vue.js +230 -388
- package/dist/components/render-dataset-detail-origin-data/components/table/index.vue.d.ts +3 -1
- package/dist/components/render-dataset-detail-origin-data/index.script.vue.js.js +7 -6
- package/dist/components/render-dataset-detail-origin-data/index.vue.css +3 -3
- package/dist/components/render-dataset-detail-origin-data/index.vue.js +1 -1
- package/dist/components/render-dataset-list/components/main.script.vue.js.js +6 -5
- package/dist/components/render-dataset-list/components/main.vue.css +3 -3
- package/dist/components/render-dataset-list/components/main.vue.js +1 -1
- package/dist/components/render-dataset-list/components/table.script.vue.js +404 -0
- package/dist/components/render-dataset-list/components/table.vue.d.ts +2 -0
- package/dist/components/render-dataset-list/components/table.vue.js +1 -1
- package/dist/components/render-dataset-list/index.vue.css +4 -1
- package/dist/components/render-dataset-list/index.vue.js +1 -1
- package/dist/components/render-file-card/index.script.vue.js.js +4 -14
- package/dist/components/render-file-card/index.vue.css +11 -11
- package/dist/components/render-file-card/index.vue.js +1 -1
- package/dist/components/render-file-type-icon/index.vue.css +5 -5
- package/dist/components/render-file-type-icon/index.vue.js +1 -1
- package/dist/components/render-header/index.vue.css +3 -3
- package/dist/components/render-header/index.vue.js +1 -1
- package/dist/components/render-like/index.vue.css +5 -5
- package/dist/components/render-like/index.vue.js +1 -1
- package/dist/components/render-router-tab/index.vue.css +3 -3
- package/dist/components/render-router-tab/index.vue.js +1 -1
- package/dist/components/render-t-table/index.script.vue.js +5 -2
- package/dist/components/render-t-table/index.vue.css +19 -19
- package/dist/components/render-t-table/index.vue.d.ts +1 -0
- package/dist/components/render-t-table/index.vue.js +1 -1
- package/dist/components/render-tag-tree/index.script.vue.js.js +5 -7
- package/dist/components/render-tag-tree/index.vue.css +7 -7
- package/dist/components/render-tag-tree/index.vue.js +1 -1
- package/dist/css/tailwind.css +8 -0
- package/dist/hooks/use-dataset-http.d.ts +2 -2
- package/dist/hooks/use-dataset-http.ts.js +6 -4
- package/dist/hooks/use-ellipsis-tooltip.d.ts +3 -0
- package/dist/hooks/use-ellipsis-tooltip.ts.js +63 -0
- package/dist/hooks/use-meta-http.d.ts +2 -2
- package/dist/hooks/use-meta-http.ts.js +6 -4
- package/dist/hooks.d.ts +1 -0
- package/dist/hooks.ts.js +1 -0
- package/dist/http/helper/common.ts.js +4 -4
- package/dist/http/helper/dataset.ts.js +1 -1
- package/dist/http/helper/knowledge.ts.js +2 -1
- package/dist/http/helper/tool.ts.js +1 -0
- package/package.json +2 -1
- package/dist/components/render-dataset/components/operation-record/table/index.script.vue.js.js +0 -226
- package/dist/components/render-dataset-list/components/table.script.vue.js.js +0 -590
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as _defineComponent } from 'vue';
|
|
2
|
-
import { createVNode as _createVNode, toDisplayString as _toDisplayString,
|
|
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
|
-
|
|
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-
|
|
2
|
+
.upload-file-home[data-v-8aazb3sp] {
|
|
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-
|
|
9
|
+
.upload-file-home[data-v-8aazb3sp]:hover {
|
|
10
10
|
border: 1px solid #3A84FF;
|
|
11
11
|
}
|
|
12
|
-
.upload-file-home:hover .file-icons[data-v-
|
|
12
|
+
.upload-file-home:hover .file-icons[data-v-8aazb3sp] {
|
|
13
13
|
display: flex;
|
|
14
14
|
}
|
|
15
|
-
.upload-file-home .file-icon[data-v-
|
|
15
|
+
.upload-file-home .file-icon[data-v-8aazb3sp] {
|
|
16
16
|
font-size: 32px;
|
|
17
17
|
}
|
|
18
|
-
.upload-file-home .file-content[data-v-
|
|
18
|
+
.upload-file-home .file-content[data-v-8aazb3sp] {
|
|
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-
|
|
26
|
+
.upload-file-home .file-content .file-name[data-v-8aazb3sp] {
|
|
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-
|
|
31
|
+
.upload-file-home .file-content .file-size[data-v-8aazb3sp] {
|
|
32
32
|
font-size: 12px;
|
|
33
33
|
color: #979BA5;
|
|
34
34
|
line-height: 20px;
|
|
35
35
|
}
|
|
36
|
-
.upload-file-home .file-icons[data-v-
|
|
36
|
+
.upload-file-home .file-icons[data-v-8aazb3sp] {
|
|
37
37
|
display: none;
|
|
38
38
|
color: #979BA5;
|
|
39
39
|
}
|
|
40
|
-
.upload-file-home .file-icons .bkaidev-icon[data-v-
|
|
40
|
+
.upload-file-home .file-icons .bkaidev-icon[data-v-8aazb3sp] {
|
|
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-
|
|
45
|
+
.upload-file-home .file-icons .bkaidev-icon[data-v-8aazb3sp]:hover {
|
|
46
46
|
color: #3A84FF;
|
|
47
47
|
}
|
|
48
|
-
.upload-file-home .file-icons .bkaidev-delete[data-v-
|
|
48
|
+
.upload-file-home .file-icons .bkaidev-delete[data-v-8aazb3sp] {
|
|
49
49
|
margin: 0;
|
|
50
50
|
}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
|
|
2
|
-
.ai-ui-sdk-icon.ai-ui-sdk-pdf[data-v-
|
|
2
|
+
.ai-ui-sdk-icon.ai-ui-sdk-pdf[data-v-xu4a951d] {
|
|
3
3
|
color: #EA3636;
|
|
4
4
|
}
|
|
5
|
-
.ai-ui-sdk-icon.ai-ui-sdk-doc-2[data-v-
|
|
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] {
|
|
6
6
|
color: #3A84FF;
|
|
7
7
|
}
|
|
8
|
-
.ai-ui-sdk-icon.ai-ui-sdk-folder-fill[data-v-
|
|
8
|
+
.ai-ui-sdk-icon.ai-ui-sdk-folder-fill[data-v-xu4a951d] {
|
|
9
9
|
color: #C4C6CC;
|
|
10
10
|
}
|
|
11
|
-
.ai-ui-sdk-icon.ai-ui-sdk-excel[data-v-
|
|
11
|
+
.ai-ui-sdk-icon.ai-ui-sdk-excel[data-v-xu4a951d] {
|
|
12
12
|
color: #2DCB56;
|
|
13
13
|
}
|
|
14
|
-
.ai-ui-sdk-icon.ai-ui-sdk-wangye[data-v-
|
|
14
|
+
.ai-ui-sdk-icon.ai-ui-sdk-wangye[data-v-xu4a951d] {
|
|
15
15
|
color: #14A568;
|
|
16
16
|
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
|
|
2
|
-
.header-home[data-v-
|
|
2
|
+
.header-home[data-v-npj1hv09] {
|
|
3
3
|
width: 100%;
|
|
4
4
|
background: #FFFFFF;
|
|
5
5
|
box-shadow: 0 3px 4px 0 #0000000a;
|
|
6
6
|
}
|
|
7
|
-
.render-tab[data-v-
|
|
7
|
+
.render-tab[data-v-npj1hv09] {
|
|
8
8
|
border-bottom: 2px solid transparent;
|
|
9
9
|
}
|
|
10
|
-
.render-tab.active[data-v-
|
|
10
|
+
.render-tab.active[data-v-npj1hv09] {
|
|
11
11
|
color: #3A84FF;
|
|
12
12
|
border-bottom: 2px solid #3A84FF;
|
|
13
13
|
}
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
|
|
2
|
-
.dislike-icon[data-v-
|
|
2
|
+
.dislike-icon[data-v-aslf63rc] {
|
|
3
3
|
transform: rotateX(180deg);
|
|
4
4
|
}
|
|
5
|
-
.option-items[data-v-
|
|
5
|
+
.option-items[data-v-aslf63rc] {
|
|
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-
|
|
11
|
+
.option-items[data-v-aslf63rc]:hover {
|
|
12
12
|
background-color: #E1ECFF;
|
|
13
13
|
color: #3A84FF;
|
|
14
14
|
}
|
|
15
|
-
.option-items-selected[data-v-
|
|
15
|
+
.option-items-selected[data-v-aslf63rc]{
|
|
16
16
|
background-color: #E1ECFF;
|
|
17
17
|
}
|
|
18
|
-
[data-v-
|
|
18
|
+
[data-v-aslf63rc] .bk-form-item {
|
|
19
19
|
margin-bottom: 17px;
|
|
20
20
|
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
|
|
2
|
-
.router-tab[data-v-
|
|
2
|
+
.router-tab[data-v-i7scbl8c] {
|
|
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-
|
|
9
|
+
.router-tab a[data-v-i7scbl8c] {
|
|
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-
|
|
18
|
+
.router-tab a.router-link-exact-active[data-v-i7scbl8c] {
|
|
19
19
|
color: #3A84FF;
|
|
20
20
|
border-bottom: 2px solid #3A84FF;
|
|
21
21
|
}
|
|
@@ -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(
|
|
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-
|
|
2
|
+
.t-t-pagination[data-v-1xuilim3] {
|
|
3
3
|
position: sticky;
|
|
4
4
|
bottom: 0;
|
|
5
5
|
}
|
|
6
|
-
.t-t-pagination[data-v-
|
|
6
|
+
.t-t-pagination[data-v-1xuilim3] .bk-pagination-list.is-last {
|
|
7
7
|
margin-left: auto;
|
|
8
8
|
}
|
|
9
|
-
.t-t-table[data-v-
|
|
9
|
+
.t-t-table[data-v-1xuilim3] {
|
|
10
10
|
display: inline;
|
|
11
11
|
height: calc(100% - 64px);
|
|
12
12
|
}
|
|
13
|
-
.t-t-table[data-v-
|
|
13
|
+
.t-t-table[data-v-1xuilim3] .t-table__affixed-header-elm-wrap{
|
|
14
14
|
width: 100% !important;
|
|
15
15
|
top: -2px;
|
|
16
16
|
}
|
|
17
|
-
.t-t-table[data-v-
|
|
17
|
+
.t-t-table[data-v-1xuilim3] .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-
|
|
22
|
+
.t-t-table[data-v-1xuilim3] .t-table--layout-fixed{
|
|
23
23
|
width: 100% !important;
|
|
24
24
|
}
|
|
25
|
-
.t-t-table[data-v-
|
|
25
|
+
.t-t-table[data-v-1xuilim3] .bk-exception-description{
|
|
26
26
|
margin-bottom: 0;
|
|
27
27
|
}
|
|
28
|
-
.t-t-table[data-v-
|
|
28
|
+
.t-t-table[data-v-1xuilim3] .t-table--layout-fixed .t-table__header{
|
|
29
29
|
position: sticky;
|
|
30
30
|
top: -4px;
|
|
31
31
|
}
|
|
32
|
-
.t-t-table[data-v-
|
|
32
|
+
.t-t-table[data-v-1xuilim3] .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-
|
|
37
|
+
.t-t-table[data-v-1xuilim3] .t-table__content::-webkit-scrollbar {
|
|
38
38
|
width: 6px;
|
|
39
39
|
height: 6px;
|
|
40
40
|
}
|
|
41
|
-
.t-t-table[data-v-
|
|
41
|
+
.t-t-table[data-v-1xuilim3] .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-
|
|
47
|
+
.t-t-table[data-v-1xuilim3] .t-table__content::-webkit-scrollbar-thumb:hover {
|
|
48
48
|
background-color: #979ba5;
|
|
49
49
|
}
|
|
50
|
-
.t-t-table[data-v-
|
|
50
|
+
.t-t-table[data-v-1xuilim3] .t-table__ellipsis.t-text-ellipsis:has(.checkbox){
|
|
51
51
|
line-height: 100%;
|
|
52
52
|
}
|
|
53
|
-
.t-t-table[data-v-
|
|
53
|
+
.t-t-table[data-v-1xuilim3] .t-table__cell--sort-trigger.t-table__double-icons{
|
|
54
54
|
gap: 5px;
|
|
55
55
|
}
|
|
56
|
-
.t-t-table[data-v-
|
|
56
|
+
.t-t-table[data-v-1xuilim3] .t-table__sort-icon--active>i{
|
|
57
57
|
color: #3a84ff !important;
|
|
58
58
|
}
|
|
59
|
-
.t-t-table[data-v-
|
|
59
|
+
.t-t-table[data-v-1xuilim3] .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;
|
|
@@ -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
|
-
"
|
|
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-
|
|
2
|
+
.tag-tree[data-v-wejd9od8] {
|
|
3
3
|
font-size: 12px;
|
|
4
4
|
height: auto;
|
|
5
5
|
}
|
|
6
|
-
.tag-tree .manage-tree-item[data-v-
|
|
6
|
+
.tag-tree .manage-tree-item[data-v-wejd9od8] {
|
|
7
7
|
height: 32px;
|
|
8
8
|
flex: 1;
|
|
9
9
|
}
|
|
10
|
-
.tag-tree .quick-icon[data-v-
|
|
10
|
+
.tag-tree .quick-icon[data-v-wejd9od8] {
|
|
11
11
|
margin-left: -24px;
|
|
12
12
|
padding-left: 8px;
|
|
13
13
|
}
|
|
14
|
-
.tag-tree[data-v-
|
|
14
|
+
.tag-tree[data-v-wejd9od8] .tree-item:has(.quick-icon.ai-ui-sdk-wubiaoqian) {
|
|
15
15
|
border-bottom: 1px solid #F0F1F5;
|
|
16
16
|
}
|
|
17
|
-
.tag-tree[data-v-
|
|
17
|
+
.tag-tree[data-v-wejd9od8] .tree-item.active .quick-icon {
|
|
18
18
|
color: #3A84FF;
|
|
19
19
|
}
|
|
20
|
-
.tag-tree[data-v-
|
|
20
|
+
.tag-tree[data-v-wejd9od8] .tree-item.active .tag-number {
|
|
21
21
|
background: #A3C5FD;
|
|
22
22
|
color: #fff;
|
|
23
23
|
}
|
|
24
|
-
.tag-number[data-v-
|
|
24
|
+
.tag-number[data-v-wejd9od8] {
|
|
25
25
|
line-height: 16px;
|
|
26
26
|
padding: 0 4px;
|
|
27
27
|
background-color: #F0F1F5;
|
package/dist/css/tailwind.css
CHANGED
|
@@ -654,6 +654,10 @@
|
|
|
654
654
|
height: 42px;
|
|
655
655
|
}
|
|
656
656
|
|
|
657
|
+
.g-height-56 {
|
|
658
|
+
height: 56px;
|
|
659
|
+
}
|
|
660
|
+
|
|
657
661
|
.g-height-60 {
|
|
658
662
|
height: 60px;
|
|
659
663
|
}
|
|
@@ -662,6 +666,10 @@
|
|
|
662
666
|
height: 64px;
|
|
663
667
|
}
|
|
664
668
|
|
|
669
|
+
.g-height-70 {
|
|
670
|
+
height: 70px !important;
|
|
671
|
+
}
|
|
672
|
+
|
|
665
673
|
.g-height-88 {
|
|
666
674
|
height: 88px;
|
|
667
675
|
}
|
|
@@ -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: {
|
|
@@ -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
|
+
};
|
|
@@ -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
|
};
|
|
@@ -59,8 +59,9 @@ export const useMetaHttp = (apiPrefix, spaceId)=>{
|
|
|
59
59
|
}
|
|
60
60
|
}).then((result)=>result.map(transferTagApi2Tag));
|
|
61
61
|
// 新增 tag
|
|
62
|
-
const plusTag = (tagNames)=>fetch.post(`${apiPrefix}/${metaPerfix}/tag/`, {
|
|
63
|
-
tag_names: tagNames
|
|
62
|
+
const plusTag = (tagNames, module)=>fetch.post(`${apiPrefix}/${metaPerfix}/tag/`, {
|
|
63
|
+
tag_names: tagNames,
|
|
64
|
+
scope_name: module
|
|
64
65
|
}, {
|
|
65
66
|
globalError: false,
|
|
66
67
|
headers: {
|
|
@@ -68,8 +69,9 @@ export const useMetaHttp = (apiPrefix, spaceId)=>{
|
|
|
68
69
|
}
|
|
69
70
|
});
|
|
70
71
|
// check tag
|
|
71
|
-
const checkTag = (tagNames)=>fetch.post(`${apiPrefix}/${metaPerfix}/tag/check/`, {
|
|
72
|
-
tag_names: tagNames
|
|
72
|
+
const checkTag = (tagNames, module)=>fetch.post(`${apiPrefix}/${metaPerfix}/tag/check/`, {
|
|
73
|
+
tag_names: tagNames,
|
|
74
|
+
scope_name: module
|
|
73
75
|
}, {
|
|
74
76
|
globalError: false,
|
|
75
77
|
headers: {
|
package/dist/hooks.d.ts
CHANGED
package/dist/hooks.ts.js
CHANGED
|
@@ -29,8 +29,8 @@
|
|
|
29
29
|
* @returns IPaginationParamApi
|
|
30
30
|
*/ export const transferIPaginationParamToIPaginationParamApi = (data)=>{
|
|
31
31
|
return {
|
|
32
|
-
page: data.page,
|
|
33
|
-
page_size: data.pageSize
|
|
32
|
+
page: data === null || data === void 0 ? void 0 : data.page,
|
|
33
|
+
page_size: data === null || data === void 0 ? void 0 : data.pageSize
|
|
34
34
|
};
|
|
35
35
|
};
|
|
36
36
|
/**
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
* @returns ISortParamApi
|
|
40
40
|
*/ export const transferISortParamToISortParamApi = (data)=>{
|
|
41
41
|
return {
|
|
42
|
-
order_by: data.orderBy,
|
|
43
|
-
order_method: data.orderMethod
|
|
42
|
+
order_by: data === null || data === void 0 ? void 0 : data.orderBy,
|
|
43
|
+
order_method: data === null || data === void 0 ? void 0 : data.orderMethod
|
|
44
44
|
};
|
|
45
45
|
};
|
|
@@ -217,7 +217,7 @@ import { transferResourcePermission } from './permission.ts.js';
|
|
|
217
217
|
"statuses",
|
|
218
218
|
"reviewStatuses"
|
|
219
219
|
]);
|
|
220
|
-
return _object_spread_props(_object_spread({}, rest), {
|
|
220
|
+
return _object_spread_props(_object_spread({}, rest, transferIPaginationParamToIPaginationParamApi(data), transferISortParamToISortParamApi(data)), {
|
|
221
221
|
dataset_id: datasetId,
|
|
222
222
|
created_by: createdBy,
|
|
223
223
|
source_types: sourceTypes,
|