@blueking/ai-ui-sdk 0.1.0-beta.6 → 0.1.0-beta.7
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-collapse/index.vue.css +2 -2
- package/dist/components/render-collapse/index.vue.js +1 -1
- package/dist/components/render-dataset/components/edit-dataset-data/index.script.vue.js.js +24 -15
- package/dist/components/render-dataset/components/edit-dataset-data/index.vue.css +3 -12
- 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/dataset-footer.script.vue.js.js +2 -2
- package/dist/components/render-dataset/components/plus-dataset/dataset-footer.vue.d.ts +3 -3
- package/dist/components/render-dataset/components/plus-dataset/dataset-form.script.vue.js.js +11 -4
- package/dist/components/render-dataset/components/plus-dataset/dataset-form.vue.css +3 -3
- package/dist/components/render-dataset/components/plus-dataset/dataset-form.vue.js +1 -1
- package/dist/components/render-dataset/components/plus-dataset/index.script.vue.js.js +3 -3
- package/dist/components/render-dataset/components/plus-dataset/index.vue.css +2 -2
- package/dist/components/render-dataset/components/plus-dataset/index.vue.d.ts +3 -2
- package/dist/components/render-dataset/components/plus-dataset/index.vue.js +1 -1
- package/dist/components/render-dataset/components/plus-dataset-data/form/dataset.script.vue.js.js +6 -1
- package/dist/components/render-dataset/components/plus-dataset-data/form/dataset.vue.d.ts +1 -0
- package/dist/components/render-dataset/components/plus-dataset-data/form/footer.script.vue.js.js +3 -2
- 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.d.ts +1 -0
- 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.script.vue.js.js +11 -4
- 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.d.ts +1 -0
- 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.js +51 -2
- package/dist/components/render-dataset/components/plus-dataset-data/form/manual.vue.css +8 -0
- package/dist/components/render-dataset/components/plus-dataset-data/form/manual.vue.js +1 -0
- 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/search-dataset/index.script.vue.js.js +1 -1
- package/dist/components/render-dataset/components/search-dataset-data/index.script.vue.js.js +1 -4
- package/dist/components/render-dataset/components/search-operation-record/index.script.vue.js.js +1 -5
- package/dist/components/render-dataset/components/source-type-icon/index.vue.css +3 -3
- package/dist/components/render-dataset/components/source-type-icon/index.vue.js +1 -1
- package/dist/components/render-dataset/index.script.vue.js.js +18 -4
- 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/batch-operation/index.script.vue.js.js +29 -9
- package/dist/components/render-dataset-detail-origin-data/components/table/index.script.vue.js.js +1 -0
- 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.script.vue.js.js +5 -0
- 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 +15 -4
- package/dist/components/render-dataset-list/components/main.vue.css +3 -3
- package/dist/components/render-dataset-list/components/main.vue.d.ts +6 -1
- package/dist/components/render-dataset-list/components/main.vue.js +1 -1
- package/dist/components/render-dataset-list/components/table.script.vue.js.js +46 -0
- package/dist/components/render-dataset-list/index.script.vue.js.js +10 -2
- package/dist/components/render-dataset-list/index.vue.d.ts +6 -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/css/fonts/iconcool.eot +0 -0
- package/dist/css/fonts/iconcool.svg +3 -0
- package/dist/css/fonts/iconcool.ttf +0 -0
- package/dist/css/fonts/iconcool.woff +0 -0
- package/dist/css/iconcool.js +1 -1
- package/dist/css/style.css +3 -0
- package/dist/hooks/use-click-proxy.ts.js +1 -1
- package/dist/hooks/use-dataset-http.d.ts +2 -2
- package/dist/hooks/use-dataset-http.ts.js +5 -7
- package/dist/http/fetch/error-interceptor.ts.js +7 -11
- package/dist/http/helper/agent.d.ts +1 -1
- package/dist/http/helper/dataset.d.ts +12 -1
- package/dist/http/helper/dataset.ts.js +19 -1
- package/dist/types/dataset.d.ts +14 -0
- package/package.json +2 -2
@@ -1,12 +1,12 @@
|
|
1
1
|
|
2
|
-
.aside-home[data-v-
|
2
|
+
.aside-home[data-v-vn4u8hm6] {
|
3
3
|
width: 300px;
|
4
4
|
height: 100%;
|
5
5
|
background: #FFFFFF;
|
6
6
|
padding: 16px;
|
7
7
|
border-right: 1px solid #eaebf0;
|
8
8
|
}
|
9
|
-
[data-v-
|
9
|
+
[data-v-vn4u8hm6] .aside-item {
|
10
10
|
width: 268px;
|
11
11
|
line-height: 36px;
|
12
12
|
border-radius: 2px;
|
@@ -16,30 +16,30 @@
|
|
16
16
|
justify-content: space-between;
|
17
17
|
color: #979BA5;
|
18
18
|
}
|
19
|
-
[data-v-
|
19
|
+
[data-v-vn4u8hm6] .aside-item.is-tab {
|
20
20
|
background: #F5F7FA;
|
21
21
|
cursor: pointer;
|
22
22
|
color: #4D4F56;
|
23
23
|
}
|
24
|
-
[data-v-
|
24
|
+
[data-v-vn4u8hm6] .aside-item.is-tab:hover {
|
25
25
|
background: #F0F5FF;
|
26
26
|
}
|
27
|
-
[data-v-
|
27
|
+
[data-v-vn4u8hm6] .aside-item.active {
|
28
28
|
background: #F0F5FF;
|
29
29
|
color: #3A84FF;
|
30
30
|
font-weight: 700;
|
31
31
|
}
|
32
|
-
[data-v-
|
32
|
+
[data-v-vn4u8hm6] .aside-item.active .tab-num {
|
33
33
|
background: #3A84FF;
|
34
34
|
color: #fff;
|
35
35
|
}
|
36
|
-
[data-v-
|
36
|
+
[data-v-vn4u8hm6] .aside-item.active .active-text {
|
37
37
|
color: #3A84FF;
|
38
38
|
}
|
39
|
-
[data-v-
|
39
|
+
[data-v-vn4u8hm6] .aside-item .tab-name {
|
40
40
|
flex: 1;
|
41
41
|
}
|
42
|
-
[data-v-
|
42
|
+
[data-v-vn4u8hm6] .aside-item .tab-num {
|
43
43
|
background: #EAEBF0;
|
44
44
|
border-radius: 2px;
|
45
45
|
margin-left: 5px;
|
@@ -1,40 +1,40 @@
|
|
1
1
|
|
2
|
-
.send-container[data-v-
|
2
|
+
.send-container[data-v-sxlp9tp0] {
|
3
3
|
position: relative;
|
4
4
|
}
|
5
|
-
.send-container[data-v-
|
5
|
+
.send-container[data-v-sxlp9tp0]:has(textarea:focus) {
|
6
6
|
z-index: 2;
|
7
7
|
}
|
8
|
-
.send-container:hover .send-clear[data-v-
|
8
|
+
.send-container:hover .send-clear[data-v-sxlp9tp0] {
|
9
9
|
display: inline-flex !important;
|
10
10
|
}
|
11
|
-
.send-input[data-v-
|
11
|
+
.send-input[data-v-sxlp9tp0] {
|
12
12
|
width: 100%;
|
13
13
|
flex-direction: row;
|
14
14
|
height: var(--origin-height);
|
15
15
|
}
|
16
|
-
.send-input[data-v-
|
16
|
+
.send-input[data-v-sxlp9tp0]:has(textarea:focus) {
|
17
17
|
height: var(--text-height);
|
18
18
|
}
|
19
|
-
.send-input[data-v-
|
19
|
+
.send-input[data-v-sxlp9tp0] textarea {
|
20
20
|
font-size: 12px;
|
21
21
|
line-height: 16px;
|
22
22
|
padding: 7px;
|
23
23
|
resize: none !important;
|
24
24
|
}
|
25
|
-
.send-input[data-v-
|
25
|
+
.send-input[data-v-sxlp9tp0] textarea::-webkit-scrollbar {
|
26
26
|
width: 4px;
|
27
27
|
height: 4px;
|
28
28
|
}
|
29
|
-
.send-input[data-v-
|
29
|
+
.send-input[data-v-sxlp9tp0] textarea::-webkit-scrollbar-thumb {
|
30
30
|
height: 5px;
|
31
31
|
border-radius: 3px;
|
32
32
|
background-color: #dcdee5;
|
33
33
|
}
|
34
|
-
.send-input[data-v-
|
34
|
+
.send-input[data-v-sxlp9tp0] textarea::placeholder {
|
35
35
|
line-height: 16px;
|
36
36
|
}
|
37
|
-
.send-clear[data-v-
|
37
|
+
.send-clear[data-v-sxlp9tp0] {
|
38
38
|
display: none !important;
|
39
39
|
position: absolute;
|
40
40
|
right: 10px;
|
@@ -43,6 +43,6 @@
|
|
43
43
|
font-size: 14px;
|
44
44
|
cursor: pointer;
|
45
45
|
}
|
46
|
-
.send-clear[data-v-
|
46
|
+
.send-clear[data-v-sxlp9tp0]:hover {
|
47
47
|
color: #313238;
|
48
48
|
}
|
@@ -1,10 +1,10 @@
|
|
1
1
|
|
2
|
-
.collapse-title[data-v-
|
2
|
+
.collapse-title[data-v-sedr4ooq] {
|
3
3
|
height: 28px;
|
4
4
|
background: #F0F1F5;
|
5
5
|
border-radius: 2px;
|
6
6
|
padding: 0 12px;
|
7
7
|
}
|
8
|
-
.collapse-title .is-hidden[data-v-
|
8
|
+
.collapse-title .is-hidden[data-v-sedr4ooq] {
|
9
9
|
transform: rotate(-90deg);
|
10
10
|
}
|
@@ -80,14 +80,14 @@ function _object_spread_props(target, source) {
|
|
80
80
|
return target;
|
81
81
|
}
|
82
82
|
import { defineComponent as _defineComponent } from 'vue';
|
83
|
-
import { createTextVNode as _createTextVNode, resolveComponent as _resolveComponent, withCtx as _withCtx, createVNode as _createVNode, unref as _unref, createElementVNode as _createElementVNode, toDisplayString as _toDisplayString, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode,
|
83
|
+
import { createTextVNode as _createTextVNode, resolveComponent as _resolveComponent, withCtx as _withCtx, createVNode as _createVNode, unref as _unref, createElementVNode as _createElementVNode, toDisplayString as _toDisplayString, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, createBlock as _createBlock, renderList as _renderList, Fragment as _Fragment, resolveDirective as _resolveDirective, withDirectives as _withDirectives, createSlots as _createSlots } from "vue";
|
84
84
|
const _hoisted_1 = {
|
85
85
|
key: 0,
|
86
|
-
class: "
|
86
|
+
class: "g-text-14"
|
87
87
|
};
|
88
88
|
const _hoisted_2 = {
|
89
89
|
key: 1,
|
90
|
-
class: "value-content"
|
90
|
+
class: "value-content g-mb-16"
|
91
91
|
};
|
92
92
|
import { EditLine } from 'bkui-vue/lib/icon';
|
93
93
|
import { ref, watch } from 'vue';
|
@@ -126,14 +126,14 @@ export default /*@__PURE__*/ _defineComponent({
|
|
126
126
|
});
|
127
127
|
const handleEdit = (key)=>{
|
128
128
|
showEditKeys.value.push(key);
|
129
|
-
editFormData.value[key] = renderFormData.value[key];
|
130
129
|
};
|
131
130
|
const handleShow = ()=>{
|
132
|
-
isShow.value = true;
|
133
131
|
// 设置页码
|
134
132
|
pagination.value.current = props.index + 1;
|
135
133
|
// 获取数据
|
136
134
|
triggerApi();
|
135
|
+
// 展示
|
136
|
+
isShow.value = true;
|
137
137
|
};
|
138
138
|
const handleClose = ()=>{
|
139
139
|
isShow.value = false;
|
@@ -168,6 +168,7 @@ export default /*@__PURE__*/ _defineComponent({
|
|
168
168
|
// 取消
|
169
169
|
const handleCancel = ()=>{
|
170
170
|
showEditKeys.value = [];
|
171
|
+
editFormData.value = _object_spread({}, renderFormData.value);
|
171
172
|
};
|
172
173
|
// 获取数据以后,修改表单数据
|
173
174
|
const handleInitData = ()=>{
|
@@ -215,28 +216,36 @@ export default /*@__PURE__*/ _defineComponent({
|
|
215
216
|
}, {
|
216
217
|
default: _withCtx(()=>[
|
217
218
|
_cache[1] || (_cache[1] = _createElementVNode("span", null, "编辑数据", -1 /* HOISTED */ )),
|
219
|
+
_cache[2] || (_cache[2] = _createElementVNode("span", {
|
220
|
+
class: "g-gap g-ml-14 g-mr-8"
|
221
|
+
}, null, -1 /* HOISTED */ )),
|
218
222
|
_unref(tableData)[0] ? (_openBlock(), _createElementBlock("span", _hoisted_1, _toDisplayString(`#${_unref(tableData)[0].id}`), 1 /* TEXT */ )) : _createCommentVNode("v-if", true)
|
219
223
|
]),
|
220
224
|
_: 1 /* STABLE */ ,
|
221
225
|
__: [
|
222
|
-
1
|
226
|
+
1,
|
227
|
+
2
|
223
228
|
]
|
224
229
|
}, 8 /* PROPS */ , [
|
225
230
|
"loading"
|
226
231
|
]),
|
227
|
-
|
232
|
+
isShow.value && showEditKeys.value.length <= 0 ? (_openBlock(), _createBlock(_component_bk_pagination, {
|
233
|
+
key: 0,
|
228
234
|
small: "",
|
229
235
|
class: "g-mr-24",
|
230
236
|
"show-limit": false,
|
231
|
-
"model-value":
|
237
|
+
"model-value": _ctx.index + 1,
|
232
238
|
count: _unref(pagination).count,
|
233
239
|
limit: 1,
|
240
|
+
"limit-list": [
|
241
|
+
1
|
242
|
+
],
|
234
243
|
onChange: _unref(handlePageChange)
|
235
244
|
}, null, 8 /* PROPS */ , [
|
236
245
|
"model-value",
|
237
246
|
"count",
|
238
247
|
"onChange"
|
239
|
-
])
|
248
|
+
])) : _createCommentVNode("v-if", true)
|
240
249
|
]),
|
241
250
|
default: _withCtx(()=>[
|
242
251
|
_createVNode(_component_bk_loading, {
|
@@ -255,7 +264,7 @@ export default /*@__PURE__*/ _defineComponent({
|
|
255
264
|
return _openBlock(), _createBlock(Collapse, {
|
256
265
|
key: key,
|
257
266
|
title: key,
|
258
|
-
class: "g-mb-
|
267
|
+
class: "g-mb-8"
|
259
268
|
}, {
|
260
269
|
suffix: _withCtx(()=>[
|
261
270
|
_createVNode(_unref(EditLine), {
|
@@ -275,7 +284,7 @@ export default /*@__PURE__*/ _defineComponent({
|
|
275
284
|
_createVNode(RenderAutoHeightTextarea, {
|
276
285
|
modelValue: editFormData.value[key],
|
277
286
|
"onUpdate:modelValue": ($event)=>editFormData.value[key] = $event,
|
278
|
-
height:
|
287
|
+
height: 300
|
279
288
|
}, null, 8 /* PROPS */ , [
|
280
289
|
"modelValue",
|
281
290
|
"onUpdate:modelValue"
|
@@ -313,12 +322,12 @@ export default /*@__PURE__*/ _defineComponent({
|
|
313
322
|
loading: loading.value,
|
314
323
|
onClick: handleConfirm
|
315
324
|
}, {
|
316
|
-
default: _withCtx(()=>_cache[
|
325
|
+
default: _withCtx(()=>_cache[3] || (_cache[3] = [
|
317
326
|
_createTextVNode(" 保存 ")
|
318
327
|
])),
|
319
328
|
_: 1 /* STABLE */ ,
|
320
329
|
__: [
|
321
|
-
|
330
|
+
3
|
322
331
|
]
|
323
332
|
}, 8 /* PROPS */ , [
|
324
333
|
"loading"
|
@@ -336,12 +345,12 @@ export default /*@__PURE__*/ _defineComponent({
|
|
336
345
|
disabled: loading.value,
|
337
346
|
onClick: handleCancel
|
338
347
|
}, {
|
339
|
-
default: _withCtx(()=>_cache[
|
348
|
+
default: _withCtx(()=>_cache[4] || (_cache[4] = [
|
340
349
|
_createTextVNode(" 取消 ")
|
341
350
|
])),
|
342
351
|
_: 1 /* STABLE */ ,
|
343
352
|
__: [
|
344
|
-
|
353
|
+
4
|
345
354
|
]
|
346
355
|
}, 8 /* PROPS */ , [
|
347
356
|
"disabled"
|
@@ -1,24 +1,15 @@
|
|
1
1
|
|
2
|
-
.content[data-v-
|
2
|
+
.content[data-v-aaf79hql] {
|
3
3
|
padding: 18px 24px 0;
|
4
4
|
height: 100%;
|
5
5
|
overflow: auto;
|
6
6
|
}
|
7
|
-
.data-set-edit-slider .value-content[data-v-
|
8
|
-
margin-top: 8px;
|
7
|
+
.data-set-edit-slider .value-content[data-v-aaf79hql] {
|
9
8
|
padding: 16px;
|
10
9
|
border: 1px solid #DCDEE5;
|
11
10
|
line-height: 22px;
|
12
11
|
}
|
13
|
-
.data-set-edit-slider[data-v-
|
12
|
+
.data-set-edit-slider[data-v-aaf79hql] .bk-sideslider-title {
|
14
13
|
justify-content: space-between;
|
15
14
|
width: 100%;
|
16
15
|
}
|
17
|
-
.data-set-edit-slider[data-v-v3fp7w3w] .bk-sideslider-title .id::before {
|
18
|
-
content: '';
|
19
|
-
display: inline-block;
|
20
|
-
width: 1px;
|
21
|
-
height: 14px;
|
22
|
-
background: #DCDEE5;
|
23
|
-
margin: 0 8px 0 16px;
|
24
|
-
}
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import script from './index.script.vue.js.js';
|
2
|
-
script.__scopeId = "data-v-
|
2
|
+
script.__scopeId = "data-v-aaf79hql";
|
3
3
|
script.__file = "./src/components/render-dataset/components/edit-dataset-data/index.vue";
|
4
4
|
import './index.vue.css';
|
5
5
|
export default script;
|
@@ -1,18 +1,18 @@
|
|
1
1
|
|
2
|
-
.content[data-v-
|
2
|
+
.content[data-v-axvpk9ei] {
|
3
3
|
padding: 0 24px 0px 32px;
|
4
4
|
height: 100%;
|
5
5
|
}
|
6
|
-
.content .toolbar[data-v-
|
6
|
+
.content .toolbar[data-v-axvpk9ei] {
|
7
7
|
margin: 16px 0;
|
8
8
|
display: flex;
|
9
9
|
align-items: center;
|
10
10
|
justify-content: right;
|
11
11
|
gap: 8px;
|
12
12
|
}
|
13
|
-
.content .toolbar .record-search[data-v-
|
13
|
+
.content .toolbar .record-search[data-v-axvpk9ei] {
|
14
14
|
width: 360px;
|
15
15
|
}
|
16
|
-
.content .toolbar .record-data-picker[data-v-
|
16
|
+
.content .toolbar .record-data-picker[data-v-axvpk9ei] {
|
17
17
|
width: 260px;
|
18
18
|
}
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import script from './index.script.vue.js.js';
|
2
|
-
script.__scopeId = "data-v-
|
2
|
+
script.__scopeId = "data-v-axvpk9ei";
|
3
3
|
script.__file = "./src/components/render-dataset/components/operation-record/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.js';
|
2
|
-
script.__scopeId = "data-v-
|
2
|
+
script.__scopeId = "data-v-luii9gd1";
|
3
3
|
script.__file = "./src/components/render-dataset/components/operation-record/table/index.vue";
|
4
4
|
import './index.vue.css';
|
5
5
|
export default script;
|
package/dist/components/render-dataset/components/operation-record/view-op-result/index.vue.css
CHANGED
@@ -1,10 +1,10 @@
|
|
1
1
|
|
2
|
-
.content[data-v-
|
2
|
+
.content[data-v-93k3so0x] {
|
3
3
|
padding: 18px 24px 0;
|
4
4
|
height: 100%;
|
5
5
|
overflow: auto;
|
6
6
|
}
|
7
|
-
.content .value-content[data-v-
|
7
|
+
.content .value-content[data-v-93k3so0x] {
|
8
8
|
margin-top: 8px;
|
9
9
|
padding: 16px;
|
10
10
|
border: 1px solid #DCDEE5;
|
package/dist/components/render-dataset/components/operation-record/view-op-result/index.vue.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import script from './index.script.vue.js.js';
|
2
|
-
script.__scopeId = "data-v-
|
2
|
+
script.__scopeId = "data-v-93k3so0x";
|
3
3
|
script.__file = "./src/components/render-dataset/components/operation-record/view-op-result/index.vue";
|
4
4
|
import './index.vue.css';
|
5
5
|
export default script;
|
package/dist/components/render-dataset/components/plus-dataset/dataset-footer.script.vue.js.js
CHANGED
@@ -53,8 +53,8 @@ export default /*@__PURE__*/ _defineComponent({
|
|
53
53
|
try {
|
54
54
|
loading.value = true;
|
55
55
|
yield props.validate();
|
56
|
-
yield createDataset(props.formData);
|
57
|
-
emits('success');
|
56
|
+
const data = yield createDataset(props.formData);
|
57
|
+
emits('success', data);
|
58
58
|
} catch (error) {
|
59
59
|
console.error(error);
|
60
60
|
} finally{
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import type { IDatasetForm } from '@/types/dataset';
|
1
|
+
import type { IDataset, IDatasetForm } from '@/types/dataset';
|
2
2
|
interface IProps {
|
3
3
|
validate: () => Promise<boolean>;
|
4
4
|
formData: IDatasetForm;
|
@@ -6,9 +6,9 @@ interface IProps {
|
|
6
6
|
}
|
7
7
|
declare const _default: import("vue").DefineComponent<IProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
8
8
|
cancel: () => any;
|
9
|
-
success: () => any;
|
9
|
+
success: (data: IDataset) => any;
|
10
10
|
}, string, import("vue").PublicProps, Readonly<IProps> & Readonly<{
|
11
11
|
onCancel?: () => any;
|
12
|
-
onSuccess?: () => any;
|
12
|
+
onSuccess?: (data: IDataset) => any;
|
13
13
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
14
14
|
export default _default;
|
package/dist/components/render-dataset/components/plus-dataset/dataset-form.script.vue.js.js
CHANGED
@@ -84,6 +84,11 @@ export default /*@__PURE__*/ _defineComponent({
|
|
84
84
|
validator: (value)=>!/[\\/:*?"<>|]/.test(value),
|
85
85
|
message: '禁止包含下列字符 \\ /:*?"<>|',
|
86
86
|
trigger: 'change'
|
87
|
+
},
|
88
|
+
{
|
89
|
+
validator: (value)=>value.length <= 50,
|
90
|
+
message: '不能超过50个字符',
|
91
|
+
trigger: 'change'
|
87
92
|
}
|
88
93
|
]
|
89
94
|
};
|
@@ -168,7 +173,7 @@ export default /*@__PURE__*/ _defineComponent({
|
|
168
173
|
default: _withCtx(()=>[
|
169
174
|
_createVNode(_component_bk_input, {
|
170
175
|
clearable: "",
|
171
|
-
placeholder: "
|
176
|
+
placeholder: "禁止包含字符\\ /:*?\"<>|,且在 50 个字符内",
|
172
177
|
"model-value": _ctx.formData.datasetName,
|
173
178
|
onChange: _cache[0] || (_cache[0] = (value)=>handleChange('datasetName', value))
|
174
179
|
}, null, 8 /* PROPS */ , [
|
@@ -253,8 +258,9 @@ export default /*@__PURE__*/ _defineComponent({
|
|
253
258
|
_createCommentVNode(" <bk-form-item\n label=\"来源团队\"\n property=\"sourceTeam\"\n required\n >\n <bk-select\n id-key=\"id\"\n display-key=\"companyName\"\n :model-value=\"formData.sourceTeam\"\n :list=\"companyList\"\n @change=\"(value: string) => handleChange('sourceTeam', value)\"\n />\n </bk-form-item> "),
|
254
259
|
_createVNode(_component_bk_form_item, {
|
255
260
|
label: "组件",
|
256
|
-
property: "
|
257
|
-
class: "g-last-form-item"
|
261
|
+
property: "componentId",
|
262
|
+
class: "g-last-form-item",
|
263
|
+
required: ""
|
258
264
|
}, {
|
259
265
|
default: _withCtx(()=>[
|
260
266
|
_createVNode(_component_bk_select, {
|
@@ -266,7 +272,8 @@ export default /*@__PURE__*/ _defineComponent({
|
|
266
272
|
}, null, 8 /* PROPS */ , [
|
267
273
|
"list",
|
268
274
|
"model-value"
|
269
|
-
])
|
275
|
+
]),
|
276
|
+
_createCommentVNode(" <bk-cascader\n filterable\n :list=\"componentList\"\n :model-value=\"formData.componentId\"\n @change=\"(value: string) => handleChange('componentId', value)\"\n /> ")
|
270
277
|
]),
|
271
278
|
_: 1 /* STABLE */
|
272
279
|
})
|
@@ -1,15 +1,15 @@
|
|
1
1
|
|
2
|
-
.schema-preview-content[data-v-
|
2
|
+
.schema-preview-content[data-v-1rj0d6ao] {
|
3
3
|
display: flex;
|
4
4
|
border: 1px solid #DCDEE5;
|
5
5
|
border-radius: 2px;
|
6
6
|
}
|
7
|
-
.schema-preview-content .label[data-v-
|
7
|
+
.schema-preview-content .label[data-v-1rj0d6ao], .schema-preview-content .text[data-v-1rj0d6ao] {
|
8
8
|
height: 42px;
|
9
9
|
line-height: 42px;
|
10
10
|
padding-left: 16px;
|
11
11
|
}
|
12
|
-
.schema-preview-content .label[data-v-
|
12
|
+
.schema-preview-content .label[data-v-1rj0d6ao] {
|
13
13
|
background: #F0F1F5;
|
14
14
|
border-bottom: 1px solid #DCDEE5;
|
15
15
|
}
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import script from './dataset-form.script.vue.js.js';
|
2
|
-
script.__scopeId = "data-v-
|
2
|
+
script.__scopeId = "data-v-1rj0d6ao";
|
3
3
|
script.__file = "./src/components/render-dataset/components/plus-dataset/dataset-form.vue";
|
4
4
|
import './dataset-form.vue.css';
|
5
5
|
export default script;
|
@@ -13,7 +13,7 @@ export default /*@__PURE__*/ _defineComponent({
|
|
13
13
|
apiPrefix: {}
|
14
14
|
},
|
15
15
|
emits: [
|
16
|
-
"success"
|
16
|
+
"success-plus"
|
17
17
|
],
|
18
18
|
setup (__props, { emit: __emit }) {
|
19
19
|
const emits = __emit;
|
@@ -25,8 +25,8 @@ export default /*@__PURE__*/ _defineComponent({
|
|
25
25
|
const handleShow = ()=>{
|
26
26
|
isShow.value = true;
|
27
27
|
};
|
28
|
-
const handleSuccess = ()=>{
|
29
|
-
emits('success');
|
28
|
+
const handleSuccess = (data)=>{
|
29
|
+
emits('success-plus', data);
|
30
30
|
handleClose(true);
|
31
31
|
};
|
32
32
|
const handleClose = (noValidate)=>{
|
@@ -1,8 +1,8 @@
|
|
1
1
|
|
2
|
-
.dataset-data-content[data-v-
|
2
|
+
.dataset-data-content[data-v-b2e5jet3] {
|
3
3
|
padding: 20px 24px;
|
4
4
|
height: 100%;
|
5
5
|
}
|
6
|
-
.dataset-data-slider[data-v-
|
6
|
+
.dataset-data-slider[data-v-b2e5jet3] .bk-modal-content {
|
7
7
|
scrollbar-gutter: inherit !important;
|
8
8
|
}
|
@@ -1,9 +1,10 @@
|
|
1
|
+
import type { IDataset } from '@/types/dataset';
|
1
2
|
interface IProps {
|
2
3
|
apiPrefix: string;
|
3
4
|
}
|
4
5
|
declare const _default: import("vue").DefineComponent<IProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
5
|
-
success: () => any;
|
6
|
+
"success-plus": (data: IDataset) => any;
|
6
7
|
}, string, import("vue").PublicProps, Readonly<IProps> & Readonly<{
|
7
|
-
onSuccess?: () => any;
|
8
|
+
"onSuccess-plus"?: (data: IDataset) => any;
|
8
9
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
9
10
|
export default _default;
|
package/dist/components/render-dataset/components/plus-dataset-data/form/dataset.script.vue.js.js
CHANGED
@@ -57,7 +57,10 @@ import { useDatasetHttp } from '../../../../../hooks/use-dataset-http.ts.js';
|
|
57
57
|
export default /*@__PURE__*/ _defineComponent({
|
58
58
|
props: {
|
59
59
|
modelValue: {},
|
60
|
-
apiPrefix: {}
|
60
|
+
apiPrefix: {},
|
61
|
+
disabledChooseDataset: {
|
62
|
+
type: Boolean
|
63
|
+
}
|
61
64
|
},
|
62
65
|
emits: [
|
63
66
|
"update:modelValue"
|
@@ -114,11 +117,13 @@ export default /*@__PURE__*/ _defineComponent({
|
|
114
117
|
"display-key": "datasetName",
|
115
118
|
loading: loading.value,
|
116
119
|
list: datasets.value,
|
120
|
+
disabled: _ctx.disabledChooseDataset,
|
117
121
|
"model-value": _ctx.modelValue.datasetId,
|
118
122
|
onChange: handleChange
|
119
123
|
}, null, 8 /* PROPS */ , [
|
120
124
|
"loading",
|
121
125
|
"list",
|
126
|
+
"disabled",
|
122
127
|
"model-value"
|
123
128
|
])
|
124
129
|
]),
|
@@ -2,6 +2,7 @@ import type { IDatasetDataForm } from '@/types/dataset';
|
|
2
2
|
interface IProps {
|
3
3
|
modelValue: IDatasetDataForm;
|
4
4
|
apiPrefix: string;
|
5
|
+
disabledChooseDataset?: boolean;
|
5
6
|
}
|
6
7
|
declare const _default: import("vue").DefineComponent<IProps, {
|
7
8
|
validate: () => Promise<unknown>;
|
package/dist/components/render-dataset/components/plus-dataset-data/form/footer.script.vue.js.js
CHANGED
@@ -36,7 +36,8 @@ export default /*@__PURE__*/ _defineComponent({
|
|
36
36
|
validate: {
|
37
37
|
type: Function
|
38
38
|
},
|
39
|
-
datasetData: {}
|
39
|
+
datasetData: {},
|
40
|
+
apiPrefix: {}
|
40
41
|
},
|
41
42
|
emits: [
|
42
43
|
"close",
|
@@ -45,7 +46,7 @@ export default /*@__PURE__*/ _defineComponent({
|
|
45
46
|
setup (__props, { emit: __emit }) {
|
46
47
|
const props = __props;
|
47
48
|
const emits = __emit;
|
48
|
-
const { createDatasetData } = useDatasetHttp();
|
49
|
+
const { createDatasetData } = useDatasetHttp(props.apiPrefix);
|
49
50
|
const loading = ref(false);
|
50
51
|
const handleConfirm = function() {
|
51
52
|
var _ref = _async_to_generator(function*() {
|
@@ -2,6 +2,7 @@ import type { IDatasetDataForm } from '@/types/dataset';
|
|
2
2
|
interface IProps {
|
3
3
|
validate: () => Promise<unknown>;
|
4
4
|
datasetData: IDatasetDataForm;
|
5
|
+
apiPrefix: string;
|
5
6
|
}
|
6
7
|
declare const _default: import("vue").DefineComponent<IProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
7
8
|
close: (noValidate?: boolean) => any;
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import script from './footer.script.vue.js.js';
|
2
|
-
script.__scopeId = "data-v-
|
2
|
+
script.__scopeId = "data-v-qg6qckxy";
|
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;
|