@jr-public/jr-upload-ui 1.0.4 → 1.0.6
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 +1 -1
- package/packages/vue2/src/JrUploadModal.vue +338 -210
- package/packages/vue3/src/JrUploadModalVUE3.vue +340 -212
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div class="jr-upload-modal-wrapper">
|
|
3
3
|
<!-- 主弹框 -->
|
|
4
|
-
<div
|
|
5
|
-
v-if="visible"
|
|
6
|
-
class="jr-upload-modal-overlay"
|
|
7
|
-
|
|
8
|
-
|
|
4
|
+
<div
|
|
5
|
+
v-if="visible"
|
|
6
|
+
class="jr-upload-modal-overlay"
|
|
7
|
+
:class="{ 'with-overlay': showOverlay, 'without-overlay': !showOverlay }"
|
|
8
|
+
@click="handleOverlayClick"
|
|
9
|
+
>
|
|
9
10
|
<!-- 弹框容器 -->
|
|
10
11
|
<div
|
|
11
12
|
class="modal-container"
|
|
@@ -28,7 +29,7 @@
|
|
|
28
29
|
</div>
|
|
29
30
|
|
|
30
31
|
<!-- 主内容区域 -->
|
|
31
|
-
<div class="modal-content" :style="{ backgroundImage: 'url(' + config.baseUrl + '/images/bg.jpg)' }">
|
|
32
|
+
<div class="modal-content" :style="{ backgroundImage: showOverlay ? 'url(' + config.baseUrl + '/images/bg.jpg)' : 'none' }">
|
|
32
33
|
<div class="main-container">
|
|
33
34
|
<div class="content-grid">
|
|
34
35
|
<!-- 左侧上传区域 -->
|
|
@@ -256,18 +257,33 @@
|
|
|
256
257
|
</div>
|
|
257
258
|
</template>
|
|
258
259
|
|
|
259
|
-
<script>
|
|
260
|
-
import { ref, reactive, computed, watch, onMounted, onBeforeUnmount, defineEmits, defineProps, nextTick, getCurrentInstance } from 'vue'
|
|
261
|
-
|
|
262
|
-
|
|
260
|
+
<script>
|
|
261
|
+
import { ref, reactive, computed, watch, onMounted, onBeforeUnmount, defineEmits, defineProps, nextTick, getCurrentInstance } from 'vue'
|
|
262
|
+
|
|
263
|
+
// 组件统一允许的单文件最大值,maxSize 对外单位保持为 KB
|
|
264
|
+
const MAX_UPLOAD_SIZE_KB = 10 * 1024 * 1024
|
|
265
|
+
|
|
266
|
+
export default {
|
|
263
267
|
name: 'JrUploadModalVue3',
|
|
264
268
|
|
|
265
269
|
props: {
|
|
266
270
|
// 基础配置
|
|
267
|
-
visible: {
|
|
268
|
-
type: Boolean,
|
|
269
|
-
default: false
|
|
270
|
-
},
|
|
271
|
+
visible: {
|
|
272
|
+
type: Boolean,
|
|
273
|
+
default: false
|
|
274
|
+
},
|
|
275
|
+
showOverlay: {
|
|
276
|
+
type: Boolean,
|
|
277
|
+
default: false
|
|
278
|
+
},
|
|
279
|
+
autoClose: {
|
|
280
|
+
type: Boolean,
|
|
281
|
+
default: false
|
|
282
|
+
},
|
|
283
|
+
autoCloseDelay: {
|
|
284
|
+
type: Number,
|
|
285
|
+
default: 1000
|
|
286
|
+
},
|
|
271
287
|
title: {
|
|
272
288
|
type: String,
|
|
273
289
|
default: '文件上传'
|
|
@@ -293,7 +309,7 @@ export default {
|
|
|
293
309
|
|
|
294
310
|
// 文件限制
|
|
295
311
|
accept: { type: String, default: '' },
|
|
296
|
-
maxSize: { type: Number, default:
|
|
312
|
+
maxSize: { type: Number, default: MAX_UPLOAD_SIZE_KB }, // KB,默认最大10GB
|
|
297
313
|
maxCount: { type: Number, default: 10 },
|
|
298
314
|
multiple: { type: Boolean, default: true },
|
|
299
315
|
|
|
@@ -350,9 +366,10 @@ export default {
|
|
|
350
366
|
const uploadSuccess = ref(false)
|
|
351
367
|
|
|
352
368
|
// 弹框控制
|
|
353
|
-
const isMinimized = ref(false)
|
|
354
|
-
const isMinimizing = ref(false)
|
|
355
|
-
const isRestoring = ref(false)
|
|
369
|
+
const isMinimized = ref(false)
|
|
370
|
+
const isMinimizing = ref(false)
|
|
371
|
+
const isRestoring = ref(false)
|
|
372
|
+
const autoCloseTimer = ref(null)
|
|
356
373
|
|
|
357
374
|
// 拖拽相关
|
|
358
375
|
const dragStartX = ref(0)
|
|
@@ -389,14 +406,25 @@ export default {
|
|
|
389
406
|
const fileInput = ref(null)
|
|
390
407
|
const uploadButton = ref(null)
|
|
391
408
|
|
|
392
|
-
// 计算属性
|
|
393
|
-
const fileRestrictions = computed(() => {
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
409
|
+
// 计算属性
|
|
410
|
+
const fileRestrictions = computed(() => {
|
|
411
|
+
const allowedExtensions = props.accept ? props.accept.split(',').map(ext => {
|
|
412
|
+
const trimmed = ext.trim()
|
|
413
|
+
return trimmed.startsWith('.') ? trimmed : '.' + trimmed
|
|
414
|
+
}) : null
|
|
415
|
+
|
|
416
|
+
if (allowedExtensions) {
|
|
417
|
+
['.aqtf', '.hftf', '.gef', '.tb_dg_gef', '.nsxtf', '.sxt2', '.gbq7', '.jmbs'].forEach(ext => {
|
|
418
|
+
if (!allowedExtensions.some(item => item.toLowerCase() === ext)) {
|
|
419
|
+
allowedExtensions.push(ext)
|
|
420
|
+
}
|
|
421
|
+
})
|
|
422
|
+
}
|
|
423
|
+
|
|
424
|
+
return {
|
|
425
|
+
allowedExtensions,
|
|
426
|
+
// 业务可以设置更小的限制,但不能突破组件统一的10GB单文件上限
|
|
427
|
+
maxSizeBytes: Math.min(props.maxSize && props.maxSize > 0 ? props.maxSize : MAX_UPLOAD_SIZE_KB, MAX_UPLOAD_SIZE_KB) * 1024,
|
|
400
428
|
maxFileCount: props.maxCount && props.maxCount > 0 ? props.maxCount : null,
|
|
401
429
|
multiple: props.multiple,
|
|
402
430
|
showFileTypeInfo: props.showFileTypeInfo,
|
|
@@ -515,8 +543,23 @@ export default {
|
|
|
515
543
|
cleanup()
|
|
516
544
|
})
|
|
517
545
|
|
|
518
|
-
// 方法定义
|
|
519
|
-
|
|
546
|
+
// 方法定义
|
|
547
|
+
/**
|
|
548
|
+
* 判断文件后缀是否允许上传,投标成果类后缀兼容包含 gef 或 sxt 的扩展名。
|
|
549
|
+
*/
|
|
550
|
+
const isAllowedFileExtension = (fileExt, allowedExtensions) => {
|
|
551
|
+
const normalizedExt = (fileExt || '').toLowerCase()
|
|
552
|
+
if (!normalizedExt) return false
|
|
553
|
+
|
|
554
|
+
if (['.aqtf', '.hftf', '.gef', '.tb_dg_gef', '.nsxtf', '.sxt2', '.gbq7', '.jmbs'].includes(normalizedExt)
|
|
555
|
+
|| normalizedExt.includes('gef') || normalizedExt.includes('sxt')) {
|
|
556
|
+
return true
|
|
557
|
+
}
|
|
558
|
+
|
|
559
|
+
return allowedExtensions.some(ext => ext.toLowerCase() === normalizedExt)
|
|
560
|
+
}
|
|
561
|
+
|
|
562
|
+
const initializeComponent = async () => {
|
|
520
563
|
isElectronEnv.value = detectElectronEnvironment()
|
|
521
564
|
|
|
522
565
|
// 发送环境检测事件
|
|
@@ -590,12 +633,12 @@ export default {
|
|
|
590
633
|
const baseUrl = props.config.baseUrl
|
|
591
634
|
const dependencies = [
|
|
592
635
|
`${baseUrl}/js/aliyun-oss-sdk-6.18.0.min.js`,
|
|
593
|
-
`${baseUrl}/js/jr-transfer-sdk.js`,
|
|
636
|
+
`${baseUrl}/js/jr-transfer-sdk.js?v=20260814-10gb`,
|
|
594
637
|
`${baseUrl}/js/jszip.min.js`
|
|
595
638
|
]
|
|
596
639
|
|
|
597
640
|
// 检查是否已加载
|
|
598
|
-
if (window.JrTransferSDK && window.OSS && window.JSZip) {
|
|
641
|
+
if (window.JrTransferSDK && window.JrTransferSDK.SDK_VERSION === '20260814-10gb' && window.OSS && window.JSZip) {
|
|
599
642
|
return Promise.resolve()
|
|
600
643
|
}
|
|
601
644
|
|
|
@@ -626,7 +669,11 @@ export default {
|
|
|
626
669
|
}
|
|
627
670
|
}
|
|
628
671
|
|
|
629
|
-
const cleanup = () => {
|
|
672
|
+
const cleanup = () => {
|
|
673
|
+
if (autoCloseTimer.value) {
|
|
674
|
+
clearTimeout(autoCloseTimer.value)
|
|
675
|
+
autoCloseTimer.value = null
|
|
676
|
+
}
|
|
630
677
|
// 清理资源
|
|
631
678
|
if (_dynamicStyle.value) {
|
|
632
679
|
_dynamicStyle.value.remove()
|
|
@@ -634,7 +681,11 @@ export default {
|
|
|
634
681
|
}
|
|
635
682
|
}
|
|
636
683
|
|
|
637
|
-
const resetState = () => {
|
|
684
|
+
const resetState = () => {
|
|
685
|
+
if (autoCloseTimer.value) {
|
|
686
|
+
clearTimeout(autoCloseTimer.value)
|
|
687
|
+
autoCloseTimer.value = null
|
|
688
|
+
}
|
|
638
689
|
filesToUpload.value = []
|
|
639
690
|
uploadProgress.total = 0
|
|
640
691
|
uploadProgress.completed = 0
|
|
@@ -652,22 +703,10 @@ export default {
|
|
|
652
703
|
tempLocalPaths.value = []
|
|
653
704
|
}
|
|
654
705
|
|
|
655
|
-
// 动态设置CSS背景图片
|
|
656
|
-
const setDynamicBackgroundImages = () => {
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
// 设置提示图标背景
|
|
660
|
-
const style = document.createElement('style')
|
|
661
|
-
style.textContent = `
|
|
662
|
-
.jr-upload-modal-wrapper .restrictions-title::before {
|
|
663
|
-
background-image: url('${props.config.baseUrl}/images/tipsicon.svg') !important;
|
|
664
|
-
}
|
|
665
|
-
`
|
|
666
|
-
document.head.appendChild(style)
|
|
667
|
-
|
|
668
|
-
// 保存引用以便清理
|
|
669
|
-
_dynamicStyle.value = style
|
|
670
|
-
}
|
|
706
|
+
// 动态设置CSS背景图片
|
|
707
|
+
const setDynamicBackgroundImages = () => {
|
|
708
|
+
// 提示图标使用组件内 CSS 绘制,避免外部系统缓存图片导致颜色不一致
|
|
709
|
+
}
|
|
671
710
|
|
|
672
711
|
// 加载压缩配置
|
|
673
712
|
const loadCompressionConfig = async () => {
|
|
@@ -930,7 +969,7 @@ export default {
|
|
|
930
969
|
// 文件类型验证
|
|
931
970
|
if (fileRestrictions.value.allowedExtensions) {
|
|
932
971
|
const fileExt = '.' + file.name.toLowerCase().split('.').pop()
|
|
933
|
-
if (!fileRestrictions.value.allowedExtensions
|
|
972
|
+
if (!isAllowedFileExtension(fileExt, fileRestrictions.value.allowedExtensions)) {
|
|
934
973
|
showError(`不支持的文件类型 ${fileExt}`)
|
|
935
974
|
continue
|
|
936
975
|
}
|
|
@@ -1589,8 +1628,17 @@ export default {
|
|
|
1589
1628
|
'pdf': 'application/pdf',
|
|
1590
1629
|
'doc': 'application/msword',
|
|
1591
1630
|
'docx': 'application/vnd.openxmlformats-officedocument.wordprocessingml.document',
|
|
1592
|
-
'xls': 'application/vnd.ms-excel',
|
|
1593
|
-
'xlsx': 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet',
|
|
1631
|
+
'xls': 'application/vnd.ms-excel',
|
|
1632
|
+
'xlsx': 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet',
|
|
1633
|
+
'et': 'application/vnd.ms-excel',
|
|
1634
|
+
'aqtf': 'application/octet-stream',
|
|
1635
|
+
'hftf': 'application/octet-stream',
|
|
1636
|
+
'gef': 'application/octet-stream',
|
|
1637
|
+
'tb_dg_gef': 'application/octet-stream',
|
|
1638
|
+
'nsxtf': 'application/octet-stream',
|
|
1639
|
+
'sxt2': 'application/octet-stream',
|
|
1640
|
+
'gbq7': 'application/octet-stream',
|
|
1641
|
+
'jmbs': 'application/octet-stream',
|
|
1594
1642
|
'ppt': 'application/vnd.ms-powerpoint',
|
|
1595
1643
|
'pptx': 'application/vnd.openxmlformats-officedocument.presentationml.presentation',
|
|
1596
1644
|
'txt': 'text/plain',
|
|
@@ -1947,7 +1995,9 @@ export default {
|
|
|
1947
1995
|
}
|
|
1948
1996
|
}
|
|
1949
1997
|
|
|
1950
|
-
|
|
1998
|
+
scheduleAutoClose()
|
|
1999
|
+
|
|
2000
|
+
console.log('✅ 上传完成:', uploadResult)
|
|
1951
2001
|
|
|
1952
2002
|
} catch (error) {
|
|
1953
2003
|
console.error('上传过程出错:', error)
|
|
@@ -2306,7 +2356,24 @@ export default {
|
|
|
2306
2356
|
}, 400)
|
|
2307
2357
|
}
|
|
2308
2358
|
|
|
2309
|
-
const
|
|
2359
|
+
const scheduleAutoClose = () => {
|
|
2360
|
+
if (!props.autoClose) {
|
|
2361
|
+
return
|
|
2362
|
+
}
|
|
2363
|
+
if (autoCloseTimer.value) {
|
|
2364
|
+
clearTimeout(autoCloseTimer.value)
|
|
2365
|
+
}
|
|
2366
|
+
const parsedDelay = Number(props.autoCloseDelay)
|
|
2367
|
+
const delay = Number.isFinite(parsedDelay) && parsedDelay >= 0 ? Math.floor(parsedDelay) : 1000
|
|
2368
|
+
autoCloseTimer.value = setTimeout(() => {
|
|
2369
|
+
autoCloseTimer.value = null
|
|
2370
|
+
if (props.visible) {
|
|
2371
|
+
closeModal()
|
|
2372
|
+
}
|
|
2373
|
+
}, delay)
|
|
2374
|
+
}
|
|
2375
|
+
|
|
2376
|
+
const closeModal = () => {
|
|
2310
2377
|
resetState()
|
|
2311
2378
|
emit('close')
|
|
2312
2379
|
emit('update:visible', false)
|
|
@@ -2317,10 +2384,13 @@ export default {
|
|
|
2317
2384
|
}
|
|
2318
2385
|
}
|
|
2319
2386
|
|
|
2320
|
-
const handleOverlayClick = () => {
|
|
2321
|
-
if (!
|
|
2322
|
-
|
|
2323
|
-
}
|
|
2387
|
+
const handleOverlayClick = () => {
|
|
2388
|
+
if (!props.showOverlay) {
|
|
2389
|
+
return
|
|
2390
|
+
}
|
|
2391
|
+
if (!isMinimized.value) {
|
|
2392
|
+
closeModal()
|
|
2393
|
+
}
|
|
2324
2394
|
}
|
|
2325
2395
|
|
|
2326
2396
|
// 拖拽功能
|
|
@@ -2465,45 +2535,72 @@ export default {
|
|
|
2465
2535
|
}
|
|
2466
2536
|
|
|
2467
2537
|
/* 弹框遮罩层 - 半透明遮罩 */
|
|
2468
|
-
.jr-upload-modal-overlay {
|
|
2469
|
-
position: fixed;
|
|
2470
|
-
top: 0;
|
|
2471
|
-
left: 0;
|
|
2472
|
-
width: 100%;
|
|
2473
|
-
height: 100%;
|
|
2474
|
-
background:
|
|
2475
|
-
backdrop-filter:
|
|
2476
|
-
z-index: 9999;
|
|
2477
|
-
display: flex;
|
|
2478
|
-
justify-content: center;
|
|
2479
|
-
align-items: center;
|
|
2480
|
-
padding: 20px;
|
|
2481
|
-
overflow: hidden;
|
|
2482
|
-
|
|
2538
|
+
.jr-upload-modal-overlay {
|
|
2539
|
+
position: fixed;
|
|
2540
|
+
top: 0;
|
|
2541
|
+
left: 0;
|
|
2542
|
+
width: 100%;
|
|
2543
|
+
height: 100%;
|
|
2544
|
+
background: transparent;
|
|
2545
|
+
backdrop-filter: none;
|
|
2546
|
+
z-index: 9999;
|
|
2547
|
+
display: flex;
|
|
2548
|
+
justify-content: center;
|
|
2549
|
+
align-items: center;
|
|
2550
|
+
padding: 20px;
|
|
2551
|
+
overflow: hidden;
|
|
2552
|
+
pointer-events: none;
|
|
2553
|
+
}
|
|
2554
|
+
|
|
2555
|
+
.jr-upload-modal-overlay.with-overlay {
|
|
2556
|
+
background: rgba(0, 0, 0, 0.5);
|
|
2557
|
+
backdrop-filter: blur(2px);
|
|
2558
|
+
justify-content: center;
|
|
2559
|
+
align-items: center;
|
|
2560
|
+
padding: 20px;
|
|
2561
|
+
pointer-events: auto;
|
|
2562
|
+
}
|
|
2483
2563
|
|
|
2484
2564
|
/* 弹框容器 - 模拟jr-simple-sdk的模态框 */
|
|
2485
2565
|
/* 弹框容器 */
|
|
2486
|
-
.modal-container {
|
|
2487
|
-
width: 90%;
|
|
2488
|
-
max-width: 1200px;
|
|
2489
|
-
height: 80vh;
|
|
2490
|
-
max-height: 800px;
|
|
2491
|
-
background: rgba(255, 255, 255, 0.95);
|
|
2492
|
-
backdrop-filter: blur(20px);
|
|
2493
|
-
-webkit-backdrop-filter: blur(20px);
|
|
2494
|
-
border-radius: 12px;
|
|
2495
|
-
box-shadow:
|
|
2496
|
-
0 20px 60px rgba(0, 0, 0, 0.15),
|
|
2497
|
-
0 8px 32px rgba(0, 0, 0, 0.1),
|
|
2498
|
-
0 1px 3px rgba(0, 0, 0, 0.05);
|
|
2499
|
-
border: 1px solid rgba(255, 255, 255, 0.5);
|
|
2500
|
-
overflow: hidden;
|
|
2501
|
-
position: relative;
|
|
2502
|
-
display: flex;
|
|
2503
|
-
flex-direction: column;
|
|
2504
|
-
transform: scale(1);
|
|
2505
|
-
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
|
2506
|
-
|
|
2566
|
+
.modal-container {
|
|
2567
|
+
width: 90%;
|
|
2568
|
+
max-width: 1200px;
|
|
2569
|
+
height: 80vh;
|
|
2570
|
+
max-height: 800px;
|
|
2571
|
+
background: rgba(255, 255, 255, 0.95);
|
|
2572
|
+
backdrop-filter: blur(20px);
|
|
2573
|
+
-webkit-backdrop-filter: blur(20px);
|
|
2574
|
+
border-radius: 12px;
|
|
2575
|
+
box-shadow:
|
|
2576
|
+
0 20px 60px rgba(0, 0, 0, 0.15),
|
|
2577
|
+
0 8px 32px rgba(0, 0, 0, 0.1),
|
|
2578
|
+
0 1px 3px rgba(0, 0, 0, 0.05);
|
|
2579
|
+
border: 1px solid rgba(255, 255, 255, 0.5);
|
|
2580
|
+
overflow: hidden;
|
|
2581
|
+
position: relative;
|
|
2582
|
+
display: flex;
|
|
2583
|
+
flex-direction: column;
|
|
2584
|
+
transform: scale(1);
|
|
2585
|
+
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
|
2586
|
+
pointer-events: auto;
|
|
2587
|
+
}
|
|
2588
|
+
|
|
2589
|
+
.jr-upload-modal-overlay.with-overlay .modal-container {
|
|
2590
|
+
width: 90%;
|
|
2591
|
+
max-width: 1200px;
|
|
2592
|
+
height: 80vh;
|
|
2593
|
+
max-height: 800px;
|
|
2594
|
+
background: rgba(255, 255, 255, 0.95);
|
|
2595
|
+
backdrop-filter: blur(20px);
|
|
2596
|
+
-webkit-backdrop-filter: blur(20px);
|
|
2597
|
+
border-radius: 12px;
|
|
2598
|
+
box-shadow:
|
|
2599
|
+
0 20px 60px rgba(0, 0, 0, 0.15),
|
|
2600
|
+
0 8px 32px rgba(0, 0, 0, 0.1),
|
|
2601
|
+
0 1px 3px rgba(0, 0, 0, 0.05);
|
|
2602
|
+
border: 1px solid rgba(255, 255, 255, 0.5);
|
|
2603
|
+
}
|
|
2507
2604
|
|
|
2508
2605
|
/* 模拟iframe的body区域 */
|
|
2509
2606
|
.modal-content {
|
|
@@ -2512,32 +2609,42 @@ export default {
|
|
|
2512
2609
|
position: relative;
|
|
2513
2610
|
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', sans-serif;
|
|
2514
2611
|
/* 背景图片通过内联样式动态设置 */
|
|
2515
|
-
background-size: cover;
|
|
2516
|
-
display: flex;
|
|
2517
|
-
justify-content: center;
|
|
2518
|
-
align-items: center;
|
|
2519
|
-
padding:
|
|
2520
|
-
border-radius: 0
|
|
2521
|
-
}
|
|
2612
|
+
background-size: cover;
|
|
2613
|
+
display: flex;
|
|
2614
|
+
justify-content: center;
|
|
2615
|
+
align-items: center;
|
|
2616
|
+
padding: 0;
|
|
2617
|
+
border-radius: 0;
|
|
2618
|
+
}
|
|
2619
|
+
|
|
2620
|
+
.jr-upload-modal-overlay.with-overlay .modal-content {
|
|
2621
|
+
padding: 20px;
|
|
2622
|
+
border-radius: 0 0 12px 12px;
|
|
2623
|
+
}
|
|
2522
2624
|
|
|
2523
2625
|
/* 标题栏 */
|
|
2524
|
-
.modal-header {
|
|
2525
|
-
height: 50px;
|
|
2526
|
-
background: linear-gradient(135deg,
|
|
2527
|
-
border-bottom: 1px solid rgba(
|
|
2528
|
-
display: flex;
|
|
2529
|
-
align-items: center;
|
|
2530
|
-
justify-content: space-between;
|
|
2531
|
-
padding: 0 20px;
|
|
2532
|
-
position: relative;
|
|
2533
|
-
cursor: move;
|
|
2534
|
-
user-select: none;
|
|
2535
|
-
|
|
2536
|
-
|
|
2537
|
-
|
|
2538
|
-
|
|
2539
|
-
|
|
2540
|
-
|
|
2626
|
+
.modal-header {
|
|
2627
|
+
height: 50px !important;
|
|
2628
|
+
background: linear-gradient(135deg, #0c5ee3 0%, rgba(59, 130, 246, 0.9) 100%) !important;
|
|
2629
|
+
border-bottom: 1px solid rgba(12, 94, 227, 0.25) !important;
|
|
2630
|
+
display: flex;
|
|
2631
|
+
align-items: center;
|
|
2632
|
+
justify-content: space-between;
|
|
2633
|
+
padding: 0 20px;
|
|
2634
|
+
position: relative;
|
|
2635
|
+
cursor: move;
|
|
2636
|
+
user-select: none;
|
|
2637
|
+
border-radius: 0;
|
|
2638
|
+
}
|
|
2639
|
+
|
|
2640
|
+
.jr-upload-modal-overlay.with-overlay .modal-header {
|
|
2641
|
+
border-radius: 12px 12px 0 0;
|
|
2642
|
+
}
|
|
2643
|
+
|
|
2644
|
+
.modal-title {
|
|
2645
|
+
font-size: 16px;
|
|
2646
|
+
font-weight: 500;
|
|
2647
|
+
color: #fff !important;
|
|
2541
2648
|
display: flex;
|
|
2542
2649
|
align-items: center;
|
|
2543
2650
|
gap: 8px;
|
|
@@ -2554,67 +2661,82 @@ export default {
|
|
|
2554
2661
|
width: 16px;
|
|
2555
2662
|
height: 16px;
|
|
2556
2663
|
border-radius: 50%;
|
|
2557
|
-
border: none;
|
|
2664
|
+
border: none !important;
|
|
2558
2665
|
cursor: pointer;
|
|
2559
2666
|
transition: all 0.2s ease;
|
|
2560
2667
|
position: relative;
|
|
2561
|
-
display: flex;
|
|
2562
|
-
align-items: center;
|
|
2563
|
-
justify-content: center;
|
|
2564
|
-
|
|
2565
|
-
|
|
2566
|
-
|
|
2567
|
-
|
|
2568
|
-
|
|
2569
|
-
|
|
2570
|
-
.
|
|
2571
|
-
|
|
2572
|
-
|
|
2573
|
-
|
|
2574
|
-
|
|
2575
|
-
|
|
2576
|
-
|
|
2668
|
+
display: flex;
|
|
2669
|
+
align-items: center;
|
|
2670
|
+
justify-content: center;
|
|
2671
|
+
appearance: none !important;
|
|
2672
|
+
-webkit-appearance: none !important;
|
|
2673
|
+
}
|
|
2674
|
+
|
|
2675
|
+
.control-btn:hover {
|
|
2676
|
+
transform: scale(1.1);
|
|
2677
|
+
background: rgba(255, 255, 255, 0.16) !important;
|
|
2678
|
+
}
|
|
2679
|
+
|
|
2680
|
+
.minimize-btn {
|
|
2681
|
+
background: none !important;
|
|
2682
|
+
}
|
|
2683
|
+
|
|
2684
|
+
.minimize-btn:hover {
|
|
2685
|
+
background: rgba(255, 255, 255, 0.16) !important;
|
|
2686
|
+
}
|
|
2577
2687
|
|
|
2578
2688
|
.minimize-btn::after {
|
|
2579
2689
|
content: '';
|
|
2580
|
-
width:
|
|
2581
|
-
height:
|
|
2582
|
-
background: #fff;
|
|
2690
|
+
width: 10px;
|
|
2691
|
+
height: 2px;
|
|
2692
|
+
background: #fff !important;
|
|
2583
2693
|
position: absolute;
|
|
2584
2694
|
}
|
|
2585
2695
|
|
|
2586
|
-
.close-btn {
|
|
2587
|
-
background:
|
|
2588
|
-
}
|
|
2589
|
-
|
|
2590
|
-
.close-btn:hover {
|
|
2591
|
-
background:
|
|
2592
|
-
}
|
|
2696
|
+
.close-btn {
|
|
2697
|
+
background: none !important;
|
|
2698
|
+
}
|
|
2699
|
+
|
|
2700
|
+
.close-btn:hover {
|
|
2701
|
+
background: rgba(255, 255, 255, 0.16) !important;
|
|
2702
|
+
}
|
|
2593
2703
|
|
|
2594
2704
|
.close-btn::after {
|
|
2595
|
-
content: '
|
|
2596
|
-
font-size:
|
|
2597
|
-
color: #fff;
|
|
2705
|
+
content: '\2715';
|
|
2706
|
+
font-size: 14px;
|
|
2707
|
+
color: #fff !important;
|
|
2598
2708
|
line-height: 1;
|
|
2599
2709
|
}
|
|
2600
2710
|
|
|
2601
|
-
.main-container {
|
|
2602
|
-
margin-left: 0!important;
|
|
2603
|
-
width:
|
|
2604
|
-
max-width:
|
|
2605
|
-
height:
|
|
2606
|
-
max-height:
|
|
2607
|
-
background:
|
|
2608
|
-
backdrop-filter:
|
|
2609
|
-
-webkit-backdrop-filter:
|
|
2610
|
-
box-shadow:
|
|
2611
|
-
|
|
2612
|
-
|
|
2613
|
-
|
|
2614
|
-
|
|
2615
|
-
|
|
2616
|
-
|
|
2617
|
-
|
|
2711
|
+
.main-container {
|
|
2712
|
+
margin-left: 0!important;
|
|
2713
|
+
width: 100%;
|
|
2714
|
+
max-width: none;
|
|
2715
|
+
height: 100%!important;
|
|
2716
|
+
max-height: none;
|
|
2717
|
+
background: transparent;
|
|
2718
|
+
backdrop-filter: none;
|
|
2719
|
+
-webkit-backdrop-filter: none;
|
|
2720
|
+
box-shadow: none;
|
|
2721
|
+
overflow: hidden;
|
|
2722
|
+
position: relative;
|
|
2723
|
+
border-radius: 0;
|
|
2724
|
+
}
|
|
2725
|
+
|
|
2726
|
+
.jr-upload-modal-overlay.with-overlay .main-container {
|
|
2727
|
+
width: 92%;
|
|
2728
|
+
max-width: 1200px;
|
|
2729
|
+
height: 85%!important;
|
|
2730
|
+
max-height: 800px;
|
|
2731
|
+
background: rgba(69, 70, 60, 0.5);
|
|
2732
|
+
backdrop-filter: blur(20px);
|
|
2733
|
+
-webkit-backdrop-filter: blur(20px);
|
|
2734
|
+
box-shadow:
|
|
2735
|
+
0 8px 32px rgba(0, 0, 0, 0.1),
|
|
2736
|
+
0 1px 3px rgba(0, 0, 0, 0.05),
|
|
2737
|
+
inset 0 1px 0 rgba(255, 255, 255, 0.6);
|
|
2738
|
+
border-radius: 12px;
|
|
2739
|
+
}
|
|
2618
2740
|
|
|
2619
2741
|
.content-grid {
|
|
2620
2742
|
display: grid;
|
|
@@ -2649,8 +2771,8 @@ export default {
|
|
|
2649
2771
|
width: 200%;
|
|
2650
2772
|
height: 200%;
|
|
2651
2773
|
background:
|
|
2652
|
-
radial-gradient(circle at 30% 70%, rgba(
|
|
2653
|
-
radial-gradient(circle at 70% 30%, rgba(
|
|
2774
|
+
radial-gradient(circle at 30% 70%, rgba(12, 94, 227, 0.06) 0%, transparent 40%),
|
|
2775
|
+
radial-gradient(circle at 70% 30%, rgba(59, 130, 246, 0.04) 0%, transparent 35%);
|
|
2654
2776
|
animation: gentleGlow 20s ease-in-out infinite;
|
|
2655
2777
|
pointer-events: none;
|
|
2656
2778
|
z-index: 0;
|
|
@@ -2667,7 +2789,7 @@ export default {
|
|
|
2667
2789
|
}
|
|
2668
2790
|
}
|
|
2669
2791
|
|
|
2670
|
-
/*
|
|
2792
|
+
/* 左下角渐变蓝点 */
|
|
2671
2793
|
.upload-panel::after {
|
|
2672
2794
|
content: '';
|
|
2673
2795
|
position: absolute;
|
|
@@ -2676,10 +2798,10 @@ export default {
|
|
|
2676
2798
|
width: 200px;
|
|
2677
2799
|
height: 200px;
|
|
2678
2800
|
background: linear-gradient(135deg,
|
|
2679
|
-
rgba(
|
|
2680
|
-
rgba(
|
|
2681
|
-
rgba(
|
|
2682
|
-
rgba(
|
|
2801
|
+
rgba(12, 94, 227, 0.8) 0%,
|
|
2802
|
+
rgba(37, 99, 235, 0.7) 30%,
|
|
2803
|
+
rgba(96, 165, 250, 0.6) 60%,
|
|
2804
|
+
rgba(147, 197, 253, 0.5) 100%);
|
|
2683
2805
|
border-radius: 50%;
|
|
2684
2806
|
filter: blur(40px);
|
|
2685
2807
|
pointer-events: none;
|
|
@@ -2715,14 +2837,14 @@ export default {
|
|
|
2715
2837
|
height: 100px;
|
|
2716
2838
|
margin: 0 auto 24px;
|
|
2717
2839
|
background: linear-gradient(135deg,
|
|
2718
|
-
rgba(
|
|
2719
|
-
rgba(
|
|
2840
|
+
rgba(147, 197, 253, 0.8) 0%,
|
|
2841
|
+
rgba(191, 219, 254, 0.5) 100%);
|
|
2720
2842
|
border-radius: 50%;
|
|
2721
2843
|
display: flex;
|
|
2722
2844
|
align-items: center;
|
|
2723
2845
|
justify-content: center;
|
|
2724
2846
|
font-size: 48px;
|
|
2725
|
-
color: #
|
|
2847
|
+
color: #0c5ee3;
|
|
2726
2848
|
transition: all 0.3s ease;
|
|
2727
2849
|
position: relative;
|
|
2728
2850
|
overflow: visible;
|
|
@@ -2765,7 +2887,7 @@ export default {
|
|
|
2765
2887
|
position: relative;
|
|
2766
2888
|
width: 3px;
|
|
2767
2889
|
height: 25px;
|
|
2768
|
-
background: linear-gradient(180deg, #
|
|
2890
|
+
background: linear-gradient(180deg, #0c5ee3, #3b82f6);
|
|
2769
2891
|
border-radius: 2px;
|
|
2770
2892
|
animation: arrowFlow 2.4s ease-in-out infinite;
|
|
2771
2893
|
}
|
|
@@ -2780,7 +2902,7 @@ export default {
|
|
|
2780
2902
|
height: 0;
|
|
2781
2903
|
border-left: 6px solid transparent;
|
|
2782
2904
|
border-right: 6px solid transparent;
|
|
2783
|
-
border-top: 10px solid #
|
|
2905
|
+
border-top: 10px solid #3b82f6;
|
|
2784
2906
|
opacity: 0.7;
|
|
2785
2907
|
}
|
|
2786
2908
|
|
|
@@ -2834,7 +2956,7 @@ export default {
|
|
|
2834
2956
|
}
|
|
2835
2957
|
|
|
2836
2958
|
.upload-panel.active .upload-visual {
|
|
2837
|
-
background: linear-gradient(135deg, rgba(
|
|
2959
|
+
background: linear-gradient(135deg, rgba(12, 94, 227, 0.2), rgba(59, 130, 246, 0.2));
|
|
2838
2960
|
transform: scale(1.05);
|
|
2839
2961
|
}
|
|
2840
2962
|
|
|
@@ -2848,7 +2970,7 @@ export default {
|
|
|
2848
2970
|
}
|
|
2849
2971
|
|
|
2850
2972
|
.upload-panel:hover .upload-visual {
|
|
2851
|
-
background: linear-gradient(135deg, rgba(
|
|
2973
|
+
background: linear-gradient(135deg, rgba(12, 94, 227, 0.15), rgba(59, 130, 246, 0.15));
|
|
2852
2974
|
transform: scale(1.02);
|
|
2853
2975
|
}
|
|
2854
2976
|
|
|
@@ -2875,7 +2997,7 @@ export default {
|
|
|
2875
2997
|
}
|
|
2876
2998
|
|
|
2877
2999
|
.upload-button {
|
|
2878
|
-
background: linear-gradient(90deg, #
|
|
3000
|
+
background: linear-gradient(90deg, #0c5ee3, #3b82f6);
|
|
2879
3001
|
color: white;
|
|
2880
3002
|
border: none;
|
|
2881
3003
|
padding: 10px 24px;
|
|
@@ -2884,16 +3006,16 @@ export default {
|
|
|
2884
3006
|
font-weight: 500;
|
|
2885
3007
|
cursor: pointer;
|
|
2886
3008
|
transition: all 0.3s ease;
|
|
2887
|
-
box-shadow: 0 6px 20px rgba(
|
|
3009
|
+
box-shadow: 0 6px 20px rgba(12, 94, 227, 0.3);
|
|
2888
3010
|
margin-bottom: 24px;
|
|
2889
3011
|
position: relative;
|
|
2890
3012
|
z-index: 2;
|
|
2891
3013
|
}
|
|
2892
3014
|
|
|
2893
3015
|
.upload-button:hover {
|
|
2894
|
-
background: linear-gradient(90deg, #
|
|
3016
|
+
background: linear-gradient(90deg, #084bb8, #0b56d0);
|
|
2895
3017
|
transform: translateY(-2px);
|
|
2896
|
-
box-shadow: 0 8px 25px rgba(
|
|
3018
|
+
box-shadow: 0 8px 25px rgba(12, 94, 227, 0.4);
|
|
2897
3019
|
}
|
|
2898
3020
|
|
|
2899
3021
|
.upload-button:disabled {
|
|
@@ -2926,22 +3048,28 @@ export default {
|
|
|
2926
3048
|
gap: 6px;
|
|
2927
3049
|
}
|
|
2928
3050
|
|
|
2929
|
-
.restrictions-title::before {
|
|
2930
|
-
content: "";
|
|
2931
|
-
width: 16px;
|
|
2932
|
-
height: 16px;
|
|
2933
|
-
|
|
2934
|
-
background
|
|
2935
|
-
background-
|
|
2936
|
-
|
|
2937
|
-
display: inline-
|
|
2938
|
-
|
|
2939
|
-
|
|
2940
|
-
|
|
2941
|
-
|
|
3051
|
+
.restrictions-title::before {
|
|
3052
|
+
content: "i" !important;
|
|
3053
|
+
width: 16px !important;
|
|
3054
|
+
height: 16px !important;
|
|
3055
|
+
border-radius: 50% !important;
|
|
3056
|
+
background: #0c5ee3 !important;
|
|
3057
|
+
background-image: none !important;
|
|
3058
|
+
color: #fff !important;
|
|
3059
|
+
display: inline-flex !important;
|
|
3060
|
+
align-items: center !important;
|
|
3061
|
+
justify-content: center !important;
|
|
3062
|
+
font-family: Arial, sans-serif !important;
|
|
3063
|
+
font-size: 11px !important;
|
|
3064
|
+
font-weight: 700 !important;
|
|
3065
|
+
line-height: 16px !important;
|
|
3066
|
+
margin-right: 0 !important;
|
|
3067
|
+
position: relative !important;
|
|
3068
|
+
top: 1px !important;
|
|
3069
|
+
}
|
|
2942
3070
|
|
|
2943
3071
|
.restrictions-title.validating {
|
|
2944
|
-
color: #
|
|
3072
|
+
color: #0c5ee3;
|
|
2945
3073
|
animation: validatingPulse 1.5s ease-in-out infinite;
|
|
2946
3074
|
}
|
|
2947
3075
|
|
|
@@ -2986,7 +3114,7 @@ export default {
|
|
|
2986
3114
|
}
|
|
2987
3115
|
|
|
2988
3116
|
.format-tag {
|
|
2989
|
-
color: #
|
|
3117
|
+
color: #0c5ee3;
|
|
2990
3118
|
font-size: 12px;
|
|
2991
3119
|
font-weight: 500;
|
|
2992
3120
|
text-transform: uppercase;
|
|
@@ -2994,7 +3122,7 @@ export default {
|
|
|
2994
3122
|
}
|
|
2995
3123
|
|
|
2996
3124
|
.size-highlight {
|
|
2997
|
-
color: #
|
|
3125
|
+
color: #0c5ee3;
|
|
2998
3126
|
font-weight: 600;
|
|
2999
3127
|
}
|
|
3000
3128
|
|
|
@@ -3015,7 +3143,7 @@ export default {
|
|
|
3015
3143
|
height: 100%;
|
|
3016
3144
|
}
|
|
3017
3145
|
|
|
3018
|
-
/*
|
|
3146
|
+
/* 右上角渐变蓝点 */
|
|
3019
3147
|
.files-panel::after {
|
|
3020
3148
|
content: '';
|
|
3021
3149
|
position: absolute;
|
|
@@ -3024,10 +3152,10 @@ export default {
|
|
|
3024
3152
|
width: 200px;
|
|
3025
3153
|
height: 200px;
|
|
3026
3154
|
background: linear-gradient(135deg,
|
|
3027
|
-
rgba(
|
|
3028
|
-
rgba(
|
|
3029
|
-
rgba(
|
|
3030
|
-
rgba(
|
|
3155
|
+
rgba(12, 94, 227, 0.8) 0%,
|
|
3156
|
+
rgba(37, 99, 235, 0.7) 30%,
|
|
3157
|
+
rgba(96, 165, 250, 0.6) 60%,
|
|
3158
|
+
rgba(147, 197, 253, 0.5) 100%);
|
|
3031
3159
|
border-radius: 50%;
|
|
3032
3160
|
filter: blur(40px);
|
|
3033
3161
|
pointer-events: none;
|
|
@@ -3082,7 +3210,7 @@ export default {
|
|
|
3082
3210
|
font-size: 16px;
|
|
3083
3211
|
font-weight: 600;
|
|
3084
3212
|
color: #1e293b;
|
|
3085
|
-
text-shadow: 0 0 20px rgba(
|
|
3213
|
+
text-shadow: 0 0 20px rgba(12, 94, 227, 0.1);
|
|
3086
3214
|
margin-bottom: 12px;
|
|
3087
3215
|
}
|
|
3088
3216
|
|
|
@@ -3105,7 +3233,7 @@ export default {
|
|
|
3105
3233
|
}
|
|
3106
3234
|
|
|
3107
3235
|
.file-card:hover {
|
|
3108
|
-
border-color: #
|
|
3236
|
+
border-color: #0c5ee3;
|
|
3109
3237
|
}
|
|
3110
3238
|
|
|
3111
3239
|
.file-row {
|
|
@@ -3152,7 +3280,7 @@ export default {
|
|
|
3152
3280
|
}
|
|
3153
3281
|
|
|
3154
3282
|
.file-title:hover {
|
|
3155
|
-
color: #
|
|
3283
|
+
color: #0c5ee3;
|
|
3156
3284
|
}
|
|
3157
3285
|
|
|
3158
3286
|
.file-meta {
|
|
@@ -3247,7 +3375,7 @@ export default {
|
|
|
3247
3375
|
|
|
3248
3376
|
.progress-bar {
|
|
3249
3377
|
height: 100%;
|
|
3250
|
-
background: linear-gradient(90deg, #
|
|
3378
|
+
background: linear-gradient(90deg, #0c5ee3, #60a5fa);
|
|
3251
3379
|
border-radius: 3px;
|
|
3252
3380
|
transition: width 0.6s ease;
|
|
3253
3381
|
}
|
|
@@ -3389,7 +3517,7 @@ export default {
|
|
|
3389
3517
|
}
|
|
3390
3518
|
|
|
3391
3519
|
.file-local-path .path-value:hover {
|
|
3392
|
-
color: #
|
|
3520
|
+
color: #0c5ee3;
|
|
3393
3521
|
}
|
|
3394
3522
|
|
|
3395
3523
|
/* Electron环境指示器样式 */
|
|
@@ -3423,7 +3551,7 @@ export default {
|
|
|
3423
3551
|
}
|
|
3424
3552
|
|
|
3425
3553
|
.start-upload-button {
|
|
3426
|
-
background: linear-gradient(90deg, #
|
|
3554
|
+
background: linear-gradient(90deg, #0c5ee3, #3b82f6);
|
|
3427
3555
|
color: white;
|
|
3428
3556
|
border: none;
|
|
3429
3557
|
padding: 12px 24px;
|
|
@@ -3431,15 +3559,15 @@ export default {
|
|
|
3431
3559
|
font-size: 14px;
|
|
3432
3560
|
cursor: pointer;
|
|
3433
3561
|
transition: all 0.3s ease;
|
|
3434
|
-
box-shadow: 0 6px 20px rgba(
|
|
3562
|
+
box-shadow: 0 6px 20px rgba(12, 94, 227, 0.3);
|
|
3435
3563
|
position: relative;
|
|
3436
3564
|
overflow: hidden;
|
|
3437
3565
|
}
|
|
3438
3566
|
|
|
3439
3567
|
.start-upload-button:hover {
|
|
3440
|
-
background: linear-gradient(90deg, #
|
|
3568
|
+
background: linear-gradient(90deg, #084bb8, #0b56d0);
|
|
3441
3569
|
transform: translateY(-2px);
|
|
3442
|
-
box-shadow: 0 8px 25px rgba(
|
|
3570
|
+
box-shadow: 0 8px 25px rgba(12, 94, 227, 0.4);
|
|
3443
3571
|
}
|
|
3444
3572
|
|
|
3445
3573
|
.start-upload-button:disabled {
|