adtec-core-package 3.2.2 → 3.2.3
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/package.json
CHANGED
|
@@ -644,10 +644,41 @@ onUnmounted(() => {
|
|
|
644
644
|
min-width: 0;
|
|
645
645
|
}
|
|
646
646
|
|
|
647
|
+
/* classic 模式:切换工具栏固定右上角(与 ribbon 图二一致) */
|
|
648
|
+
:deep(.umo-toolbar-actions-classic) {
|
|
649
|
+
position: absolute;
|
|
650
|
+
right: 5px;
|
|
651
|
+
top: 6px;
|
|
652
|
+
z-index: 10;
|
|
653
|
+
border-radius: 6px;
|
|
654
|
+
background-color: var(--umo-color-white, #fff);
|
|
655
|
+
box-shadow:
|
|
656
|
+
0 0 0 1px hsla(0, 0%, 5%, 0.04),
|
|
657
|
+
0 2px 5px hsla(0, 0%, 5%, 0.06);
|
|
658
|
+
}
|
|
659
|
+
|
|
660
|
+
:deep(.toolbar-classic .umo-scrollable-container) {
|
|
661
|
+
padding-right: 108px;
|
|
662
|
+
}
|
|
663
|
+
|
|
664
|
+
:deep(.umo-scrollable-content) {
|
|
665
|
+
overflow-x: hidden;
|
|
666
|
+
overflow-y: hidden;
|
|
667
|
+
scrollbar-width: none;
|
|
668
|
+
-ms-overflow-style: none;
|
|
669
|
+
|
|
670
|
+
&::-webkit-scrollbar {
|
|
671
|
+
display: none;
|
|
672
|
+
width: 0;
|
|
673
|
+
height: 0;
|
|
674
|
+
}
|
|
675
|
+
}
|
|
676
|
+
|
|
647
677
|
:deep(.umo-classic-menu),
|
|
648
678
|
:deep(.umo-virtual-group) {
|
|
649
|
-
flex-wrap:
|
|
650
|
-
|
|
679
|
+
flex-wrap: wrap;
|
|
680
|
+
row-gap: 4px;
|
|
681
|
+
white-space: normal;
|
|
651
682
|
}
|
|
652
683
|
|
|
653
684
|
:deep(.umo-button__text),
|
|
@@ -250,10 +250,12 @@ const setContentFromCache = () => {
|
|
|
250
250
|
padding: 6px 10px;
|
|
251
251
|
display: flex;
|
|
252
252
|
align-items: center;
|
|
253
|
-
&-ribbon
|
|
253
|
+
&-ribbon,
|
|
254
|
+
&-classic {
|
|
254
255
|
position: absolute;
|
|
255
256
|
right: 0;
|
|
256
257
|
top: 1px;
|
|
258
|
+
z-index: 10;
|
|
257
259
|
}
|
|
258
260
|
&-button {
|
|
259
261
|
&.active {
|
|
@@ -337,9 +339,18 @@ const setContentFromCache = () => {
|
|
|
337
339
|
|
|
338
340
|
<style lang="less">
|
|
339
341
|
.umo-skin-modern {
|
|
342
|
+
&.toolbar-classic,
|
|
343
|
+
&.toolbar-ribbon {
|
|
344
|
+
.umo-toolbar-actions {
|
|
345
|
+
right: 5px !important;
|
|
346
|
+
top: 6px !important;
|
|
347
|
+
}
|
|
348
|
+
}
|
|
340
349
|
&.toolbar-classic {
|
|
350
|
+
.umo-scrollable-container {
|
|
351
|
+
padding-right: 108px;
|
|
352
|
+
}
|
|
341
353
|
.umo-toolbar-actions {
|
|
342
|
-
margin: 15px 15px 2px 0;
|
|
343
354
|
border-radius: 6px;
|
|
344
355
|
background-color: var(--umo-color-white);
|
|
345
356
|
box-shadow:
|
|
@@ -352,12 +363,6 @@ const setContentFromCache = () => {
|
|
|
352
363
|
}
|
|
353
364
|
}
|
|
354
365
|
}
|
|
355
|
-
&.toolbar-ribbon {
|
|
356
|
-
.umo-toolbar-actions {
|
|
357
|
-
right: 5px !important;
|
|
358
|
-
top: 6px !important;
|
|
359
|
-
}
|
|
360
|
-
}
|
|
361
366
|
}
|
|
362
367
|
[theme-mode='dark'] .umo-skin-modern {
|
|
363
368
|
&.toolbar-classic {
|
|
@@ -19,6 +19,7 @@
|
|
|
19
19
|
:show-close="showClose"
|
|
20
20
|
:fullscreen="fullscreen"
|
|
21
21
|
:download-loading="downloadLoading"
|
|
22
|
+
:refresh-loading="refreshLoading"
|
|
22
23
|
:min-zoom="MIN_OFFICE_ZOOM"
|
|
23
24
|
:max-zoom="MAX_RICH_PREVIEW_ZOOM"
|
|
24
25
|
@zoom-in="zoomIn"
|
|
@@ -71,7 +72,14 @@
|
|
|
71
72
|
@error="handleError"
|
|
72
73
|
@page-change="previewCurrentPage = $event"
|
|
73
74
|
/>
|
|
74
|
-
<div v-if="
|
|
75
|
+
<div v-if="refreshLoading" class="office-rich-loading">
|
|
76
|
+
<div class="loading-card">
|
|
77
|
+
<span class="loading-spinner" />
|
|
78
|
+
<p class="loading-title">正在重新生成附件,请稍候…</p>
|
|
79
|
+
<p v-if="headerTitle" class="loading-sub">{{ headerTitle }}</p>
|
|
80
|
+
</div>
|
|
81
|
+
</div>
|
|
82
|
+
<div v-else-if="isPreviewLoading && !fileSrc" class="office-rich-loading">
|
|
75
83
|
<div class="loading-card">
|
|
76
84
|
<span class="loading-spinner" />
|
|
77
85
|
<p class="loading-title">{{ loadingMessage }}</p>
|
|
@@ -128,6 +136,7 @@ const props = withDefaults(
|
|
|
128
136
|
showClose?: boolean
|
|
129
137
|
fullscreen?: boolean
|
|
130
138
|
downloadLoading?: boolean
|
|
139
|
+
refreshLoading?: boolean
|
|
131
140
|
}>(),
|
|
132
141
|
{
|
|
133
142
|
showHeader: true,
|
|
@@ -140,6 +149,7 @@ const props = withDefaults(
|
|
|
140
149
|
showClose: false,
|
|
141
150
|
fullscreen: false,
|
|
142
151
|
downloadLoading: false,
|
|
152
|
+
refreshLoading: false,
|
|
143
153
|
},
|
|
144
154
|
)
|
|
145
155
|
|
|
@@ -80,8 +80,16 @@
|
|
|
80
80
|
<el-icon v-else><Download /></el-icon>
|
|
81
81
|
</button>
|
|
82
82
|
|
|
83
|
-
<button
|
|
84
|
-
|
|
83
|
+
<button
|
|
84
|
+
v-if="showRefresh"
|
|
85
|
+
class="toolbar-btn"
|
|
86
|
+
type="button"
|
|
87
|
+
title="刷新附件"
|
|
88
|
+
:disabled="refreshLoading"
|
|
89
|
+
@click="emit('refresh')"
|
|
90
|
+
>
|
|
91
|
+
<el-icon v-if="refreshLoading" class="is-loading"><Loading /></el-icon>
|
|
92
|
+
<el-icon v-else><Refresh /></el-icon>
|
|
85
93
|
</button>
|
|
86
94
|
|
|
87
95
|
<button
|
|
@@ -145,6 +153,7 @@ const props = withDefaults(
|
|
|
145
153
|
showClose?: boolean
|
|
146
154
|
fullscreen?: boolean
|
|
147
155
|
downloadLoading?: boolean
|
|
156
|
+
refreshLoading?: boolean
|
|
148
157
|
minZoom?: number
|
|
149
158
|
maxZoom?: number
|
|
150
159
|
}>(),
|
|
@@ -165,6 +174,7 @@ const props = withDefaults(
|
|
|
165
174
|
showClose: false,
|
|
166
175
|
fullscreen: false,
|
|
167
176
|
downloadLoading: false,
|
|
177
|
+
refreshLoading: false,
|
|
168
178
|
minZoom: MIN_OFFICE_ZOOM,
|
|
169
179
|
maxZoom: MAX_PDF_ZOOM,
|
|
170
180
|
},
|