@cmstops/pro-compo 0.3.35 → 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 +156 -2
- 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/index.css +156 -2
- package/es/index.d.ts +1 -0
- package/es/index.js +1 -0
- package/es/index.less +1 -0
- package/es/selectResourceModal/component.js +7 -9
- package/es/selectResourceModal/components/ListContent/index.js +4 -1
- package/es/selectResourceModal/components/ListContentLocal/components/Upload.js +2 -13
- package/es/selectResourceModal/components/ListContentLocal/index.js +4 -1
- package/es/selectResourceModal/components/ListFilter/index.js +3 -2
- package/es/selectResourceModal/style/index.css +1 -1
- package/es/selectResourceModal/style/index.less +1 -1
- package/es/thumbCard/component.js +15 -15
- package/es/thumbCard/style/index.css +16 -1
- package/es/thumbCard/style/index.less +24 -7
- package/es/utils/index.d.ts +2 -0
- package/es/utils/index.js +40 -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/index.css +156 -2
- package/lib/index.js +2 -0
- package/lib/index.less +1 -0
- package/lib/selectResourceModal/component.js +6 -8
- package/lib/selectResourceModal/components/ListContent/index.js +4 -1
- package/lib/selectResourceModal/components/ListContentLocal/components/Upload.js +1 -12
- package/lib/selectResourceModal/components/ListContentLocal/index.js +4 -1
- package/lib/selectResourceModal/components/ListFilter/index.js +3 -2
- package/lib/selectResourceModal/style/index.css +1 -1
- package/lib/selectResourceModal/style/index.less +1 -1
- package/lib/thumbCard/component.js +15 -15
- package/lib/thumbCard/style/index.css +16 -1
- package/lib/thumbCard/style/index.less +24 -7
- package/lib/utils/index.js +41 -0
- package/package.json +1 -1
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
.iframe-container {
|
|
2
|
+
position: relative;
|
|
3
|
+
height: 95vh;
|
|
4
|
+
max-height: 750px;
|
|
5
|
+
overflow: hidden;
|
|
6
|
+
aspect-ratio: 390 / 750;
|
|
7
|
+
}
|
|
8
|
+
.iframe-container::-webkit-scrollbar {
|
|
9
|
+
display: none;
|
|
10
|
+
}
|
|
11
|
+
.iframe-container img {
|
|
12
|
+
position: absolute;
|
|
13
|
+
width: 100%;
|
|
14
|
+
height: 100%;
|
|
15
|
+
}
|
|
16
|
+
.iframe-container .iframe-content {
|
|
17
|
+
position: absolute;
|
|
18
|
+
top: calc(100% / 8);
|
|
19
|
+
left: 19px;
|
|
20
|
+
z-index: 1000;
|
|
21
|
+
width: calc(100% - 38px);
|
|
22
|
+
height: calc(100% - 100% / 8 - 16px);
|
|
23
|
+
overflow: hidden;
|
|
24
|
+
border-bottom-right-radius: 40px;
|
|
25
|
+
border-bottom-left-radius: 40px;
|
|
26
|
+
}
|
|
27
|
+
.iframe-container .iframe-content iframe {
|
|
28
|
+
width: calc(100% + 20px);
|
|
29
|
+
height: 100%;
|
|
30
|
+
border: none;
|
|
31
|
+
outline: none;
|
|
32
|
+
}
|
|
33
|
+
.doc-preview-container {
|
|
34
|
+
position: fixed;
|
|
35
|
+
top: 0;
|
|
36
|
+
left: 0;
|
|
37
|
+
z-index: 10;
|
|
38
|
+
display: flex;
|
|
39
|
+
gap: 40px;
|
|
40
|
+
align-items: center;
|
|
41
|
+
justify-content: center;
|
|
42
|
+
width: 100%;
|
|
43
|
+
height: 100%;
|
|
44
|
+
background-color: rgba(0, 0, 0, 0.5);
|
|
45
|
+
user-select: none;
|
|
46
|
+
}
|
|
47
|
+
.doc-preview-container .loading-wrapper {
|
|
48
|
+
display: flex;
|
|
49
|
+
align-items: center;
|
|
50
|
+
justify-content: center;
|
|
51
|
+
width: 100%;
|
|
52
|
+
height: 100%;
|
|
53
|
+
}
|
|
54
|
+
.doc-preview-container .doc-preview-share {
|
|
55
|
+
display: flex;
|
|
56
|
+
flex-direction: column;
|
|
57
|
+
align-items: center;
|
|
58
|
+
width: 300px;
|
|
59
|
+
overflow: hidden;
|
|
60
|
+
background-color: #fff;
|
|
61
|
+
border-radius: 12px;
|
|
62
|
+
}
|
|
63
|
+
.doc-preview-container .doc-preview-share-img {
|
|
64
|
+
width: 300px;
|
|
65
|
+
height: 300px;
|
|
66
|
+
}
|
|
67
|
+
.doc-preview-container .doc-preview-share-img img {
|
|
68
|
+
width: 100%;
|
|
69
|
+
height: 100%;
|
|
70
|
+
}
|
|
71
|
+
.doc-preview-container .doc-preview-share-img-hint {
|
|
72
|
+
display: flex;
|
|
73
|
+
align-items: center;
|
|
74
|
+
justify-content: center;
|
|
75
|
+
width: calc(100% - 40px);
|
|
76
|
+
height: calc(100% - 40px);
|
|
77
|
+
margin-top: 20px;
|
|
78
|
+
margin-left: 20px;
|
|
79
|
+
color: #4886ff;
|
|
80
|
+
background-color: #edf3ff;
|
|
81
|
+
border-radius: 6px;
|
|
82
|
+
}
|
|
83
|
+
.doc-preview-container .doc-preview-share-tips,
|
|
84
|
+
.doc-preview-container .doc-preview-share-header,
|
|
85
|
+
.doc-preview-container .doc-preview-share-link,
|
|
86
|
+
.doc-preview-container .doc-preview-share-action {
|
|
87
|
+
box-sizing: border-box;
|
|
88
|
+
width: 100%;
|
|
89
|
+
padding: 0 20px;
|
|
90
|
+
}
|
|
91
|
+
.doc-preview-container .doc-preview-share-tips {
|
|
92
|
+
color: #333;
|
|
93
|
+
font-size: 14px;
|
|
94
|
+
text-align: center;
|
|
95
|
+
}
|
|
96
|
+
.doc-preview-container .doc-preview-share-header {
|
|
97
|
+
display: flex;
|
|
98
|
+
align-items: center;
|
|
99
|
+
justify-content: space-between;
|
|
100
|
+
margin: 10px 0 5px;
|
|
101
|
+
}
|
|
102
|
+
.doc-preview-container .doc-preview-share-link {
|
|
103
|
+
display: flex;
|
|
104
|
+
flex-direction: column;
|
|
105
|
+
width: 100%;
|
|
106
|
+
}
|
|
107
|
+
.doc-preview-container .doc-preview-share-link-value {
|
|
108
|
+
display: -webkit-box;
|
|
109
|
+
box-sizing: border-box;
|
|
110
|
+
padding: 6px 10px;
|
|
111
|
+
overflow: hidden;
|
|
112
|
+
color: #86909c;
|
|
113
|
+
line-height: 25px;
|
|
114
|
+
word-break: break-all;
|
|
115
|
+
background: #f2f2f2;
|
|
116
|
+
-webkit-line-clamp: 2;
|
|
117
|
+
-webkit-box-orient: vertical;
|
|
118
|
+
}
|
|
119
|
+
.doc-preview-container .doc-preview-share-link-hint {
|
|
120
|
+
margin-top: 10px;
|
|
121
|
+
color: #86909c;
|
|
122
|
+
font-size: 12px;
|
|
123
|
+
text-align: center;
|
|
124
|
+
}
|
|
125
|
+
.doc-preview-container .doc-preview-share-action {
|
|
126
|
+
display: flex;
|
|
127
|
+
gap: 10px;
|
|
128
|
+
align-items: center;
|
|
129
|
+
justify-content: center;
|
|
130
|
+
margin: 20px 0;
|
|
131
|
+
}
|
|
132
|
+
.doc-preview-container .preview-close {
|
|
133
|
+
position: absolute;
|
|
134
|
+
top: 20px;
|
|
135
|
+
right: 20px;
|
|
136
|
+
color: #fff;
|
|
137
|
+
font-size: 20px;
|
|
138
|
+
cursor: pointer;
|
|
139
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import './index.less';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "./index.less";
|
|
@@ -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
|
+
}
|
package/es/hooks/useSelection.js
CHANGED
|
@@ -11,7 +11,7 @@ function getLabelValue(list, options) {
|
|
|
11
11
|
function useSelection(params) {
|
|
12
12
|
const { func, labelStr, valueStr } = params;
|
|
13
13
|
const lVParams = { labelStr, valueStr };
|
|
14
|
-
const limit = ref(
|
|
14
|
+
const limit = ref(30);
|
|
15
15
|
const offset = ref(0);
|
|
16
16
|
const keyword = ref("");
|
|
17
17
|
const options = ref([]);
|
package/es/index.css
CHANGED
|
@@ -4302,11 +4302,26 @@
|
|
|
4302
4302
|
.thumb-select-wrapper:hover .thumb-handler-list {
|
|
4303
4303
|
opacity: 1;
|
|
4304
4304
|
}
|
|
4305
|
+
.thumb-select-wrapper:hover .thumb-select-tag {
|
|
4306
|
+
opacity: 0;
|
|
4307
|
+
}
|
|
4305
4308
|
.thumb-select-wrapper.thumb-no-mask {
|
|
4306
4309
|
background-color: #f2f3f5;
|
|
4307
4310
|
border: 1px dashed #e5e6eb !important;
|
|
4308
4311
|
}
|
|
4309
|
-
.
|
|
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 {
|
|
4310
4325
|
display: flex;
|
|
4311
4326
|
gap: 8px;
|
|
4312
4327
|
align-items: center;
|
|
@@ -4489,7 +4504,7 @@
|
|
|
4489
4504
|
padding: 0 40px;
|
|
4490
4505
|
}
|
|
4491
4506
|
.resource-select-container .resource-select-header {
|
|
4492
|
-
padding: 10px 24px 0;
|
|
4507
|
+
padding: 10px 24px 0 24px;
|
|
4493
4508
|
}
|
|
4494
4509
|
.resource-select-container .resource-select-header .arco-tabs-nav::before {
|
|
4495
4510
|
display: none;
|
|
@@ -4511,3 +4526,142 @@
|
|
|
4511
4526
|
gap: 10px;
|
|
4512
4527
|
align-items: center;
|
|
4513
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/es/index.d.ts
CHANGED
|
@@ -24,3 +24,4 @@ export { default as resourceGridList } from './resourceGridList';
|
|
|
24
24
|
export { default as mediaView } from './mediaView';
|
|
25
25
|
export { default as thumbCard } from './thumbCard';
|
|
26
26
|
export { default as selectResourceModal } from './selectResourceModal';
|
|
27
|
+
export { default as docPreview } from './docPreview';
|
package/es/index.js
CHANGED
|
@@ -24,3 +24,4 @@ export { default as resourceGridList } from "./resourceGridList/index.js";
|
|
|
24
24
|
export { default as mediaView } from "./mediaView/index.js";
|
|
25
25
|
export { default as thumbCard } from "./thumbCard/index.js";
|
|
26
26
|
export { default as selectResourceModal } from "./selectResourceModal/index.js";
|
|
27
|
+
export { default as docPreview } from "./docPreview/index.js";
|
package/es/index.less
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { defineComponent, ref, provide, computed,
|
|
1
|
+
import { defineComponent, ref, provide, computed, openBlock, createBlock, unref, withCtx, createElementBlock, createCommentVNode, createElementVNode, createVNode, withDirectives, vShow, createTextVNode } from "vue";
|
|
2
2
|
import { Drawer, Tabs, Button, TabPane, Scrollbar, Pagination } from "@arco-design/web-vue";
|
|
3
|
+
import { IconClose } from "@arco-design/web-vue/es/icon";
|
|
3
4
|
import emptyData from "../emptyData/index.js";
|
|
4
5
|
import _sfc_main$1 from "./components/ListFilter/index.js";
|
|
5
6
|
import _sfc_main$2 from "./components/ListContent/index.js";
|
|
@@ -49,8 +50,7 @@ const _sfc_main = defineComponent({
|
|
|
49
50
|
changeKey,
|
|
50
51
|
changeFilter,
|
|
51
52
|
changePage,
|
|
52
|
-
changeSize
|
|
53
|
-
loadData
|
|
53
|
+
changeSize
|
|
54
54
|
} = useAttachement({ key: "all", BASE_API });
|
|
55
55
|
const selected = ref([]);
|
|
56
56
|
const selectedKeys = computed(() => selected.value.map((item) => item.id));
|
|
@@ -84,9 +84,6 @@ const _sfc_main = defineComponent({
|
|
|
84
84
|
changeKey("local");
|
|
85
85
|
activeKey.value = "local";
|
|
86
86
|
}
|
|
87
|
-
onMounted(() => {
|
|
88
|
-
loadData();
|
|
89
|
-
});
|
|
90
87
|
return (_ctx, _cache) => {
|
|
91
88
|
return openBlock(), createBlock(unref(Drawer), {
|
|
92
89
|
visible: _ctx.visible,
|
|
@@ -106,11 +103,12 @@ const _sfc_main = defineComponent({
|
|
|
106
103
|
}, {
|
|
107
104
|
extra: withCtx(() => [
|
|
108
105
|
createVNode(unref(Button), {
|
|
109
|
-
type: "
|
|
106
|
+
type: "secondary",
|
|
107
|
+
shape: "round",
|
|
110
108
|
onClick: handleClose
|
|
111
109
|
}, {
|
|
112
|
-
|
|
113
|
-
|
|
110
|
+
icon: withCtx(() => [
|
|
111
|
+
createVNode(unref(IconClose))
|
|
114
112
|
]),
|
|
115
113
|
_: 1
|
|
116
114
|
})
|
|
@@ -47,8 +47,11 @@ const _sfc_main = defineComponent({
|
|
|
47
47
|
meta: item,
|
|
48
48
|
"use-mask": true,
|
|
49
49
|
"handlers-key": handlersKey.value,
|
|
50
|
+
options: {
|
|
51
|
+
fit: item.catalog === "image" ? "contain" : "cover"
|
|
52
|
+
},
|
|
50
53
|
onHandle: handleOption
|
|
51
|
-
}, null, 8, ["url", "thumb", "catalog", "meta", "handlers-key"])
|
|
54
|
+
}, null, 8, ["url", "thumb", "catalog", "meta", "handlers-key", "options"])
|
|
52
55
|
]),
|
|
53
56
|
_: 2
|
|
54
57
|
}, 1032, ["item", "select-keys", "disable", "onSelect"]);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent, openBlock, createElementBlock, createElementVNode, createVNode, unref, withCtx, createTextVNode } from "vue";
|
|
1
|
+
import { defineComponent, openBlock, createElementBlock, createElementVNode, createVNode, unref, withCtx, createTextVNode, createCommentVNode } from "vue";
|
|
2
2
|
import { Upload, Button } from "@arco-design/web-vue";
|
|
3
3
|
import { IconComputer } from "@arco-iconbox/vue-cmstop-icons";
|
|
4
4
|
const _hoisted_1 = { class: "upload-wrapper" };
|
|
@@ -37,18 +37,7 @@ const _sfc_main = defineComponent({
|
|
|
37
37
|
]),
|
|
38
38
|
_: 1
|
|
39
39
|
}),
|
|
40
|
-
|
|
41
|
-
default: withCtx(() => [
|
|
42
|
-
createTextVNode(" \u626B\u7801\u4E0A\u4F20 ")
|
|
43
|
-
]),
|
|
44
|
-
_: 1
|
|
45
|
-
}),
|
|
46
|
-
createVNode(unref(Button), { type: "primary" }, {
|
|
47
|
-
default: withCtx(() => [
|
|
48
|
-
createTextVNode(" \u5206\u4EAB\u4E0A\u4F20 ")
|
|
49
|
-
]),
|
|
50
|
-
_: 1
|
|
51
|
-
})
|
|
40
|
+
createCommentVNode(' <a-button type="primary"> \u626B\u7801\u4E0A\u4F20 </a-button>\n <a-button type="primary"> \u5206\u4EAB\u4E0A\u4F20 </a-button> ')
|
|
52
41
|
]),
|
|
53
42
|
createElementVNode("div", _hoisted_3, [
|
|
54
43
|
createVNode(unref(Upload), {
|
|
@@ -70,10 +70,13 @@ const _sfc_main = defineComponent({
|
|
|
70
70
|
thumb: item.url,
|
|
71
71
|
catalog: item.catalog,
|
|
72
72
|
meta: item,
|
|
73
|
+
options: {
|
|
74
|
+
fit: item.catalog === "image" ? "contain" : "cover"
|
|
75
|
+
},
|
|
73
76
|
"use-mask": true,
|
|
74
77
|
"handlers-key": handlersKey.value,
|
|
75
78
|
onHandle: handleOption
|
|
76
|
-
}, null, 8, ["url", "thumb", "catalog", "meta", "handlers-key"])
|
|
79
|
+
}, null, 8, ["url", "thumb", "catalog", "meta", "options", "handlers-key"])
|
|
77
80
|
]),
|
|
78
81
|
_: 2
|
|
79
82
|
}, 1032, ["item", "select-keys", "disable", "onSelect"]);
|
|
@@ -94,7 +94,7 @@ const _sfc_main = defineComponent({
|
|
|
94
94
|
});
|
|
95
95
|
const isEmpty = computed(() => {
|
|
96
96
|
return Object.keys(filter.value).every((key) => {
|
|
97
|
-
return
|
|
97
|
+
return filter.value[key] === originFilter[key];
|
|
98
98
|
});
|
|
99
99
|
});
|
|
100
100
|
watch(
|
|
@@ -109,13 +109,14 @@ const _sfc_main = defineComponent({
|
|
|
109
109
|
});
|
|
110
110
|
emits("change", result);
|
|
111
111
|
},
|
|
112
|
-
{ deep: true }
|
|
112
|
+
{ deep: true, immediate: true }
|
|
113
113
|
);
|
|
114
114
|
onMounted(() => {
|
|
115
115
|
var _a;
|
|
116
116
|
load();
|
|
117
117
|
if ((_a = props.filterOptions) == null ? void 0 : _a.mediaType) {
|
|
118
118
|
filter.value.catalog = props.filterOptions.mediaType;
|
|
119
|
+
originFilter.catalog = props.filterOptions.mediaType;
|
|
119
120
|
}
|
|
120
121
|
});
|
|
121
122
|
return (_ctx, _cache) => {
|