@blueking/ai-ui-sdk 0.3.0-beta.33 → 0.3.0-beta.35
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-agent/agent-type.vue.css +3 -3
- package/dist/components/render-agent/agent-type.vue.js +1 -1
- 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-card/agent/prefix-info-tool.vue.css +5 -5
- package/dist/components/render-card/agent/prefix-info-tool.vue.js +1 -1
- package/dist/components/render-card/base/approval-strategy-popover.script.vue.js.js +2 -2
- package/dist/components/render-card/base.vue.css +12 -12
- package/dist/components/render-card/base.vue.js +1 -1
- package/dist/components/render-card/llm/corner-badge.vue.css +3 -3
- package/dist/components/render-card/llm/corner-badge.vue.js +1 -1
- package/dist/components/render-card/llm/icons.vue.css +2 -2
- package/dist/components/render-card/llm/icons.vue.js +1 -1
- package/dist/components/render-card/llm/info.vue.css +1 -1
- package/dist/components/render-card/llm/info.vue.js +1 -1
- package/dist/components/render-card/llm/tag-prefix.vue.css +3 -3
- package/dist/components/render-card/llm/tag-prefix.vue.js +1 -1
- package/dist/components/render-card/mcp/name-suffix.vue.css +2 -2
- package/dist/components/render-card/mcp/name-suffix.vue.js +1 -1
- package/dist/components/render-card/mcp/selected-tools-info.script.vue.js.js +1 -1
- package/dist/components/render-card/prompt/icons.vue.css +1 -1
- package/dist/components/render-card/prompt/icons.vue.js +1 -1
- package/dist/components/render-card/skill/tag-prefix.vue.css +3 -3
- package/dist/components/render-card/skill/tag-prefix.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-collection/content/index.vue.css +4 -4
- package/dist/components/render-collection/content/index.vue.js +1 -1
- package/dist/components/render-dataset/components/batch-delete-dataset-data/index.vue.css +3 -3
- package/dist/components/render-dataset/components/batch-delete-dataset-data/index.vue.js +1 -1
- package/dist/components/render-dataset/components/batch-edit-valid-dataset-data/index.vue.css +1 -1
- package/dist/components/render-dataset/components/batch-edit-valid-dataset-data/index.vue.js +1 -1
- 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.vue.css +1 -1
- package/dist/components/render-dataset/components/dataset-data-valid/index.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.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 +1 -1
- 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 +1 -1
- 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-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.vue.css +3 -3
- package/dist/components/render-dataset-list/components/main.vue.js +1 -1
- 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-dialog/choose-resource.vue.css +3 -3
- package/dist/components/render-dialog/choose-resource.vue.js +1 -1
- package/dist/components/render-dialog/choose-result.vue.css +14 -14
- package/dist/components/render-dialog/choose-result.vue.js +1 -1
- package/dist/components/render-dialog/choose-space.vue.css +9 -9
- package/dist/components/render-dialog/choose-space.vue.js +1 -1
- package/dist/components/render-dialog/index.script.vue.js +9 -2
- package/dist/components/render-dialog/index.vue.css +6 -6
- package/dist/components/render-dialog/index.vue.js +1 -1
- 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 +6 -6
- package/dist/components/render-file-type-icon/index.vue.js +1 -1
- package/dist/components/render-generate-tag/index.vue.css +5 -5
- package/dist/components/render-generate-tag/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-knowledge/icon/index.vue.css +1 -1
- package/dist/components/render-knowledge/icon/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-prompt/content/index.vue.css +1 -1
- package/dist/components/render-prompt/content/index.vue.js +1 -1
- package/dist/components/render-reference/index.vue.css +2 -2
- package/dist/components/render-reference/index.vue.js +1 -1
- package/dist/components/render-relate-agent/index.script.vue.js +15 -10
- package/dist/components/render-resource-version/index.vue.css +2 -2
- package/dist/components/render-resource-version/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-select-plus-extension/index.vue.css +3 -3
- package/dist/components/render-select-plus-extension/index.vue.js +1 -1
- package/dist/components/render-skill/variable-form/index.script.vue.js.js +165 -0
- package/dist/components/render-skill/variable-form/index.vue.d.ts +1 -0
- package/dist/components/render-skill/variable-form/index.vue.js +1 -1
- package/dist/components/render-t-table/index.script.vue.js +2 -13
- package/dist/components/render-t-table/index.vue.css +27 -27
- package/dist/components/render-t-table/index.vue.d.ts +1 -3
- package/dist/components/render-t-table/index.vue.js +1 -1
- 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/render-tags/index.vue.css +6 -6
- package/dist/components/render-tags/index.vue.js +1 -1
- package/dist/css/g-utilities.css +24 -8
- package/dist/css/g-utilities.manifest.json +6 -2
- package/package.json +2 -1
- package/dist/components/render-skill/variable-form/index.script.vue.js +0 -136
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
|
|
2
|
-
.t-t-pagination[data-v-
|
|
2
|
+
.t-t-pagination[data-v-ie8r9lzy] {
|
|
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-ie8r9lzy] .bk-pagination-list.is-last {
|
|
7
7
|
margin-left: auto;
|
|
8
8
|
}
|
|
9
|
-
.pagination-loading[data-v-
|
|
9
|
+
.pagination-loading[data-v-ie8r9lzy]::after {
|
|
10
10
|
content: '';
|
|
11
11
|
position: absolute;
|
|
12
12
|
top: 0;
|
|
@@ -16,92 +16,92 @@
|
|
|
16
16
|
background-color: rgba(255, 255, 255, 0.6);
|
|
17
17
|
z-index: 72;
|
|
18
18
|
}
|
|
19
|
-
.pagination-border[data-v-
|
|
19
|
+
.pagination-border[data-v-ie8r9lzy] {
|
|
20
20
|
border-right: 1px solid #dcdee5;
|
|
21
21
|
border-left: 1px solid #dcdee5;
|
|
22
22
|
border-bottom: 1px solid #dcdee5;
|
|
23
23
|
padding-bottom: 16px;
|
|
24
24
|
}
|
|
25
|
-
.t-t-table[data-v-
|
|
25
|
+
.t-t-table[data-v-ie8r9lzy] {
|
|
26
26
|
display: inline;
|
|
27
27
|
font-size: 12px;
|
|
28
28
|
}
|
|
29
|
-
.t-t-table[data-v-
|
|
29
|
+
.t-t-table[data-v-ie8r9lzy] .t-table__th-cell-inner {
|
|
30
30
|
color: #313238;
|
|
31
31
|
}
|
|
32
|
-
.t-t-table[data-v-
|
|
32
|
+
.t-t-table[data-v-ie8r9lzy] th {
|
|
33
33
|
padding: 0 16px;
|
|
34
34
|
height: 42px;
|
|
35
35
|
background-color: #FAFBFD !important;
|
|
36
36
|
}
|
|
37
|
-
.t-t-table[data-v-
|
|
37
|
+
.t-t-table[data-v-ie8r9lzy] .t-table__body tr {
|
|
38
38
|
color: #63656e;
|
|
39
39
|
font-size: 12px;
|
|
40
40
|
}
|
|
41
|
-
.t-t-table[data-v-
|
|
41
|
+
.t-t-table[data-v-ie8r9lzy] .t-table__body tr td {
|
|
42
42
|
padding: 0 16px;
|
|
43
43
|
height: 40px;
|
|
44
44
|
}
|
|
45
|
-
.t-t-table[data-v-
|
|
45
|
+
.t-t-table[data-v-ie8r9lzy] .t-table__body tr:hover td {
|
|
46
46
|
background-color: #f5f7fa !important;
|
|
47
47
|
color: #63656E;
|
|
48
48
|
}
|
|
49
|
-
.t-t-table[data-v-
|
|
49
|
+
.t-t-table[data-v-ie8r9lzy] .t-table__content .t-table__body .t-table__empty-row {
|
|
50
50
|
background-color: #fff !important;
|
|
51
51
|
}
|
|
52
|
-
.t-t-table[data-v-
|
|
52
|
+
.t-t-table[data-v-ie8r9lzy] .t-table__content .t-table__body .t-table__empty-row >td {
|
|
53
53
|
border: none;
|
|
54
54
|
}
|
|
55
|
-
.t-t-table[data-v-
|
|
55
|
+
.t-t-table[data-v-ie8r9lzy] th .t-table__ellipsis {
|
|
56
56
|
width: auto !important;
|
|
57
57
|
}
|
|
58
|
-
.t-t-table[data-v-
|
|
58
|
+
.t-t-table[data-v-ie8r9lzy] .t-loading__gradient.t-icon-loading {
|
|
59
59
|
display: none;
|
|
60
60
|
}
|
|
61
|
-
.t-t-table[data-v-
|
|
61
|
+
.t-t-table[data-v-ie8r9lzy]:first-of-type .t-table__affixed-header-elm-wrap{
|
|
62
62
|
width: calc(100% - 6px) !important;
|
|
63
63
|
}
|
|
64
|
-
.t-t-table[data-v-
|
|
64
|
+
.t-t-table[data-v-ie8r9lzy] .t-table__affixed-header-elm-wrap>div {
|
|
65
65
|
width: 100% !important;
|
|
66
66
|
scrollbar-width: none;
|
|
67
67
|
}
|
|
68
|
-
.t-t-table[data-v-
|
|
68
|
+
.t-t-table[data-v-ie8r9lzy] .t-table--layout-fixed{
|
|
69
69
|
width: 100% !important;
|
|
70
70
|
}
|
|
71
|
-
.t-t-table[data-v-
|
|
71
|
+
.t-t-table[data-v-ie8r9lzy] .bk-exception-description{
|
|
72
72
|
margin-bottom: 0;
|
|
73
73
|
}
|
|
74
|
-
.t-t-table[data-v-
|
|
74
|
+
.t-t-table[data-v-ie8r9lzy] .t-table__content{
|
|
75
75
|
z-index: 2;
|
|
76
76
|
max-height: 100%;
|
|
77
77
|
overflow: auto;
|
|
78
78
|
}
|
|
79
|
-
.t-t-table[data-v-
|
|
79
|
+
.t-t-table[data-v-ie8r9lzy] .t-table__content::-webkit-scrollbar {
|
|
80
80
|
width: 6px;
|
|
81
81
|
height: 6px;
|
|
82
82
|
}
|
|
83
|
-
.t-t-table[data-v-
|
|
83
|
+
.t-t-table[data-v-ie8r9lzy] .t-table__content::-webkit-scrollbar-thumb {
|
|
84
84
|
width: 6px;
|
|
85
85
|
height: 6px;
|
|
86
86
|
border-radius: 3px;
|
|
87
87
|
background-color: #dcdee5;
|
|
88
88
|
}
|
|
89
|
-
.t-t-table[data-v-
|
|
89
|
+
.t-t-table[data-v-ie8r9lzy] .t-table__content::-webkit-scrollbar-thumb:hover {
|
|
90
90
|
background-color: #979ba5;
|
|
91
91
|
}
|
|
92
|
-
.t-t-table[data-v-
|
|
92
|
+
.t-t-table[data-v-ie8r9lzy] .t-table__ellipsis.t-text-ellipsis:has(.checkbox){
|
|
93
93
|
line-height: 100%;
|
|
94
94
|
}
|
|
95
|
-
.t-t-table[data-v-
|
|
95
|
+
.t-t-table[data-v-ie8r9lzy] .t-table__cell--sort-trigger.t-table__double-icons{
|
|
96
96
|
gap: 5px;
|
|
97
97
|
}
|
|
98
|
-
.t-t-table[data-v-
|
|
98
|
+
.t-t-table[data-v-ie8r9lzy] .t-table__sort-icon--active>i{
|
|
99
99
|
color: #3a84ff !important;
|
|
100
100
|
}
|
|
101
|
-
.t-t-table[data-v-
|
|
101
|
+
.t-t-table[data-v-ie8r9lzy] .t-table__cell--fixed-left:has(.checkbox){
|
|
102
102
|
line-height: 100%;
|
|
103
103
|
}
|
|
104
|
-
.t-t-table[data-v-
|
|
104
|
+
.t-t-table[data-v-ie8r9lzy] .t-table__filter-icon.t-is-focus>span{
|
|
105
105
|
color: #3a84ff !important;
|
|
106
106
|
}
|
|
107
107
|
|
|
@@ -30,9 +30,7 @@ declare const __VLS_export: <T, S>(__VLS_props: NonNullable<Awaited<typeof __VLS
|
|
|
30
30
|
}> & (typeof globalThis extends {
|
|
31
31
|
__VLS_PROPS_FALLBACK: infer P;
|
|
32
32
|
} ? P : {});
|
|
33
|
-
expose: (exposed:
|
|
34
|
-
validate: () => Promise<unknown>;
|
|
35
|
-
}>) => void;
|
|
33
|
+
expose: (exposed: {}) => void;
|
|
36
34
|
attrs: any;
|
|
37
35
|
slots: {
|
|
38
36
|
expandedRow?: (props: {
|
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
|
|
2
|
-
.tag-tree[data-v-
|
|
2
|
+
.tag-tree[data-v-gc77seib] {
|
|
3
3
|
font-size: 12px;
|
|
4
4
|
height: auto;
|
|
5
5
|
max-height: calc(100% - 44px);
|
|
6
6
|
}
|
|
7
|
-
.tag-tree .manage-tree-item[data-v-
|
|
7
|
+
.tag-tree .manage-tree-item[data-v-gc77seib] {
|
|
8
8
|
height: 32px;
|
|
9
9
|
flex: 1;
|
|
10
10
|
}
|
|
11
|
-
.tag-tree .quick-icon[data-v-
|
|
11
|
+
.tag-tree .quick-icon[data-v-gc77seib] {
|
|
12
12
|
margin-left: -24px;
|
|
13
13
|
padding-left: 8px;
|
|
14
14
|
}
|
|
15
|
-
.tag-tree[data-v-
|
|
15
|
+
.tag-tree[data-v-gc77seib] .tree-item:has(.bottom-line) {
|
|
16
16
|
border-bottom: 1px solid #F0F1F5;
|
|
17
17
|
}
|
|
18
|
-
.tag-tree[data-v-
|
|
18
|
+
.tag-tree[data-v-gc77seib] .tree-item.active .quick-icon {
|
|
19
19
|
color: #3A84FF;
|
|
20
20
|
}
|
|
21
|
-
.tag-tree[data-v-
|
|
21
|
+
.tag-tree[data-v-gc77seib] .tree-item.active .tag-number {
|
|
22
22
|
background: #A3C5FD;
|
|
23
23
|
color: #fff;
|
|
24
24
|
}
|
|
25
|
-
.tag-number[data-v-
|
|
25
|
+
.tag-number[data-v-gc77seib] {
|
|
26
26
|
line-height: 16px;
|
|
27
27
|
padding: 0 4px;
|
|
28
28
|
background-color: #F0F1F5;
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
|
|
2
|
-
.tag-container[data-v-
|
|
2
|
+
.tag-container[data-v-ygvr2yig] {
|
|
3
3
|
visibility: hidden;
|
|
4
4
|
white-space: nowrap;
|
|
5
5
|
column-gap: 4px;
|
|
6
6
|
width: calc(100% - 20px);
|
|
7
7
|
}
|
|
8
|
-
.tag-home[data-v-
|
|
8
|
+
.tag-home[data-v-ygvr2yig] {
|
|
9
9
|
vertical-align: sub;
|
|
10
10
|
flex-shrink: 0;
|
|
11
11
|
}
|
|
12
|
-
[is-show="true"][data-v-
|
|
12
|
+
[is-show="true"][data-v-ygvr2yig] {
|
|
13
13
|
visibility: visible;
|
|
14
14
|
}
|
|
15
|
-
[is-show="false"][data-v-
|
|
15
|
+
[is-show="false"][data-v-ygvr2yig] {
|
|
16
16
|
display: none !important;
|
|
17
17
|
}
|
|
18
|
-
.popover-main[data-v-
|
|
18
|
+
.popover-main[data-v-ygvr2yig] {
|
|
19
19
|
padding: 8px 8px 10px;
|
|
20
20
|
}
|
|
21
|
-
.tag-list[data-v-
|
|
21
|
+
.tag-list[data-v-ygvr2yig] {
|
|
22
22
|
border-radius: 2px;
|
|
23
23
|
background: #F0F1F5;
|
|
24
24
|
}
|
package/dist/css/g-utilities.css
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
.\!g-bg-FAFBFD {
|
|
2
|
-
background-color: #FAFBFD !important;
|
|
3
|
-
}
|
|
4
|
-
|
|
5
1
|
.\!g-bg-dark-gray {
|
|
6
2
|
background-color: #f5f7fa !important;
|
|
7
3
|
}
|
|
8
4
|
|
|
5
|
+
.\!g-bg-f0f1f5 {
|
|
6
|
+
background-color: #f0f1f5 !important;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
9
|
.\!g-bg-white {
|
|
10
10
|
background-color: #fff !important;
|
|
11
11
|
}
|
|
@@ -79,6 +79,10 @@
|
|
|
79
79
|
margin-bottom: 10px !important;
|
|
80
80
|
}
|
|
81
81
|
|
|
82
|
+
.\!g-mb-12 {
|
|
83
|
+
margin-bottom: 12px !important;
|
|
84
|
+
}
|
|
85
|
+
|
|
82
86
|
.\!g-mb-16 {
|
|
83
87
|
margin-bottom: 16px !important;
|
|
84
88
|
}
|
|
@@ -101,6 +105,14 @@
|
|
|
101
105
|
}
|
|
102
106
|
}
|
|
103
107
|
|
|
108
|
+
.\!g-overflow-hidden {
|
|
109
|
+
overflow: hidden !important;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
.\!g-pl-16 {
|
|
113
|
+
padding-left: 16px !important;
|
|
114
|
+
}
|
|
115
|
+
|
|
104
116
|
.\!g-pl-24 {
|
|
105
117
|
padding-left: 24px !important;
|
|
106
118
|
}
|
|
@@ -161,6 +173,10 @@
|
|
|
161
173
|
width: 220px !important;
|
|
162
174
|
}
|
|
163
175
|
|
|
176
|
+
.\!g-w-568 {
|
|
177
|
+
width: 568px !important;
|
|
178
|
+
}
|
|
179
|
+
|
|
164
180
|
.\!g-w-full {
|
|
165
181
|
width: 100% !important;
|
|
166
182
|
}
|
|
@@ -173,6 +189,10 @@
|
|
|
173
189
|
position: absolute;
|
|
174
190
|
}
|
|
175
191
|
|
|
192
|
+
.g-bg-fafbfd {
|
|
193
|
+
background-color: #fafbfd;
|
|
194
|
+
}
|
|
195
|
+
|
|
176
196
|
.g-border-radio-100 {
|
|
177
197
|
border-radius: 100%;
|
|
178
198
|
}
|
|
@@ -1052,10 +1072,6 @@ padding: 0px !important;
|
|
|
1052
1072
|
color: #979BA5;
|
|
1053
1073
|
}
|
|
1054
1074
|
|
|
1055
|
-
.g-text-EA3636 {
|
|
1056
|
-
color: #EA3636;
|
|
1057
|
-
}
|
|
1058
|
-
|
|
1059
1075
|
.g-text-black {
|
|
1060
1076
|
color: #313238;
|
|
1061
1077
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[
|
|
2
|
-
"!g-bg-FAFBFD",
|
|
3
2
|
"!g-bg-dark-gray",
|
|
3
|
+
"!g-bg-f0f1f5",
|
|
4
4
|
"!g-bg-white",
|
|
5
5
|
"!g-block",
|
|
6
6
|
"!g-border-f59500",
|
|
@@ -14,11 +14,14 @@
|
|
|
14
14
|
"!g-items-start",
|
|
15
15
|
"!g-justify-between",
|
|
16
16
|
"!g-mb-10",
|
|
17
|
+
"!g-mb-12",
|
|
17
18
|
"!g-mb-16",
|
|
18
19
|
"!g-mb-6",
|
|
19
20
|
"!g-mr-12",
|
|
20
21
|
"!g-mt-16",
|
|
21
22
|
"!g-no-validate-form-item",
|
|
23
|
+
"!g-overflow-hidden",
|
|
24
|
+
"!g-pl-16",
|
|
22
25
|
"!g-pl-24",
|
|
23
26
|
"!g-pl-5",
|
|
24
27
|
"!g-pl-6",
|
|
@@ -34,9 +37,11 @@
|
|
|
34
37
|
"!g-text-ea3636",
|
|
35
38
|
"!g-text-white",
|
|
36
39
|
"!g-w-220",
|
|
40
|
+
"!g-w-568",
|
|
37
41
|
"!g-w-full",
|
|
38
42
|
"!g-z-9999",
|
|
39
43
|
"g-absolute",
|
|
44
|
+
"g-bg-fafbfd",
|
|
40
45
|
"g-border-radio-100",
|
|
41
46
|
"g-border-t-1",
|
|
42
47
|
"g-border-t-F0F1F5",
|
|
@@ -184,7 +189,6 @@
|
|
|
184
189
|
"g-text-40",
|
|
185
190
|
"g-text-8",
|
|
186
191
|
"g-text-979BA5",
|
|
187
|
-
"g-text-EA3636",
|
|
188
192
|
"g-text-black",
|
|
189
193
|
"g-text-blue",
|
|
190
194
|
"g-text-center",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@blueking/ai-ui-sdk",
|
|
3
|
-
"version": "0.3.0-beta.
|
|
3
|
+
"version": "0.3.0-beta.35",
|
|
4
4
|
"description": "蓝鲸AI UI SDK",
|
|
5
5
|
"main": "dist/main.js",
|
|
6
6
|
"types": "dist/main.d.ts",
|
|
@@ -90,6 +90,7 @@
|
|
|
90
90
|
"author": "",
|
|
91
91
|
"license": "ISC",
|
|
92
92
|
"peerDependencies": {
|
|
93
|
+
"@blueking/ediatable": "^0.0.1-beta.31",
|
|
93
94
|
"@blueking/xss-filter": "^0.0.10",
|
|
94
95
|
"@toast-ui/editor": "^3.2.2",
|
|
95
96
|
"@toast-ui/editor-plugin-code-syntax-highlight": "^3.1.0",
|
|
@@ -1,136 +0,0 @@
|
|
|
1
|
-
var __awaiter = this && this.__awaiter || function(thisArg, _arguments, P, generator) {
|
|
2
|
-
function adopt(value) {
|
|
3
|
-
return value instanceof P ? value : new P(function(resolve) {
|
|
4
|
-
resolve(value);
|
|
5
|
-
});
|
|
6
|
-
}
|
|
7
|
-
return new (P || (P = Promise))(function(resolve, reject) {
|
|
8
|
-
function fulfilled(value) {
|
|
9
|
-
try {
|
|
10
|
-
step(generator.next(value));
|
|
11
|
-
} catch (e) {
|
|
12
|
-
reject(e);
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
function rejected(value) {
|
|
16
|
-
try {
|
|
17
|
-
step(generator["throw"](value));
|
|
18
|
-
} catch (e) {
|
|
19
|
-
reject(e);
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
function step(result) {
|
|
23
|
-
result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);
|
|
24
|
-
}
|
|
25
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
26
|
-
});
|
|
27
|
-
};
|
|
28
|
-
import { defineComponent as _defineComponent, Fragment as _Fragment2, createTextVNode as _createTextVNode, createVNode as _createVNode2 } from 'vue';
|
|
29
|
-
import { createElementVNode as _createElementVNode, createVNode as _createVNode, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock } from "vue";
|
|
30
|
-
import { Input } from 'tdesign-vue-next';
|
|
31
|
-
import { ref } from 'vue';
|
|
32
|
-
import { isEmpty } from '../../../common/util.ts.js';
|
|
33
|
-
import RenderTTable from '../../render-t-table/index.vue.js';
|
|
34
|
-
export default /*@__PURE__*/ _defineComponent({
|
|
35
|
-
props: {
|
|
36
|
-
skillEnvs: {}
|
|
37
|
-
},
|
|
38
|
-
emits: [
|
|
39
|
-
"update:skillEnvs"
|
|
40
|
-
],
|
|
41
|
-
setup (__props, { expose: __expose, emit: __emit }) {
|
|
42
|
-
;
|
|
43
|
-
const props = __props;
|
|
44
|
-
const emit = __emit;
|
|
45
|
-
const tableRef = ref();
|
|
46
|
-
const getColumns = ()=>[
|
|
47
|
-
{
|
|
48
|
-
colKey: 'key',
|
|
49
|
-
title: 'Key',
|
|
50
|
-
ellipsis: true,
|
|
51
|
-
className: '!g-bg-FAFBFD'
|
|
52
|
-
},
|
|
53
|
-
{
|
|
54
|
-
colKey: 'value',
|
|
55
|
-
title: ()=>_createVNode2(_Fragment2, null, [
|
|
56
|
-
_createTextVNode("Value"),
|
|
57
|
-
_createVNode2("span", {
|
|
58
|
-
"class": "g-ml-4 g-text-12 g-text-EA3636"
|
|
59
|
-
}, [
|
|
60
|
-
_createTextVNode("*")
|
|
61
|
-
])
|
|
62
|
-
]),
|
|
63
|
-
ellipsis: true,
|
|
64
|
-
edit: {
|
|
65
|
-
component: Input,
|
|
66
|
-
props: {
|
|
67
|
-
clearable: true,
|
|
68
|
-
autofocus: true,
|
|
69
|
-
autoWidth: true,
|
|
70
|
-
placeholder: '请输入 Value'
|
|
71
|
-
},
|
|
72
|
-
validateTrigger: 'change',
|
|
73
|
-
onEdited: (context)=>{
|
|
74
|
-
const newData = [
|
|
75
|
-
...props.skillEnvs
|
|
76
|
-
];
|
|
77
|
-
newData.splice(context.rowIndex, 1, context.newRowData);
|
|
78
|
-
emit('update:skillEnvs', newData);
|
|
79
|
-
},
|
|
80
|
-
rules: ({ row })=>{
|
|
81
|
-
if (row === null || row === void 0 ? void 0 : row.required) {
|
|
82
|
-
return [
|
|
83
|
-
{
|
|
84
|
-
required: true,
|
|
85
|
-
message: `${row.key}值为必填`,
|
|
86
|
-
validator: (val)=>isEmpty(val)
|
|
87
|
-
}
|
|
88
|
-
];
|
|
89
|
-
}
|
|
90
|
-
return [];
|
|
91
|
-
},
|
|
92
|
-
abortEditOnEvent: [
|
|
93
|
-
'onEnter',
|
|
94
|
-
'onBlur'
|
|
95
|
-
]
|
|
96
|
-
}
|
|
97
|
-
},
|
|
98
|
-
{
|
|
99
|
-
colKey: 'description',
|
|
100
|
-
title: '说明',
|
|
101
|
-
ellipsis: true,
|
|
102
|
-
className: '!g-bg-FAFBFD'
|
|
103
|
-
}
|
|
104
|
-
];
|
|
105
|
-
const validate = ()=>__awaiter(this, void 0, void 0, function*() {
|
|
106
|
-
var _a;
|
|
107
|
-
const { result } = yield (_a = tableRef.value) === null || _a === void 0 ? void 0 : _a.validate();
|
|
108
|
-
const hasRequiredEmptySkillEnv = props.skillEnvs.some((env)=>env.required && isEmpty(env.value));
|
|
109
|
-
if (!isEmpty(result) || hasRequiredEmptySkillEnv) {
|
|
110
|
-
throw new Error('Skill 有必填项未配置');
|
|
111
|
-
}
|
|
112
|
-
});
|
|
113
|
-
__expose({
|
|
114
|
-
validate
|
|
115
|
-
});
|
|
116
|
-
return (_ctx, _cache)=>{
|
|
117
|
-
return _openBlock(), _createElementBlock(_Fragment, null, [
|
|
118
|
-
_cache[0] || (_cache[0] = _createElementVNode("h3", {
|
|
119
|
-
class: "g-text-12 g-leading-20 g-text-black g-mb-12 g-mt-6 g-mx-16"
|
|
120
|
-
}, " 以下环境变量将在 skill 沙箱启动时自动注入 ", -1 /* CACHED */ )),
|
|
121
|
-
_createVNode(RenderTTable, {
|
|
122
|
-
ref_key: "tableRef",
|
|
123
|
-
ref: tableRef,
|
|
124
|
-
"row-key": "key",
|
|
125
|
-
class: "g-mb-12 g-mx-16",
|
|
126
|
-
bordered: true,
|
|
127
|
-
"table-data": props.skillEnvs,
|
|
128
|
-
columns: getColumns()
|
|
129
|
-
}, null, 8 /* PROPS */ , [
|
|
130
|
-
"table-data",
|
|
131
|
-
"columns"
|
|
132
|
-
])
|
|
133
|
-
], 64 /* STABLE_FRAGMENT */ );
|
|
134
|
-
};
|
|
135
|
-
}
|
|
136
|
-
});
|