@blueking/ai-ui-sdk 0.1.10 → 0.1.12-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-aside/index.vue.css +9 -9
- package/dist/components/render-aside/index.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-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.script.vue.js.js +9 -9
- 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-tool-icons/index.script.vue.js +46 -0
- package/dist/components/render-dataset/components/dataset-data-tool-icons/index.vue.d.ts +5 -0
- package/dist/components/render-dataset/components/dataset-data-tool-icons/index.vue.js +3 -0
- package/dist/components/render-dataset/components/edit-dataset-data/index.script.vue.js.js +4 -2
- 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.js +35 -5
- 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/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/form/{manual.script.vue.js → manual.script.vue.js.js} +69 -66
- package/dist/components/render-dataset/components/plus-dataset-data/form/manual.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/index.vue.css +1 -1
- package/dist/components/render-dataset/index.vue.js +1 -1
- package/dist/components/render-dataset-detail-origin-data/components/table/index.vue.css +1 -1
- package/dist/components/render-dataset-detail-origin-data/components/table/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-expand-collapse/index.vue.css +3 -3
- package/dist/components/render-expand-collapse/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 +5 -5
- package/dist/components/render-file-type-icon/index.vue.js +1 -1
- package/dist/components/render-header/index.vue.css +5 -5
- package/dist/components/render-header/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/hooks/use-reference-doc.ts.js +2 -1
- package/dist/hooks/use-summary.ts.js +2 -2
- package/package.json +1 -1
@@ -1,5 +1,5 @@
|
|
1
1
|
import script from './footer.script.vue.js.js';
|
2
|
-
script.__scopeId = "data-v-
|
2
|
+
script.__scopeId = "data-v-vu7zw9pp";
|
3
3
|
script.__file = "./src/components/render-dataset/components/plus-dataset-data/form/footer.vue";
|
4
4
|
import './footer.vue.css';
|
5
5
|
export default script;
|
@@ -1,7 +1,7 @@
|
|
1
1
|
|
2
|
-
.plus-dataset-data[data-v-
|
2
|
+
.plus-dataset-data[data-v-qc3r20d6] {
|
3
3
|
padding: 20px 24px;
|
4
4
|
}
|
5
|
-
.plus-dataset-sideslider[data-v-
|
5
|
+
.plus-dataset-sideslider[data-v-qc3r20d6] .bk-modal-content {
|
6
6
|
scrollbar-gutter: inherit !important;
|
7
7
|
}
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import script from './index.script.vue.js.js';
|
2
|
-
script.__scopeId = "data-v-
|
2
|
+
script.__scopeId = "data-v-qc3r20d6";
|
3
3
|
script.__file = "./src/components/render-dataset/components/plus-dataset-data/form/index.vue";
|
4
4
|
import './index.vue.css';
|
5
5
|
export default script;
|
@@ -1,19 +1,66 @@
|
|
1
|
-
|
2
|
-
|
1
|
+
function _define_property(obj, key, value) {
|
2
|
+
if (key in obj) {
|
3
|
+
Object.defineProperty(obj, key, {
|
4
|
+
value: value,
|
5
|
+
enumerable: true,
|
6
|
+
configurable: true,
|
7
|
+
writable: true
|
8
|
+
});
|
9
|
+
} else {
|
10
|
+
obj[key] = value;
|
11
|
+
}
|
12
|
+
return obj;
|
13
|
+
}
|
14
|
+
function _object_spread(target) {
|
15
|
+
for(var i = 1; i < arguments.length; i++){
|
16
|
+
var source = arguments[i] != null ? arguments[i] : {};
|
17
|
+
var ownKeys = Object.keys(source);
|
18
|
+
if (typeof Object.getOwnPropertySymbols === "function") {
|
19
|
+
ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
|
20
|
+
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
|
21
|
+
}));
|
22
|
+
}
|
23
|
+
ownKeys.forEach(function(key) {
|
24
|
+
_define_property(target, key, source[key]);
|
25
|
+
});
|
26
|
+
}
|
27
|
+
return target;
|
28
|
+
}
|
29
|
+
function ownKeys(object, enumerableOnly) {
|
30
|
+
var keys = Object.keys(object);
|
31
|
+
if (Object.getOwnPropertySymbols) {
|
32
|
+
var symbols = Object.getOwnPropertySymbols(object);
|
33
|
+
if (enumerableOnly) {
|
34
|
+
symbols = symbols.filter(function(sym) {
|
35
|
+
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
36
|
+
});
|
37
|
+
}
|
38
|
+
keys.push.apply(keys, symbols);
|
39
|
+
}
|
40
|
+
return keys;
|
41
|
+
}
|
42
|
+
function _object_spread_props(target, source) {
|
43
|
+
source = source != null ? source : {};
|
44
|
+
if (Object.getOwnPropertyDescriptors) {
|
45
|
+
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
46
|
+
} else {
|
47
|
+
ownKeys(Object(source)).forEach(function(key) {
|
48
|
+
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
49
|
+
});
|
50
|
+
}
|
51
|
+
return target;
|
52
|
+
}
|
53
|
+
import { defineComponent as _defineComponent } from 'vue';
|
54
|
+
import { unref as _unref, renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, toDisplayString as _toDisplayString, createElementVNode as _createElementVNode, createVNode as _createVNode, resolveComponent as _resolveComponent, withCtx as _withCtx, createBlock as _createBlock, createCommentVNode as _createCommentVNode } from "vue";
|
3
55
|
const _hoisted_1 = {
|
4
56
|
class: "g-flex-row g-justify-between"
|
5
57
|
};
|
6
58
|
const _hoisted_2 = {
|
7
59
|
class: "bk-form-label"
|
8
60
|
};
|
9
|
-
const _hoisted_3 = {
|
10
|
-
class: "g-text-blue g-flex-row"
|
11
|
-
};
|
12
|
-
const _hoisted_4 = {
|
13
|
-
class: "g-flex-row"
|
14
|
-
};
|
15
61
|
import { ref, toRef, useTemplateRef, watch } from 'vue';
|
16
62
|
import AutoHeightTextarea from '../../../../render-auto-height-textarea/index.vue.js';
|
63
|
+
import DatasetDataToolIcons from '../../dataset-data-tool-icons/index.vue.js';
|
17
64
|
import { useDatasetHttp } from '../../../../../hooks/use-dataset-http.ts.js';
|
18
65
|
import { DatasetDataSourceType } from '../../../../../types/enum.ts.js';
|
19
66
|
export default /*@__PURE__*/ _defineComponent({
|
@@ -33,30 +80,23 @@ export default /*@__PURE__*/ _defineComponent({
|
|
33
80
|
const loading = ref(false);
|
34
81
|
const schema = ref({});
|
35
82
|
const validate = ()=>{
|
36
|
-
var
|
37
|
-
return (
|
83
|
+
var _formRef_value;
|
84
|
+
return (_formRef_value = formRef.value) === null || _formRef_value === void 0 ? void 0 : _formRef_value.validate();
|
38
85
|
};
|
39
86
|
const clearValidate = ()=>{
|
40
|
-
var
|
41
|
-
return (
|
42
|
-
};
|
43
|
-
const getTooltipContent = (value)=>{
|
44
|
-
return _createVNode2("section", {
|
45
|
-
"class": "g-white-space-pre-line g-max-height-80vh g-max-width-400 g-scrollbar-page"
|
46
|
-
}, [
|
47
|
-
value
|
48
|
-
]);
|
87
|
+
var _formRef_value;
|
88
|
+
return (_formRef_value = formRef.value) === null || _formRef_value === void 0 ? void 0 : _formRef_value.clearValidate();
|
49
89
|
};
|
50
90
|
const handleUpdate = (key, value)=>{
|
51
|
-
const modelValue =
|
52
|
-
data:
|
91
|
+
const modelValue = _object_spread_props(_object_spread({}, props.modelValue), {
|
92
|
+
data: _object_spread_props(_object_spread({}, props.modelValue.data), {
|
53
93
|
[key]: value
|
54
94
|
})
|
55
95
|
});
|
56
96
|
emits('update:modelValue', modelValue);
|
57
97
|
};
|
58
98
|
const handleClearData = ()=>{
|
59
|
-
const modelValue =
|
99
|
+
const modelValue = _object_spread_props(_object_spread({}, props.modelValue), {
|
60
100
|
data: {}
|
61
101
|
});
|
62
102
|
emits('update:modelValue', modelValue);
|
@@ -69,7 +109,7 @@ export default /*@__PURE__*/ _defineComponent({
|
|
69
109
|
acc[cur] = '';
|
70
110
|
return acc;
|
71
111
|
}, {});
|
72
|
-
const modelValue =
|
112
|
+
const modelValue = _object_spread_props(_object_spread({}, props.modelValue), {
|
73
113
|
data
|
74
114
|
});
|
75
115
|
emits('update:modelValue', modelValue);
|
@@ -84,12 +124,11 @@ export default /*@__PURE__*/ _defineComponent({
|
|
84
124
|
handleUpdateSchema();
|
85
125
|
return;
|
86
126
|
}
|
87
|
-
;
|
88
127
|
loading.value = true;
|
89
128
|
getSchemaList(props.modelValue.datasetId).then((schemaList)=>{
|
90
|
-
var
|
129
|
+
var _schemaList_;
|
91
130
|
// 设置
|
92
|
-
handleUpdateSchema((
|
131
|
+
handleUpdateSchema((_schemaList_ = schemaList[0]) === null || _schemaList_ === void 0 ? void 0 : _schemaList_.schema);
|
93
132
|
}).finally(()=>{
|
94
133
|
loading.value = false;
|
95
134
|
});
|
@@ -109,7 +148,6 @@ export default /*@__PURE__*/ _defineComponent({
|
|
109
148
|
const _component_bk_form_item = _resolveComponent("bk-form-item");
|
110
149
|
const _component_bk_form = _resolveComponent("bk-form");
|
111
150
|
const _component_bk_loading = _resolveComponent("bk-loading");
|
112
|
-
const _directive_bk_tooltips = _resolveDirective("bk-tooltips");
|
113
151
|
return _ctx.modelValue.sourceType === _unref(DatasetDataSourceType).ManualImport ? (_openBlock(), _createBlock(_component_bk_loading, {
|
114
152
|
key: 0,
|
115
153
|
loading: loading.value
|
@@ -134,45 +172,10 @@ export default /*@__PURE__*/ _defineComponent({
|
|
134
172
|
label: _withCtx(()=>[
|
135
173
|
_createElementVNode("span", _hoisted_1, [
|
136
174
|
_createElementVNode("span", _hoisted_2, _toDisplayString(key), 1 /* TEXT */ ),
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
}, null, -1 /* HOISTED */ ),
|
142
|
-
_createElementVNode("span", {
|
143
|
-
class: "g-text-12"
|
144
|
-
}, "示例", -1 /* HOISTED */ )
|
145
|
-
]))), [
|
146
|
-
[
|
147
|
-
_directive_bk_tooltips,
|
148
|
-
{
|
149
|
-
content: getTooltipContent(schema.value[key]),
|
150
|
-
placement: 'left',
|
151
|
-
theme: 'light',
|
152
|
-
boundary: 'parent'
|
153
|
-
}
|
154
|
-
]
|
155
|
-
]),
|
156
|
-
_cache[1] || (_cache[1] = _createElementVNode("span", {
|
157
|
-
class: "click-full-screen g-cursor-pointer g-flex-row"
|
158
|
-
}, [
|
159
|
-
_createElementVNode("i", {
|
160
|
-
class: "ai-ui-sdk-icon ai-ui-sdk-full-screen click-full-screen g-text-14 g-ml-24 g-mr-2"
|
161
|
-
}),
|
162
|
-
_createElementVNode("span", {
|
163
|
-
class: "g-text-12 click-full-screen"
|
164
|
-
}, "全屏")
|
165
|
-
], -1 /* HOISTED */ )),
|
166
|
-
_cache[2] || (_cache[2] = _createElementVNode("span", {
|
167
|
-
class: "click-un-full-screen g-cursor-pointer g-flex-row"
|
168
|
-
}, [
|
169
|
-
_createElementVNode("i", {
|
170
|
-
class: "ai-ui-sdk-icon ai-ui-sdk-un-full-screen click-un-full-screen g-text-14 g-ml-24 g-mr-2"
|
171
|
-
}),
|
172
|
-
_createElementVNode("span", {
|
173
|
-
class: "g-text-12 click-un-full-screen"
|
174
|
-
}, "取消全屏")
|
175
|
-
], -1 /* HOISTED */ ))
|
175
|
+
_createVNode(DatasetDataToolIcons, {
|
176
|
+
tips: schema.value[key]
|
177
|
+
}, null, 8 /* PROPS */ , [
|
178
|
+
"tips"
|
176
179
|
])
|
177
180
|
])
|
178
181
|
]),
|
@@ -1,41 +1,41 @@
|
|
1
1
|
|
2
|
-
.content[data-v-
|
2
|
+
.content[data-v-3q60rfoo] {
|
3
3
|
padding: 18px 24px 0;
|
4
4
|
height: 100%;
|
5
5
|
overflow: auto;
|
6
6
|
}
|
7
|
-
.data-set-review-slider .value-content[data-v-
|
7
|
+
.data-set-review-slider .value-content[data-v-3q60rfoo] {
|
8
8
|
padding: 16px;
|
9
9
|
border: 1px solid #DCDEE5;
|
10
10
|
line-height: 22px;
|
11
11
|
}
|
12
|
-
.data-set-review-slider .review-data[data-v-
|
12
|
+
.data-set-review-slider .review-data[data-v-3q60rfoo] {
|
13
13
|
height: calc(100% - 337px);
|
14
14
|
padding: 18px 24px;
|
15
15
|
}
|
16
|
-
.data-set-review-slider .review-level[data-v-
|
16
|
+
.data-set-review-slider .review-level[data-v-3q60rfoo] {
|
17
17
|
box-shadow: 0 -2px 4px 0 #1919291f;
|
18
18
|
height: 337px;
|
19
19
|
padding: 16px 24px 24px;
|
20
20
|
}
|
21
|
-
.data-set-review-slider .review-level .level-score[data-v-
|
21
|
+
.data-set-review-slider .review-level .level-score[data-v-3q60rfoo] {
|
22
22
|
gap: 50px;
|
23
23
|
}
|
24
|
-
.data-set-review-slider .review-level .level-score .bk-form-item[data-v-
|
24
|
+
.data-set-review-slider .review-level .level-score .bk-form-item[data-v-3q60rfoo] {
|
25
25
|
flex: 1;
|
26
26
|
}
|
27
|
-
.data-set-review-slider .bold-title[data-v-
|
27
|
+
.data-set-review-slider .bold-title[data-v-3q60rfoo] .bk-form-label {
|
28
28
|
font-weight: bold;
|
29
29
|
font-size: 14px;
|
30
30
|
}
|
31
|
-
.data-set-review-slider[data-v-
|
31
|
+
.data-set-review-slider[data-v-3q60rfoo] .bk-sideslider-title {
|
32
32
|
justify-content: space-between;
|
33
33
|
width: 100%;
|
34
34
|
}
|
35
|
-
.data-set-review-slider[data-v-
|
35
|
+
.data-set-review-slider[data-v-3q60rfoo] .bk-modal-content {
|
36
36
|
height: calc(100% - 100px) !important;
|
37
37
|
scrollbar-gutter: inherit;
|
38
38
|
}
|
39
|
-
.data-set-review-slider[data-v-
|
39
|
+
.data-set-review-slider[data-v-3q60rfoo] .bk-modal-content >div, .data-set-review-slider[data-v-3q60rfoo] .bk-modal-content .bk-sideslider-content {
|
40
40
|
height: 100%;
|
41
41
|
}
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import script from './index.script.vue.js.js';
|
2
|
-
script.__scopeId = "data-v-
|
2
|
+
script.__scopeId = "data-v-3q60rfoo";
|
3
3
|
script.__file = "./src/components/render-dataset/components/review-dataset-data/index.vue";
|
4
4
|
import './index.vue.css';
|
5
5
|
export default script;
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import script from './index.script.vue.js';
|
2
|
-
script.__scopeId = "data-v-
|
2
|
+
script.__scopeId = "data-v-ddyrxdr6";
|
3
3
|
script.__file = "./src/components/render-dataset-detail-origin-data/components/table/index.vue";
|
4
4
|
import './index.vue.css';
|
5
5
|
export default script;
|
@@ -1,15 +1,15 @@
|
|
1
1
|
|
2
|
-
.origin-data-content[data-v-
|
2
|
+
.origin-data-content[data-v-nhdi8os4] {
|
3
3
|
padding: 24px;
|
4
4
|
height: calc(100% - 52px - 44px);
|
5
5
|
}
|
6
|
-
.origin-data-panel[data-v-
|
6
|
+
.origin-data-panel[data-v-nhdi8os4] {
|
7
7
|
height: 100%;
|
8
8
|
padding: 20px;
|
9
9
|
background: #ffffff;
|
10
10
|
box-shadow: 0 2px 4px 0 #1919290d;
|
11
11
|
border-radius: 2px;
|
12
12
|
}
|
13
|
-
.origin-data-panel .toolbar-search[data-v-
|
13
|
+
.origin-data-panel .toolbar-search[data-v-nhdi8os4] {
|
14
14
|
width: 6.17rem;
|
15
15
|
}
|
@@ -1,15 +1,15 @@
|
|
1
1
|
|
2
|
-
.main-content[data-v-
|
2
|
+
.main-content[data-v-s8cwt0zx] {
|
3
3
|
padding: 20px 24px;
|
4
4
|
height: calc(100% - 52px);
|
5
5
|
}
|
6
|
-
.main-panel[data-v-
|
6
|
+
.main-panel[data-v-s8cwt0zx] {
|
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-
|
13
|
+
.main-search[data-v-s8cwt0zx] {
|
14
14
|
width: 6.17rem;
|
15
15
|
}
|
@@ -1,5 +1,5 @@
|
|
1
1
|
|
2
|
-
.expend-collapse-home[data-v-
|
2
|
+
.expend-collapse-home[data-v-g9058j60] {
|
3
3
|
width: 16px;
|
4
4
|
height: 64px;
|
5
5
|
background: #DCDEE5;
|
@@ -15,9 +15,9 @@
|
|
15
15
|
cursor: pointer;
|
16
16
|
z-index: 1550;
|
17
17
|
}
|
18
|
-
.expend-collapse-home[data-v-
|
18
|
+
.expend-collapse-home[data-v-g9058j60]:hover {
|
19
19
|
background: #979BA5;
|
20
20
|
}
|
21
|
-
.expend-collapse-home.is-close[data-v-
|
21
|
+
.expend-collapse-home.is-close[data-v-g9058j60] {
|
22
22
|
left: 0;
|
23
23
|
}
|
@@ -1,21 +1,21 @@
|
|
1
1
|
|
2
|
-
.upload-file-home[data-v-
|
2
|
+
.upload-file-home[data-v-qm6r6tu9] {
|
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-qm6r6tu9]: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-qm6r6tu9] {
|
13
13
|
display: flex;
|
14
14
|
}
|
15
|
-
.upload-file-home .file-icon[data-v-
|
15
|
+
.upload-file-home .file-icon[data-v-qm6r6tu9] {
|
16
16
|
font-size: 32px;
|
17
17
|
}
|
18
|
-
.upload-file-home .file-content[data-v-
|
18
|
+
.upload-file-home .file-content[data-v-qm6r6tu9] {
|
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-qm6r6tu9] {
|
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-qm6r6tu9] {
|
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-qm6r6tu9] {
|
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-qm6r6tu9] {
|
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-qm6r6tu9]: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-qm6r6tu9] {
|
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-e1mo68je] {
|
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-e1mo68je], .ai-ui-sdk-icon.ai-ui-sdk-ppt-2[data-v-e1mo68je], .ai-ui-sdk-icon.ai-ui-sdk-markdown[data-v-e1mo68je] {
|
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-e1mo68je] {
|
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-e1mo68je] {
|
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-e1mo68je] {
|
15
15
|
color: #14A568;
|
16
16
|
}
|
@@ -1,5 +1,5 @@
|
|
1
1
|
|
2
|
-
.header-home[data-v-
|
2
|
+
.header-home[data-v-tr0uj1xg] {
|
3
3
|
width: 100%;
|
4
4
|
height: 52px;
|
5
5
|
background: #FFFFFF;
|
@@ -7,14 +7,14 @@
|
|
7
7
|
position: relative;
|
8
8
|
z-index: 2;
|
9
9
|
}
|
10
|
-
.header-title[data-v-
|
10
|
+
.header-title[data-v-tr0uj1xg] {
|
11
11
|
position: absolute;
|
12
12
|
left: 24px;
|
13
13
|
top: 14px;
|
14
14
|
font-size: 16px;
|
15
15
|
color: #313238;
|
16
16
|
}
|
17
|
-
.header-main[data-v-
|
17
|
+
.header-main[data-v-tr0uj1xg] {
|
18
18
|
display: flex;
|
19
19
|
align-items: center;
|
20
20
|
justify-content: flex-end;
|
@@ -22,13 +22,13 @@
|
|
22
22
|
height: 100%;
|
23
23
|
margin: 0 auto;
|
24
24
|
}
|
25
|
-
.header-select[data-v-
|
25
|
+
.header-select[data-v-tr0uj1xg] {
|
26
26
|
width: 300px;
|
27
27
|
margin-right: 8px;
|
28
28
|
z-index: 9;
|
29
29
|
font-size: 12px;
|
30
30
|
}
|
31
|
-
.header-input[data-v-
|
31
|
+
.header-input[data-v-tr0uj1xg] {
|
32
32
|
width: 300px;
|
33
33
|
font-size: 12px;
|
34
34
|
}
|
@@ -1,12 +1,12 @@
|
|
1
1
|
|
2
|
-
.router-tab[data-v-
|
2
|
+
.router-tab[data-v-3wpo5g4w] {
|
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-3wpo5g4w] {
|
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-3wpo5g4w] {
|
19
19
|
color: #3A84FF;
|
20
20
|
border-bottom: 2px solid #3A84FF;
|
21
21
|
}
|
@@ -8,7 +8,8 @@ import { onBeforeMount, onBeforeUnmount } from 'vue';
|
|
8
8
|
documents.forEach((document1)=>{
|
9
9
|
const { path, file_path: filePath, display_name: displayName, preview_path: previewPath } = document1.metadata;
|
10
10
|
const title = displayName || filePath.split('/').pop();
|
11
|
-
|
11
|
+
const textPath = hideReferenceDocIcon ? path : previewPath;
|
12
|
+
htmlContent += `<li class="knowledge-item"><i class="ai-ui-sdk-icon ai-ui-sdk-zhishiku"></i><a href="${textPath}" title="${title} (${textPath})" target="_blank" class="knowledge-link g-flex-truncate">${title}</a>${!hideReferenceDocIcon ? `<a href="${path}" title="预览原文" target="_blank" class="knowledge-link hover-show"><i class="ai-ui-sdk-icon ai-ui-sdk-yanjing-kejian"></i></a>` : ''}</li>`;
|
12
13
|
});
|
13
14
|
htmlContent += '</ul>';
|
14
15
|
return htmlContent;
|
@@ -1,7 +1,7 @@
|
|
1
|
-
import {
|
1
|
+
import { ChatHelper } from '../common/chart-helper.ts.js';
|
2
2
|
import { removeReferenceDoc } from './use-reference-doc.ts.js';
|
3
3
|
import { removeThink } from './use-think.ts.js';
|
4
|
-
import {
|
4
|
+
import { SessionPromptRole } from '../types/enum.ts.js';
|
5
5
|
// ai 总结
|
6
6
|
export const useSummary = ({ handleStart, handleEnd, handleError } = {})=>{
|
7
7
|
let summaryText = '';
|