@blueking/ai-ui-sdk 0.1.2-beta.15 → 0.1.2-beta.17
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.vue.css +8 -8
- package/dist/components/render-choose-tag/index.vue.js +1 -1
- package/dist/components/render-collapse/index.vue.css +2 -2
- package/dist/components/render-collapse/index.vue.js +1 -1
- package/dist/components/render-dataset/components/edit-dataset-data/index.vue.css +3 -3
- package/dist/components/render-dataset/components/edit-dataset-data/index.vue.js +1 -1
- package/dist/components/render-dataset/components/operation-record/index.vue.css +4 -4
- package/dist/components/render-dataset/components/operation-record/index.vue.js +1 -1
- package/dist/components/render-dataset/components/operation-record/table/index.vue.css +1 -1
- package/dist/components/render-dataset/components/operation-record/table/index.vue.js +1 -1
- package/dist/components/render-dataset/components/operation-record/view-op-result/index.vue.css +2 -2
- package/dist/components/render-dataset/components/operation-record/view-op-result/index.vue.js +1 -1
- package/dist/components/render-dataset/components/plus-dataset/index.vue.css +2 -2
- package/dist/components/render-dataset/components/plus-dataset/index.vue.js +1 -1
- package/dist/components/render-dataset/components/plus-dataset-data/form/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/index.script.vue.js.js +7 -4
- package/dist/components/render-dataset/components/plus-dataset-data/index.vue.d.ts +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/batch-operation/index.script.vue.js.js +10 -4
- package/dist/components/render-dataset-detail-origin-data/components/batch-operation/index.vue.d.ts +2 -1
- package/dist/components/render-dataset-detail-origin-data/components/table/index.script.vue.js +18 -14
- 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 +2 -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 +6 -2
- 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 -1
- 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/components/table.script.vue.js.js +8 -16
- 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/event/index.d.ts +2 -2
- package/package.json +1 -1
@@ -1,12 +1,12 @@
|
|
1
1
|
|
2
|
-
.aside-home[data-v-
|
2
|
+
.aside-home[data-v-k2uru2pc] {
|
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-k2uru2pc] .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-k2uru2pc] .aside-item.is-tab {
|
20
20
|
background: #F5F7FA;
|
21
21
|
cursor: pointer;
|
22
22
|
color: #4D4F56;
|
23
23
|
}
|
24
|
-
[data-v-
|
24
|
+
[data-v-k2uru2pc] .aside-item.is-tab:hover {
|
25
25
|
background: #F0F5FF;
|
26
26
|
}
|
27
|
-
[data-v-
|
27
|
+
[data-v-k2uru2pc] .aside-item.active {
|
28
28
|
background: #F0F5FF;
|
29
29
|
color: #3A84FF;
|
30
30
|
font-weight: 700;
|
31
31
|
}
|
32
|
-
[data-v-
|
32
|
+
[data-v-k2uru2pc] .aside-item.active .tab-num {
|
33
33
|
background: #3A84FF;
|
34
34
|
color: #fff;
|
35
35
|
}
|
36
|
-
[data-v-
|
36
|
+
[data-v-k2uru2pc] .aside-item.active .active-text {
|
37
37
|
color: #3A84FF;
|
38
38
|
}
|
39
|
-
[data-v-
|
39
|
+
[data-v-k2uru2pc] .aside-item .tab-name {
|
40
40
|
flex: 1;
|
41
41
|
}
|
42
|
-
[data-v-
|
42
|
+
[data-v-k2uru2pc] .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-w67cvaxd] {
|
3
3
|
position: relative;
|
4
4
|
}
|
5
|
-
.send-container[data-v-
|
5
|
+
.send-container[data-v-w67cvaxd]: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-w67cvaxd] {
|
9
9
|
display: inline-flex !important;
|
10
10
|
}
|
11
|
-
.send-input[data-v-
|
11
|
+
.send-input[data-v-w67cvaxd] {
|
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-w67cvaxd]:has(textarea:focus) {
|
17
17
|
height: var(--text-height);
|
18
18
|
}
|
19
|
-
.send-input[data-v-
|
19
|
+
.send-input[data-v-w67cvaxd] 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-w67cvaxd] textarea::-webkit-scrollbar {
|
26
26
|
width: 4px;
|
27
27
|
height: 4px;
|
28
28
|
}
|
29
|
-
.send-input[data-v-
|
29
|
+
.send-input[data-v-w67cvaxd] 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-w67cvaxd] textarea::placeholder {
|
35
35
|
line-height: 16px;
|
36
36
|
}
|
37
|
-
.send-clear[data-v-
|
37
|
+
.send-clear[data-v-w67cvaxd] {
|
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-w67cvaxd]:hover {
|
47
47
|
color: #313238;
|
48
48
|
}
|
@@ -1,27 +1,27 @@
|
|
1
1
|
|
2
|
-
.plus-tag-input[data-v-
|
2
|
+
.plus-tag-input[data-v-gmsx46vr] {
|
3
3
|
padding: 7px 12px;
|
4
4
|
width: 100%;
|
5
5
|
}
|
6
|
-
.plus-tag-input .plus-tag-done[data-v-
|
6
|
+
.plus-tag-input .plus-tag-done[data-v-gmsx46vr] {
|
7
7
|
cursor: pointer;
|
8
8
|
font-size: 22px;
|
9
9
|
color: #2DCB56;
|
10
10
|
margin: 0 5px 0 10px;
|
11
11
|
}
|
12
|
-
.plus-tag-input .plus-tag-error[data-v-
|
12
|
+
.plus-tag-input .plus-tag-error[data-v-gmsx46vr] {
|
13
13
|
cursor: pointer;
|
14
14
|
font-size: 16px;
|
15
15
|
color: #C4C6CC;
|
16
16
|
margin-right: 5px;
|
17
17
|
}
|
18
|
-
.plus-tag-input .plus-tag-form[data-v-
|
18
|
+
.plus-tag-input .plus-tag-form[data-v-gmsx46vr] {
|
19
19
|
flex: 1;
|
20
20
|
}
|
21
|
-
.plus-tag-input .plus-tag-form-item[data-v-
|
21
|
+
.plus-tag-input .plus-tag-form-item[data-v-gmsx46vr] {
|
22
22
|
margin-bottom: 0;
|
23
23
|
}
|
24
|
-
.plus-tag[data-v-
|
24
|
+
.plus-tag[data-v-gmsx46vr] {
|
25
25
|
cursor: pointer;
|
26
26
|
width: 100%;
|
27
27
|
display: flex;
|
@@ -30,10 +30,10 @@
|
|
30
30
|
font-size: 12px;
|
31
31
|
line-height: 20px;
|
32
32
|
}
|
33
|
-
.plus-tag .bkaidev-plus-circle[data-v-
|
33
|
+
.plus-tag .bkaidev-plus-circle[data-v-gmsx46vr] {
|
34
34
|
font-size: 14px;
|
35
35
|
margin-right: 6px;
|
36
36
|
}
|
37
|
-
.plus-tag[data-v-
|
37
|
+
.plus-tag[data-v-gmsx46vr]:hover {
|
38
38
|
color: #3A84FF;
|
39
39
|
}
|
@@ -1,10 +1,10 @@
|
|
1
1
|
|
2
|
-
.collapse-title[data-v-
|
2
|
+
.collapse-title[data-v-ygjxqpa1] {
|
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-ygjxqpa1] {
|
9
9
|
transform: rotate(-90deg);
|
10
10
|
}
|
@@ -1,15 +1,15 @@
|
|
1
1
|
|
2
|
-
.content[data-v-
|
2
|
+
.content[data-v-0m2mnaij] {
|
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-0m2mnaij] {
|
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-0m2mnaij] .bk-sideslider-title {
|
13
13
|
justify-content: space-between;
|
14
14
|
width: 100%;
|
15
15
|
}
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import script from './index.script.vue.js.js';
|
2
|
-
script.__scopeId = "data-v-
|
2
|
+
script.__scopeId = "data-v-0m2mnaij";
|
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-sspvlofl] {
|
3
3
|
padding: 0 24px 0px 32px;
|
4
4
|
height: 100%;
|
5
5
|
}
|
6
|
-
.content .toolbar[data-v-
|
6
|
+
.content .toolbar[data-v-sspvlofl] {
|
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-sspvlofl] {
|
14
14
|
width: 360px;
|
15
15
|
}
|
16
|
-
.content .toolbar .record-data-picker[data-v-
|
16
|
+
.content .toolbar .record-data-picker[data-v-sspvlofl] {
|
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-sspvlofl";
|
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-axcct6x8";
|
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-1mv7wqnr] {
|
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-1mv7wqnr] {
|
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-1mv7wqnr";
|
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;
|
@@ -1,8 +1,8 @@
|
|
1
1
|
|
2
|
-
.dataset-data-content[data-v-
|
2
|
+
.dataset-data-content[data-v-b476rxj8] {
|
3
3
|
padding: 20px 24px;
|
4
4
|
height: 100%;
|
5
5
|
}
|
6
|
-
.dataset-data-slider[data-v-
|
6
|
+
.dataset-data-slider[data-v-b476rxj8] .bk-modal-content {
|
7
7
|
scrollbar-gutter: inherit !important;
|
8
8
|
}
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import script from './footer.script.vue.js.js';
|
2
|
-
script.__scopeId = "data-v-
|
2
|
+
script.__scopeId = "data-v-tn2eih86";
|
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-xjtjqb78] {
|
3
3
|
padding: 20px 24px;
|
4
4
|
}
|
5
|
-
.plus-dataset-sideslider[data-v-
|
5
|
+
.plus-dataset-sideslider[data-v-xjtjqb78] .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-xjtjqb78";
|
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;
|
@@ -27,18 +27,21 @@ export default /*@__PURE__*/ _defineComponent({
|
|
27
27
|
const emits = __emit;
|
28
28
|
const { handleMouseEnter, handleMouseMove, handleMouseLeave, handleMouseClick } = usePermission(props.apiPrefix, toRef(props, 'spaceId'), '#4d4f56');
|
29
29
|
const isShow = ref(false);
|
30
|
+
const handleCalcHasManagePermission = ()=>{
|
31
|
+
return !props.isInternal || props.manageDataset;
|
32
|
+
};
|
30
33
|
const handlePermissionMouseEnter = ()=>{
|
31
|
-
handleMouseEnter(
|
34
|
+
handleMouseEnter(handleCalcHasManagePermission());
|
32
35
|
};
|
33
36
|
const handlePermissionMouseMove = (event)=>{
|
34
|
-
handleMouseMove(event,
|
37
|
+
handleMouseMove(event, handleCalcHasManagePermission());
|
35
38
|
};
|
36
39
|
const handlePermissionMouseLeave = ()=>{
|
37
40
|
handleMouseLeave();
|
38
41
|
};
|
39
42
|
const handlePermissionMouseClick = (callback)=>{
|
40
43
|
var _props_datasetData;
|
41
|
-
handleMouseClick(callback,
|
44
|
+
handleMouseClick(callback, handleCalcHasManagePermission(), [
|
42
45
|
ResourcePermissionAction.ManageDataset,
|
43
46
|
ResourcePermissionAction.ViewDataset
|
44
47
|
], (_props_datasetData = props.datasetData) === null || _props_datasetData === void 0 ? void 0 : _props_datasetData.datasetId);
|
@@ -54,7 +57,7 @@ export default /*@__PURE__*/ _defineComponent({
|
|
54
57
|
return _openBlock(), _createElementBlock(_Fragment, null, [
|
55
58
|
_createVNode(_component_bk_button, _mergeProps(_ctx.$attrs, {
|
56
59
|
class: {
|
57
|
-
'g-disabled': !
|
60
|
+
'g-disabled': !handleCalcHasManagePermission()
|
58
61
|
},
|
59
62
|
theme: "primary",
|
60
63
|
onMouseenter: handlePermissionMouseEnter,
|
@@ -4,7 +4,7 @@ interface IProps {
|
|
4
4
|
disabledChooseDataset?: boolean;
|
5
5
|
apiPrefix: string;
|
6
6
|
spaceId?: string;
|
7
|
-
manageDataset
|
7
|
+
manageDataset?: boolean;
|
8
8
|
isInternal?: boolean;
|
9
9
|
}
|
10
10
|
declare const _default: import("vue").DefineComponent<IProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
@@ -13,6 +13,9 @@ export default /*@__PURE__*/ _defineComponent({
|
|
13
13
|
datasetId: {},
|
14
14
|
manageDataset: {
|
15
15
|
type: Boolean
|
16
|
+
},
|
17
|
+
isInternal: {
|
18
|
+
type: Boolean
|
16
19
|
}
|
17
20
|
},
|
18
21
|
emits: [
|
@@ -26,8 +29,11 @@ export default /*@__PURE__*/ _defineComponent({
|
|
26
29
|
const { handleMouseEnter, handleMouseMove, handleMouseLeave, handleMouseClick } = usePermission(props.apiPrefix, toRef(props, 'spaceId'), '#4d4f56');
|
27
30
|
const showMore = ref(false);
|
28
31
|
const deleteRef = ref();
|
32
|
+
const handleCalcHasManagePermission = ()=>{
|
33
|
+
return !props.isInternal || props.manageDataset;
|
34
|
+
};
|
29
35
|
const handlePermissionMouseClick = ()=>{
|
30
|
-
handleMouseClick(handleShowDelete,
|
36
|
+
handleMouseClick(handleShowDelete, handleCalcHasManagePermission(), [
|
31
37
|
ResourcePermissionAction.ManageDataset,
|
32
38
|
ResourcePermissionAction.ViewDataset
|
33
39
|
], props.datasetId);
|
@@ -81,10 +87,10 @@ export default /*@__PURE__*/ _defineComponent({
|
|
81
87
|
default: _withCtx(()=>[
|
82
88
|
_createElementVNode("li", {
|
83
89
|
class: _normalizeClass({
|
84
|
-
'g-disabled': !
|
90
|
+
'g-disabled': !handleCalcHasManagePermission()
|
85
91
|
}),
|
86
|
-
onMouseenter: _cache[0] || (_cache[0] = ($event)=>_unref(handleMouseEnter)(
|
87
|
-
onMousemove: _cache[1] || (_cache[1] = (event)=>_unref(handleMouseMove)(event,
|
92
|
+
onMouseenter: _cache[0] || (_cache[0] = ($event)=>_unref(handleMouseEnter)(handleCalcHasManagePermission())),
|
93
|
+
onMousemove: _cache[1] || (_cache[1] = (event)=>_unref(handleMouseMove)(event, handleCalcHasManagePermission())),
|
88
94
|
onMouseleave: _cache[2] || (_cache[2] = //@ts-ignore
|
89
95
|
(...args)=>_unref(handleMouseLeave) && _unref(handleMouseLeave)(...args)),
|
90
96
|
onClick: handlePermissionMouseClick
|
package/dist/components/render-dataset-detail-origin-data/components/batch-operation/index.vue.d.ts
CHANGED
@@ -4,7 +4,8 @@ interface IProps {
|
|
4
4
|
apiPrefix: string;
|
5
5
|
spaceId?: string;
|
6
6
|
datasetId: number;
|
7
|
-
manageDataset
|
7
|
+
manageDataset?: boolean;
|
8
|
+
isInternal?: boolean;
|
8
9
|
}
|
9
10
|
declare const _default: import("vue").DefineComponent<IProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
10
11
|
"update:selectedDatasetDatas": (selectedDatasetDatas: IDatasetData[]) => any;
|
package/dist/components/render-dataset-detail-origin-data/components/table/index.script.vue.js
CHANGED
@@ -29,6 +29,9 @@ export default /*@__PURE__*/ _defineComponent({
|
|
29
29
|
spaceId: {},
|
30
30
|
manageDataset: {
|
31
31
|
type: Boolean
|
32
|
+
},
|
33
|
+
isInternal: {
|
34
|
+
type: Boolean
|
32
35
|
}
|
33
36
|
},
|
34
37
|
emits: [
|
@@ -51,8 +54,11 @@ export default /*@__PURE__*/ _defineComponent({
|
|
51
54
|
[DatasetDataSourceType.KnowledgebaseImport]: '知识库导入',
|
52
55
|
[DatasetDataSourceType.ManualImport]: '手动录入'
|
53
56
|
};
|
57
|
+
const handleCalcHasManagePermission = ()=>{
|
58
|
+
return !props.isInternal || props.manageDataset;
|
59
|
+
};
|
54
60
|
const handlePermissionMouseClick = (row, callBack)=>{
|
55
|
-
handleMouseClick(callBack,
|
61
|
+
handleMouseClick(callBack, handleCalcHasManagePermission(), [
|
56
62
|
ResourcePermissionAction.ManageDataset
|
57
63
|
], props.datasetId);
|
58
64
|
};
|
@@ -202,13 +208,13 @@ export default /*@__PURE__*/ _defineComponent({
|
|
202
208
|
default: _withCtx(({ row, index })=>[
|
203
209
|
_createVNode(_component_bk_button, {
|
204
210
|
class: _normalizeClass({
|
205
|
-
'g-disabled': !
|
211
|
+
'g-disabled': !handleCalcHasManagePermission(),
|
206
212
|
'g-mr-4': true
|
207
213
|
}),
|
208
214
|
text: "",
|
209
215
|
theme: "primary",
|
210
|
-
onMouseenter: _cache[0] || (_cache[0] = ($event)=>_unref(handleMouseEnter)(
|
211
|
-
onMousemove: _cache[1] || (_cache[1] = (event)=>_unref(handleMouseMove)(event,
|
216
|
+
onMouseenter: _cache[0] || (_cache[0] = ($event)=>_unref(handleMouseEnter)(handleCalcHasManagePermission())),
|
217
|
+
onMousemove: _cache[1] || (_cache[1] = (event)=>_unref(handleMouseMove)(event, handleCalcHasManagePermission())),
|
212
218
|
onMouseleave: _unref(handleMouseLeave),
|
213
219
|
onClick: ($event)=>handlePermissionMouseClick(row, ()=>handleShowEditDatasetData(row, index))
|
214
220
|
}, {
|
@@ -240,10 +246,10 @@ export default /*@__PURE__*/ _defineComponent({
|
|
240
246
|
_createVNode(_component_bk_button, {
|
241
247
|
text: "",
|
242
248
|
class: _normalizeClass({
|
243
|
-
'g-disabled': !
|
249
|
+
'g-disabled': !handleCalcHasManagePermission()
|
244
250
|
}),
|
245
|
-
onMouseenter: _cache[2] || (_cache[2] = ($event)=>_unref(handleMouseEnter)(
|
246
|
-
onMousemove: _cache[3] || (_cache[3] = (event)=>_unref(handleMouseMove)(event,
|
251
|
+
onMouseenter: _cache[2] || (_cache[2] = ($event)=>_unref(handleMouseEnter)(handleCalcHasManagePermission())),
|
252
|
+
onMousemove: _cache[3] || (_cache[3] = (event)=>_unref(handleMouseMove)(event, handleCalcHasManagePermission())),
|
247
253
|
onMouseleave: _unref(handleMouseLeave),
|
248
254
|
onClick: ($event)=>handlePermissionMouseClick(row, ()=>handleShowOperationRecord(row))
|
249
255
|
}, {
|
@@ -272,10 +278,10 @@ export default /*@__PURE__*/ _defineComponent({
|
|
272
278
|
default: _withCtx(()=>[
|
273
279
|
_createElementVNode("li", {
|
274
280
|
class: _normalizeClass({
|
275
|
-
'g-disabled': !
|
281
|
+
'g-disabled': !handleCalcHasManagePermission()
|
276
282
|
}),
|
277
|
-
onMouseenter: _cache[4] || (_cache[4] = ($event)=>_unref(handleMouseEnter)(
|
278
|
-
onMousemove: _cache[5] || (_cache[5] = (event)=>_unref(handleMouseMove)(event,
|
283
|
+
onMouseenter: _cache[4] || (_cache[4] = ($event)=>_unref(handleMouseEnter)(handleCalcHasManagePermission())),
|
284
|
+
onMousemove: _cache[5] || (_cache[5] = (event)=>_unref(handleMouseMove)(event, handleCalcHasManagePermission())),
|
279
285
|
onMouseleave: _cache[6] || (_cache[6] = //@ts-ignore
|
280
286
|
(...args)=>_unref(handleMouseLeave) && _unref(handleMouseLeave)(...args)),
|
281
287
|
onClick: ($event)=>handlePermissionMouseClick(row, ()=>handleShowDelete(row))
|
@@ -336,15 +342,13 @@ export default /*@__PURE__*/ _defineComponent({
|
|
336
342
|
index: tempDatasetDataIndex.value,
|
337
343
|
"dataset-id": _ctx.datasetId,
|
338
344
|
"api-prefix": _ctx.apiPrefix,
|
339
|
-
"space-id": _ctx.spaceId
|
340
|
-
"manage-dataset": _ctx.manageDataset
|
345
|
+
"space-id": _ctx.spaceId
|
341
346
|
}, null, 8 /* PROPS */ , [
|
342
347
|
"modelValue",
|
343
348
|
"index",
|
344
349
|
"dataset-id",
|
345
350
|
"api-prefix",
|
346
|
-
"space-id"
|
347
|
-
"manage-dataset"
|
351
|
+
"space-id"
|
348
352
|
])
|
349
353
|
], 64 /* STABLE_FRAGMENT */ );
|
350
354
|
};
|
@@ -6,7 +6,8 @@ interface IProps {
|
|
6
6
|
schema: Record<string, string>;
|
7
7
|
selectedDatasetDatas: IDatasetData[];
|
8
8
|
spaceId?: string;
|
9
|
-
manageDataset
|
9
|
+
manageDataset?: boolean;
|
10
|
+
isInternal?: boolean;
|
10
11
|
}
|
11
12
|
declare const _default: import("vue").DefineComponent<IProps, {
|
12
13
|
triggerApi: () => Promise<unknown>;
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import script from './index.script.vue.js';
|
2
|
-
script.__scopeId = "data-v-
|
2
|
+
script.__scopeId = "data-v-ys612kd2";
|
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;
|
@@ -83,13 +83,15 @@ export default /*@__PURE__*/ _defineComponent({
|
|
83
83
|
"space-id": _ctx.spaceId,
|
84
84
|
"dataset-id": _ctx.datasetId,
|
85
85
|
"manage-dataset": _ctx.manageDataset,
|
86
|
+
"is-internal": _ctx.isInternal,
|
86
87
|
onSuccessDelete: handleUpdate
|
87
88
|
}, null, 8 /* PROPS */ , [
|
88
89
|
"selected-dataset-datas",
|
89
90
|
"api-prefix",
|
90
91
|
"space-id",
|
91
92
|
"dataset-id",
|
92
|
-
"manage-dataset"
|
93
|
+
"manage-dataset",
|
94
|
+
"is-internal"
|
93
95
|
])
|
94
96
|
]),
|
95
97
|
_createVNode(RenderSearchDatasetData, {
|
@@ -111,6 +113,7 @@ export default /*@__PURE__*/ _defineComponent({
|
|
111
113
|
search: search.value,
|
112
114
|
schema: schema.value,
|
113
115
|
"manage-dataset": _ctx.manageDataset,
|
116
|
+
"is-internal": _ctx.isInternal,
|
114
117
|
ref_key: "tableRef",
|
115
118
|
ref: tableRef
|
116
119
|
}, null, 8 /* PROPS */ , [
|
@@ -120,7 +123,8 @@ export default /*@__PURE__*/ _defineComponent({
|
|
120
123
|
"dataset-id",
|
121
124
|
"search",
|
122
125
|
"schema",
|
123
|
-
"manage-dataset"
|
126
|
+
"manage-dataset",
|
127
|
+
"is-internal"
|
124
128
|
])
|
125
129
|
])) : _createCommentVNode("v-if", true)
|
126
130
|
]),
|
@@ -1,15 +1,15 @@
|
|
1
1
|
|
2
|
-
.origin-data-content[data-v-
|
2
|
+
.origin-data-content[data-v-67u0zn7y] {
|
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-67u0zn7y] {
|
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-67u0zn7y] {
|
14
14
|
width: 6.17rem;
|
15
15
|
}
|
@@ -2,7 +2,7 @@ interface IProps {
|
|
2
2
|
apiPrefix: string;
|
3
3
|
datasetId: number;
|
4
4
|
spaceId?: string;
|
5
|
-
manageDataset
|
5
|
+
manageDataset?: boolean;
|
6
6
|
isInternal?: boolean;
|
7
7
|
}
|
8
8
|
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>;
|
@@ -1,15 +1,15 @@
|
|
1
1
|
|
2
|
-
.main-content[data-v-
|
2
|
+
.main-content[data-v-4o80u5nj] {
|
3
3
|
padding: 20px 24px;
|
4
4
|
height: calc(100% - 52px);
|
5
5
|
}
|
6
|
-
.main-panel[data-v-
|
6
|
+
.main-panel[data-v-4o80u5nj] {
|
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-4o80u5nj] {
|
14
14
|
width: 6.17rem;
|
15
15
|
}
|
@@ -173,14 +173,12 @@ export default /*@__PURE__*/ _defineComponent({
|
|
173
173
|
return ((_row_permission = row.permission) === null || _row_permission === void 0 ? void 0 : _row_permission.manageDataset) || !props.isInternal;
|
174
174
|
};
|
175
175
|
const handleViewPermissionMouseClick = (callback, row)=>{
|
176
|
-
|
177
|
-
handleMouseClick(callback, (_row_permission = row.permission) === null || _row_permission === void 0 ? void 0 : _row_permission.viewDataset, [
|
176
|
+
handleMouseClick(callback, isDatasetViewPermission(row), [
|
178
177
|
ResourcePermissionAction.ViewDataset
|
179
178
|
], row.id);
|
180
179
|
};
|
181
180
|
const handleManagePermissionMouseClick = (callback, row)=>{
|
182
|
-
|
183
|
-
handleMouseClick(callback, (_row_permission = row.permission) === null || _row_permission === void 0 ? void 0 : _row_permission.manageDataset, [
|
181
|
+
handleMouseClick(callback, isDatasetManagePermission(row), [
|
184
182
|
ResourcePermissionAction.ManageDataset,
|
185
183
|
ResourcePermissionAction.ViewDataset
|
186
184
|
], row.id);
|
@@ -265,14 +263,12 @@ export default /*@__PURE__*/ _defineComponent({
|
|
265
263
|
label: "名称",
|
266
264
|
field: "datasetName"
|
267
265
|
}, {
|
268
|
-
default: _withCtx(({ row })=>
|
269
|
-
var _row_permission;
|
270
|
-
return [
|
266
|
+
default: _withCtx(({ row })=>[
|
271
267
|
_createVNode(_component_bk_button, {
|
272
268
|
text: "",
|
273
269
|
theme: "primary",
|
274
270
|
class: _normalizeClass({
|
275
|
-
'g-disabled': !(row
|
271
|
+
'g-disabled': !isDatasetViewPermission(row)
|
276
272
|
}),
|
277
273
|
onMouseenter: ($event)=>_unref(handleMouseEnter)(isDatasetViewPermission(row)),
|
278
274
|
onMousemove: (event)=>_unref(handleMouseMove)(event, isDatasetViewPermission(row)),
|
@@ -290,8 +286,7 @@ export default /*@__PURE__*/ _defineComponent({
|
|
290
286
|
"onMouseleave",
|
291
287
|
"onClick"
|
292
288
|
])
|
293
|
-
]
|
294
|
-
}),
|
289
|
+
]),
|
295
290
|
_: 1 /* STABLE */
|
296
291
|
}),
|
297
292
|
_createVNode(_component_bk_table_column, {
|
@@ -353,9 +348,7 @@ export default /*@__PURE__*/ _defineComponent({
|
|
353
348
|
fixed: "right",
|
354
349
|
width: "230"
|
355
350
|
}, {
|
356
|
-
default: _withCtx(({ row })=>
|
357
|
-
var _row_permission;
|
358
|
-
return [
|
351
|
+
default: _withCtx(({ row })=>[
|
359
352
|
_createVNode(RenderPlusDatasetData, {
|
360
353
|
text: "",
|
361
354
|
class: "g-mr-16",
|
@@ -375,7 +368,7 @@ export default /*@__PURE__*/ _defineComponent({
|
|
375
368
|
text: "",
|
376
369
|
theme: "primary",
|
377
370
|
class: _normalizeClass({
|
378
|
-
'g-disabled': !(row
|
371
|
+
'g-disabled': !isDatasetViewPermission(row)
|
379
372
|
}),
|
380
373
|
onMouseenter: ($event)=>_unref(handleMouseEnter)(isDatasetViewPermission(row)),
|
381
374
|
onMousemove: (event)=>_unref(handleMouseMove)(event, isDatasetViewPermission(row)),
|
@@ -509,8 +502,7 @@ export default /*@__PURE__*/ _defineComponent({
|
|
509
502
|
7
|
510
503
|
]
|
511
504
|
}, 1536 /* NEED_PATCH, DYNAMIC_SLOTS */ )
|
512
|
-
]
|
513
|
-
}),
|
505
|
+
]),
|
514
506
|
_: 1 /* STABLE */
|
515
507
|
})
|
516
508
|
]),
|
@@ -1,5 +1,5 @@
|
|
1
1
|
|
2
|
-
.expend-collapse-home[data-v-
|
2
|
+
.expend-collapse-home[data-v-95h8ifzn] {
|
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-95h8ifzn]:hover {
|
19
19
|
background: #979BA5;
|
20
20
|
}
|
21
|
-
.expend-collapse-home.is-close[data-v-
|
21
|
+
.expend-collapse-home.is-close[data-v-95h8ifzn] {
|
22
22
|
left: 0;
|
23
23
|
}
|
@@ -1,21 +1,21 @@
|
|
1
1
|
|
2
|
-
.upload-file-home[data-v-
|
2
|
+
.upload-file-home[data-v-dm3947nv] {
|
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-dm3947nv]: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-dm3947nv] {
|
13
13
|
display: flex;
|
14
14
|
}
|
15
|
-
.upload-file-home .file-icon[data-v-
|
15
|
+
.upload-file-home .file-icon[data-v-dm3947nv] {
|
16
16
|
font-size: 32px;
|
17
17
|
}
|
18
|
-
.upload-file-home .file-content[data-v-
|
18
|
+
.upload-file-home .file-content[data-v-dm3947nv] {
|
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-dm3947nv] {
|
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-dm3947nv] {
|
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-dm3947nv] {
|
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-dm3947nv] {
|
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-dm3947nv]: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-dm3947nv] {
|
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-tcfko5xg] {
|
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-tcfko5xg], .ai-ui-sdk-icon.ai-ui-sdk-ppt-2[data-v-tcfko5xg], .ai-ui-sdk-icon.ai-ui-sdk-markdown[data-v-tcfko5xg] {
|
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-tcfko5xg] {
|
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-tcfko5xg] {
|
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-tcfko5xg] {
|
15
15
|
color: #14A568;
|
16
16
|
}
|
@@ -1,5 +1,5 @@
|
|
1
1
|
|
2
|
-
.header-home[data-v-
|
2
|
+
.header-home[data-v-q2zy2g8t] {
|
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-q2zy2g8t] {
|
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-q2zy2g8t] {
|
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-q2zy2g8t] {
|
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-q2zy2g8t] {
|
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-s6akhhmh] {
|
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-s6akhhmh] {
|
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-s6akhhmh] {
|
19
19
|
color: #3A84FF;
|
20
20
|
border-bottom: 2px solid #3A84FF;
|
21
21
|
}
|
package/dist/event/index.d.ts
CHANGED
@@ -1,4 +1,4 @@
|
|
1
1
|
import { EventType } from '../types/enum';
|
2
|
-
export declare const addEventListener: (event: EventType, callback: (data:
|
3
|
-
export declare const removeEventListener: (event: EventType, callback: (data:
|
2
|
+
export declare const addEventListener: <T>(event: EventType, callback: (data: T) => void) => void;
|
3
|
+
export declare const removeEventListener: <T>(event: EventType, callback: (data: T) => void) => void;
|
4
4
|
export declare const emitEvent: <T>(event: EventType, data: T) => void;
|