@blueking/ai-ui-sdk 0.1.19 → 0.1.21-beta.1
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-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.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/batch-delete-dataset-data/index.script.vue.js +86 -0
- package/dist/components/render-dataset/components/batch-delete-dataset-data/index.vue.css +16 -0
- package/dist/components/render-dataset/components/batch-delete-dataset-data/index.vue.d.ts +16 -0
- package/dist/components/render-dataset/components/batch-delete-dataset-data/index.vue.js +5 -0
- package/dist/components/render-dataset/components/batch-edit-valid-dataset-data/index.script.vue.js.js +133 -0
- package/dist/components/render-dataset/components/batch-edit-valid-dataset-data/index.vue.css +4 -0
- package/dist/components/render-dataset/components/batch-edit-valid-dataset-data/index.vue.d.ts +16 -0
- package/dist/components/render-dataset/components/batch-edit-valid-dataset-data/index.vue.js +5 -0
- package/dist/components/render-dataset/components/dataset-data-tool-icons/index.script.vue.js +1 -1
- package/dist/components/render-dataset/components/dataset-data-valid/index.script.vue.js.js +176 -0
- package/dist/components/render-dataset/components/dataset-data-valid/index.vue.css +4 -0
- package/dist/components/render-dataset/components/dataset-data-valid/index.vue.d.ts +16 -0
- package/dist/components/render-dataset/components/dataset-data-valid/index.vue.js +5 -0
- 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.vue.css +1 -1
- package/dist/components/render-dataset/components/operation-record/table/index.vue.js +1 -1
- 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/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.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/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/components/search-dataset-data/index.script.vue.js.js +14 -0
- package/dist/components/render-dataset-detail-origin-data/components/batch-operation/index.script.vue.js.js +61 -39
- package/dist/components/render-dataset-detail-origin-data/components/table/index.script.vue.js +73 -59
- 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/header.script.vue.js.js +1 -1
- package/dist/components/render-dataset-list/components/main.vue.css +3 -3
- package/dist/components/render-dataset-list/components/main.vue.d.ts +2 -2
- package/dist/components/render-dataset-list/components/main.vue.js +1 -1
- package/dist/components/render-dataset-list/components/table.script.vue.js +72 -75
- package/dist/components/render-dataset-list/components/table.vue.d.ts +2 -2
- package/dist/components/render-dataset-list/index.vue.css +2 -2
- package/dist/components/render-dataset-list/index.vue.js +1 -1
- package/dist/components/render-dropdown/index.script.vue.js.js +171 -0
- package/dist/components/render-dropdown/index.vue.css +29 -0
- package/dist/components/render-dropdown/index.vue.d.ts +64 -0
- package/dist/components/render-dropdown/index.vue.js +4 -0
- 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.script.vue.js.js +2 -10
- 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-search-select/index.script.vue.js.js +1 -0
- package/dist/components/render-t-table/index.script.vue.js +43 -9
- package/dist/components/render-t-table/index.vue.css +37 -25
- 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 +10 -5
- package/dist/components/render-tag-tree/index.vue.css +7 -7
- package/dist/components/render-tag-tree/index.vue.js +1 -1
- package/dist/components.d.ts +2 -1
- package/dist/components.ts.js +2 -1
- package/dist/css/tailwind.css +36 -3
- package/dist/hooks/use-chat.d.ts +21 -0
- package/dist/hooks/use-chat.ts.js +4 -2
- package/dist/hooks/use-common-http.ts.js +1 -1
- package/dist/hooks/use-dataset-http.d.ts +2 -1
- package/dist/hooks/use-dataset-http.ts.js +8 -1
- package/dist/hooks/use-ellipsis-tooltip.d.ts +0 -1
- package/dist/hooks/use-ellipsis-tooltip.ts.js +0 -1
- package/dist/hooks/use-session-http.d.ts +5 -0
- package/dist/hooks/use-session-http.ts.js +15 -1
- package/dist/hooks/use-style.d.ts +1 -0
- package/dist/hooks/use-style.ts.js +1 -0
- package/dist/http/helper/agent.d.ts +13 -1
- package/dist/http/helper/agent.ts.js +75 -24
- package/dist/http/helper/dataset.d.ts +7 -1
- package/dist/http/helper/dataset.ts.js +16 -2
- package/dist/http/helper/model.ts.js +7 -0
- package/dist/http/helper/permission.ts.js +2 -0
- package/dist/http/helper/session.ts.js +3 -2
- package/dist/transforms.d.ts +1 -0
- package/dist/transforms.ts.js +1 -0
- package/dist/types/agent.d.ts +45 -23
- package/dist/types/common.d.ts +7 -3
- package/dist/types/dataset.d.ts +14 -0
- package/dist/types/enum.d.ts +17 -1
- package/dist/types/enum.ts.js +18 -0
- package/dist/types/model.d.ts +44 -0
- package/dist/types/permission.d.ts +4 -0
- package/package.json +1 -1
- package/dist/images/market.png +0 -0
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
|
|
2
|
+
.tippy-box[data-theme~='light'] {
|
|
3
|
+
background-color: #fff;
|
|
4
|
+
color: #333;
|
|
5
|
+
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
|
|
6
|
+
border-radius: 2px;
|
|
7
|
+
}
|
|
8
|
+
.tippy-box[data-theme~='light'] .tippy-arrow {
|
|
9
|
+
color: #fff;
|
|
10
|
+
}
|
|
11
|
+
.tippy-box[data-theme~='light'] .tippy-content {
|
|
12
|
+
padding: 0;
|
|
13
|
+
}
|
|
14
|
+
.tippy-box[data-theme~='light-border'] {
|
|
15
|
+
background-color: #fff;
|
|
16
|
+
color: #333;
|
|
17
|
+
border: 1px solid #dcdee5;
|
|
18
|
+
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
|
|
19
|
+
border-radius: 2px;
|
|
20
|
+
}
|
|
21
|
+
.tippy-box[data-theme~='light-border'] .tippy-arrow {
|
|
22
|
+
color: #fff;
|
|
23
|
+
}
|
|
24
|
+
.tippy-box[data-theme~='light-border'] .tippy-arrow::before {
|
|
25
|
+
border-color: transparent transparent #dcdee5 transparent;
|
|
26
|
+
}
|
|
27
|
+
.tippy-box[data-theme~='light-border'] .tippy-content {
|
|
28
|
+
padding: 0;
|
|
29
|
+
}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { type Instance, type Placement, type Props } from 'tippy.js';
|
|
2
|
+
export interface IProps {
|
|
3
|
+
/** 位置 */
|
|
4
|
+
placement?: Placement;
|
|
5
|
+
/** 是否显示箭头 */
|
|
6
|
+
arrow?: boolean;
|
|
7
|
+
/** 主题 */
|
|
8
|
+
theme?: 'light' | 'light-border' | 'material' | 'translucent';
|
|
9
|
+
/** 动画效果 */
|
|
10
|
+
animation?: 'fade' | 'shift-away' | 'shift-toward' | 'scale' | 'perspective';
|
|
11
|
+
/** 延迟显示(毫秒) */
|
|
12
|
+
delay?: number | [number | null, number | null];
|
|
13
|
+
/** 最大宽度 */
|
|
14
|
+
maxWidth?: number | string;
|
|
15
|
+
/** 是否禁用 */
|
|
16
|
+
disabled?: boolean;
|
|
17
|
+
/** 额外的 Tippy 配置 */
|
|
18
|
+
tippyOptions?: Partial<Props>;
|
|
19
|
+
}
|
|
20
|
+
export interface IEmits {
|
|
21
|
+
show: [instance: Instance];
|
|
22
|
+
hide: [instance: Instance];
|
|
23
|
+
mount: [instance: Instance];
|
|
24
|
+
shown: [instance: Instance];
|
|
25
|
+
hidden: [instance: Instance];
|
|
26
|
+
}
|
|
27
|
+
declare var __VLS_1: {}, __VLS_3: {};
|
|
28
|
+
type __VLS_Slots = {} & {
|
|
29
|
+
trigger?: (props: typeof __VLS_1) => any;
|
|
30
|
+
} & {
|
|
31
|
+
content?: (props: typeof __VLS_3) => any;
|
|
32
|
+
};
|
|
33
|
+
declare const __VLS_base: import("vue").DefineComponent<IProps, {
|
|
34
|
+
show: () => void;
|
|
35
|
+
hide: () => void;
|
|
36
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
37
|
+
hidden: (instance: Instance<Props>) => any;
|
|
38
|
+
mount: (instance: Instance<Props>) => any;
|
|
39
|
+
show: (instance: Instance<Props>) => any;
|
|
40
|
+
hide: (instance: Instance<Props>) => any;
|
|
41
|
+
shown: (instance: Instance<Props>) => any;
|
|
42
|
+
}, string, import("vue").PublicProps, Readonly<IProps> & Readonly<{
|
|
43
|
+
onHidden?: (instance: Instance<Props>) => any;
|
|
44
|
+
onMount?: (instance: Instance<Props>) => any;
|
|
45
|
+
onShow?: (instance: Instance<Props>) => any;
|
|
46
|
+
onHide?: (instance: Instance<Props>) => any;
|
|
47
|
+
onShown?: (instance: Instance<Props>) => any;
|
|
48
|
+
}>, {
|
|
49
|
+
disabled: boolean;
|
|
50
|
+
theme: "light" | "light-border" | "material" | "translucent";
|
|
51
|
+
placement: Placement;
|
|
52
|
+
arrow: boolean;
|
|
53
|
+
animation: "fade" | "shift-away" | "shift-toward" | "scale" | "perspective";
|
|
54
|
+
delay: number | [number | null, number | null];
|
|
55
|
+
maxWidth: number | string;
|
|
56
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
57
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
58
|
+
declare const _default: typeof __VLS_export;
|
|
59
|
+
export default _default;
|
|
60
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
61
|
+
new (): {
|
|
62
|
+
$slots: S;
|
|
63
|
+
};
|
|
64
|
+
};
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
|
|
2
|
-
.upload-file-home[data-v-
|
|
2
|
+
.upload-file-home[data-v-ichu7pij] {
|
|
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-ichu7pij]: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-ichu7pij] {
|
|
13
13
|
display: flex;
|
|
14
14
|
}
|
|
15
|
-
.upload-file-home .file-icon[data-v-
|
|
15
|
+
.upload-file-home .file-icon[data-v-ichu7pij] {
|
|
16
16
|
font-size: 32px;
|
|
17
17
|
}
|
|
18
|
-
.upload-file-home .file-content[data-v-
|
|
18
|
+
.upload-file-home .file-content[data-v-ichu7pij] {
|
|
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-ichu7pij] {
|
|
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-ichu7pij] {
|
|
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-ichu7pij] {
|
|
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-ichu7pij] {
|
|
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-ichu7pij]: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-ichu7pij] {
|
|
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-qf2sgkyi] {
|
|
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-qf2sgkyi], .ai-ui-sdk-icon.ai-ui-sdk-ppt-2[data-v-qf2sgkyi], .ai-ui-sdk-icon.ai-ui-sdk-markdown[data-v-qf2sgkyi] {
|
|
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-qf2sgkyi] {
|
|
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-qf2sgkyi] {
|
|
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-qf2sgkyi] {
|
|
15
15
|
color: #14A568;
|
|
16
16
|
}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { defineComponent as _defineComponent } from 'vue';
|
|
2
|
-
import { renderSlot as _renderSlot, toDisplayString as _toDisplayString, createElementVNode as _createElementVNode, renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock,
|
|
3
|
-
import _imports_0 from '../../images/market.png';
|
|
2
|
+
import { renderSlot as _renderSlot, toDisplayString as _toDisplayString, createElementVNode as _createElementVNode, renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, createTextVNode as _createTextVNode, resolveComponent as _resolveComponent, withCtx as _withCtx, createVNode as _createVNode, normalizeClass as _normalizeClass, createCommentVNode as _createCommentVNode } from "vue";
|
|
4
3
|
const _hoisted_1 = {
|
|
5
4
|
class: "header-home g-pl-24 g-pr-24"
|
|
6
5
|
};
|
|
@@ -14,12 +13,6 @@ const _hoisted_3 = {
|
|
|
14
13
|
const _hoisted_4 = [
|
|
15
14
|
"onClick"
|
|
16
15
|
];
|
|
17
|
-
const _hoisted_5 = {
|
|
18
|
-
key: 0,
|
|
19
|
-
class: "g-mr-8 g-height-16",
|
|
20
|
-
src: _imports_0
|
|
21
|
-
};
|
|
22
|
-
import { GroupType } from '../../types/enum.ts.js';
|
|
23
16
|
export default /*@__PURE__*/ _defineComponent({
|
|
24
17
|
props: {
|
|
25
18
|
title: {},
|
|
@@ -55,8 +48,7 @@ export default /*@__PURE__*/ _defineComponent({
|
|
|
55
48
|
}),
|
|
56
49
|
onClick: ($event)=>handleChoose(tab.id)
|
|
57
50
|
}, [
|
|
58
|
-
tab.
|
|
59
|
-
_createTextVNode(" " + _toDisplayString(tab.name) + " ", 1 /* TEXT */ ),
|
|
51
|
+
_createTextVNode(_toDisplayString(tab.name) + " ", 1 /* TEXT */ ),
|
|
60
52
|
_createVNode(_component_bk_loading, {
|
|
61
53
|
class: "g-number-font",
|
|
62
54
|
mode: "spin",
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
|
|
2
|
-
.header-home[data-v-
|
|
2
|
+
.header-home[data-v-78tp1bd6] {
|
|
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-78tp1bd6] {
|
|
8
8
|
border-bottom: 2px solid transparent;
|
|
9
9
|
}
|
|
10
|
-
.render-tab.active[data-v-
|
|
10
|
+
.render-tab.active[data-v-78tp1bd6] {
|
|
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-2b8uznxj] {
|
|
3
3
|
transform: rotateX(180deg);
|
|
4
4
|
}
|
|
5
|
-
.option-items[data-v-
|
|
5
|
+
.option-items[data-v-2b8uznxj] {
|
|
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-2b8uznxj]:hover {
|
|
12
12
|
background-color: #E1ECFF;
|
|
13
13
|
color: #3A84FF;
|
|
14
14
|
}
|
|
15
|
-
.option-items-selected[data-v-
|
|
15
|
+
.option-items-selected[data-v-2b8uznxj]{
|
|
16
16
|
background-color: #E1ECFF;
|
|
17
17
|
}
|
|
18
|
-
[data-v-
|
|
18
|
+
[data-v-2b8uznxj] .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-bahd5vh7] {
|
|
3
3
|
margin-top: 2px;
|
|
4
4
|
height: 42px;
|
|
5
5
|
background: #FFFFFF;
|
|
6
6
|
box-shadow: 0 2px 4px 0 #1919290d;
|
|
7
7
|
padding: 0 24px;
|
|
8
8
|
}
|
|
9
|
-
.router-tab a[data-v-
|
|
9
|
+
.router-tab a[data-v-bahd5vh7] {
|
|
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-bahd5vh7] {
|
|
19
19
|
color: #3A84FF;
|
|
20
20
|
border-bottom: 2px solid #3A84FF;
|
|
21
21
|
}
|
|
@@ -119,6 +119,7 @@ export default /*@__PURE__*/ _defineComponent({
|
|
|
119
119
|
const _component_bk_search_select = _resolveComponent("bk-search-select");
|
|
120
120
|
return _openBlock(), _createBlock(_component_bk_search_select, {
|
|
121
121
|
"unique-select": "",
|
|
122
|
+
"value-behavior": "need-key",
|
|
122
123
|
"model-value": renderValue.value,
|
|
123
124
|
data: _ctx.data,
|
|
124
125
|
placeholder: _ctx.placeholder,
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import { defineComponent as _defineComponent, Fragment as _Fragment, createVNode as _createVNode2, createTextVNode as _createTextVNode2 } from 'vue';
|
|
2
|
-
import { createTextVNode as _createTextVNode, resolveComponent as _resolveComponent, withCtx as _withCtx, createVNode as _createVNode, createElementVNode as _createElementVNode, renderSlot as _renderSlot, mergeProps as _mergeProps, normalizeClass as _normalizeClass, openBlock as _openBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode, normalizeStyle as _normalizeStyle, createElementBlock as _createElementBlock } from "vue";
|
|
2
|
+
import { createTextVNode as _createTextVNode, resolveComponent as _resolveComponent, withCtx as _withCtx, createVNode as _createVNode, createElementVNode as _createElementVNode, renderSlot as _renderSlot, unref as _unref, mergeProps as _mergeProps, normalizeClass as _normalizeClass, openBlock as _openBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode, normalizeStyle as _normalizeStyle, createElementBlock as _createElementBlock } from "vue";
|
|
3
3
|
const _hoisted_1 = {
|
|
4
4
|
class: "t-table-row-height"
|
|
5
5
|
};
|
|
6
|
+
import { Funnel } from 'bkui-vue/lib/icon';
|
|
6
7
|
import { ref, watch } from 'vue';
|
|
7
8
|
import RenderSearchEmpty from '../render-search-empty/index.vue.js';
|
|
9
|
+
import { isEmpty, isObject } from '../../util.ts.js';
|
|
8
10
|
export default /*@__PURE__*/ _defineComponent({
|
|
9
11
|
props: {
|
|
10
12
|
columns: {},
|
|
@@ -24,7 +26,10 @@ export default /*@__PURE__*/ _defineComponent({
|
|
|
24
26
|
search: {},
|
|
25
27
|
rowClassName: {},
|
|
26
28
|
rowKey: {},
|
|
27
|
-
height: {}
|
|
29
|
+
height: {},
|
|
30
|
+
paginationBorder: {
|
|
31
|
+
type: Boolean
|
|
32
|
+
}
|
|
28
33
|
},
|
|
29
34
|
emits: [
|
|
30
35
|
"sort-change",
|
|
@@ -79,12 +84,23 @@ export default /*@__PURE__*/ _defineComponent({
|
|
|
79
84
|
].join(' ');
|
|
80
85
|
};
|
|
81
86
|
const getSettingColumns = ()=>{
|
|
82
|
-
if (getDefaultColumns().length === props.columns.length) {
|
|
83
|
-
return props.columns;
|
|
84
|
-
}
|
|
85
87
|
const columns = [
|
|
86
88
|
...props.columns
|
|
87
|
-
]
|
|
89
|
+
].map((column)=>{
|
|
90
|
+
if (isObject(column.filter)) {
|
|
91
|
+
return Object.assign(Object.assign({}, column), {
|
|
92
|
+
filter: Object.assign(Object.assign({}, column.filter), {
|
|
93
|
+
popupProps: Object.assign(Object.assign({}, column.filter.popupProps), {
|
|
94
|
+
overlayInnerClassName: 'g-t-table-filter'
|
|
95
|
+
})
|
|
96
|
+
})
|
|
97
|
+
});
|
|
98
|
+
}
|
|
99
|
+
return column;
|
|
100
|
+
});
|
|
101
|
+
if (getDefaultColumns().length === props.columns.length) {
|
|
102
|
+
return columns;
|
|
103
|
+
}
|
|
88
104
|
const lastColKey = displayColumns.value[displayColumns.value.length - 1];
|
|
89
105
|
const lastIndex = columns.findIndex((col)=>col.colKey === lastColKey);
|
|
90
106
|
if (lastIndex === -1) return columns;
|
|
@@ -167,6 +183,16 @@ export default /*@__PURE__*/ _defineComponent({
|
|
|
167
183
|
const handleUpdateSearch = (search)=>{
|
|
168
184
|
emits('update:search', search);
|
|
169
185
|
};
|
|
186
|
+
const handleFilterChange = (filters)=>{
|
|
187
|
+
const searchVal = Object.assign(Object.assign({}, props.search), filters);
|
|
188
|
+
Object.keys(searchVal).forEach((item)=>{
|
|
189
|
+
const key = item;
|
|
190
|
+
if (isEmpty(searchVal[key])) {
|
|
191
|
+
delete searchVal[key];
|
|
192
|
+
}
|
|
193
|
+
});
|
|
194
|
+
emits('update:search', searchVal);
|
|
195
|
+
};
|
|
170
196
|
watch(()=>props.columns.map((col)=>col.colKey), (newColKeys, oldColKeys)=>{
|
|
171
197
|
if (newColKeys.some((colKey, index)=>colKey !== oldColKeys[index])) {
|
|
172
198
|
displayColumns.value = getDefaultColumns();
|
|
@@ -188,18 +214,20 @@ export default /*@__PURE__*/ _defineComponent({
|
|
|
188
214
|
"column-controller-visible": columnControllerVisible.value,
|
|
189
215
|
"onUpdate:columnControllerVisible": _cache[1] || (_cache[1] = ($event)=>columnControllerVisible.value = $event),
|
|
190
216
|
"cell-empty-content": "--",
|
|
217
|
+
"filter-value": {},
|
|
191
218
|
"max-height": getMaxHeight(),
|
|
192
219
|
loading: _ctx.isLoading,
|
|
193
220
|
"row-key": _ctx.rowKey,
|
|
194
221
|
"header-affixed-top": !!((_a = _ctx.tableData) === null || _a === void 0 ? void 0 : _a.length),
|
|
195
222
|
"display-columns": displayColumns.value,
|
|
196
|
-
"column-controller": getColumnControllerConfig(),
|
|
197
223
|
class: `t-t-table ${_ctx.$attrs.class}`,
|
|
198
224
|
data: _ctx.tableData,
|
|
225
|
+
"column-controller": getColumnControllerConfig(),
|
|
199
226
|
columns: getSettingColumns(),
|
|
200
227
|
"row-class-name": getRowClassName,
|
|
201
228
|
"expand-icon": false,
|
|
202
229
|
onSortChange: handleSortChange,
|
|
230
|
+
onFilterChange: handleFilterChange,
|
|
203
231
|
onDisplayColumnsChange: handleColumnChange,
|
|
204
232
|
onSelectChange: handleSelectChange,
|
|
205
233
|
onRowClick: handleRowClick,
|
|
@@ -278,6 +306,11 @@ export default /*@__PURE__*/ _defineComponent({
|
|
|
278
306
|
loading: true
|
|
279
307
|
})
|
|
280
308
|
]),
|
|
309
|
+
filterIcon: _withCtx(()=>[
|
|
310
|
+
_createVNode(_unref(Funnel), {
|
|
311
|
+
class: "g-text-light-gray g-text-14"
|
|
312
|
+
})
|
|
313
|
+
]),
|
|
281
314
|
_: 3 /* FORWARDED */
|
|
282
315
|
}, 16 /* FULL_PROPS */ , [
|
|
283
316
|
"column-controller-visible",
|
|
@@ -286,9 +319,9 @@ export default /*@__PURE__*/ _defineComponent({
|
|
|
286
319
|
"row-key",
|
|
287
320
|
"header-affixed-top",
|
|
288
321
|
"display-columns",
|
|
289
|
-
"column-controller",
|
|
290
322
|
"class",
|
|
291
323
|
"data",
|
|
324
|
+
"column-controller",
|
|
292
325
|
"columns"
|
|
293
326
|
]),
|
|
294
327
|
_ctx.pagination ? (_openBlock(), _createBlock(_component_bk_pagination, {
|
|
@@ -296,7 +329,8 @@ export default /*@__PURE__*/ _defineComponent({
|
|
|
296
329
|
size: "small",
|
|
297
330
|
class: _normalizeClass({
|
|
298
331
|
't-t-pagination': true,
|
|
299
|
-
'pagination-loading': _ctx.isLoading
|
|
332
|
+
'pagination-loading': _ctx.isLoading,
|
|
333
|
+
'pagination-border': _ctx.paginationBorder
|
|
300
334
|
}),
|
|
301
335
|
"model-value": _ctx.pagination.current,
|
|
302
336
|
count: _ctx.pagination.count,
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
|
|
2
|
-
.t-t-pagination[data-v-
|
|
2
|
+
.t-t-pagination[data-v-y1zrlqh0] {
|
|
3
3
|
position: relative;
|
|
4
4
|
padding: 16px 16px 0 16px;
|
|
5
5
|
}
|
|
6
|
-
.t-t-pagination[data-v-
|
|
6
|
+
.t-t-pagination[data-v-y1zrlqh0] .bk-pagination-list.is-last {
|
|
7
7
|
margin-left: auto;
|
|
8
8
|
}
|
|
9
|
-
.pagination-loading[data-v-
|
|
9
|
+
.pagination-loading[data-v-y1zrlqh0]::after {
|
|
10
10
|
content: '';
|
|
11
11
|
position: absolute;
|
|
12
12
|
top: 0;
|
|
@@ -16,86 +16,95 @@
|
|
|
16
16
|
background-color: rgba(255, 255, 255, 0.6);
|
|
17
17
|
z-index: 72;
|
|
18
18
|
}
|
|
19
|
-
.
|
|
19
|
+
.pagination-border[data-v-y1zrlqh0] {
|
|
20
|
+
border-right: 1px solid #dcdee5;
|
|
21
|
+
border-left: 1px solid #dcdee5;
|
|
22
|
+
border-bottom: 1px solid #dcdee5;
|
|
23
|
+
padding-bottom: 16px;
|
|
24
|
+
}
|
|
25
|
+
.t-t-table[data-v-y1zrlqh0] {
|
|
20
26
|
display: inline;
|
|
21
27
|
font-size: 12px;
|
|
22
28
|
}
|
|
23
|
-
.t-t-table[data-v-
|
|
29
|
+
.t-t-table[data-v-y1zrlqh0] .t-table__th-cell-inner {
|
|
24
30
|
color: #313238;
|
|
25
31
|
}
|
|
26
|
-
.t-t-table[data-v-
|
|
32
|
+
.t-t-table[data-v-y1zrlqh0] th {
|
|
27
33
|
padding: 0 16px;
|
|
28
34
|
height: 42px;
|
|
29
35
|
background-color: #FAFBFD !important;
|
|
30
36
|
}
|
|
31
|
-
.t-t-table[data-v-
|
|
37
|
+
.t-t-table[data-v-y1zrlqh0] .t-table__body tr {
|
|
32
38
|
color: #63656e;
|
|
33
39
|
font-size: 12px;
|
|
34
40
|
}
|
|
35
|
-
.t-t-table[data-v-
|
|
41
|
+
.t-t-table[data-v-y1zrlqh0] .t-table__body tr td {
|
|
36
42
|
padding: 0 16px;
|
|
37
43
|
height: 40px;
|
|
38
44
|
background-color: #fff;
|
|
39
45
|
}
|
|
40
|
-
.t-t-table[data-v-
|
|
46
|
+
.t-t-table[data-v-y1zrlqh0] .t-table__body tr:hover td {
|
|
41
47
|
background-color: #f5f7fa !important;
|
|
42
48
|
color: #63656E;
|
|
43
49
|
}
|
|
44
|
-
.t-t-table[data-v-
|
|
50
|
+
.t-t-table[data-v-y1zrlqh0] .t-table__content .t-table__body .t-table__empty-row {
|
|
45
51
|
background-color: #fff !important;
|
|
46
52
|
}
|
|
47
|
-
.t-t-table[data-v-
|
|
53
|
+
.t-t-table[data-v-y1zrlqh0] .t-table__content .t-table__body .t-table__empty-row >td {
|
|
48
54
|
border: none;
|
|
49
55
|
}
|
|
50
|
-
.t-t-table[data-v-
|
|
56
|
+
.t-t-table[data-v-y1zrlqh0] th .t-table__ellipsis {
|
|
51
57
|
width: auto !important;
|
|
52
58
|
}
|
|
53
|
-
.t-t-table[data-v-
|
|
59
|
+
.t-t-table[data-v-y1zrlqh0] .t-loading__gradient.t-icon-loading {
|
|
54
60
|
display: none;
|
|
55
61
|
}
|
|
56
|
-
.t-t-table[data-v-
|
|
62
|
+
.t-t-table[data-v-y1zrlqh0]:first-of-type .t-table__affixed-header-elm-wrap{
|
|
57
63
|
width: calc(100% - 6px) !important;
|
|
58
64
|
}
|
|
59
|
-
.t-t-table[data-v-
|
|
65
|
+
.t-t-table[data-v-y1zrlqh0] .t-table__affixed-header-elm-wrap>div {
|
|
60
66
|
width: 100% !important;
|
|
61
67
|
scrollbar-width: none;
|
|
62
68
|
}
|
|
63
|
-
.t-t-table[data-v-
|
|
69
|
+
.t-t-table[data-v-y1zrlqh0] .t-table--layout-fixed{
|
|
64
70
|
width: 100% !important;
|
|
65
71
|
}
|
|
66
|
-
.t-t-table[data-v-
|
|
72
|
+
.t-t-table[data-v-y1zrlqh0] .bk-exception-description{
|
|
67
73
|
margin-bottom: 0;
|
|
68
74
|
}
|
|
69
|
-
.t-t-table[data-v-
|
|
75
|
+
.t-t-table[data-v-y1zrlqh0] .t-table__content{
|
|
70
76
|
z-index: 2;
|
|
71
77
|
max-height: 100%;
|
|
72
78
|
overflow: auto;
|
|
73
79
|
}
|
|
74
|
-
.t-t-table[data-v-
|
|
80
|
+
.t-t-table[data-v-y1zrlqh0] .t-table__content::-webkit-scrollbar {
|
|
75
81
|
width: 6px;
|
|
76
82
|
height: 6px;
|
|
77
83
|
}
|
|
78
|
-
.t-t-table[data-v-
|
|
84
|
+
.t-t-table[data-v-y1zrlqh0] .t-table__content::-webkit-scrollbar-thumb {
|
|
79
85
|
width: 6px;
|
|
80
86
|
height: 6px;
|
|
81
87
|
border-radius: 3px;
|
|
82
88
|
background-color: #dcdee5;
|
|
83
89
|
}
|
|
84
|
-
.t-t-table[data-v-
|
|
90
|
+
.t-t-table[data-v-y1zrlqh0] .t-table__content::-webkit-scrollbar-thumb:hover {
|
|
85
91
|
background-color: #979ba5;
|
|
86
92
|
}
|
|
87
|
-
.t-t-table[data-v-
|
|
93
|
+
.t-t-table[data-v-y1zrlqh0] .t-table__ellipsis.t-text-ellipsis:has(.checkbox){
|
|
88
94
|
line-height: 100%;
|
|
89
95
|
}
|
|
90
|
-
.t-t-table[data-v-
|
|
96
|
+
.t-t-table[data-v-y1zrlqh0] .t-table__cell--sort-trigger.t-table__double-icons{
|
|
91
97
|
gap: 5px;
|
|
92
98
|
}
|
|
93
|
-
.t-t-table[data-v-
|
|
99
|
+
.t-t-table[data-v-y1zrlqh0] .t-table__sort-icon--active>i{
|
|
94
100
|
color: #3a84ff !important;
|
|
95
101
|
}
|
|
96
|
-
.t-t-table[data-v-
|
|
102
|
+
.t-t-table[data-v-y1zrlqh0] .t-table__cell--fixed-left:has(.checkbox){
|
|
97
103
|
line-height: 100%;
|
|
98
104
|
}
|
|
105
|
+
.t-t-table[data-v-y1zrlqh0] .t-table__filter-icon.t-is-focus>span{
|
|
106
|
+
color: #3a84ff !important;
|
|
107
|
+
}
|
|
99
108
|
|
|
100
109
|
|
|
101
110
|
.t-table-dialog {
|
|
@@ -104,6 +113,9 @@
|
|
|
104
113
|
box-shadow: 0 0 6px #dcdee5;
|
|
105
114
|
color: #26323d;
|
|
106
115
|
}
|
|
116
|
+
.t-table-dialog .t-checkbox-group .t-checkbox .bkaidev-shezhi {
|
|
117
|
+
display: none;
|
|
118
|
+
}
|
|
107
119
|
.t-table-dialog .t-table-dialog-header {
|
|
108
120
|
margin: 24px;
|
|
109
121
|
font-weight: 400;
|
|
@@ -11,6 +11,7 @@ declare const __VLS_export: <T, S>(__VLS_props: NonNullable<Awaited<typeof __VLS
|
|
|
11
11
|
rowClassName?: string | string[] | Record<string, boolean> | ((row: T, index: number) => string | number | string[] | Record<string, boolean>);
|
|
12
12
|
rowKey: string;
|
|
13
13
|
height?: string;
|
|
14
|
+
paginationBorder?: boolean;
|
|
14
15
|
} & {
|
|
15
16
|
"onUpdate:search"?: (search: S) => any;
|
|
16
17
|
"onRow-mouseleave"?: () => any;
|
|
@@ -86,9 +86,6 @@ export default /*@__PURE__*/ _defineComponent({
|
|
|
86
86
|
};
|
|
87
87
|
const handleUpdateTagName = (tagName)=>{
|
|
88
88
|
emit('update:tagName', tagName);
|
|
89
|
-
if (tagName) {
|
|
90
|
-
emit('update:tag-id', undefined);
|
|
91
|
-
}
|
|
92
89
|
};
|
|
93
90
|
// 设置搜索命中的展开节点
|
|
94
91
|
const handleSetSearchOpenedIds = (datas, search)=>{
|
|
@@ -118,8 +115,8 @@ export default /*@__PURE__*/ _defineComponent({
|
|
|
118
115
|
};
|
|
119
116
|
// 获取标签树列表
|
|
120
117
|
const handleGetTagsTree = ()=>{
|
|
121
|
-
getTagTree.abort();
|
|
122
118
|
loadingTagsTree.value = true;
|
|
119
|
+
getTagTree.abort();
|
|
123
120
|
getTagTree(props.module, props.subModule, props.tagName, props.groupType, props.generateType).then((data)=>{
|
|
124
121
|
allDataMap.value.count = data.all;
|
|
125
122
|
tags.value = data.all <= 0 && props.tagName ? data.tree : [
|
|
@@ -135,12 +132,20 @@ export default /*@__PURE__*/ _defineComponent({
|
|
|
135
132
|
props.groupType,
|
|
136
133
|
props.spaceId,
|
|
137
134
|
props.generateType
|
|
138
|
-
],
|
|
135
|
+
], ()=>{
|
|
136
|
+
if (props.tagName) {
|
|
137
|
+
handleUpdateTagName('');
|
|
138
|
+
} else {
|
|
139
|
+
handleGetTagsTree();
|
|
140
|
+
handleUpdateTagId(undefined);
|
|
141
|
+
}
|
|
142
|
+
}, {
|
|
139
143
|
immediate: true
|
|
140
144
|
});
|
|
141
145
|
watch(()=>props.tagName, function() {
|
|
142
146
|
var _ref = _async_to_generator(function*(val) {
|
|
143
147
|
yield handleGetTagsTree();
|
|
148
|
+
handleUpdateTagId(undefined);
|
|
144
149
|
handleSetSearchOpenedIds(tags.value, val);
|
|
145
150
|
});
|
|
146
151
|
return function(val) {
|