@cmstops/pro-compo 0.1.13 → 0.1.15
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/gif.worker.js +3 -0
- package/dist/index.css +486 -6
- package/dist/index.min.css +1 -1
- package/es/contentDetailList/component.js +1 -2
- package/es/contentDetailList/components/Content/CompoItem/index.js +1 -2
- package/es/contentDetailList/components/Content/ContentListItem/index.js +1 -2
- package/es/contentDetailList/components/Content/DocItem/ApprovalStateMap/index.js +1 -2
- package/es/contentDetailList/components/Content/DocItem/index.js +1 -2
- package/es/contentDetailList/components/Content/KongoNavItem/index.js +1 -2
- package/es/contentDetailList/components/Content/LiveItem/index.js +1 -2
- package/es/contentDetailList/components/Content/MaccountItem/index.js +1 -2
- package/es/contentDetailList/components/Content/index.js +1 -2
- package/es/contentDetailList/components/Doc/index.js +1 -2
- package/es/contentModal/component.js +1 -2
- package/es/contentModal/components/CompoList/CompoFilter/index.js +2 -3
- package/es/contentModal/components/CompoList/index.js +2 -3
- package/es/contentModal/components/ViewAllColumn/MediaFilter/index.js +1 -2
- package/es/contentModal/components/ViewAllColumn/columnTree/index.js +1 -2
- package/es/contentModal/components/ViewAllColumn/index.js +1 -2
- package/es/contentModal/components/storeBox/index.js +1 -2
- package/es/gif.worker.js +3 -0
- package/es/hooks/assets.d.ts +1 -0
- package/es/hooks/assets.js +9 -0
- package/es/hooks/user.d.ts +1 -3
- package/es/imageCrop/component.d.ts +0 -0
- package/es/imageCrop/component.js +472 -0
- package/es/imageCrop/index.d.ts +2 -0
- package/es/imageCrop/index.js +7 -0
- package/es/imageCrop/script/api.d.ts +1 -0
- package/es/imageCrop/script/api.js +11 -0
- package/es/imageCrop/style/cropper.less +291 -0
- package/es/imageCrop/style/css.js +1 -0
- package/es/imageCrop/style/imageCropper.less +133 -0
- package/es/imageCrop/style/index.css +366 -0
- package/es/imageCrop/style/index.d.ts +1 -0
- package/es/imageCrop/style/index.js +1 -0
- package/es/imageCrop/style/index.less +2 -0
- package/es/index.css +486 -6
- package/es/index.d.ts +2 -0
- package/es/index.js +2 -0
- package/es/index.less +2 -0
- package/es/mediaFilter/component.js +1 -2
- package/es/mediaFilter/components/DocFilter.js +1 -2
- package/es/messageBox/list.js +1 -2
- package/es/previousVersion/component.js +1 -2
- package/es/resourceModal/component.js +4 -7
- package/es/resourceModal/components/MediaPreviewer/index.js +1 -2
- package/es/resourceModal/components/MediaSelection/DocAiMediaSelected/index.js +10 -19
- package/es/resourceModal/components/MediaSelection/MainContent/FileTypeThumb/index.js +4 -9
- package/es/resourceModal/components/MediaSelection/MainContent/index.js +7 -15
- package/es/resourceModal/components/MediaSelection/ToolbarSearch/index.js +1 -2
- package/es/resourceModal/components/MediaSelection/index.js +8 -12
- package/es/selectAvatarList/component.js +67 -48
- package/es/selectGategory/component.js +1 -2
- package/es/selectGategory/components/ColumnSelection/index.js +1 -2
- package/es/selectThumb/component.d.ts +0 -0
- package/es/selectThumb/component.js +410 -0
- package/es/selectThumb/components/card.d.ts +0 -0
- package/es/selectThumb/components/card.js +86 -0
- package/es/selectThumb/components/colorPalette.d.ts +0 -0
- package/es/selectThumb/components/colorPalette.js +75 -0
- package/es/selectThumb/index.d.ts +2 -0
- package/es/selectThumb/index.js +7 -0
- package/es/selectThumb/style/card.less +79 -0
- package/es/selectThumb/style/colorPalette.less +0 -0
- package/es/selectThumb/style/css.js +1 -0
- package/es/selectThumb/style/index.css +101 -0
- package/es/selectThumb/style/index.d.ts +1 -0
- package/es/selectThumb/style/index.js +1 -0
- package/es/selectThumb/style/index.less +27 -0
- package/es/uploadBefore/component.js +2 -3
- package/es/uploadBefore/components/UploadBefore.js +1 -2
- package/es/uploadBefore/components/UploadForClick.js +1 -2
- package/es/uploadStep/component.js +2 -3
- package/es/userDirector/component.js +15 -14
- package/es/userDirector/components/userTree.js +2 -2
- package/es/userDirector/style/index.css +19 -6
- package/es/userDirector/style/index.less +25 -12
- package/es/utils/doc.js +30 -7
- package/es/utils/index.d.ts +1 -0
- package/es/utils/index.js +6 -1
- package/es/utils/tusUpload.d.ts +1 -1
- package/es/utils/tusUpload.js +1 -1
- package/es/utils/uploadCatalog.d.ts +1 -0
- package/lib/contentDetailList/component.js +1 -2
- package/lib/contentDetailList/components/Content/CompoItem/index.js +1 -2
- package/lib/contentDetailList/components/Content/ContentListItem/index.js +1 -2
- package/lib/contentDetailList/components/Content/DocItem/ApprovalStateMap/index.js +1 -2
- package/lib/contentDetailList/components/Content/DocItem/index.js +1 -2
- package/lib/contentDetailList/components/Content/KongoNavItem/index.js +1 -2
- package/lib/contentDetailList/components/Content/LiveItem/index.js +1 -2
- package/lib/contentDetailList/components/Content/MaccountItem/index.js +1 -2
- package/lib/contentDetailList/components/Content/index.js +1 -2
- package/lib/contentDetailList/components/Doc/index.js +1 -2
- package/lib/contentModal/component.js +1 -2
- package/lib/contentModal/components/CompoList/CompoFilter/index.js +2 -3
- package/lib/contentModal/components/CompoList/index.js +2 -3
- package/lib/contentModal/components/ViewAllColumn/MediaFilter/index.js +1 -2
- package/lib/contentModal/components/ViewAllColumn/columnTree/index.js +1 -2
- package/lib/contentModal/components/ViewAllColumn/index.js +1 -2
- package/lib/contentModal/components/storeBox/index.js +1 -2
- package/lib/hooks/assets.js +11 -0
- package/lib/imageCrop/component.js +479 -0
- package/lib/imageCrop/index.js +8 -0
- package/lib/imageCrop/script/api.js +13 -0
- package/lib/imageCrop/style/cropper.less +291 -0
- package/lib/imageCrop/style/css.js +2 -0
- package/lib/imageCrop/style/imageCropper.less +133 -0
- package/lib/imageCrop/style/index.css +366 -0
- package/lib/imageCrop/style/index.js +2 -0
- package/lib/imageCrop/style/index.less +2 -0
- package/lib/index.css +486 -6
- package/lib/index.js +16 -12
- package/lib/index.less +2 -0
- package/lib/mediaFilter/component.js +1 -2
- package/lib/mediaFilter/components/DocFilter.js +1 -2
- package/lib/messageBox/list.js +1 -2
- package/lib/previousVersion/component.js +1 -2
- package/lib/resourceModal/component.js +4 -7
- package/lib/resourceModal/components/MediaPreviewer/index.js +1 -2
- package/lib/resourceModal/components/MediaSelection/DocAiMediaSelected/index.js +10 -19
- package/lib/resourceModal/components/MediaSelection/MainContent/FileTypeThumb/index.js +4 -9
- package/lib/resourceModal/components/MediaSelection/MainContent/index.js +7 -15
- package/lib/resourceModal/components/MediaSelection/ToolbarSearch/index.js +1 -2
- package/lib/resourceModal/components/MediaSelection/index.js +8 -12
- package/lib/selectAvatarList/component.js +67 -48
- package/lib/selectGategory/component.js +1 -2
- package/lib/selectGategory/components/ColumnSelection/index.js +1 -2
- package/lib/selectThumb/component.js +411 -0
- package/lib/selectThumb/components/card.js +87 -0
- package/lib/selectThumb/components/colorPalette.js +76 -0
- package/lib/selectThumb/index.js +8 -0
- package/lib/selectThumb/style/card.less +79 -0
- package/lib/selectThumb/style/colorPalette.less +0 -0
- package/lib/selectThumb/style/css.js +2 -0
- package/lib/selectThumb/style/index.css +101 -0
- package/lib/selectThumb/style/index.js +2 -0
- package/lib/selectThumb/style/index.less +27 -0
- package/lib/uploadBefore/component.js +2 -3
- package/lib/uploadBefore/components/UploadBefore.js +1 -2
- package/lib/uploadBefore/components/UploadForClick.js +1 -2
- package/lib/uploadStep/component.js +2 -3
- package/lib/userDirector/component.js +15 -14
- package/lib/userDirector/components/userTree.js +2 -2
- package/lib/userDirector/style/index.css +19 -6
- package/lib/userDirector/style/index.less +25 -12
- package/lib/utils/doc.js +31 -6
- package/lib/utils/index.js +6 -0
- package/lib/utils/tusUpload.js +1 -1
- package/package.json +16 -2
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
.select-thumb-container .thumb-card-container {
|
|
2
|
+
width: 100px;
|
|
3
|
+
height: 58px;
|
|
4
|
+
margin-right: 10px;
|
|
5
|
+
border-radius: 4px;
|
|
6
|
+
overflow: hidden;
|
|
7
|
+
position: relative;
|
|
8
|
+
}
|
|
9
|
+
.select-thumb-container .thumb-card-container.model-5 {
|
|
10
|
+
width: 75px;
|
|
11
|
+
height: 100px;
|
|
12
|
+
}
|
|
13
|
+
.select-thumb-container .thumb-card-container.model-7 {
|
|
14
|
+
width: 232px;
|
|
15
|
+
height: 58px;
|
|
16
|
+
}
|
|
17
|
+
.select-thumb-container .thumb-card-container .img-v {
|
|
18
|
+
width: 100%;
|
|
19
|
+
height: 100%;
|
|
20
|
+
position: relative;
|
|
21
|
+
}
|
|
22
|
+
.select-thumb-container .thumb-card-container .img-v .change-icon {
|
|
23
|
+
width: 25px;
|
|
24
|
+
height: 25px;
|
|
25
|
+
font-size: 25px;
|
|
26
|
+
position: absolute;
|
|
27
|
+
left: 0;
|
|
28
|
+
right: 0;
|
|
29
|
+
top: 0;
|
|
30
|
+
bottom: 0;
|
|
31
|
+
margin: auto;
|
|
32
|
+
z-index: 1;
|
|
33
|
+
color: #ffffff;
|
|
34
|
+
cursor: pointer;
|
|
35
|
+
}
|
|
36
|
+
.select-thumb-container .thumb-card-container .item {
|
|
37
|
+
width: 100%;
|
|
38
|
+
height: 100%;
|
|
39
|
+
cursor: pointer;
|
|
40
|
+
}
|
|
41
|
+
.select-thumb-container .thumb-card-container .item.add-thumb {
|
|
42
|
+
display: flex;
|
|
43
|
+
align-items: center;
|
|
44
|
+
justify-content: center;
|
|
45
|
+
background-color: #f9f9f9;
|
|
46
|
+
}
|
|
47
|
+
.select-thumb-container .thumb-card-container .mask {
|
|
48
|
+
display: none;
|
|
49
|
+
width: 100%;
|
|
50
|
+
height: 100%;
|
|
51
|
+
background: rgba(0, 0, 0, 0.3);
|
|
52
|
+
position: absolute;
|
|
53
|
+
top: 0;
|
|
54
|
+
align-items: center;
|
|
55
|
+
justify-content: center;
|
|
56
|
+
color: #eaeaea;
|
|
57
|
+
font-size: 18px;
|
|
58
|
+
}
|
|
59
|
+
.select-thumb-container .thumb-card-container .mask i {
|
|
60
|
+
display: inline-block;
|
|
61
|
+
cursor: pointer;
|
|
62
|
+
}
|
|
63
|
+
.select-thumb-container .thumb-card-container .mask i:active {
|
|
64
|
+
opacity: 0.4;
|
|
65
|
+
}
|
|
66
|
+
.select-thumb-container .thumb-card-container .mask .half {
|
|
67
|
+
height: 100%;
|
|
68
|
+
width: 48%;
|
|
69
|
+
display: flex;
|
|
70
|
+
align-items: center;
|
|
71
|
+
justify-content: center;
|
|
72
|
+
}
|
|
73
|
+
.select-thumb-container .thumb-card-container .mask .half:hover {
|
|
74
|
+
opacity: 0.7;
|
|
75
|
+
}
|
|
76
|
+
.select-thumb-container .thumb-card-container .img-v:hover .mask {
|
|
77
|
+
display: flex;
|
|
78
|
+
}
|
|
79
|
+
.select-thumb-container .title {
|
|
80
|
+
font-size: 14px;
|
|
81
|
+
color: #4e5969;
|
|
82
|
+
font-weight: 700;
|
|
83
|
+
line-height: 40px;
|
|
84
|
+
margin: 5px 0px;
|
|
85
|
+
}
|
|
86
|
+
.select-thumb-container .title span {
|
|
87
|
+
margin-right: 10px;
|
|
88
|
+
}
|
|
89
|
+
.select-thumb-container .title .tip {
|
|
90
|
+
font-size: 12px;
|
|
91
|
+
color: rgba(78, 89, 105, 0.4);
|
|
92
|
+
}
|
|
93
|
+
.select-thumb-container .thumb-list-view {
|
|
94
|
+
display: flex;
|
|
95
|
+
align-items: center;
|
|
96
|
+
margin-bottom: 10px;
|
|
97
|
+
}
|
|
98
|
+
.select-thumb-container .star {
|
|
99
|
+
color: red;
|
|
100
|
+
margin-right: 2px !important;
|
|
101
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
.select-thumb-container {
|
|
2
|
+
@import './card.less';
|
|
3
|
+
@import './colorPalette.less';
|
|
4
|
+
.title {
|
|
5
|
+
font-size: 14px;
|
|
6
|
+
color: #4e5969;
|
|
7
|
+
font-weight: 700;
|
|
8
|
+
line-height: 40px;
|
|
9
|
+
margin: 5px 0px;
|
|
10
|
+
span {
|
|
11
|
+
margin-right: 10px;
|
|
12
|
+
}
|
|
13
|
+
.tip {
|
|
14
|
+
font-size: 12px;
|
|
15
|
+
color: rgba(78, 89, 105, 0.4);
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
.thumb-list-view {
|
|
19
|
+
display: flex;
|
|
20
|
+
align-items: center;
|
|
21
|
+
margin-bottom: 10px;
|
|
22
|
+
}
|
|
23
|
+
.star {
|
|
24
|
+
color: red;
|
|
25
|
+
margin-right: 2px !important;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
@@ -16,11 +16,10 @@ const _sfc_main = vue.defineComponent({
|
|
|
16
16
|
uploadMethod: {}
|
|
17
17
|
},
|
|
18
18
|
emits: ["onProgress", "onListReady"],
|
|
19
|
-
setup(__props, { emit:
|
|
19
|
+
setup(__props, { emit: emits }) {
|
|
20
|
+
const props = __props;
|
|
20
21
|
const { state: visBeforeUpload, open: openBeforePannel } = toggle.useToggle();
|
|
21
22
|
const { state: visUploadList, open: openListPannel } = toggle.useToggle();
|
|
22
|
-
const props = __props;
|
|
23
|
-
const emits = __emit;
|
|
24
23
|
const baseApi = vue.ref(props.BASE_API || config.DEFAULT_BASE_API);
|
|
25
24
|
const { preOptionsList, uploadFileToShowFileTrans } = uploadHooks.usePreUploadOptions();
|
|
26
25
|
const { fileList, uploadFileAdd } = uploadHooks.useUplaodList();
|
|
@@ -14,9 +14,8 @@ const _sfc_main = vue.defineComponent({
|
|
|
14
14
|
BASE_API: {}
|
|
15
15
|
},
|
|
16
16
|
emits: ["confirm", "update:visable", "update:file-list"],
|
|
17
|
-
setup(__props, { emit:
|
|
17
|
+
setup(__props, { emit: emits }) {
|
|
18
18
|
const props = __props;
|
|
19
|
-
const emits = __emit;
|
|
20
19
|
const modalVis = vue.toRef(props, "visable");
|
|
21
20
|
const fileList = vue.toRef(props, "fileList");
|
|
22
21
|
const column = [
|
|
@@ -7,8 +7,7 @@ const _sfc_main = vue.defineComponent({
|
|
|
7
7
|
uploadMethod: {}
|
|
8
8
|
},
|
|
9
9
|
emits: ["after-choose"],
|
|
10
|
-
setup(__props, { emit:
|
|
11
|
-
const emits = __emit;
|
|
10
|
+
setup(__props, { emit: emits }) {
|
|
12
11
|
const tusUpload = (option) => {
|
|
13
12
|
const { fileItem } = option;
|
|
14
13
|
emits("after-choose", fileItem);
|
|
@@ -27,7 +27,8 @@ const _sfc_main = vue.defineComponent({
|
|
|
27
27
|
global: { type: Boolean }
|
|
28
28
|
},
|
|
29
29
|
emits: ["update:visable"],
|
|
30
|
-
setup(__props, { emit:
|
|
30
|
+
setup(__props, { emit: emits }) {
|
|
31
|
+
const props = __props;
|
|
31
32
|
const progressEnum = {
|
|
32
33
|
UPLOADING: "normal",
|
|
33
34
|
WATING: "normal",
|
|
@@ -40,8 +41,6 @@ const _sfc_main = vue.defineComponent({
|
|
|
40
41
|
SUCCESS: "\u4E0A\u4F20\u5B8C\u6210",
|
|
41
42
|
ERROR: "\u4E0A\u4F20\u5931\u8D25"
|
|
42
43
|
};
|
|
43
|
-
const emits = __emit;
|
|
44
|
-
const props = __props;
|
|
45
44
|
const showList = vue.toRef(props, "fileList");
|
|
46
45
|
const { state: expend, toggle: toggleExp } = toggle.useToggle(true);
|
|
47
46
|
const { state: scale, toggle: toggleSca } = toggle.useToggle();
|
|
@@ -22,17 +22,13 @@ const _sfc_main = vue.defineComponent({
|
|
|
22
22
|
visible: { type: Boolean },
|
|
23
23
|
title: {}
|
|
24
24
|
},
|
|
25
|
-
emits: ["update:visible"],
|
|
26
|
-
setup(__props, { emit
|
|
25
|
+
emits: ["update:visible", "submit"],
|
|
26
|
+
setup(__props, { emit }) {
|
|
27
27
|
const props = __props;
|
|
28
28
|
const BASE_API = props.BASE_API || config.DEFAULT_BASE_API;
|
|
29
|
-
const emit = __emit;
|
|
30
29
|
const RoleTreeData = vue.ref([]);
|
|
31
30
|
const DepartTreeData = vue.ref([]);
|
|
32
31
|
const userSelectedList = vue.ref([]);
|
|
33
|
-
const selectRoleNode = (selectedKeys, data) => {
|
|
34
|
-
console.log("selectRoleNode", data);
|
|
35
|
-
};
|
|
36
32
|
const clearUserSelectedList = () => {
|
|
37
33
|
userSelectedList.value = [];
|
|
38
34
|
};
|
|
@@ -53,9 +49,6 @@ const _sfc_main = vue.defineComponent({
|
|
|
53
49
|
data.node.children = await loadRoleAllUser(data.node.id);
|
|
54
50
|
}
|
|
55
51
|
};
|
|
56
|
-
const selectDepartNode = (selectedKeys, data) => {
|
|
57
|
-
console.log("selectDepartNode", data);
|
|
58
|
-
};
|
|
59
52
|
const loadDepartUserList = async (id) => {
|
|
60
53
|
const res = await api.getDepartUserList(BASE_API, { pid: id });
|
|
61
54
|
if (res.code === 0) {
|
|
@@ -155,6 +148,11 @@ const _sfc_main = vue.defineComponent({
|
|
|
155
148
|
const removeUserSelected = (index) => {
|
|
156
149
|
userSelectedList.value.splice(index, 1);
|
|
157
150
|
};
|
|
151
|
+
const handleOpen = () => {
|
|
152
|
+
if (props.defaultData) {
|
|
153
|
+
userSelectedList.value = [].concat(props.defaultData || []);
|
|
154
|
+
}
|
|
155
|
+
};
|
|
158
156
|
vue.onMounted(() => {
|
|
159
157
|
getUserList();
|
|
160
158
|
});
|
|
@@ -170,7 +168,7 @@ const _sfc_main = vue.defineComponent({
|
|
|
170
168
|
emit("update:visible", bool);
|
|
171
169
|
};
|
|
172
170
|
const handleOk = () => {
|
|
173
|
-
|
|
171
|
+
emit("submit", JSON.parse(JSON.stringify(userSelectedList.value)));
|
|
174
172
|
};
|
|
175
173
|
const handleCancel = () => {
|
|
176
174
|
setVisible(false);
|
|
@@ -183,6 +181,7 @@ const _sfc_main = vue.defineComponent({
|
|
|
183
181
|
"title-align": "start",
|
|
184
182
|
"body-class": "user-director-modal-body",
|
|
185
183
|
"unmount-on-close": "",
|
|
184
|
+
onOpen: handleOpen,
|
|
186
185
|
onOk: handleOk,
|
|
187
186
|
onCancel: handleCancel
|
|
188
187
|
}, {
|
|
@@ -225,7 +224,6 @@ const _sfc_main = vue.defineComponent({
|
|
|
225
224
|
default: vue.withCtx(() => [
|
|
226
225
|
vue.createVNode(userTree, {
|
|
227
226
|
list: RoleTreeData.value,
|
|
228
|
-
onSelect: selectRoleNode,
|
|
229
227
|
onExpand: expandRoleNode,
|
|
230
228
|
onAdd: addItem
|
|
231
229
|
}, null, 8, ["list"])
|
|
@@ -245,7 +243,6 @@ const _sfc_main = vue.defineComponent({
|
|
|
245
243
|
default: vue.withCtx(() => [
|
|
246
244
|
vue.createVNode(userTree, {
|
|
247
245
|
list: DepartTreeData.value,
|
|
248
|
-
onSelect: selectDepartNode,
|
|
249
246
|
onExpand: expandDepartNode,
|
|
250
247
|
onAdd: addItem
|
|
251
248
|
}, null, 8, ["list"])
|
|
@@ -273,15 +270,19 @@ const _sfc_main = vue.defineComponent({
|
|
|
273
270
|
_: 1
|
|
274
271
|
})
|
|
275
272
|
]),
|
|
276
|
-
vue.createVNode(vue.unref(webVue.Scrollbar), {
|
|
273
|
+
vue.createVNode(vue.unref(webVue.Scrollbar), {
|
|
274
|
+
"outer-class": "scroll",
|
|
275
|
+
style: { "height": "100%", "overflow": "auto" }
|
|
276
|
+
}, {
|
|
277
277
|
default: vue.withCtx(() => [
|
|
278
278
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(userSelectedList.value, (item, index) => {
|
|
279
279
|
return vue.openBlock(), vue.createElementBlock("div", {
|
|
280
280
|
key: item.uid,
|
|
281
|
-
class: "user-item"
|
|
281
|
+
class: "user-item padding"
|
|
282
282
|
}, [
|
|
283
283
|
vue.createElementVNode("div", _hoisted_5, [
|
|
284
284
|
vue.createVNode(vue.unref(webVue.Avatar), {
|
|
285
|
+
class: "avatar",
|
|
285
286
|
size: 32,
|
|
286
287
|
"image-url": item.avatar
|
|
287
288
|
}, null, 8, ["image-url"]),
|
|
@@ -10,7 +10,7 @@ const _sfc_main = vue.defineComponent({
|
|
|
10
10
|
list: {}
|
|
11
11
|
},
|
|
12
12
|
emits: ["select", "expand", "add"],
|
|
13
|
-
setup(__props, { emit
|
|
13
|
+
setup(__props, { emit }) {
|
|
14
14
|
const props = __props;
|
|
15
15
|
const loadMore = () => {
|
|
16
16
|
};
|
|
@@ -19,7 +19,6 @@ const _sfc_main = vue.defineComponent({
|
|
|
19
19
|
title: "alias",
|
|
20
20
|
key: "node_key"
|
|
21
21
|
};
|
|
22
|
-
const emit = __emit;
|
|
23
22
|
const select = (selectedKeys, data) => {
|
|
24
23
|
emit("select", selectedKeys, data);
|
|
25
24
|
};
|
|
@@ -48,6 +47,7 @@ const _sfc_main = vue.defineComponent({
|
|
|
48
47
|
vue.createElementVNode("div", _hoisted_2, [
|
|
49
48
|
nodeData.isUser ? (vue.openBlock(), vue.createBlock(vue.unref(webVue.Avatar), {
|
|
50
49
|
key: 0,
|
|
50
|
+
class: "avatar",
|
|
51
51
|
size: 22,
|
|
52
52
|
"image-url": nodeData.avatar
|
|
53
53
|
}, null, 8, ["image-url"])) : vue.createCommentVNode("v-if", true),
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
.user-director-modal-body {
|
|
2
|
+
background: var(--color-bg-1);
|
|
2
3
|
padding: 0;
|
|
3
4
|
}
|
|
4
5
|
.user-director-modal-body .arco-collapse {
|
|
@@ -7,10 +8,10 @@
|
|
|
7
8
|
.user-director-modal-body .arco-collapse-item-content {
|
|
8
9
|
padding-left: 10px;
|
|
9
10
|
padding-right: 0;
|
|
10
|
-
background:
|
|
11
|
+
background: var(--color-bg-1);
|
|
11
12
|
}
|
|
12
13
|
.user-select-content {
|
|
13
|
-
height:
|
|
14
|
+
height: 50vh;
|
|
14
15
|
display: flex;
|
|
15
16
|
}
|
|
16
17
|
.user-select-content .user-select-left,
|
|
@@ -21,6 +22,9 @@
|
|
|
21
22
|
.user-select-content .user-select-left {
|
|
22
23
|
border-right: 1px solid var(--color-neutral-3);
|
|
23
24
|
}
|
|
25
|
+
.user-select-content .user-select-right .scroll {
|
|
26
|
+
height: calc(100% - 40px);
|
|
27
|
+
}
|
|
24
28
|
.user-select-content .user-select-right .user-select-right-title {
|
|
25
29
|
display: flex;
|
|
26
30
|
justify-content: space-between;
|
|
@@ -29,19 +33,28 @@
|
|
|
29
33
|
padding: 6px 16px;
|
|
30
34
|
border-bottom: 1px solid var(--color-neutral-3);
|
|
31
35
|
}
|
|
32
|
-
.user-select-content .user-
|
|
36
|
+
.user-select-content .user-item {
|
|
33
37
|
display: flex;
|
|
34
38
|
align-items: center;
|
|
35
39
|
justify-content: space-between;
|
|
40
|
+
}
|
|
41
|
+
.user-select-content .user-item.padding {
|
|
36
42
|
padding: 5px 16px;
|
|
37
43
|
}
|
|
38
|
-
.user-select-content .user-
|
|
44
|
+
.user-select-content .user-item .left {
|
|
45
|
+
display: flex;
|
|
46
|
+
align-items: center;
|
|
47
|
+
}
|
|
48
|
+
.user-select-content .user-item .left .avatar {
|
|
49
|
+
margin-right: 10px;
|
|
50
|
+
}
|
|
51
|
+
.user-select-content .user-item .action {
|
|
39
52
|
display: none;
|
|
40
53
|
}
|
|
41
|
-
.user-select-content .user-
|
|
54
|
+
.user-select-content .user-item:hover {
|
|
42
55
|
background-color: var(--color-fill-1);
|
|
43
56
|
}
|
|
44
|
-
.user-select-content .user-
|
|
57
|
+
.user-select-content .user-item:hover .action {
|
|
45
58
|
display: flex;
|
|
46
59
|
}
|
|
47
60
|
.user-select-content .tree-action {
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
.user-director-modal-body {
|
|
2
|
+
background: var(--color-bg-1);
|
|
2
3
|
padding: 0;
|
|
3
4
|
.arco-collapse {
|
|
4
5
|
height: calc(100% - 36px);
|
|
@@ -7,11 +8,11 @@
|
|
|
7
8
|
.arco-collapse-item-content {
|
|
8
9
|
padding-left: 10px;
|
|
9
10
|
padding-right: 0;
|
|
10
|
-
background:
|
|
11
|
+
background: var(--color-bg-1);
|
|
11
12
|
}
|
|
12
13
|
}
|
|
13
14
|
.user-select-content {
|
|
14
|
-
height:
|
|
15
|
+
height: 50vh;
|
|
15
16
|
display: flex;
|
|
16
17
|
.user-select-left,
|
|
17
18
|
.user-select-right {
|
|
@@ -22,6 +23,9 @@
|
|
|
22
23
|
border-right: 1px solid var(--color-neutral-3);
|
|
23
24
|
}
|
|
24
25
|
.user-select-right {
|
|
26
|
+
.scroll {
|
|
27
|
+
height: calc(100% - 40px);
|
|
28
|
+
}
|
|
25
29
|
.user-select-right-title {
|
|
26
30
|
display: flex;
|
|
27
31
|
justify-content: space-between;
|
|
@@ -30,19 +34,28 @@
|
|
|
30
34
|
padding: 6px 16px;
|
|
31
35
|
border-bottom: 1px solid var(--color-neutral-3);
|
|
32
36
|
}
|
|
33
|
-
|
|
37
|
+
}
|
|
38
|
+
.user-item {
|
|
39
|
+
display: flex;
|
|
40
|
+
align-items: center;
|
|
41
|
+
justify-content: space-between;
|
|
42
|
+
&.padding {
|
|
43
|
+
padding: 5px 16px;
|
|
44
|
+
}
|
|
45
|
+
.left {
|
|
34
46
|
display: flex;
|
|
35
47
|
align-items: center;
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
.action {
|
|
39
|
-
display: none;
|
|
48
|
+
.avatar {
|
|
49
|
+
margin-right: 10px;
|
|
40
50
|
}
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
51
|
+
}
|
|
52
|
+
.action {
|
|
53
|
+
display: none;
|
|
54
|
+
}
|
|
55
|
+
&:hover {
|
|
56
|
+
background-color: var(--color-fill-1);
|
|
57
|
+
.action {
|
|
58
|
+
display: flex;
|
|
46
59
|
}
|
|
47
60
|
}
|
|
48
61
|
}
|
package/lib/utils/doc.js
CHANGED
|
@@ -15,12 +15,35 @@ const stateOptions = () => {
|
|
|
15
15
|
return [{ value: "", label: "\u5168\u90E8" }, ...arr];
|
|
16
16
|
};
|
|
17
17
|
const docThumbObjMap = {
|
|
18
|
-
1: { alias: "\u4E09\u56FE", maxLength: 3, value: "1", ratio: 4 / 3 },
|
|
19
|
-
2: {
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
18
|
+
1: { alias: "\u4E09\u56FE", maxLength: 3, value: "1", ratioStr: "4:3", ratio: 4 / 3 },
|
|
19
|
+
2: {
|
|
20
|
+
alias: "\u5927\u56FE",
|
|
21
|
+
maxLength: 1,
|
|
22
|
+
value: "2",
|
|
23
|
+
ratioStr: "16:9",
|
|
24
|
+
ratio: 16 / 9
|
|
25
|
+
},
|
|
26
|
+
3: {
|
|
27
|
+
alias: "\u5355\u56FE",
|
|
28
|
+
maxLength: 1,
|
|
29
|
+
value: "3",
|
|
30
|
+
ratioStr: "4:3 ",
|
|
31
|
+
ratio: 4 / 3
|
|
32
|
+
},
|
|
33
|
+
4: { alias: "\u65E0\u56FE", maxLength: 0, value: "4", ratioStr: "", ratio: 1 },
|
|
34
|
+
5: { alias: "\u7AD6\u56FE", maxLength: 1, value: "5", ratioStr: "3:4", ratio: 3 / 4 },
|
|
35
|
+
7: { alias: "\u7A84\u56FE", maxLength: 1, value: "7", ratioStr: "4:1", ratio: 4 / 1 }
|
|
36
|
+
};
|
|
37
|
+
const docThumbRatioMap = () => {
|
|
38
|
+
const obj = {};
|
|
39
|
+
Object.keys(docThumbObjMap).map((key) => {
|
|
40
|
+
obj[key] = docThumbObjMap[key].ratio;
|
|
41
|
+
return {};
|
|
42
|
+
});
|
|
43
|
+
return obj;
|
|
44
|
+
};
|
|
45
|
+
const docThumbArrMap = () => {
|
|
46
|
+
return Object.values(docThumbObjMap);
|
|
24
47
|
};
|
|
25
48
|
const docThumbTypeMap = () => {
|
|
26
49
|
const arr = Object.keys(docThumbObjMap).map((key) => {
|
|
@@ -53,7 +76,9 @@ const typeOptions = () => {
|
|
|
53
76
|
};
|
|
54
77
|
exports.docPubStateMap = docPubStateMap;
|
|
55
78
|
exports.docSeries = docSeries;
|
|
79
|
+
exports.docThumbArrMap = docThumbArrMap;
|
|
56
80
|
exports.docThumbObjMap = docThumbObjMap;
|
|
81
|
+
exports.docThumbRatioMap = docThumbRatioMap;
|
|
57
82
|
exports.docThumbTypeMap = docThumbTypeMap;
|
|
58
83
|
exports.stateOptions = stateOptions;
|
|
59
84
|
exports.typeOptions = typeOptions;
|
package/lib/utils/index.js
CHANGED
|
@@ -31,6 +31,12 @@ const to = (promise, errorExt) => {
|
|
|
31
31
|
return [err, void 0];
|
|
32
32
|
});
|
|
33
33
|
};
|
|
34
|
+
function replaceSuffix(str, insert) {
|
|
35
|
+
const reg = /\.[^\.]+$/;
|
|
36
|
+
const match = str.match(reg);
|
|
37
|
+
return match ? str.replace(reg, insert + match) : str + insert;
|
|
38
|
+
}
|
|
34
39
|
exports.dateYYYYDDMMHHmm = dateYYYYDDMMHHmm;
|
|
35
40
|
exports.generateUUID = generateUUID;
|
|
41
|
+
exports.replaceSuffix = replaceSuffix;
|
|
36
42
|
exports.to = to;
|
package/lib/utils/tusUpload.js
CHANGED
|
@@ -36,7 +36,7 @@ function uploadByTUS(file, progressCallback) {
|
|
|
36
36
|
reject(error);
|
|
37
37
|
},
|
|
38
38
|
onProgress: (bytesSent, bytesTotal) => {
|
|
39
|
-
progressCallback(bytesSent, bytesTotal);
|
|
39
|
+
progressCallback && progressCallback(bytesSent, bytesTotal);
|
|
40
40
|
},
|
|
41
41
|
onSuccess: () => {
|
|
42
42
|
resolve(upload);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cmstops/pro-compo",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.15",
|
|
4
4
|
"description": "",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"vue",
|
|
@@ -44,7 +44,17 @@
|
|
|
44
44
|
]
|
|
45
45
|
},
|
|
46
46
|
"peerDependencies": {
|
|
47
|
-
"vue": "^3.2.0"
|
|
47
|
+
"vue": "^3.2.0",
|
|
48
|
+
"vuedraggable": "^4.1.0",
|
|
49
|
+
"tus-js-client": "^3.1.1",
|
|
50
|
+
"dayjs": "^1.11.9",
|
|
51
|
+
"@arco-design/web-vue": "~2",
|
|
52
|
+
"@arco-iconbox/vue-cmstop-icons": "^0.0.4",
|
|
53
|
+
"@popperjs/core": "^2.11.8",
|
|
54
|
+
"gif-to-canvas": "^1.0.0",
|
|
55
|
+
"gif.js": "^0.2.0",
|
|
56
|
+
"colorthief": "^2.4.0",
|
|
57
|
+
"cropperjs": "^1.6.1"
|
|
48
58
|
},
|
|
49
59
|
"devDependencies": {
|
|
50
60
|
"@arco-design/web-vue": "~2",
|
|
@@ -73,6 +83,8 @@
|
|
|
73
83
|
"@vue/babel-plugin-jsx": "^1.0.6",
|
|
74
84
|
"@vue/test-utils": "^2.0.0-beta.14",
|
|
75
85
|
"babel-loader": "^8.2.2",
|
|
86
|
+
"colorthief": "^2.4.0",
|
|
87
|
+
"cropperjs": "^1.6.1",
|
|
76
88
|
"dayjs": "^1.11.9",
|
|
77
89
|
"eslint": "^7.21.0",
|
|
78
90
|
"eslint-config-airbnb-base": "^14.2.1",
|
|
@@ -83,6 +95,8 @@
|
|
|
83
95
|
"eslint-plugin-vue": "^7.7.0",
|
|
84
96
|
"fast-glob": "^3.2.7",
|
|
85
97
|
"fs-extra": "^9.1.0",
|
|
98
|
+
"gif-to-canvas": "^1.0.0",
|
|
99
|
+
"gif.js": "^0.2.0",
|
|
86
100
|
"husky": "^4.3.7",
|
|
87
101
|
"jest": "^29.7.0",
|
|
88
102
|
"less": "^4.1.1",
|