@blueking/ai-ui-sdk 0.1.2-beta.8 → 0.1.2-beta.9
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-choose-tag/index.script.vue.js.js +242 -0
- package/dist/components/render-choose-tag/index.vue.css +39 -0
- package/dist/components/render-choose-tag/index.vue.d.ts +12 -0
- package/dist/components/render-choose-tag/index.vue.js +5 -0
- 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 +4 -3
- 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.d.ts +1 -0
- package/dist/components/render-dataset/components/edit-dataset-data/index.vue.js +1 -1
- package/dist/components/render-dataset/components/operation-record/index.script.vue.js.js +8 -5
- package/dist/components/render-dataset/components/operation-record/index.vue.css +4 -4
- package/dist/components/render-dataset/components/operation-record/index.vue.d.ts +1 -0
- 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 +4 -3
- 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.d.ts +1 -0
- 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 +4 -3
- package/dist/components/render-dataset/components/plus-dataset/dataset-footer.vue.d.ts +1 -0
- package/dist/components/render-dataset/components/plus-dataset/dataset-form.script.vue.js +34 -19
- package/dist/components/render-dataset/components/plus-dataset/dataset-form.vue.d.ts +2 -0
- package/dist/components/render-dataset/components/plus-dataset/index.script.vue.js.js +15 -4
- 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 +2 -0
- 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 +4 -3
- 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/file.script.vue.js.js +4 -3
- package/dist/components/render-dataset/components/plus-dataset-data/form/file.vue.d.ts +1 -0
- package/dist/components/render-dataset/components/plus-dataset-data/form/footer.script.vue.js.js +4 -3
- 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 +13 -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 +4 -3
- package/dist/components/render-dataset/components/plus-dataset-data/form/manual.vue.d.ts +1 -0
- package/dist/components/render-dataset/components/plus-dataset-data/index.script.vue.js.js +4 -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 +11 -4
- package/dist/components/render-dataset/components/search-dataset/index.vue.d.ts +2 -0
- 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 +7 -4
- package/dist/components/render-dataset/index.vue.css +1 -1
- package/dist/components/render-dataset/index.vue.d.ts +1 -0
- package/dist/components/render-dataset/index.vue.js +1 -1
- package/dist/components/render-dataset-detail/components/header.script.vue.js.js +4 -3
- package/dist/components/render-dataset-detail/components/header.vue.d.ts +1 -0
- package/dist/components/render-dataset-detail/index.script.vue.js.js +6 -3
- package/dist/components/render-dataset-detail/index.vue.d.ts +1 -0
- package/dist/components/render-dataset-detail-origin-data/components/batch-operation/index.script.vue.js.js +4 -3
- package/dist/components/render-dataset-detail-origin-data/components/batch-operation/index.vue.d.ts +1 -0
- package/dist/components/render-dataset-detail-origin-data/components/table/index.script.vue.js +12 -7
- 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.d.ts +1 -0
- 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 +12 -5
- package/dist/components/render-dataset-detail-origin-data/index.vue.css +3 -3
- package/dist/components/render-dataset-detail-origin-data/index.vue.d.ts +1 -0
- 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 +23 -5
- package/dist/components/render-dataset-list/components/main.vue.css +3 -3
- package/dist/components/render-dataset-list/components/main.vue.d.ts +2 -0
- package/dist/components/render-dataset-list/components/main.vue.js +1 -1
- package/dist/components/render-dataset-list/components/table.script.vue.js.js +58 -20
- package/dist/components/render-dataset-list/components/table.vue.d.ts +2 -0
- package/dist/components/render-dataset-list/index.script.vue.js.js +10 -2
- package/dist/components/render-dataset-list/index.vue.d.ts +2 -0
- 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-dataset-http.d.ts +2 -1
- package/dist/hooks/use-dataset-http.ts.js +64 -22
- package/dist/hooks/use-form-rule.d.ts +29 -0
- package/dist/hooks/use-form-rule.ts.js +101 -0
- package/dist/hooks/use-meta-http.d.ts +16 -0
- package/dist/hooks/use-meta-http.ts.js +83 -0
- package/dist/http/helper/dataset.ts.js +4 -1
- package/dist/types/dataset.d.ts +4 -0
- package/dist/types/enum.d.ts +10 -0
- package/dist/types/enum.ts.js +11 -0
- package/dist/types/meta.d.ts +3 -0
- package/package.json +2 -2
@@ -1,12 +1,12 @@
|
|
1
1
|
|
2
|
-
.aside-home[data-v-
|
2
|
+
.aside-home[data-v-2my43lki] {
|
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-2my43lki] .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-2my43lki] .aside-item.is-tab {
|
20
20
|
background: #F5F7FA;
|
21
21
|
cursor: pointer;
|
22
22
|
color: #4D4F56;
|
23
23
|
}
|
24
|
-
[data-v-
|
24
|
+
[data-v-2my43lki] .aside-item.is-tab:hover {
|
25
25
|
background: #F0F5FF;
|
26
26
|
}
|
27
|
-
[data-v-
|
27
|
+
[data-v-2my43lki] .aside-item.active {
|
28
28
|
background: #F0F5FF;
|
29
29
|
color: #3A84FF;
|
30
30
|
font-weight: 700;
|
31
31
|
}
|
32
|
-
[data-v-
|
32
|
+
[data-v-2my43lki] .aside-item.active .tab-num {
|
33
33
|
background: #3A84FF;
|
34
34
|
color: #fff;
|
35
35
|
}
|
36
|
-
[data-v-
|
36
|
+
[data-v-2my43lki] .aside-item.active .active-text {
|
37
37
|
color: #3A84FF;
|
38
38
|
}
|
39
|
-
[data-v-
|
39
|
+
[data-v-2my43lki] .aside-item .tab-name {
|
40
40
|
flex: 1;
|
41
41
|
}
|
42
|
-
[data-v-
|
42
|
+
[data-v-2my43lki] .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-0wfrwu4f] {
|
3
3
|
position: relative;
|
4
4
|
}
|
5
|
-
.send-container[data-v-
|
5
|
+
.send-container[data-v-0wfrwu4f]: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-0wfrwu4f] {
|
9
9
|
display: inline-flex !important;
|
10
10
|
}
|
11
|
-
.send-input[data-v-
|
11
|
+
.send-input[data-v-0wfrwu4f] {
|
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-0wfrwu4f]:has(textarea:focus) {
|
17
17
|
height: var(--text-height);
|
18
18
|
}
|
19
|
-
.send-input[data-v-
|
19
|
+
.send-input[data-v-0wfrwu4f] 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-0wfrwu4f] textarea::-webkit-scrollbar {
|
26
26
|
width: 4px;
|
27
27
|
height: 4px;
|
28
28
|
}
|
29
|
-
.send-input[data-v-
|
29
|
+
.send-input[data-v-0wfrwu4f] 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-0wfrwu4f] textarea::placeholder {
|
35
35
|
line-height: 16px;
|
36
36
|
}
|
37
|
-
.send-clear[data-v-
|
37
|
+
.send-clear[data-v-0wfrwu4f] {
|
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-0wfrwu4f]:hover {
|
47
47
|
color: #313238;
|
48
48
|
}
|
@@ -0,0 +1,242 @@
|
|
1
|
+
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
2
|
+
try {
|
3
|
+
var info = gen[key](arg);
|
4
|
+
var value = info.value;
|
5
|
+
} catch (error) {
|
6
|
+
reject(error);
|
7
|
+
return;
|
8
|
+
}
|
9
|
+
if (info.done) {
|
10
|
+
resolve(value);
|
11
|
+
} else {
|
12
|
+
Promise.resolve(value).then(_next, _throw);
|
13
|
+
}
|
14
|
+
}
|
15
|
+
function _async_to_generator(fn) {
|
16
|
+
return function() {
|
17
|
+
var self = this, args = arguments;
|
18
|
+
return new Promise(function(resolve, reject) {
|
19
|
+
var gen = fn.apply(self, args);
|
20
|
+
function _next(value) {
|
21
|
+
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
|
22
|
+
}
|
23
|
+
function _throw(err) {
|
24
|
+
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
|
25
|
+
}
|
26
|
+
_next(undefined);
|
27
|
+
});
|
28
|
+
};
|
29
|
+
}
|
30
|
+
import { defineComponent as _defineComponent } from 'vue';
|
31
|
+
import { renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, resolveComponent as _resolveComponent, createBlock as _createBlock, createVNode as _createVNode, withCtx as _withCtx, unref as _unref, resolveDirective as _resolveDirective, withDirectives as _withDirectives, createElementVNode as _createElementVNode, createTextVNode as _createTextVNode } from "vue";
|
32
|
+
const _hoisted_1 = {
|
33
|
+
key: 0,
|
34
|
+
class: "g-flex-row plus-tag-input"
|
35
|
+
};
|
36
|
+
import { Message } from 'bkui-vue';
|
37
|
+
import { Done, Error } from 'bkui-vue/lib/icon';
|
38
|
+
import { nextTick, onBeforeMount, ref, toRef, watch } from 'vue';
|
39
|
+
import { useFormRule } from '../../hooks/use-form-rule.ts.js';
|
40
|
+
import { useMetaHttp } from '../../hooks/use-meta-http.ts.js';
|
41
|
+
import { HttpErrorCode, Modules } from '../../types/enum.ts.js';
|
42
|
+
export default /*@__PURE__*/ _defineComponent({
|
43
|
+
props: {
|
44
|
+
modelValue: {},
|
45
|
+
apiPrefix: {},
|
46
|
+
spaceId: {},
|
47
|
+
popoverOptions: {}
|
48
|
+
},
|
49
|
+
emits: [
|
50
|
+
"update:modelValue"
|
51
|
+
],
|
52
|
+
setup (__props, { emit: __emit }) {
|
53
|
+
const props = __props;
|
54
|
+
const emits = __emit;
|
55
|
+
const { getTags, plusTag, checkTag } = useMetaHttp(props.apiPrefix, toRef(props, 'spaceId'));
|
56
|
+
const { getNameRule, getLengthRule } = useFormRule(props.apiPrefix, toRef(props, 'spaceId'));
|
57
|
+
const isShowEdit = ref(false);
|
58
|
+
const isPulsingTag = ref(false);
|
59
|
+
const tempTagName = ref('');
|
60
|
+
const tagRef = ref();
|
61
|
+
const tagFormRef = ref();
|
62
|
+
const isLoadingTag = ref(false);
|
63
|
+
const tags = ref([]);
|
64
|
+
const checkTagRule = {
|
65
|
+
validator: (value)=>checkTag(value).then(()=>true).catch(()=>false),
|
66
|
+
message: '标签名称重复',
|
67
|
+
trigger: 'change'
|
68
|
+
};
|
69
|
+
const tagRules = {
|
70
|
+
tempTagName: [
|
71
|
+
getNameRule(Modules.Tag),
|
72
|
+
checkTagRule,
|
73
|
+
getLengthRule('标签名称', 16)
|
74
|
+
]
|
75
|
+
};
|
76
|
+
const handleShowPlusTag = ()=>{
|
77
|
+
isShowEdit.value = true;
|
78
|
+
nextTick(()=>{
|
79
|
+
tagRef.value.focus();
|
80
|
+
});
|
81
|
+
};
|
82
|
+
const handleTagToggle = (isOpen)=>{
|
83
|
+
if (!isOpen) {
|
84
|
+
handleHidePlusTag();
|
85
|
+
}
|
86
|
+
};
|
87
|
+
const handleSelect = (value)=>{
|
88
|
+
emits('update:modelValue', value);
|
89
|
+
};
|
90
|
+
const handleTagKeyDown = (value, event)=>{
|
91
|
+
if (event.keyCode === 13 || event.key === 'Enter') {
|
92
|
+
handlePlusTag();
|
93
|
+
}
|
94
|
+
};
|
95
|
+
const handlePlusTag = function() {
|
96
|
+
var _ref = _async_to_generator(function*() {
|
97
|
+
try {
|
98
|
+
isPulsingTag.value = true;
|
99
|
+
yield tagFormRef.value.validate();
|
100
|
+
yield plusTag(tempTagName.value);
|
101
|
+
emits('update:modelValue', [
|
102
|
+
...props.modelValue,
|
103
|
+
tempTagName.value
|
104
|
+
]);
|
105
|
+
handleGetTags();
|
106
|
+
handleHidePlusTag();
|
107
|
+
} catch (error) {
|
108
|
+
if (error.code === HttpErrorCode.TagRepeat) {
|
109
|
+
Message({
|
110
|
+
message: '标签已存在,请重新输入',
|
111
|
+
theme: 'error'
|
112
|
+
});
|
113
|
+
} else {
|
114
|
+
console.error(error.message || error);
|
115
|
+
}
|
116
|
+
} finally{
|
117
|
+
isPulsingTag.value = false;
|
118
|
+
}
|
119
|
+
});
|
120
|
+
return function handlePlusTag() {
|
121
|
+
return _ref.apply(this, arguments);
|
122
|
+
};
|
123
|
+
}();
|
124
|
+
const handleHidePlusTag = ()=>{
|
125
|
+
isShowEdit.value = false;
|
126
|
+
tempTagName.value = '';
|
127
|
+
};
|
128
|
+
const handleGetTags = ()=>{
|
129
|
+
isLoadingTag.value = true;
|
130
|
+
getTags().then((result)=>{
|
131
|
+
tags.value = result;
|
132
|
+
}).finally(()=>{
|
133
|
+
isLoadingTag.value = false;
|
134
|
+
});
|
135
|
+
};
|
136
|
+
watch(()=>props.spaceId, handleGetTags);
|
137
|
+
onBeforeMount(handleGetTags);
|
138
|
+
return (_ctx, _cache)=>{
|
139
|
+
const _component_bk_option = _resolveComponent("bk-option");
|
140
|
+
const _component_bk_input = _resolveComponent("bk-input");
|
141
|
+
const _component_bk_form_item = _resolveComponent("bk-form-item");
|
142
|
+
const _component_bk_form = _resolveComponent("bk-form");
|
143
|
+
const _component_bk_select = _resolveComponent("bk-select");
|
144
|
+
const _directive_bkloading = _resolveDirective("bkloading");
|
145
|
+
return _openBlock(), _createBlock(_component_bk_select, {
|
146
|
+
multiple: "",
|
147
|
+
filterable: "",
|
148
|
+
"collapse-tags": "",
|
149
|
+
"multiple-mode": "tag",
|
150
|
+
"popover-options": _ctx.popoverOptions,
|
151
|
+
loading: isLoadingTag.value,
|
152
|
+
"input-search": false,
|
153
|
+
"model-value": _ctx.modelValue,
|
154
|
+
onChange: handleSelect,
|
155
|
+
onToggle: handleTagToggle
|
156
|
+
}, {
|
157
|
+
extension: _withCtx(()=>[
|
158
|
+
isShowEdit.value ? (_openBlock(), _createElementBlock("section", _hoisted_1, [
|
159
|
+
_createVNode(_component_bk_form, {
|
160
|
+
class: "plus-tag-form",
|
161
|
+
ref_key: "tagFormRef",
|
162
|
+
ref: tagFormRef,
|
163
|
+
model: {
|
164
|
+
tempTagName: tempTagName.value
|
165
|
+
},
|
166
|
+
rules: tagRules
|
167
|
+
}, {
|
168
|
+
default: _withCtx(()=>[
|
169
|
+
_createVNode(_component_bk_form_item, {
|
170
|
+
class: "plus-tag-form-item",
|
171
|
+
"label-width": 0,
|
172
|
+
property: "tempTagName",
|
173
|
+
"error-display-type": "tooltips",
|
174
|
+
required: ""
|
175
|
+
}, {
|
176
|
+
default: _withCtx(()=>[
|
177
|
+
_createVNode(_component_bk_input, {
|
178
|
+
modelValue: tempTagName.value,
|
179
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event)=>tempTagName.value = $event),
|
180
|
+
maxlength: 20,
|
181
|
+
ref_key: "tagRef",
|
182
|
+
ref: tagRef,
|
183
|
+
placeholder: "请输入标签名称",
|
184
|
+
onKeydown: handleTagKeyDown
|
185
|
+
}, null, 8 /* PROPS */ , [
|
186
|
+
"modelValue"
|
187
|
+
])
|
188
|
+
]),
|
189
|
+
_: 1 /* STABLE */
|
190
|
+
})
|
191
|
+
]),
|
192
|
+
_: 1 /* STABLE */
|
193
|
+
}, 8 /* PROPS */ , [
|
194
|
+
"model"
|
195
|
+
]),
|
196
|
+
_withDirectives(_createVNode(_unref(Done), {
|
197
|
+
class: "plus-tag-done",
|
198
|
+
onClick: handlePlusTag
|
199
|
+
}, null, 512 /* NEED_PATCH */ ), [
|
200
|
+
[
|
201
|
+
_directive_bkloading,
|
202
|
+
{
|
203
|
+
loading: isPulsingTag.value
|
204
|
+
}
|
205
|
+
]
|
206
|
+
]),
|
207
|
+
_createVNode(_unref(Error), {
|
208
|
+
class: "plus-tag-error",
|
209
|
+
onClick: handleHidePlusTag
|
210
|
+
})
|
211
|
+
])) : (_openBlock(), _createElementBlock("span", {
|
212
|
+
key: 1,
|
213
|
+
class: "plus-tag",
|
214
|
+
onClick: handleShowPlusTag
|
215
|
+
}, _cache[1] || (_cache[1] = [
|
216
|
+
_createElementVNode("i", {
|
217
|
+
class: "bkaidev-icon bkaidev-plus-circle"
|
218
|
+
}, null, -1 /* HOISTED */ ),
|
219
|
+
_createTextVNode(" 新建标签 ")
|
220
|
+
])))
|
221
|
+
]),
|
222
|
+
default: _withCtx(()=>[
|
223
|
+
(_openBlock(true), _createElementBlock(_Fragment, null, _renderList(tags.value, (tag)=>{
|
224
|
+
return _openBlock(), _createBlock(_component_bk_option, {
|
225
|
+
key: tag,
|
226
|
+
id: tag,
|
227
|
+
name: tag
|
228
|
+
}, null, 8 /* PROPS */ , [
|
229
|
+
"id",
|
230
|
+
"name"
|
231
|
+
]);
|
232
|
+
}), 128 /* KEYED_FRAGMENT */ ))
|
233
|
+
]),
|
234
|
+
_: 1 /* STABLE */
|
235
|
+
}, 8 /* PROPS */ , [
|
236
|
+
"popover-options",
|
237
|
+
"loading",
|
238
|
+
"model-value"
|
239
|
+
]);
|
240
|
+
};
|
241
|
+
}
|
242
|
+
});
|
@@ -0,0 +1,39 @@
|
|
1
|
+
|
2
|
+
.plus-tag-input[data-v-17pb1k5j] {
|
3
|
+
padding: 7px 12px;
|
4
|
+
width: 100%;
|
5
|
+
}
|
6
|
+
.plus-tag-input .plus-tag-done[data-v-17pb1k5j] {
|
7
|
+
cursor: pointer;
|
8
|
+
font-size: 22px;
|
9
|
+
color: #2DCB56;
|
10
|
+
margin: 0 5px 0 10px;
|
11
|
+
}
|
12
|
+
.plus-tag-input .plus-tag-error[data-v-17pb1k5j] {
|
13
|
+
cursor: pointer;
|
14
|
+
font-size: 16px;
|
15
|
+
color: #C4C6CC;
|
16
|
+
margin-right: 5px;
|
17
|
+
}
|
18
|
+
.plus-tag-input .plus-tag-form[data-v-17pb1k5j] {
|
19
|
+
flex: 1;
|
20
|
+
}
|
21
|
+
.plus-tag-input .plus-tag-form-item[data-v-17pb1k5j] {
|
22
|
+
margin-bottom: 0;
|
23
|
+
}
|
24
|
+
.plus-tag[data-v-17pb1k5j] {
|
25
|
+
cursor: pointer;
|
26
|
+
width: 100%;
|
27
|
+
display: flex;
|
28
|
+
justify-content: center;
|
29
|
+
align-items: center;
|
30
|
+
font-size: 12px;
|
31
|
+
line-height: 20px;
|
32
|
+
}
|
33
|
+
.plus-tag .bkaidev-plus-circle[data-v-17pb1k5j] {
|
34
|
+
font-size: 14px;
|
35
|
+
margin-right: 6px;
|
36
|
+
}
|
37
|
+
.plus-tag[data-v-17pb1k5j]:hover {
|
38
|
+
color: #3A84FF;
|
39
|
+
}
|
@@ -0,0 +1,12 @@
|
|
1
|
+
interface IProps {
|
2
|
+
modelValue: string[];
|
3
|
+
apiPrefix: string;
|
4
|
+
spaceId?: string;
|
5
|
+
popoverOptions?: Record<string, unknown>;
|
6
|
+
}
|
7
|
+
declare const _default: import("vue").DefineComponent<IProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
8
|
+
"update:modelValue": (value: string[]) => any;
|
9
|
+
}, string, import("vue").PublicProps, Readonly<IProps> & Readonly<{
|
10
|
+
"onUpdate:modelValue"?: (value: string[]) => any;
|
11
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
12
|
+
export default _default;
|
@@ -1,10 +1,10 @@
|
|
1
1
|
|
2
|
-
.collapse-title[data-v-
|
2
|
+
.collapse-title[data-v-0mm0ggiv] {
|
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-0mm0ggiv] {
|
9
9
|
transform: rotate(-90deg);
|
10
10
|
}
|
@@ -90,7 +90,7 @@ const _hoisted_2 = {
|
|
90
90
|
class: "value-content g-white-space-pre-line g-mb-16"
|
91
91
|
};
|
92
92
|
import { EditLine } from 'bkui-vue/lib/icon';
|
93
|
-
import { ref, watch } from 'vue';
|
93
|
+
import { ref, toRef, watch } from 'vue';
|
94
94
|
import RenderAutoHeightTextarea from '../../../render-auto-height-textarea/index.vue.js';
|
95
95
|
import Collapse from '../../../render-collapse/index.vue.js';
|
96
96
|
import { useDatasetHttp } from '../../../../hooks/use-dataset-http.ts.js';
|
@@ -99,7 +99,8 @@ export default /*@__PURE__*/ _defineComponent({
|
|
99
99
|
props: {
|
100
100
|
index: {},
|
101
101
|
datasetId: {},
|
102
|
-
apiPrefix: {}
|
102
|
+
apiPrefix: {},
|
103
|
+
spaceId: {}
|
103
104
|
},
|
104
105
|
emits: [
|
105
106
|
"success-edit"
|
@@ -107,7 +108,7 @@ export default /*@__PURE__*/ _defineComponent({
|
|
107
108
|
setup (__props, { emit: __emit }) {
|
108
109
|
const props = __props;
|
109
110
|
const emits = __emit;
|
110
|
-
const { updateDatasetData, getDatasetDataList } = useDatasetHttp(props.apiPrefix);
|
111
|
+
const { updateDatasetData, getDatasetDataList } = useDatasetHttp(props.apiPrefix, toRef(props, 'spaceId'));
|
111
112
|
const renderFormData = ref();
|
112
113
|
const editFormData = ref();
|
113
114
|
const isShow = ref(false);
|
@@ -1,15 +1,15 @@
|
|
1
1
|
|
2
|
-
.content[data-v-
|
2
|
+
.content[data-v-ck0by0vm] {
|
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-
|
7
|
+
.data-set-edit-slider .value-content[data-v-ck0by0vm] {
|
8
8
|
padding: 16px;
|
9
9
|
border: 1px solid #DCDEE5;
|
10
10
|
line-height: 22px;
|
11
11
|
}
|
12
|
-
.data-set-edit-slider[data-v-
|
12
|
+
.data-set-edit-slider[data-v-ck0by0vm] .bk-sideslider-title {
|
13
13
|
justify-content: space-between;
|
14
14
|
width: 100%;
|
15
15
|
}
|
@@ -2,6 +2,7 @@ interface IProps {
|
|
2
2
|
index: number;
|
3
3
|
datasetId: number;
|
4
4
|
apiPrefix: string;
|
5
|
+
spaceId?: string;
|
5
6
|
}
|
6
7
|
declare const _default: import("vue").DefineComponent<IProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
7
8
|
"success-edit": () => any;
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import script from './index.script.vue.js.js';
|
2
|
-
script.__scopeId = "data-v-
|
2
|
+
script.__scopeId = "data-v-ck0by0vm";
|
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;
|
@@ -6,7 +6,7 @@ const _hoisted_1 = {
|
|
6
6
|
const _hoisted_2 = {
|
7
7
|
class: "toolbar"
|
8
8
|
};
|
9
|
-
import { ref } from 'vue';
|
9
|
+
import { ref, toRef } from 'vue';
|
10
10
|
import RenderSearchOperationRecord from '../search-operation-record/index.vue.js';
|
11
11
|
import RenderTable from './table/index.vue.js';
|
12
12
|
import { useDatasetHttp } from '../../../../hooks/use-dataset-http.ts.js';
|
@@ -14,11 +14,12 @@ export default /*@__PURE__*/ _defineComponent({
|
|
14
14
|
props: {
|
15
15
|
apiPrefix: {},
|
16
16
|
datasetId: {},
|
17
|
-
datasetDataId: {}
|
17
|
+
datasetDataId: {},
|
18
|
+
spaceId: {}
|
18
19
|
},
|
19
20
|
setup (__props) {
|
20
21
|
const props = __props;
|
21
|
-
const { getDataset } = useDatasetHttp(props.apiPrefix);
|
22
|
+
const { getDataset } = useDatasetHttp(props.apiPrefix, toRef(props, 'spaceId'));
|
22
23
|
const search = ref({
|
23
24
|
resourceTypeId: 'dataset_item'
|
24
25
|
});
|
@@ -120,11 +121,13 @@ export default /*@__PURE__*/ _defineComponent({
|
|
120
121
|
_createVNode(RenderTable, {
|
121
122
|
"dataset-id": _ctx.datasetId,
|
122
123
|
search: search.value,
|
123
|
-
"api-prefix": _ctx.apiPrefix
|
124
|
+
"api-prefix": _ctx.apiPrefix,
|
125
|
+
"space-id": _ctx.spaceId
|
124
126
|
}, null, 8 /* PROPS */ , [
|
125
127
|
"dataset-id",
|
126
128
|
"search",
|
127
|
-
"api-prefix"
|
129
|
+
"api-prefix",
|
130
|
+
"space-id"
|
128
131
|
])
|
129
132
|
])
|
130
133
|
];
|
@@ -1,18 +1,18 @@
|
|
1
1
|
|
2
|
-
.content[data-v-
|
2
|
+
.content[data-v-x1id1vf7] {
|
3
3
|
padding: 0 24px 0px 32px;
|
4
4
|
height: 100%;
|
5
5
|
}
|
6
|
-
.content .toolbar[data-v-
|
6
|
+
.content .toolbar[data-v-x1id1vf7] {
|
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-x1id1vf7] {
|
14
14
|
width: 360px;
|
15
15
|
}
|
16
|
-
.content .toolbar .record-data-picker[data-v-
|
16
|
+
.content .toolbar .record-data-picker[data-v-x1id1vf7] {
|
17
17
|
width: 260px;
|
18
18
|
}
|
@@ -2,6 +2,7 @@ interface IProps {
|
|
2
2
|
apiPrefix: string;
|
3
3
|
datasetId: number;
|
4
4
|
datasetDataId?: number;
|
5
|
+
spaceId?: string;
|
5
6
|
}
|
6
7
|
declare const _default: import("vue").DefineComponent<IProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<IProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
7
8
|
export default _default;
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import script from './index.script.vue.js.js';
|
2
|
-
script.__scopeId = "data-v-
|
2
|
+
script.__scopeId = "data-v-x1id1vf7";
|
3
3
|
script.__file = "./src/components/render-dataset/components/operation-record/index.vue";
|
4
4
|
import './index.vue.css';
|
5
5
|
export default script;
|
package/dist/components/render-dataset/components/operation-record/table/index.script.vue.js.js
CHANGED
@@ -34,7 +34,7 @@ const _hoisted_1 = {
|
|
34
34
|
const _hoisted_2 = {
|
35
35
|
class: "text"
|
36
36
|
};
|
37
|
-
import { ref, watch } from 'vue';
|
37
|
+
import { ref, toRef, watch } from 'vue';
|
38
38
|
import ViewOpResult from '../view-op-result/index.vue.js';
|
39
39
|
import { useDatasetHttp } from '../../../../../hooks/use-dataset-http.ts.js';
|
40
40
|
import useTable from '../../../../../hooks/use-table.ts.js';
|
@@ -42,11 +42,12 @@ import { DatasetDataOperatRecordActionId, DatasetDataOperatRecordResultCode } fr
|
|
42
42
|
export default /*@__PURE__*/ _defineComponent({
|
43
43
|
props: {
|
44
44
|
search: {},
|
45
|
-
apiPrefix: {}
|
45
|
+
apiPrefix: {},
|
46
|
+
spaceId: {}
|
46
47
|
},
|
47
48
|
setup (__props) {
|
48
49
|
const props = __props;
|
49
|
-
const { getOperateRecordList } = useDatasetHttp(props.apiPrefix);
|
50
|
+
const { getOperateRecordList } = useDatasetHttp(props.apiPrefix, toRef(props, 'spaceId'));
|
50
51
|
const resultCodeMap = {
|
51
52
|
[DatasetDataOperatRecordResultCode.Failed]: '失败',
|
52
53
|
[DatasetDataOperatRecordResultCode.Success]: '成功'
|
@@ -2,6 +2,7 @@ import type { IOperatRecordParam } from '@/types/dataset';
|
|
2
2
|
interface IProps {
|
3
3
|
search: IOperatRecordParam;
|
4
4
|
apiPrefix: string;
|
5
|
+
spaceId?: string;
|
5
6
|
}
|
6
7
|
declare const _default: import("vue").DefineComponent<IProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<IProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
7
8
|
export default _default;
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import script from './index.script.vue.js.js';
|
2
|
-
script.__scopeId = "data-v-
|
2
|
+
script.__scopeId = "data-v-buakvoe5";
|
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-spmc1qh3] {
|
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-spmc1qh3] {
|
8
8
|
margin-top: 8px;
|
9
9
|
padding: 16px;
|
10
10
|
border: 1px solid #DCDEE5;
|