@cmstops/pro-compo 0.3.34 → 0.3.36
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/index.css +269 -59
- package/dist/index.min.css +1 -1
- package/es/docPreview/component.d.ts +0 -0
- package/es/docPreview/component.js +153 -0
- package/es/docPreview/components/PreviewIframe.d.ts +0 -0
- package/es/docPreview/components/PreviewIframe.js +37 -0
- package/es/docPreview/images/phone.js +2 -0
- package/es/docPreview/index.d.ts +2 -0
- package/es/docPreview/index.js +7 -0
- package/es/docPreview/scripts/api.d.ts +1 -0
- package/es/docPreview/scripts/hook.d.ts +20 -0
- package/es/docPreview/scripts/hook.js +119 -0
- package/es/docPreview/style/css.js +1 -0
- package/es/docPreview/style/index.css +139 -0
- package/es/docPreview/style/index.d.ts +1 -0
- package/es/docPreview/style/index.js +1 -0
- package/es/docPreview/style/index.less +129 -0
- package/es/docPreview/style/previewIframe.less +36 -0
- package/es/hooks/useSelection.js +1 -1
- package/es/hooks/useUpload.d.ts +15 -0
- package/es/hooks/useUpload.js +88 -0
- package/es/index.css +269 -59
- package/es/index.d.ts +1 -0
- package/es/index.js +1 -0
- package/es/index.less +1 -0
- package/es/selectResourceModal/component.js +30 -16
- package/es/selectResourceModal/components/ListCardWrapper/index.d.ts +0 -0
- package/es/selectResourceModal/components/ListCardWrapper/index.js +56 -0
- package/es/selectResourceModal/components/ListContent/index.js +16 -36
- package/es/selectResourceModal/components/ListContentLocal/components/Upload.d.ts +0 -0
- package/es/selectResourceModal/components/ListContentLocal/components/Upload.js +56 -0
- package/es/selectResourceModal/components/ListContentLocal/index.d.ts +0 -0
- package/es/selectResourceModal/components/ListContentLocal/index.js +90 -0
- package/es/selectResourceModal/components/ListFilter/index.js +12 -4
- package/es/selectResourceModal/style/index.css +98 -58
- package/es/selectResourceModal/style/index.less +20 -2
- package/es/selectResourceModal/style/listCardWrapper.less +63 -0
- package/es/selectResourceModal/style/listContent.less +1 -63
- package/es/selectResourceModal/style/listContentLocal.less +26 -0
- package/es/selectResourceModal/style/listSelected.less +11 -3
- package/es/thumbCard/assets/magic.js +2 -0
- package/es/thumbCard/component.js +80 -53
- package/es/thumbCard/style/index.css +32 -1
- package/es/thumbCard/style/index.less +45 -7
- package/es/utils/index.d.ts +2 -0
- package/es/utils/index.js +40 -1
- package/es/utils/tusUpload.d.ts +8 -0
- package/es/utils/tusUpload.js +35 -1
- package/lib/docPreview/component.js +154 -0
- package/lib/docPreview/components/PreviewIframe.js +38 -0
- package/lib/docPreview/images/phone.js +3 -0
- package/lib/docPreview/index.js +8 -0
- package/lib/docPreview/scripts/hook.js +123 -0
- package/lib/docPreview/style/css.js +2 -0
- package/lib/docPreview/style/index.css +139 -0
- package/lib/docPreview/style/index.js +2 -0
- package/lib/docPreview/style/index.less +129 -0
- package/lib/docPreview/style/previewIframe.less +36 -0
- package/lib/hooks/useSelection.js +1 -1
- package/lib/hooks/useUpload.js +91 -0
- package/lib/index.css +269 -59
- package/lib/index.js +2 -0
- package/lib/index.less +1 -0
- package/lib/selectResourceModal/component.js +31 -17
- package/lib/selectResourceModal/components/ListCardWrapper/index.js +57 -0
- package/lib/selectResourceModal/components/ListContent/index.js +19 -39
- package/lib/selectResourceModal/components/ListContentLocal/components/Upload.js +57 -0
- package/lib/selectResourceModal/components/ListContentLocal/index.js +91 -0
- package/lib/selectResourceModal/components/ListFilter/index.js +12 -4
- package/lib/selectResourceModal/style/index.css +98 -58
- package/lib/selectResourceModal/style/index.less +20 -2
- package/lib/selectResourceModal/style/listCardWrapper.less +63 -0
- package/lib/selectResourceModal/style/listContent.less +1 -63
- package/lib/selectResourceModal/style/listContentLocal.less +26 -0
- package/lib/selectResourceModal/style/listSelected.less +11 -3
- package/lib/thumbCard/assets/magic.js +3 -0
- package/lib/thumbCard/component.js +78 -51
- package/lib/thumbCard/style/index.css +32 -1
- package/lib/thumbCard/style/index.less +45 -7
- package/lib/utils/index.js +41 -0
- package/lib/utils/tusUpload.js +35 -0
- package/package.json +1 -1
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
@import './previewIframe.less';
|
|
2
|
+
|
|
3
|
+
// 变量
|
|
4
|
+
@qrCodeWidth: 300px;
|
|
5
|
+
|
|
6
|
+
.doc-preview-container {
|
|
7
|
+
position: fixed;
|
|
8
|
+
// 遮罩层
|
|
9
|
+
top: 0;
|
|
10
|
+
left: 0;
|
|
11
|
+
z-index: 10;
|
|
12
|
+
display: flex;
|
|
13
|
+
gap: 40px;
|
|
14
|
+
align-items: center;
|
|
15
|
+
justify-content: center;
|
|
16
|
+
width: 100%;
|
|
17
|
+
height: 100%;
|
|
18
|
+
background-color: rgba(0, 0, 0, 0.5);
|
|
19
|
+
user-select: none;
|
|
20
|
+
|
|
21
|
+
.loading-wrapper {
|
|
22
|
+
display: flex;
|
|
23
|
+
align-items: center;
|
|
24
|
+
justify-content: center;
|
|
25
|
+
width: 100%;
|
|
26
|
+
height: 100%;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.doc-preview-share {
|
|
30
|
+
display: flex;
|
|
31
|
+
flex-direction: column;
|
|
32
|
+
align-items: center;
|
|
33
|
+
width: @qrCodeWidth;
|
|
34
|
+
overflow: hidden;
|
|
35
|
+
background-color: #fff;
|
|
36
|
+
border-radius: 12px;
|
|
37
|
+
|
|
38
|
+
&-img {
|
|
39
|
+
width: @qrCodeWidth;
|
|
40
|
+
height: @qrCodeWidth;
|
|
41
|
+
|
|
42
|
+
img {
|
|
43
|
+
width: 100%;
|
|
44
|
+
height: 100%;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
&-hint {
|
|
48
|
+
display: flex;
|
|
49
|
+
align-items: center;
|
|
50
|
+
justify-content: center;
|
|
51
|
+
width: calc(100% - 40px);
|
|
52
|
+
height: calc(100% - 40px);
|
|
53
|
+
margin-top: 20px;
|
|
54
|
+
margin-left: 20px;
|
|
55
|
+
color: #4886ff;
|
|
56
|
+
background-color: #edf3ff;
|
|
57
|
+
border-radius: 6px;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
&-tips,
|
|
62
|
+
&-header,
|
|
63
|
+
&-link,
|
|
64
|
+
&-action {
|
|
65
|
+
box-sizing: border-box;
|
|
66
|
+
width: 100%;
|
|
67
|
+
padding: 0 20px;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
// 备注
|
|
71
|
+
&-tips {
|
|
72
|
+
color: #333;
|
|
73
|
+
font-size: 14px;
|
|
74
|
+
text-align: center;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
// header 控件
|
|
78
|
+
&-header {
|
|
79
|
+
display: flex;
|
|
80
|
+
align-items: center;
|
|
81
|
+
justify-content: space-between;
|
|
82
|
+
margin: 10px 0 5px;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
// 链接展示
|
|
86
|
+
&-link {
|
|
87
|
+
display: flex;
|
|
88
|
+
flex-direction: column;
|
|
89
|
+
width: 100%;
|
|
90
|
+
|
|
91
|
+
&-value {
|
|
92
|
+
display: -webkit-box;
|
|
93
|
+
box-sizing: border-box;
|
|
94
|
+
padding: 6px 10px;
|
|
95
|
+
overflow: hidden;
|
|
96
|
+
color: #86909c;
|
|
97
|
+
line-height: 25px;
|
|
98
|
+
word-break: break-all;
|
|
99
|
+
background: #f2f2f2;
|
|
100
|
+
-webkit-line-clamp: 2;
|
|
101
|
+
-webkit-box-orient: vertical;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
&-hint {
|
|
105
|
+
margin-top: 10px;
|
|
106
|
+
color: #86909c;
|
|
107
|
+
font-size: 12px;
|
|
108
|
+
text-align: center;
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
&-action {
|
|
113
|
+
display: flex;
|
|
114
|
+
gap: 10px;
|
|
115
|
+
align-items: center;
|
|
116
|
+
justify-content: center;
|
|
117
|
+
margin: 20px 0;
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
.preview-close {
|
|
122
|
+
position: absolute;
|
|
123
|
+
top: 20px;
|
|
124
|
+
right: 20px;
|
|
125
|
+
color: #fff;
|
|
126
|
+
font-size: 20px;
|
|
127
|
+
cursor: pointer;
|
|
128
|
+
}
|
|
129
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
.iframe-container {
|
|
2
|
+
position: relative;
|
|
3
|
+
height: 95vh;
|
|
4
|
+
max-height: 750px;
|
|
5
|
+
overflow: hidden;
|
|
6
|
+
aspect-ratio: 390 / 750;
|
|
7
|
+
|
|
8
|
+
&::-webkit-scrollbar {
|
|
9
|
+
display: none;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
img {
|
|
13
|
+
position: absolute;
|
|
14
|
+
width: 100%;
|
|
15
|
+
height: 100%;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.iframe-content {
|
|
19
|
+
position: absolute;
|
|
20
|
+
top: calc(100% / 8);
|
|
21
|
+
left: 19px;
|
|
22
|
+
z-index: 1000;
|
|
23
|
+
width: calc(100% - 38px);
|
|
24
|
+
height: calc(100% - 100% / 8 - 16px);
|
|
25
|
+
overflow: hidden;
|
|
26
|
+
border-bottom-right-radius: 40px;
|
|
27
|
+
border-bottom-left-radius: 40px;
|
|
28
|
+
|
|
29
|
+
iframe {
|
|
30
|
+
width: calc(100% + 20px);
|
|
31
|
+
height: 100%;
|
|
32
|
+
border: none;
|
|
33
|
+
outline: none;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
}
|
|
@@ -12,7 +12,7 @@ function getLabelValue(list, options) {
|
|
|
12
12
|
function useSelection(params) {
|
|
13
13
|
const { func, labelStr, valueStr } = params;
|
|
14
14
|
const lVParams = { labelStr, valueStr };
|
|
15
|
-
const limit = vue.ref(
|
|
15
|
+
const limit = vue.ref(30);
|
|
16
16
|
const offset = vue.ref(0);
|
|
17
17
|
const keyword = vue.ref("");
|
|
18
18
|
const options = vue.ref([]);
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
+
var vue = require("vue");
|
|
4
|
+
var index = require("../utils/index.js");
|
|
5
|
+
var tusUpload = require("../utils/tusUpload.js");
|
|
6
|
+
var request = require("../utils/request.js");
|
|
7
|
+
function addMedia(BASE_API, params) {
|
|
8
|
+
return request(BASE_API, {
|
|
9
|
+
url: "/poplar/v2/media/add",
|
|
10
|
+
method: "post",
|
|
11
|
+
data: params
|
|
12
|
+
});
|
|
13
|
+
}
|
|
14
|
+
function useUpload() {
|
|
15
|
+
const list = vue.ref([]);
|
|
16
|
+
function uploadSuccess(file) {
|
|
17
|
+
const originList = list.value;
|
|
18
|
+
const taskIndex = originList.findIndex(
|
|
19
|
+
(task) => task.sig_id === file.sig_id
|
|
20
|
+
);
|
|
21
|
+
if (taskIndex !== -1) {
|
|
22
|
+
originList[taskIndex] = file;
|
|
23
|
+
list.value = originList;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
function recordTaskStatusChange(file, progress) {
|
|
27
|
+
const originList = list.value;
|
|
28
|
+
const taskIndex = originList.findIndex((task) => task.id === file.id);
|
|
29
|
+
if (taskIndex !== -1) {
|
|
30
|
+
progress !== -1 && (originList[taskIndex].progress = progress);
|
|
31
|
+
file.status != null && (originList[taskIndex].status = file.status);
|
|
32
|
+
file.msg != null && (originList[taskIndex].msg = file.msg);
|
|
33
|
+
originList[taskIndex].url = file.url;
|
|
34
|
+
} else {
|
|
35
|
+
file.created_at = new Date().getTime();
|
|
36
|
+
originList.push({ ...file, progress, status: 1 });
|
|
37
|
+
}
|
|
38
|
+
list.value = originList;
|
|
39
|
+
}
|
|
40
|
+
const uploadFile = (BASE_API, file, dir = 0, repoId, callback) => {
|
|
41
|
+
const newFile = {
|
|
42
|
+
id: index.generateUUID(),
|
|
43
|
+
sig_id: file.sig_id || index.generateUUID(),
|
|
44
|
+
name: file.name,
|
|
45
|
+
url: "",
|
|
46
|
+
size: file.size,
|
|
47
|
+
isUpload: true,
|
|
48
|
+
type: file.type
|
|
49
|
+
};
|
|
50
|
+
const upload = new tusUpload.TusUploadTask(file);
|
|
51
|
+
newFile.abort = () => upload.abort();
|
|
52
|
+
recordTaskStatusChange(newFile, 0);
|
|
53
|
+
const progress = (percent, total) => {
|
|
54
|
+
const progress2 = percent / total;
|
|
55
|
+
recordTaskStatusChange(newFile, progress2);
|
|
56
|
+
};
|
|
57
|
+
const uploading = upload.start(progress);
|
|
58
|
+
uploading.then(async (url) => {
|
|
59
|
+
const { code, message } = await addMedia(BASE_API, {
|
|
60
|
+
url,
|
|
61
|
+
size: newFile.size,
|
|
62
|
+
directory_id: dir,
|
|
63
|
+
repository_id: repoId,
|
|
64
|
+
catalog: newFile.type,
|
|
65
|
+
alias: newFile.name
|
|
66
|
+
});
|
|
67
|
+
if (code !== 0) {
|
|
68
|
+
console.log("\u{1F525}\u{1F525}\u{1F525}\u{1F525}\u{1F525} \u4E0A\u4F20\u5931\u8D25\uFF1A", newFile.name, code, message);
|
|
69
|
+
recordTaskStatusChange({ ...newFile, status: 2, msg: "\u6DFB\u52A0\u5230\u7D20\u6750\u5E93\u5931\u8D25" }, -1);
|
|
70
|
+
return;
|
|
71
|
+
}
|
|
72
|
+
console.log("\u{1F680}\u{1F680}\u{1F680}\u{1F680}\u{1F680}\u{1F680} \u4E0A\u4F20\u6210\u529F\uFF1A", url);
|
|
73
|
+
recordTaskStatusChange({ ...newFile, url: message.url, status: 0 }, 1);
|
|
74
|
+
setTimeout(() => {
|
|
75
|
+
uploadSuccess({ ...message, sig_id: newFile.sig_id });
|
|
76
|
+
}, 200);
|
|
77
|
+
callback && callback({ ...message, sig_id: newFile.sig_id }, "success");
|
|
78
|
+
}).catch((e) => {
|
|
79
|
+
console.log("\u{1F525}\u{1F525}\u{1F525}\u{1F525}\u{1F525} \u4E0A\u4F20\u5931\u8D25\uFF1A", e);
|
|
80
|
+
recordTaskStatusChange({ ...newFile, status: 2, msg: "\u4E0A\u4F20\u4E2D\u65AD" }, -1);
|
|
81
|
+
callback && callback(newFile, "fail");
|
|
82
|
+
});
|
|
83
|
+
};
|
|
84
|
+
return {
|
|
85
|
+
list,
|
|
86
|
+
uploadFile,
|
|
87
|
+
recordTaskStatusChange
|
|
88
|
+
};
|
|
89
|
+
}
|
|
90
|
+
exports.addMedia = addMedia;
|
|
91
|
+
exports["default"] = useUpload;
|
package/lib/index.css
CHANGED
|
@@ -4254,6 +4254,18 @@
|
|
|
4254
4254
|
border-radius: 2px;
|
|
4255
4255
|
cursor: pointer;
|
|
4256
4256
|
}
|
|
4257
|
+
.thumb-select-wrapper .thumb-upload-loading {
|
|
4258
|
+
display: flex;
|
|
4259
|
+
align-items: center;
|
|
4260
|
+
justify-content: center;
|
|
4261
|
+
width: 100%;
|
|
4262
|
+
height: 100%;
|
|
4263
|
+
color: #fff;
|
|
4264
|
+
background-color: rgba(0, 0, 0, 0.5);
|
|
4265
|
+
}
|
|
4266
|
+
.thumb-select-wrapper .thumb-upload-loading .arco-progress-circle-text {
|
|
4267
|
+
color: #fff;
|
|
4268
|
+
}
|
|
4257
4269
|
.thumb-select-wrapper .thumb-add {
|
|
4258
4270
|
color: var(--color-text-2);
|
|
4259
4271
|
font-size: 16px;
|
|
@@ -4290,7 +4302,26 @@
|
|
|
4290
4302
|
.thumb-select-wrapper:hover .thumb-handler-list {
|
|
4291
4303
|
opacity: 1;
|
|
4292
4304
|
}
|
|
4293
|
-
.
|
|
4305
|
+
.thumb-select-wrapper:hover .thumb-select-tag {
|
|
4306
|
+
opacity: 0;
|
|
4307
|
+
}
|
|
4308
|
+
.thumb-select-wrapper.thumb-no-mask {
|
|
4309
|
+
background-color: #f2f3f5;
|
|
4310
|
+
border: 1px dashed #e5e6eb !important;
|
|
4311
|
+
}
|
|
4312
|
+
.thumb-select-wrapper .thumb-select-tag {
|
|
4313
|
+
position: absolute;
|
|
4314
|
+
right: 5px;
|
|
4315
|
+
bottom: 5px;
|
|
4316
|
+
padding: 2px 10px;
|
|
4317
|
+
color: #fff;
|
|
4318
|
+
font-size: 12px;
|
|
4319
|
+
background-color: rgba(0, 0, 0, 0.5);
|
|
4320
|
+
border-radius: 16px;
|
|
4321
|
+
opacity: 1;
|
|
4322
|
+
transition: all 0.3s ease-in-out;
|
|
4323
|
+
}
|
|
4324
|
+
.thumb-select-wrapper .arco-dropdown-option-content {
|
|
4294
4325
|
display: flex;
|
|
4295
4326
|
gap: 8px;
|
|
4296
4327
|
align-items: center;
|
|
@@ -4299,59 +4330,7 @@
|
|
|
4299
4330
|
.card-list-wrapper {
|
|
4300
4331
|
display: grid;
|
|
4301
4332
|
grid-gap: 20px;
|
|
4302
|
-
grid-template-columns: repeat(
|
|
4303
|
-
}
|
|
4304
|
-
.card-list-wrapper .card-wrapper-image {
|
|
4305
|
-
position: relative;
|
|
4306
|
-
overflow: hidden;
|
|
4307
|
-
}
|
|
4308
|
-
.card-list-wrapper .card-wrapper-image .card-wrapper {
|
|
4309
|
-
overflow: hidden;
|
|
4310
|
-
aspect-ratio: 4 / 3;
|
|
4311
|
-
}
|
|
4312
|
-
.card-list-wrapper .card-wrapper-image .card-alias {
|
|
4313
|
-
width: 100%;
|
|
4314
|
-
margin-top: 6px;
|
|
4315
|
-
overflow: hidden;
|
|
4316
|
-
color: #3d3d3d;
|
|
4317
|
-
font-size: 14px;
|
|
4318
|
-
line-height: 22px;
|
|
4319
|
-
white-space: nowrap;
|
|
4320
|
-
text-overflow: ellipsis;
|
|
4321
|
-
}
|
|
4322
|
-
.card-list-wrapper .card-wrapper-image:hover .check-box-wrapper .check-box,
|
|
4323
|
-
.card-list-wrapper .card-wrapper-image .check-box-wrapper .check-box.active {
|
|
4324
|
-
opacity: 1;
|
|
4325
|
-
}
|
|
4326
|
-
.card-list-wrapper .card-wrapper-image .check-box-wrapper {
|
|
4327
|
-
position: absolute;
|
|
4328
|
-
top: 8px;
|
|
4329
|
-
left: 8px;
|
|
4330
|
-
cursor: pointer;
|
|
4331
|
-
}
|
|
4332
|
-
.card-list-wrapper .card-wrapper-image .check-box-wrapper .check-box {
|
|
4333
|
-
box-sizing: border-box;
|
|
4334
|
-
width: 22px;
|
|
4335
|
-
height: 22px;
|
|
4336
|
-
font-size: 14px;
|
|
4337
|
-
line-height: 22px;
|
|
4338
|
-
text-align: center;
|
|
4339
|
-
background-color: rgba(0, 0, 0, 0.2);
|
|
4340
|
-
border: 1px solid white;
|
|
4341
|
-
border-radius: 50%;
|
|
4342
|
-
opacity: 0;
|
|
4343
|
-
transition: all 0.3s ease-in-out;
|
|
4344
|
-
}
|
|
4345
|
-
.card-list-wrapper .card-wrapper-image .check-box-wrapper .check-box::selection {
|
|
4346
|
-
display: none;
|
|
4347
|
-
}
|
|
4348
|
-
.card-list-wrapper .card-wrapper-image .check-box-wrapper .check-box:hover {
|
|
4349
|
-
background-color: rgba(0, 0, 0, 0.3);
|
|
4350
|
-
}
|
|
4351
|
-
.card-list-wrapper .card-wrapper-image .check-box-wrapper .check-box.active {
|
|
4352
|
-
color: white;
|
|
4353
|
-
background-color: #165dff;
|
|
4354
|
-
border-color: #165dff;
|
|
4333
|
+
grid-template-columns: repeat(5, 1fr);
|
|
4355
4334
|
}
|
|
4356
4335
|
.list-filter-wrapper {
|
|
4357
4336
|
display: flex;
|
|
@@ -4369,7 +4348,6 @@
|
|
|
4369
4348
|
}
|
|
4370
4349
|
.list-panel-wrapper {
|
|
4371
4350
|
width: 420px;
|
|
4372
|
-
max-height: 600px;
|
|
4373
4351
|
padding: 0 !important;
|
|
4374
4352
|
overflow: hidden;
|
|
4375
4353
|
border: none;
|
|
@@ -4383,7 +4361,12 @@
|
|
|
4383
4361
|
display: none;
|
|
4384
4362
|
}
|
|
4385
4363
|
.list-panel-wrapper .arco-popover-content {
|
|
4364
|
+
display: flex;
|
|
4365
|
+
flex-direction: column;
|
|
4366
|
+
height: 100%;
|
|
4367
|
+
max-height: 600px;
|
|
4386
4368
|
margin-top: 0;
|
|
4369
|
+
overflow: hidden;
|
|
4387
4370
|
}
|
|
4388
4371
|
.list-panel-wrapper .list-panel-header {
|
|
4389
4372
|
display: flex;
|
|
@@ -4403,8 +4386,11 @@
|
|
|
4403
4386
|
cursor: pointer;
|
|
4404
4387
|
}
|
|
4405
4388
|
.list-panel-wrapper .list-selected-record {
|
|
4406
|
-
|
|
4407
|
-
|
|
4389
|
+
flex: 1;
|
|
4390
|
+
overflow-y: scroll;
|
|
4391
|
+
}
|
|
4392
|
+
.list-panel-wrapper .list-selected-record::-webkit-scrollbar {
|
|
4393
|
+
display: none;
|
|
4408
4394
|
}
|
|
4409
4395
|
.list-panel-wrapper .list-selected-record .list-selected-item {
|
|
4410
4396
|
display: flex;
|
|
@@ -4424,6 +4410,85 @@
|
|
|
4424
4410
|
white-space: nowrap;
|
|
4425
4411
|
text-overflow: ellipsis;
|
|
4426
4412
|
}
|
|
4413
|
+
.upload-list-wrapper .list-content {
|
|
4414
|
+
margin-top: 30px;
|
|
4415
|
+
}
|
|
4416
|
+
.upload-list-wrapper .list-content .list-tips {
|
|
4417
|
+
margin-bottom: 16px;
|
|
4418
|
+
color: #3d3d3d;
|
|
4419
|
+
}
|
|
4420
|
+
.upload-list-wrapper .upload-wrapper {
|
|
4421
|
+
display: flex;
|
|
4422
|
+
flex-direction: column;
|
|
4423
|
+
}
|
|
4424
|
+
.upload-list-wrapper .upload-wrapper .upload-buttons {
|
|
4425
|
+
display: flex;
|
|
4426
|
+
gap: 20px;
|
|
4427
|
+
justify-content: center;
|
|
4428
|
+
margin: 20px 0;
|
|
4429
|
+
}
|
|
4430
|
+
.upload-list-wrapper .upload-wrapper .upload-dragger {
|
|
4431
|
+
width: calc(100% - 2px);
|
|
4432
|
+
}
|
|
4433
|
+
.card-wrapper-image {
|
|
4434
|
+
position: relative;
|
|
4435
|
+
overflow: hidden;
|
|
4436
|
+
cursor: pointer;
|
|
4437
|
+
}
|
|
4438
|
+
.card-wrapper-image .card-wrapper {
|
|
4439
|
+
position: relative;
|
|
4440
|
+
overflow: hidden;
|
|
4441
|
+
aspect-ratio: 4 / 3;
|
|
4442
|
+
}
|
|
4443
|
+
.card-wrapper-image .card-alias {
|
|
4444
|
+
width: 100%;
|
|
4445
|
+
margin-top: 6px;
|
|
4446
|
+
overflow: hidden;
|
|
4447
|
+
color: #3d3d3d;
|
|
4448
|
+
font-size: 14px;
|
|
4449
|
+
line-height: 22px;
|
|
4450
|
+
white-space: nowrap;
|
|
4451
|
+
text-overflow: ellipsis;
|
|
4452
|
+
}
|
|
4453
|
+
.card-wrapper-image:hover .check-box-wrapper .check-box,
|
|
4454
|
+
.card-wrapper-image .check-box-wrapper .check-box.active {
|
|
4455
|
+
opacity: 1;
|
|
4456
|
+
}
|
|
4457
|
+
.card-wrapper-image .check-box-wrapper {
|
|
4458
|
+
position: absolute;
|
|
4459
|
+
top: 8px;
|
|
4460
|
+
left: 8px;
|
|
4461
|
+
cursor: pointer;
|
|
4462
|
+
}
|
|
4463
|
+
.card-wrapper-image .check-box-wrapper .check-box {
|
|
4464
|
+
box-sizing: border-box;
|
|
4465
|
+
width: 22px;
|
|
4466
|
+
height: 22px;
|
|
4467
|
+
font-size: 14px;
|
|
4468
|
+
line-height: 22px;
|
|
4469
|
+
text-align: center;
|
|
4470
|
+
background-color: rgba(0, 0, 0, 0.2);
|
|
4471
|
+
border: 1px solid white;
|
|
4472
|
+
border-radius: 50%;
|
|
4473
|
+
opacity: 0;
|
|
4474
|
+
transition: all 0.3s ease-in-out;
|
|
4475
|
+
}
|
|
4476
|
+
.card-wrapper-image .check-box-wrapper .check-box::selection {
|
|
4477
|
+
display: none;
|
|
4478
|
+
}
|
|
4479
|
+
.card-wrapper-image .check-box-wrapper .check-box:hover {
|
|
4480
|
+
background-color: rgba(0, 0, 0, 0.3);
|
|
4481
|
+
}
|
|
4482
|
+
.card-wrapper-image .check-box-wrapper .check-box.active {
|
|
4483
|
+
color: white;
|
|
4484
|
+
background-color: #165dff;
|
|
4485
|
+
border-color: #165dff;
|
|
4486
|
+
}
|
|
4487
|
+
.resource-select-drawer .arco-drawer-body {
|
|
4488
|
+
box-sizing: border-box;
|
|
4489
|
+
padding: 0;
|
|
4490
|
+
overflow: hidden;
|
|
4491
|
+
}
|
|
4427
4492
|
.resource-select-container {
|
|
4428
4493
|
display: flex;
|
|
4429
4494
|
flex-direction: column;
|
|
@@ -4432,9 +4497,14 @@
|
|
|
4432
4497
|
height: 100%;
|
|
4433
4498
|
}
|
|
4434
4499
|
.resource-select-container .resource-select-filter,
|
|
4435
|
-
.resource-select-container .resource-select-content,
|
|
4436
4500
|
.resource-select-container .resource-select-footer {
|
|
4437
|
-
padding: 0
|
|
4501
|
+
padding: 0 40px;
|
|
4502
|
+
}
|
|
4503
|
+
.resource-select-container .resource-select-content .arco-scrollbar-container {
|
|
4504
|
+
padding: 0 40px;
|
|
4505
|
+
}
|
|
4506
|
+
.resource-select-container .resource-select-header {
|
|
4507
|
+
padding: 10px 24px 0 24px;
|
|
4438
4508
|
}
|
|
4439
4509
|
.resource-select-container .resource-select-header .arco-tabs-nav::before {
|
|
4440
4510
|
display: none;
|
|
@@ -4449,9 +4519,149 @@
|
|
|
4449
4519
|
.resource-select-container .resource-select-footer {
|
|
4450
4520
|
display: flex;
|
|
4451
4521
|
justify-content: space-between;
|
|
4522
|
+
padding-bottom: 10px;
|
|
4452
4523
|
}
|
|
4453
4524
|
.resource-select-container .resource-select-footer .footer-right {
|
|
4454
4525
|
display: flex;
|
|
4455
4526
|
gap: 10px;
|
|
4456
4527
|
align-items: center;
|
|
4457
4528
|
}
|
|
4529
|
+
.iframe-container {
|
|
4530
|
+
position: relative;
|
|
4531
|
+
height: 95vh;
|
|
4532
|
+
max-height: 750px;
|
|
4533
|
+
overflow: hidden;
|
|
4534
|
+
aspect-ratio: 390 / 750;
|
|
4535
|
+
}
|
|
4536
|
+
.iframe-container::-webkit-scrollbar {
|
|
4537
|
+
display: none;
|
|
4538
|
+
}
|
|
4539
|
+
.iframe-container img {
|
|
4540
|
+
position: absolute;
|
|
4541
|
+
width: 100%;
|
|
4542
|
+
height: 100%;
|
|
4543
|
+
}
|
|
4544
|
+
.iframe-container .iframe-content {
|
|
4545
|
+
position: absolute;
|
|
4546
|
+
top: calc(100% / 8);
|
|
4547
|
+
left: 19px;
|
|
4548
|
+
z-index: 1000;
|
|
4549
|
+
width: calc(100% - 38px);
|
|
4550
|
+
height: calc(100% - 100% / 8 - 16px);
|
|
4551
|
+
overflow: hidden;
|
|
4552
|
+
border-bottom-right-radius: 40px;
|
|
4553
|
+
border-bottom-left-radius: 40px;
|
|
4554
|
+
}
|
|
4555
|
+
.iframe-container .iframe-content iframe {
|
|
4556
|
+
width: calc(100% + 20px);
|
|
4557
|
+
height: 100%;
|
|
4558
|
+
border: none;
|
|
4559
|
+
outline: none;
|
|
4560
|
+
}
|
|
4561
|
+
.doc-preview-container {
|
|
4562
|
+
position: fixed;
|
|
4563
|
+
top: 0;
|
|
4564
|
+
left: 0;
|
|
4565
|
+
z-index: 10;
|
|
4566
|
+
display: flex;
|
|
4567
|
+
gap: 40px;
|
|
4568
|
+
align-items: center;
|
|
4569
|
+
justify-content: center;
|
|
4570
|
+
width: 100%;
|
|
4571
|
+
height: 100%;
|
|
4572
|
+
background-color: rgba(0, 0, 0, 0.5);
|
|
4573
|
+
user-select: none;
|
|
4574
|
+
}
|
|
4575
|
+
.doc-preview-container .loading-wrapper {
|
|
4576
|
+
display: flex;
|
|
4577
|
+
align-items: center;
|
|
4578
|
+
justify-content: center;
|
|
4579
|
+
width: 100%;
|
|
4580
|
+
height: 100%;
|
|
4581
|
+
}
|
|
4582
|
+
.doc-preview-container .doc-preview-share {
|
|
4583
|
+
display: flex;
|
|
4584
|
+
flex-direction: column;
|
|
4585
|
+
align-items: center;
|
|
4586
|
+
width: 300px;
|
|
4587
|
+
overflow: hidden;
|
|
4588
|
+
background-color: #fff;
|
|
4589
|
+
border-radius: 12px;
|
|
4590
|
+
}
|
|
4591
|
+
.doc-preview-container .doc-preview-share-img {
|
|
4592
|
+
width: 300px;
|
|
4593
|
+
height: 300px;
|
|
4594
|
+
}
|
|
4595
|
+
.doc-preview-container .doc-preview-share-img img {
|
|
4596
|
+
width: 100%;
|
|
4597
|
+
height: 100%;
|
|
4598
|
+
}
|
|
4599
|
+
.doc-preview-container .doc-preview-share-img-hint {
|
|
4600
|
+
display: flex;
|
|
4601
|
+
align-items: center;
|
|
4602
|
+
justify-content: center;
|
|
4603
|
+
width: calc(100% - 40px);
|
|
4604
|
+
height: calc(100% - 40px);
|
|
4605
|
+
margin-top: 20px;
|
|
4606
|
+
margin-left: 20px;
|
|
4607
|
+
color: #4886ff;
|
|
4608
|
+
background-color: #edf3ff;
|
|
4609
|
+
border-radius: 6px;
|
|
4610
|
+
}
|
|
4611
|
+
.doc-preview-container .doc-preview-share-tips,
|
|
4612
|
+
.doc-preview-container .doc-preview-share-header,
|
|
4613
|
+
.doc-preview-container .doc-preview-share-link,
|
|
4614
|
+
.doc-preview-container .doc-preview-share-action {
|
|
4615
|
+
box-sizing: border-box;
|
|
4616
|
+
width: 100%;
|
|
4617
|
+
padding: 0 20px;
|
|
4618
|
+
}
|
|
4619
|
+
.doc-preview-container .doc-preview-share-tips {
|
|
4620
|
+
color: #333;
|
|
4621
|
+
font-size: 14px;
|
|
4622
|
+
text-align: center;
|
|
4623
|
+
}
|
|
4624
|
+
.doc-preview-container .doc-preview-share-header {
|
|
4625
|
+
display: flex;
|
|
4626
|
+
align-items: center;
|
|
4627
|
+
justify-content: space-between;
|
|
4628
|
+
margin: 10px 0 5px;
|
|
4629
|
+
}
|
|
4630
|
+
.doc-preview-container .doc-preview-share-link {
|
|
4631
|
+
display: flex;
|
|
4632
|
+
flex-direction: column;
|
|
4633
|
+
width: 100%;
|
|
4634
|
+
}
|
|
4635
|
+
.doc-preview-container .doc-preview-share-link-value {
|
|
4636
|
+
display: -webkit-box;
|
|
4637
|
+
box-sizing: border-box;
|
|
4638
|
+
padding: 6px 10px;
|
|
4639
|
+
overflow: hidden;
|
|
4640
|
+
color: #86909c;
|
|
4641
|
+
line-height: 25px;
|
|
4642
|
+
word-break: break-all;
|
|
4643
|
+
background: #f2f2f2;
|
|
4644
|
+
-webkit-line-clamp: 2;
|
|
4645
|
+
-webkit-box-orient: vertical;
|
|
4646
|
+
}
|
|
4647
|
+
.doc-preview-container .doc-preview-share-link-hint {
|
|
4648
|
+
margin-top: 10px;
|
|
4649
|
+
color: #86909c;
|
|
4650
|
+
font-size: 12px;
|
|
4651
|
+
text-align: center;
|
|
4652
|
+
}
|
|
4653
|
+
.doc-preview-container .doc-preview-share-action {
|
|
4654
|
+
display: flex;
|
|
4655
|
+
gap: 10px;
|
|
4656
|
+
align-items: center;
|
|
4657
|
+
justify-content: center;
|
|
4658
|
+
margin: 20px 0;
|
|
4659
|
+
}
|
|
4660
|
+
.doc-preview-container .preview-close {
|
|
4661
|
+
position: absolute;
|
|
4662
|
+
top: 20px;
|
|
4663
|
+
right: 20px;
|
|
4664
|
+
color: #fff;
|
|
4665
|
+
font-size: 20px;
|
|
4666
|
+
cursor: pointer;
|
|
4667
|
+
}
|
package/lib/index.js
CHANGED
|
@@ -26,6 +26,7 @@ var index$l = require("./resourceGridList/index.js");
|
|
|
26
26
|
var index$m = require("./mediaView/index.js");
|
|
27
27
|
var index$n = require("./thumbCard/index.js");
|
|
28
28
|
var index$o = require("./selectResourceModal/index.js");
|
|
29
|
+
var index$p = require("./docPreview/index.js");
|
|
29
30
|
exports["default"] = components;
|
|
30
31
|
exports.appCenter = index;
|
|
31
32
|
exports.messageBox = index$1;
|
|
@@ -52,3 +53,4 @@ exports.resourceGridList = index$l;
|
|
|
52
53
|
exports.mediaView = index$m;
|
|
53
54
|
exports.thumbCard = index$n;
|
|
54
55
|
exports.selectResourceModal = index$o;
|
|
56
|
+
exports.docPreview = index$p;
|
package/lib/index.less
CHANGED