@jr-public/jr-upload-ui 1.0.3 → 1.0.5
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 +2 -2
- package/packages/vue2/src/JrUploadModal.vue +349 -207
- package/packages/vue3/src/JrUploadModalVUE3.vue +352 -208
|
@@ -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
|
<!-- 左侧上传区域 -->
|
|
@@ -262,10 +263,22 @@ export default {
|
|
|
262
263
|
|
|
263
264
|
props: {
|
|
264
265
|
// 基础配置
|
|
265
|
-
visible: {
|
|
266
|
-
type: Boolean,
|
|
267
|
-
default: false
|
|
268
|
-
},
|
|
266
|
+
visible: {
|
|
267
|
+
type: Boolean,
|
|
268
|
+
default: false
|
|
269
|
+
},
|
|
270
|
+
showOverlay: {
|
|
271
|
+
type: Boolean,
|
|
272
|
+
default: false
|
|
273
|
+
},
|
|
274
|
+
autoClose: {
|
|
275
|
+
type: Boolean,
|
|
276
|
+
default: false
|
|
277
|
+
},
|
|
278
|
+
autoCloseDelay: {
|
|
279
|
+
type: Number,
|
|
280
|
+
default: 1000
|
|
281
|
+
},
|
|
269
282
|
title: {
|
|
270
283
|
type: String,
|
|
271
284
|
default: '文件上传'
|
|
@@ -315,7 +328,10 @@ export default {
|
|
|
315
328
|
uploadPath: { type: String, default: '' },
|
|
316
329
|
|
|
317
330
|
// bucket名称(可选)
|
|
318
|
-
bucketName: { type: String, default: '' }
|
|
331
|
+
bucketName: { type: String, default: '' },
|
|
332
|
+
|
|
333
|
+
// 是否将弹框DOM挂载到document.body,避免父容器overflow:hidden影响
|
|
334
|
+
appendToBody: { type: Boolean, default: true }
|
|
319
335
|
},
|
|
320
336
|
|
|
321
337
|
data() {
|
|
@@ -331,9 +347,10 @@ export default {
|
|
|
331
347
|
uploadSuccess: false,
|
|
332
348
|
|
|
333
349
|
// 弹框控制
|
|
334
|
-
isMinimized: false,
|
|
335
|
-
isMinimizing: false,
|
|
336
|
-
isRestoring: false,
|
|
350
|
+
isMinimized: false,
|
|
351
|
+
isMinimizing: false,
|
|
352
|
+
isRestoring: false,
|
|
353
|
+
autoCloseTimer: null,
|
|
337
354
|
|
|
338
355
|
// 拖拽相关
|
|
339
356
|
dragStartX: 0,
|
|
@@ -364,13 +381,23 @@ export default {
|
|
|
364
381
|
}
|
|
365
382
|
},
|
|
366
383
|
|
|
367
|
-
computed: {
|
|
368
|
-
fileRestrictions() {
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
384
|
+
computed: {
|
|
385
|
+
fileRestrictions() {
|
|
386
|
+
const allowedExtensions = this.accept ? this.accept.split(',').map(ext => {
|
|
387
|
+
const trimmed = ext.trim()
|
|
388
|
+
return trimmed.startsWith('.') ? trimmed : '.' + trimmed
|
|
389
|
+
}) : null
|
|
390
|
+
|
|
391
|
+
if (allowedExtensions) {
|
|
392
|
+
['.aqtf', '.hftf', '.gef', '.tb_dg_gef', '.nsxtf', '.sxt2', '.gbq7', '.jmbs'].forEach(ext => {
|
|
393
|
+
if (!allowedExtensions.some(item => item.toLowerCase() === ext)) {
|
|
394
|
+
allowedExtensions.push(ext)
|
|
395
|
+
}
|
|
396
|
+
})
|
|
397
|
+
}
|
|
398
|
+
|
|
399
|
+
return {
|
|
400
|
+
allowedExtensions,
|
|
374
401
|
maxSizeBytes: this.maxSize && this.maxSize > 0 ? this.maxSize * 1024 : null,
|
|
375
402
|
maxFileCount: this.maxCount && this.maxCount > 0 ? this.maxCount : null,
|
|
376
403
|
multiple: this.multiple,
|
|
@@ -423,6 +450,12 @@ export default {
|
|
|
423
450
|
visible(newVal) {
|
|
424
451
|
if (newVal) {
|
|
425
452
|
this.initializeComponent()
|
|
453
|
+
// append-to-body: 弹框显示时将根元素移动到document.body
|
|
454
|
+
if (this.appendToBody) {
|
|
455
|
+
this.$nextTick(() => {
|
|
456
|
+
document.body.appendChild(this.$el)
|
|
457
|
+
})
|
|
458
|
+
}
|
|
426
459
|
// 调试信息:打印当前组件参数
|
|
427
460
|
console.log('🔧 JrUploadModal 组件参数:', {
|
|
428
461
|
accept: this.accept,
|
|
@@ -466,16 +499,40 @@ export default {
|
|
|
466
499
|
await this.initializeComponent()
|
|
467
500
|
}
|
|
468
501
|
|
|
502
|
+
// append-to-body: 组件挂载时将根元素移动到document.body
|
|
503
|
+
if (this.appendToBody) {
|
|
504
|
+
document.body.appendChild(this.$el)
|
|
505
|
+
}
|
|
506
|
+
|
|
469
507
|
// 动态设置CSS背景图片
|
|
470
508
|
this.setDynamicBackgroundImages()
|
|
471
509
|
},
|
|
472
510
|
|
|
473
511
|
beforeDestroy() {
|
|
512
|
+
// append-to-body cleanup: 从document.body移除已挂载的元素
|
|
513
|
+
if (this.appendToBody && this.$el && this.$el.parentNode === document.body) {
|
|
514
|
+
document.body.removeChild(this.$el)
|
|
515
|
+
}
|
|
474
516
|
this.cleanup()
|
|
475
517
|
},
|
|
476
518
|
|
|
477
|
-
methods: {
|
|
478
|
-
|
|
519
|
+
methods: {
|
|
520
|
+
/**
|
|
521
|
+
* 判断文件后缀是否允许上传,投标成果类后缀兼容包含 gef 或 sxt 的扩展名。
|
|
522
|
+
*/
|
|
523
|
+
isAllowedFileExtension(fileExt, allowedExtensions) {
|
|
524
|
+
const normalizedExt = (fileExt || '').toLowerCase()
|
|
525
|
+
if (!normalizedExt) return false
|
|
526
|
+
|
|
527
|
+
if (['.aqtf', '.hftf', '.gef', '.tb_dg_gef', '.nsxtf', '.sxt2', '.gbq7', '.jmbs'].includes(normalizedExt)
|
|
528
|
+
|| normalizedExt.includes('gef') || normalizedExt.includes('sxt')) {
|
|
529
|
+
return true
|
|
530
|
+
}
|
|
531
|
+
|
|
532
|
+
return allowedExtensions.some(ext => ext.toLowerCase() === normalizedExt)
|
|
533
|
+
},
|
|
534
|
+
|
|
535
|
+
async initializeComponent() {
|
|
479
536
|
this.isElectronEnv = this.detectElectronEnvironment()
|
|
480
537
|
|
|
481
538
|
// 发送环境检测事件
|
|
@@ -549,12 +606,12 @@ export default {
|
|
|
549
606
|
const baseUrl = this.config.baseUrl
|
|
550
607
|
const dependencies = [
|
|
551
608
|
`${baseUrl}/js/aliyun-oss-sdk-6.18.0.min.js`,
|
|
552
|
-
`${baseUrl}/js/jr-transfer-sdk.js`,
|
|
609
|
+
`${baseUrl}/js/jr-transfer-sdk.js?v=20260814-jmbs`,
|
|
553
610
|
`${baseUrl}/js/jszip.min.js`
|
|
554
611
|
]
|
|
555
612
|
|
|
556
613
|
// 检查是否已加载
|
|
557
|
-
if (window.JrTransferSDK && window.OSS && window.JSZip) {
|
|
614
|
+
if (window.JrTransferSDK && window.JrTransferSDK.SDK_VERSION === '20260814-jmbs' && window.OSS && window.JSZip) {
|
|
558
615
|
return Promise.resolve()
|
|
559
616
|
}
|
|
560
617
|
|
|
@@ -585,7 +642,11 @@ export default {
|
|
|
585
642
|
}
|
|
586
643
|
},
|
|
587
644
|
|
|
588
|
-
cleanup() {
|
|
645
|
+
cleanup() {
|
|
646
|
+
if (this.autoCloseTimer) {
|
|
647
|
+
clearTimeout(this.autoCloseTimer)
|
|
648
|
+
this.autoCloseTimer = null
|
|
649
|
+
}
|
|
589
650
|
// 清理资源
|
|
590
651
|
if (this._dynamicStyle) {
|
|
591
652
|
this._dynamicStyle.remove()
|
|
@@ -593,7 +654,11 @@ export default {
|
|
|
593
654
|
}
|
|
594
655
|
},
|
|
595
656
|
|
|
596
|
-
resetState() {
|
|
657
|
+
resetState() {
|
|
658
|
+
if (this.autoCloseTimer) {
|
|
659
|
+
clearTimeout(this.autoCloseTimer)
|
|
660
|
+
this.autoCloseTimer = null
|
|
661
|
+
}
|
|
597
662
|
this.filesToUpload = []
|
|
598
663
|
this.uploadProgress = { total: 0, completed: 0, failed: 0 }
|
|
599
664
|
this.isUploading = false
|
|
@@ -609,22 +674,10 @@ export default {
|
|
|
609
674
|
this.tempLocalPaths = []
|
|
610
675
|
},
|
|
611
676
|
|
|
612
|
-
// 动态设置CSS背景图片
|
|
613
|
-
setDynamicBackgroundImages() {
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
// 设置提示图标背景
|
|
617
|
-
const style = document.createElement('style')
|
|
618
|
-
style.textContent = `
|
|
619
|
-
.jr-upload-modal-wrapper .restrictions-title::before {
|
|
620
|
-
background-image: url('${this.config.baseUrl}/images/tipsicon.svg') !important;
|
|
621
|
-
}
|
|
622
|
-
`
|
|
623
|
-
document.head.appendChild(style)
|
|
624
|
-
|
|
625
|
-
// 保存引用以便清理
|
|
626
|
-
this._dynamicStyle = style
|
|
627
|
-
},
|
|
677
|
+
// 动态设置CSS背景图片
|
|
678
|
+
setDynamicBackgroundImages() {
|
|
679
|
+
// 提示图标使用组件内 CSS 绘制,避免外部系统缓存图片导致颜色不一致
|
|
680
|
+
},
|
|
628
681
|
|
|
629
682
|
// 加载压缩配置
|
|
630
683
|
async loadCompressionConfig() {
|
|
@@ -887,7 +940,7 @@ export default {
|
|
|
887
940
|
// 文件类型验证
|
|
888
941
|
if (this.fileRestrictions.allowedExtensions) {
|
|
889
942
|
const fileExt = '.' + file.name.toLowerCase().split('.').pop()
|
|
890
|
-
if (!this.fileRestrictions.allowedExtensions
|
|
943
|
+
if (!this.isAllowedFileExtension(fileExt, this.fileRestrictions.allowedExtensions)) {
|
|
891
944
|
this.showError(`不支持的文件类型 ${fileExt}`)
|
|
892
945
|
continue
|
|
893
946
|
}
|
|
@@ -1546,8 +1599,17 @@ export default {
|
|
|
1546
1599
|
'pdf': 'application/pdf',
|
|
1547
1600
|
'doc': 'application/msword',
|
|
1548
1601
|
'docx': 'application/vnd.openxmlformats-officedocument.wordprocessingml.document',
|
|
1549
|
-
'xls': 'application/vnd.ms-excel',
|
|
1550
|
-
'xlsx': 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet',
|
|
1602
|
+
'xls': 'application/vnd.ms-excel',
|
|
1603
|
+
'xlsx': 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet',
|
|
1604
|
+
'et': 'application/vnd.ms-excel',
|
|
1605
|
+
'aqtf': 'application/octet-stream',
|
|
1606
|
+
'hftf': 'application/octet-stream',
|
|
1607
|
+
'gef': 'application/octet-stream',
|
|
1608
|
+
'tb_dg_gef': 'application/octet-stream',
|
|
1609
|
+
'nsxtf': 'application/octet-stream',
|
|
1610
|
+
'sxt2': 'application/octet-stream',
|
|
1611
|
+
'gbq7': 'application/octet-stream',
|
|
1612
|
+
'jmbs': 'application/octet-stream',
|
|
1551
1613
|
'ppt': 'application/vnd.ms-powerpoint',
|
|
1552
1614
|
'pptx': 'application/vnd.openxmlformats-officedocument.presentationml.presentation',
|
|
1553
1615
|
'txt': 'text/plain',
|
|
@@ -1904,7 +1966,9 @@ export default {
|
|
|
1904
1966
|
}
|
|
1905
1967
|
}
|
|
1906
1968
|
|
|
1907
|
-
|
|
1969
|
+
this.scheduleAutoClose()
|
|
1970
|
+
|
|
1971
|
+
console.log('✅ 上传完成:', uploadResult)
|
|
1908
1972
|
|
|
1909
1973
|
} catch (error) {
|
|
1910
1974
|
console.error('上传过程出错:', error)
|
|
@@ -2278,7 +2342,24 @@ export default {
|
|
|
2278
2342
|
}, 400)
|
|
2279
2343
|
},
|
|
2280
2344
|
|
|
2281
|
-
|
|
2345
|
+
scheduleAutoClose() {
|
|
2346
|
+
if (!this.autoClose) {
|
|
2347
|
+
return
|
|
2348
|
+
}
|
|
2349
|
+
if (this.autoCloseTimer) {
|
|
2350
|
+
clearTimeout(this.autoCloseTimer)
|
|
2351
|
+
}
|
|
2352
|
+
const parsedDelay = Number(this.autoCloseDelay)
|
|
2353
|
+
const delay = Number.isFinite(parsedDelay) && parsedDelay >= 0 ? Math.floor(parsedDelay) : 1000
|
|
2354
|
+
this.autoCloseTimer = setTimeout(() => {
|
|
2355
|
+
this.autoCloseTimer = null
|
|
2356
|
+
if (this.visible) {
|
|
2357
|
+
this.closeModal()
|
|
2358
|
+
}
|
|
2359
|
+
}, delay)
|
|
2360
|
+
},
|
|
2361
|
+
|
|
2362
|
+
closeModal() {
|
|
2282
2363
|
this.resetState()
|
|
2283
2364
|
this.$emit('close')
|
|
2284
2365
|
this.$emit('update:visible', false)
|
|
@@ -2289,10 +2370,13 @@ export default {
|
|
|
2289
2370
|
}
|
|
2290
2371
|
},
|
|
2291
2372
|
|
|
2292
|
-
handleOverlayClick() {
|
|
2293
|
-
if (!this.
|
|
2294
|
-
|
|
2295
|
-
}
|
|
2373
|
+
handleOverlayClick() {
|
|
2374
|
+
if (!this.showOverlay) {
|
|
2375
|
+
return
|
|
2376
|
+
}
|
|
2377
|
+
if (!this.isMinimized) {
|
|
2378
|
+
this.closeModal()
|
|
2379
|
+
}
|
|
2296
2380
|
},
|
|
2297
2381
|
|
|
2298
2382
|
// 拖拽功能
|
|
@@ -2334,45 +2418,72 @@ export default {
|
|
|
2334
2418
|
}
|
|
2335
2419
|
|
|
2336
2420
|
/* 弹框遮罩层 - 半透明遮罩 */
|
|
2337
|
-
.jr-upload-modal-overlay {
|
|
2338
|
-
position: fixed;
|
|
2339
|
-
top: 0;
|
|
2340
|
-
left: 0;
|
|
2341
|
-
width: 100%;
|
|
2342
|
-
height: 100%;
|
|
2343
|
-
background:
|
|
2344
|
-
backdrop-filter:
|
|
2345
|
-
z-index: 9999;
|
|
2346
|
-
display: flex;
|
|
2347
|
-
justify-content: center;
|
|
2348
|
-
align-items: center;
|
|
2349
|
-
padding: 20px;
|
|
2350
|
-
overflow: hidden;
|
|
2351
|
-
|
|
2421
|
+
.jr-upload-modal-overlay {
|
|
2422
|
+
position: fixed;
|
|
2423
|
+
top: 0;
|
|
2424
|
+
left: 0;
|
|
2425
|
+
width: 100%;
|
|
2426
|
+
height: 100%;
|
|
2427
|
+
background: transparent;
|
|
2428
|
+
backdrop-filter: none;
|
|
2429
|
+
z-index: 9999;
|
|
2430
|
+
display: flex;
|
|
2431
|
+
justify-content: center;
|
|
2432
|
+
align-items: center;
|
|
2433
|
+
padding: 20px;
|
|
2434
|
+
overflow: hidden;
|
|
2435
|
+
pointer-events: none;
|
|
2436
|
+
}
|
|
2437
|
+
|
|
2438
|
+
.jr-upload-modal-overlay.with-overlay {
|
|
2439
|
+
background: rgba(0, 0, 0, 0.5);
|
|
2440
|
+
backdrop-filter: blur(2px);
|
|
2441
|
+
justify-content: center;
|
|
2442
|
+
align-items: center;
|
|
2443
|
+
padding: 20px;
|
|
2444
|
+
pointer-events: auto;
|
|
2445
|
+
}
|
|
2352
2446
|
|
|
2353
2447
|
/* 弹框容器 - 模拟jr-simple-sdk的模态框 */
|
|
2354
2448
|
/* 弹框容器 */
|
|
2355
|
-
.modal-container {
|
|
2356
|
-
width: 90%;
|
|
2357
|
-
max-width: 1200px;
|
|
2358
|
-
height: 80vh;
|
|
2359
|
-
max-height: 800px;
|
|
2360
|
-
background: rgba(255, 255, 255, 0.95);
|
|
2361
|
-
backdrop-filter: blur(20px);
|
|
2362
|
-
-webkit-backdrop-filter: blur(20px);
|
|
2363
|
-
border-radius: 12px;
|
|
2364
|
-
box-shadow:
|
|
2365
|
-
0 20px 60px rgba(0, 0, 0, 0.15),
|
|
2366
|
-
0 8px 32px rgba(0, 0, 0, 0.1),
|
|
2367
|
-
0 1px 3px rgba(0, 0, 0, 0.05);
|
|
2368
|
-
border: 1px solid rgba(255, 255, 255, 0.5);
|
|
2369
|
-
overflow: hidden;
|
|
2370
|
-
position: relative;
|
|
2371
|
-
display: flex;
|
|
2372
|
-
flex-direction: column;
|
|
2373
|
-
transform: scale(1);
|
|
2374
|
-
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
|
2375
|
-
|
|
2449
|
+
.modal-container {
|
|
2450
|
+
width: 90%;
|
|
2451
|
+
max-width: 1200px;
|
|
2452
|
+
height: 80vh;
|
|
2453
|
+
max-height: 800px;
|
|
2454
|
+
background: rgba(255, 255, 255, 0.95);
|
|
2455
|
+
backdrop-filter: blur(20px);
|
|
2456
|
+
-webkit-backdrop-filter: blur(20px);
|
|
2457
|
+
border-radius: 12px;
|
|
2458
|
+
box-shadow:
|
|
2459
|
+
0 20px 60px rgba(0, 0, 0, 0.15),
|
|
2460
|
+
0 8px 32px rgba(0, 0, 0, 0.1),
|
|
2461
|
+
0 1px 3px rgba(0, 0, 0, 0.05);
|
|
2462
|
+
border: 1px solid rgba(255, 255, 255, 0.5);
|
|
2463
|
+
overflow: hidden;
|
|
2464
|
+
position: relative;
|
|
2465
|
+
display: flex;
|
|
2466
|
+
flex-direction: column;
|
|
2467
|
+
transform: scale(1);
|
|
2468
|
+
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
|
2469
|
+
pointer-events: auto;
|
|
2470
|
+
}
|
|
2471
|
+
|
|
2472
|
+
.jr-upload-modal-overlay.with-overlay .modal-container {
|
|
2473
|
+
width: 90%;
|
|
2474
|
+
max-width: 1200px;
|
|
2475
|
+
height: 80vh;
|
|
2476
|
+
max-height: 800px;
|
|
2477
|
+
background: rgba(255, 255, 255, 0.95);
|
|
2478
|
+
backdrop-filter: blur(20px);
|
|
2479
|
+
-webkit-backdrop-filter: blur(20px);
|
|
2480
|
+
border-radius: 12px;
|
|
2481
|
+
box-shadow:
|
|
2482
|
+
0 20px 60px rgba(0, 0, 0, 0.15),
|
|
2483
|
+
0 8px 32px rgba(0, 0, 0, 0.1),
|
|
2484
|
+
0 1px 3px rgba(0, 0, 0, 0.05);
|
|
2485
|
+
border: 1px solid rgba(255, 255, 255, 0.5);
|
|
2486
|
+
}
|
|
2376
2487
|
|
|
2377
2488
|
/* 模拟iframe的body区域 */
|
|
2378
2489
|
.modal-content {
|
|
@@ -2381,32 +2492,42 @@ export default {
|
|
|
2381
2492
|
position: relative;
|
|
2382
2493
|
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', sans-serif;
|
|
2383
2494
|
/* 背景图片通过内联样式动态设置 */
|
|
2384
|
-
background-size: cover;
|
|
2385
|
-
display: flex;
|
|
2386
|
-
justify-content: center;
|
|
2387
|
-
align-items: center;
|
|
2388
|
-
padding:
|
|
2389
|
-
border-radius: 0
|
|
2390
|
-
}
|
|
2495
|
+
background-size: cover;
|
|
2496
|
+
display: flex;
|
|
2497
|
+
justify-content: center;
|
|
2498
|
+
align-items: center;
|
|
2499
|
+
padding: 0;
|
|
2500
|
+
border-radius: 0;
|
|
2501
|
+
}
|
|
2502
|
+
|
|
2503
|
+
.jr-upload-modal-overlay.with-overlay .modal-content {
|
|
2504
|
+
padding: 20px;
|
|
2505
|
+
border-radius: 0 0 12px 12px;
|
|
2506
|
+
}
|
|
2391
2507
|
|
|
2392
2508
|
/* 标题栏 */
|
|
2393
|
-
.modal-header {
|
|
2394
|
-
height: 50px;
|
|
2395
|
-
background: linear-gradient(135deg,
|
|
2396
|
-
border-bottom: 1px solid rgba(
|
|
2397
|
-
display: flex;
|
|
2398
|
-
align-items: center;
|
|
2399
|
-
justify-content: space-between;
|
|
2400
|
-
padding: 0 20px;
|
|
2401
|
-
position: relative;
|
|
2402
|
-
cursor: move;
|
|
2403
|
-
user-select: none;
|
|
2404
|
-
|
|
2405
|
-
|
|
2406
|
-
|
|
2407
|
-
|
|
2408
|
-
|
|
2409
|
-
|
|
2509
|
+
.modal-header {
|
|
2510
|
+
height: 50px !important;
|
|
2511
|
+
background: linear-gradient(135deg, #0c5ee3 0%, rgba(59, 130, 246, 0.9) 100%) !important;
|
|
2512
|
+
border-bottom: 1px solid rgba(12, 94, 227, 0.25) !important;
|
|
2513
|
+
display: flex;
|
|
2514
|
+
align-items: center;
|
|
2515
|
+
justify-content: space-between;
|
|
2516
|
+
padding: 0 20px;
|
|
2517
|
+
position: relative;
|
|
2518
|
+
cursor: move;
|
|
2519
|
+
user-select: none;
|
|
2520
|
+
border-radius: 0;
|
|
2521
|
+
}
|
|
2522
|
+
|
|
2523
|
+
.jr-upload-modal-overlay.with-overlay .modal-header {
|
|
2524
|
+
border-radius: 12px 12px 0 0;
|
|
2525
|
+
}
|
|
2526
|
+
|
|
2527
|
+
.modal-title {
|
|
2528
|
+
font-size: 16px;
|
|
2529
|
+
font-weight: 500;
|
|
2530
|
+
color: #fff !important;
|
|
2410
2531
|
display: flex;
|
|
2411
2532
|
align-items: center;
|
|
2412
2533
|
gap: 8px;
|
|
@@ -2423,67 +2544,82 @@ export default {
|
|
|
2423
2544
|
width: 16px;
|
|
2424
2545
|
height: 16px;
|
|
2425
2546
|
border-radius: 50%;
|
|
2426
|
-
border: none;
|
|
2547
|
+
border: none !important;
|
|
2427
2548
|
cursor: pointer;
|
|
2428
2549
|
transition: all 0.2s ease;
|
|
2429
2550
|
position: relative;
|
|
2430
|
-
display: flex;
|
|
2431
|
-
align-items: center;
|
|
2432
|
-
justify-content: center;
|
|
2433
|
-
|
|
2434
|
-
|
|
2435
|
-
|
|
2436
|
-
|
|
2437
|
-
|
|
2438
|
-
|
|
2439
|
-
.
|
|
2440
|
-
|
|
2441
|
-
|
|
2442
|
-
|
|
2443
|
-
|
|
2444
|
-
|
|
2445
|
-
|
|
2551
|
+
display: flex;
|
|
2552
|
+
align-items: center;
|
|
2553
|
+
justify-content: center;
|
|
2554
|
+
appearance: none !important;
|
|
2555
|
+
-webkit-appearance: none !important;
|
|
2556
|
+
}
|
|
2557
|
+
|
|
2558
|
+
.control-btn:hover {
|
|
2559
|
+
transform: scale(1.1);
|
|
2560
|
+
background: rgba(255, 255, 255, 0.16) !important;
|
|
2561
|
+
}
|
|
2562
|
+
|
|
2563
|
+
.minimize-btn {
|
|
2564
|
+
background: none !important;
|
|
2565
|
+
}
|
|
2566
|
+
|
|
2567
|
+
.minimize-btn:hover {
|
|
2568
|
+
background: rgba(255, 255, 255, 0.16) !important;
|
|
2569
|
+
}
|
|
2446
2570
|
|
|
2447
2571
|
.minimize-btn::after {
|
|
2448
2572
|
content: '';
|
|
2449
|
-
width:
|
|
2450
|
-
height:
|
|
2451
|
-
background: #fff;
|
|
2573
|
+
width: 10px;
|
|
2574
|
+
height: 2px;
|
|
2575
|
+
background: #fff !important;
|
|
2452
2576
|
position: absolute;
|
|
2453
2577
|
}
|
|
2454
2578
|
|
|
2455
|
-
.close-btn {
|
|
2456
|
-
background:
|
|
2457
|
-
}
|
|
2458
|
-
|
|
2459
|
-
.close-btn:hover {
|
|
2460
|
-
background:
|
|
2461
|
-
}
|
|
2579
|
+
.close-btn {
|
|
2580
|
+
background: none !important;
|
|
2581
|
+
}
|
|
2582
|
+
|
|
2583
|
+
.close-btn:hover {
|
|
2584
|
+
background: rgba(255, 255, 255, 0.16) !important;
|
|
2585
|
+
}
|
|
2462
2586
|
|
|
2463
2587
|
.close-btn::after {
|
|
2464
|
-
content: '
|
|
2465
|
-
font-size:
|
|
2466
|
-
color: #fff;
|
|
2588
|
+
content: '\2715';
|
|
2589
|
+
font-size: 14px;
|
|
2590
|
+
color: #fff !important;
|
|
2467
2591
|
line-height: 1;
|
|
2468
2592
|
}
|
|
2469
2593
|
|
|
2470
|
-
.main-container {
|
|
2471
|
-
margin-left: 0!important;
|
|
2472
|
-
width:
|
|
2473
|
-
max-width:
|
|
2474
|
-
height:
|
|
2475
|
-
max-height:
|
|
2476
|
-
background:
|
|
2477
|
-
backdrop-filter:
|
|
2478
|
-
-webkit-backdrop-filter:
|
|
2479
|
-
box-shadow:
|
|
2480
|
-
|
|
2481
|
-
|
|
2482
|
-
|
|
2483
|
-
|
|
2484
|
-
|
|
2485
|
-
|
|
2486
|
-
|
|
2594
|
+
.main-container {
|
|
2595
|
+
margin-left: 0!important;
|
|
2596
|
+
width: 100%;
|
|
2597
|
+
max-width: none;
|
|
2598
|
+
height: 100%!important;
|
|
2599
|
+
max-height: none;
|
|
2600
|
+
background: transparent;
|
|
2601
|
+
backdrop-filter: none;
|
|
2602
|
+
-webkit-backdrop-filter: none;
|
|
2603
|
+
box-shadow: none;
|
|
2604
|
+
overflow: hidden;
|
|
2605
|
+
position: relative;
|
|
2606
|
+
border-radius: 0;
|
|
2607
|
+
}
|
|
2608
|
+
|
|
2609
|
+
.jr-upload-modal-overlay.with-overlay .main-container {
|
|
2610
|
+
width: 92%;
|
|
2611
|
+
max-width: 1200px;
|
|
2612
|
+
height: 85%!important;
|
|
2613
|
+
max-height: 800px;
|
|
2614
|
+
background: rgba(69, 70, 60, 0.5);
|
|
2615
|
+
backdrop-filter: blur(20px);
|
|
2616
|
+
-webkit-backdrop-filter: blur(20px);
|
|
2617
|
+
box-shadow:
|
|
2618
|
+
0 8px 32px rgba(0, 0, 0, 0.1),
|
|
2619
|
+
0 1px 3px rgba(0, 0, 0, 0.05),
|
|
2620
|
+
inset 0 1px 0 rgba(255, 255, 255, 0.6);
|
|
2621
|
+
border-radius: 12px;
|
|
2622
|
+
}
|
|
2487
2623
|
|
|
2488
2624
|
.content-grid {
|
|
2489
2625
|
display: grid;
|
|
@@ -2518,8 +2654,8 @@ export default {
|
|
|
2518
2654
|
width: 200%;
|
|
2519
2655
|
height: 200%;
|
|
2520
2656
|
background:
|
|
2521
|
-
radial-gradient(circle at 30% 70%, rgba(
|
|
2522
|
-
radial-gradient(circle at 70% 30%, rgba(
|
|
2657
|
+
radial-gradient(circle at 30% 70%, rgba(12, 94, 227, 0.06) 0%, transparent 40%),
|
|
2658
|
+
radial-gradient(circle at 70% 30%, rgba(59, 130, 246, 0.04) 0%, transparent 35%);
|
|
2523
2659
|
animation: gentleGlow 20s ease-in-out infinite;
|
|
2524
2660
|
pointer-events: none;
|
|
2525
2661
|
z-index: 0;
|
|
@@ -2536,7 +2672,7 @@ export default {
|
|
|
2536
2672
|
}
|
|
2537
2673
|
}
|
|
2538
2674
|
|
|
2539
|
-
/*
|
|
2675
|
+
/* 左下角渐变蓝点 */
|
|
2540
2676
|
.upload-panel::after {
|
|
2541
2677
|
content: '';
|
|
2542
2678
|
position: absolute;
|
|
@@ -2545,10 +2681,10 @@ export default {
|
|
|
2545
2681
|
width: 200px;
|
|
2546
2682
|
height: 200px;
|
|
2547
2683
|
background: linear-gradient(135deg,
|
|
2548
|
-
rgba(
|
|
2549
|
-
rgba(
|
|
2550
|
-
rgba(
|
|
2551
|
-
rgba(
|
|
2684
|
+
rgba(12, 94, 227, 0.8) 0%,
|
|
2685
|
+
rgba(37, 99, 235, 0.7) 30%,
|
|
2686
|
+
rgba(96, 165, 250, 0.6) 60%,
|
|
2687
|
+
rgba(147, 197, 253, 0.5) 100%);
|
|
2552
2688
|
border-radius: 50%;
|
|
2553
2689
|
filter: blur(40px);
|
|
2554
2690
|
pointer-events: none;
|
|
@@ -2584,14 +2720,14 @@ export default {
|
|
|
2584
2720
|
height: 100px;
|
|
2585
2721
|
margin: 0 auto 24px;
|
|
2586
2722
|
background: linear-gradient(135deg,
|
|
2587
|
-
rgba(
|
|
2588
|
-
rgba(
|
|
2723
|
+
rgba(147, 197, 253, 0.8) 0%,
|
|
2724
|
+
rgba(191, 219, 254, 0.5) 100%);
|
|
2589
2725
|
border-radius: 50%;
|
|
2590
2726
|
display: flex;
|
|
2591
2727
|
align-items: center;
|
|
2592
2728
|
justify-content: center;
|
|
2593
2729
|
font-size: 48px;
|
|
2594
|
-
color: #
|
|
2730
|
+
color: #0c5ee3;
|
|
2595
2731
|
transition: all 0.3s ease;
|
|
2596
2732
|
position: relative;
|
|
2597
2733
|
overflow: visible;
|
|
@@ -2634,7 +2770,7 @@ export default {
|
|
|
2634
2770
|
position: relative;
|
|
2635
2771
|
width: 3px;
|
|
2636
2772
|
height: 25px;
|
|
2637
|
-
background: linear-gradient(180deg, #
|
|
2773
|
+
background: linear-gradient(180deg, #0c5ee3, #3b82f6);
|
|
2638
2774
|
border-radius: 2px;
|
|
2639
2775
|
animation: arrowFlow 2.4s ease-in-out infinite;
|
|
2640
2776
|
}
|
|
@@ -2649,7 +2785,7 @@ export default {
|
|
|
2649
2785
|
height: 0;
|
|
2650
2786
|
border-left: 6px solid transparent;
|
|
2651
2787
|
border-right: 6px solid transparent;
|
|
2652
|
-
border-top: 10px solid #
|
|
2788
|
+
border-top: 10px solid #3b82f6;
|
|
2653
2789
|
opacity: 0.7;
|
|
2654
2790
|
}
|
|
2655
2791
|
|
|
@@ -2703,7 +2839,7 @@ export default {
|
|
|
2703
2839
|
}
|
|
2704
2840
|
|
|
2705
2841
|
.upload-panel.active .upload-visual {
|
|
2706
|
-
background: linear-gradient(135deg, rgba(
|
|
2842
|
+
background: linear-gradient(135deg, rgba(12, 94, 227, 0.2), rgba(59, 130, 246, 0.2));
|
|
2707
2843
|
transform: scale(1.05);
|
|
2708
2844
|
}
|
|
2709
2845
|
|
|
@@ -2717,7 +2853,7 @@ export default {
|
|
|
2717
2853
|
}
|
|
2718
2854
|
|
|
2719
2855
|
.upload-panel:hover .upload-visual {
|
|
2720
|
-
background: linear-gradient(135deg, rgba(
|
|
2856
|
+
background: linear-gradient(135deg, rgba(12, 94, 227, 0.15), rgba(59, 130, 246, 0.15));
|
|
2721
2857
|
transform: scale(1.02);
|
|
2722
2858
|
}
|
|
2723
2859
|
|
|
@@ -2744,7 +2880,7 @@ export default {
|
|
|
2744
2880
|
}
|
|
2745
2881
|
|
|
2746
2882
|
.upload-button {
|
|
2747
|
-
background: linear-gradient(90deg, #
|
|
2883
|
+
background: linear-gradient(90deg, #0c5ee3, #3b82f6);
|
|
2748
2884
|
color: white;
|
|
2749
2885
|
border: none;
|
|
2750
2886
|
padding: 10px 24px;
|
|
@@ -2753,16 +2889,16 @@ export default {
|
|
|
2753
2889
|
font-weight: 500;
|
|
2754
2890
|
cursor: pointer;
|
|
2755
2891
|
transition: all 0.3s ease;
|
|
2756
|
-
box-shadow: 0 6px 20px rgba(
|
|
2892
|
+
box-shadow: 0 6px 20px rgba(12, 94, 227, 0.3);
|
|
2757
2893
|
margin-bottom: 24px;
|
|
2758
2894
|
position: relative;
|
|
2759
2895
|
z-index: 2;
|
|
2760
2896
|
}
|
|
2761
2897
|
|
|
2762
2898
|
.upload-button:hover {
|
|
2763
|
-
background: linear-gradient(90deg, #
|
|
2899
|
+
background: linear-gradient(90deg, #084bb8, #0b56d0);
|
|
2764
2900
|
transform: translateY(-2px);
|
|
2765
|
-
box-shadow: 0 8px 25px rgba(
|
|
2901
|
+
box-shadow: 0 8px 25px rgba(12, 94, 227, 0.4);
|
|
2766
2902
|
}
|
|
2767
2903
|
|
|
2768
2904
|
.upload-button:disabled {
|
|
@@ -2795,22 +2931,28 @@ export default {
|
|
|
2795
2931
|
gap: 6px;
|
|
2796
2932
|
}
|
|
2797
2933
|
|
|
2798
|
-
.restrictions-title::before {
|
|
2799
|
-
content: "";
|
|
2800
|
-
width: 16px;
|
|
2801
|
-
height: 16px;
|
|
2802
|
-
|
|
2803
|
-
background
|
|
2804
|
-
background-
|
|
2805
|
-
|
|
2806
|
-
display: inline-
|
|
2807
|
-
|
|
2808
|
-
|
|
2809
|
-
|
|
2810
|
-
|
|
2934
|
+
.restrictions-title::before {
|
|
2935
|
+
content: "i" !important;
|
|
2936
|
+
width: 16px !important;
|
|
2937
|
+
height: 16px !important;
|
|
2938
|
+
border-radius: 50% !important;
|
|
2939
|
+
background: #0c5ee3 !important;
|
|
2940
|
+
background-image: none !important;
|
|
2941
|
+
color: #fff !important;
|
|
2942
|
+
display: inline-flex !important;
|
|
2943
|
+
align-items: center !important;
|
|
2944
|
+
justify-content: center !important;
|
|
2945
|
+
font-family: Arial, sans-serif !important;
|
|
2946
|
+
font-size: 11px !important;
|
|
2947
|
+
font-weight: 700 !important;
|
|
2948
|
+
line-height: 16px !important;
|
|
2949
|
+
margin-right: 0 !important;
|
|
2950
|
+
position: relative !important;
|
|
2951
|
+
top: 1px !important;
|
|
2952
|
+
}
|
|
2811
2953
|
|
|
2812
2954
|
.restrictions-title.validating {
|
|
2813
|
-
color: #
|
|
2955
|
+
color: #0c5ee3;
|
|
2814
2956
|
animation: validatingPulse 1.5s ease-in-out infinite;
|
|
2815
2957
|
}
|
|
2816
2958
|
|
|
@@ -2855,7 +2997,7 @@ export default {
|
|
|
2855
2997
|
}
|
|
2856
2998
|
|
|
2857
2999
|
.format-tag {
|
|
2858
|
-
color: #
|
|
3000
|
+
color: #0c5ee3;
|
|
2859
3001
|
font-size: 12px;
|
|
2860
3002
|
font-weight: 500;
|
|
2861
3003
|
text-transform: uppercase;
|
|
@@ -2863,7 +3005,7 @@ export default {
|
|
|
2863
3005
|
}
|
|
2864
3006
|
|
|
2865
3007
|
.size-highlight {
|
|
2866
|
-
color: #
|
|
3008
|
+
color: #0c5ee3;
|
|
2867
3009
|
font-weight: 600;
|
|
2868
3010
|
}
|
|
2869
3011
|
|
|
@@ -2884,7 +3026,7 @@ export default {
|
|
|
2884
3026
|
height: 100%;
|
|
2885
3027
|
}
|
|
2886
3028
|
|
|
2887
|
-
/*
|
|
3029
|
+
/* 右上角渐变蓝点 */
|
|
2888
3030
|
.files-panel::after {
|
|
2889
3031
|
content: '';
|
|
2890
3032
|
position: absolute;
|
|
@@ -2893,10 +3035,10 @@ export default {
|
|
|
2893
3035
|
width: 200px;
|
|
2894
3036
|
height: 200px;
|
|
2895
3037
|
background: linear-gradient(135deg,
|
|
2896
|
-
rgba(
|
|
2897
|
-
rgba(
|
|
2898
|
-
rgba(
|
|
2899
|
-
rgba(
|
|
3038
|
+
rgba(12, 94, 227, 0.8) 0%,
|
|
3039
|
+
rgba(37, 99, 235, 0.7) 30%,
|
|
3040
|
+
rgba(96, 165, 250, 0.6) 60%,
|
|
3041
|
+
rgba(147, 197, 253, 0.5) 100%);
|
|
2900
3042
|
border-radius: 50%;
|
|
2901
3043
|
filter: blur(40px);
|
|
2902
3044
|
pointer-events: none;
|
|
@@ -2951,7 +3093,7 @@ export default {
|
|
|
2951
3093
|
font-size: 16px;
|
|
2952
3094
|
font-weight: 600;
|
|
2953
3095
|
color: #1e293b;
|
|
2954
|
-
text-shadow: 0 0 20px rgba(
|
|
3096
|
+
text-shadow: 0 0 20px rgba(12, 94, 227, 0.1);
|
|
2955
3097
|
margin-bottom: 12px;
|
|
2956
3098
|
}
|
|
2957
3099
|
|
|
@@ -2974,7 +3116,7 @@ export default {
|
|
|
2974
3116
|
}
|
|
2975
3117
|
|
|
2976
3118
|
.file-card:hover {
|
|
2977
|
-
border-color: #
|
|
3119
|
+
border-color: #0c5ee3;
|
|
2978
3120
|
}
|
|
2979
3121
|
|
|
2980
3122
|
.file-row {
|
|
@@ -3021,7 +3163,7 @@ export default {
|
|
|
3021
3163
|
}
|
|
3022
3164
|
|
|
3023
3165
|
.file-title:hover {
|
|
3024
|
-
color: #
|
|
3166
|
+
color: #0c5ee3;
|
|
3025
3167
|
}
|
|
3026
3168
|
|
|
3027
3169
|
.file-meta {
|
|
@@ -3116,7 +3258,7 @@ export default {
|
|
|
3116
3258
|
|
|
3117
3259
|
.progress-bar {
|
|
3118
3260
|
height: 100%;
|
|
3119
|
-
background: linear-gradient(90deg, #
|
|
3261
|
+
background: linear-gradient(90deg, #0c5ee3, #60a5fa);
|
|
3120
3262
|
border-radius: 3px;
|
|
3121
3263
|
transition: width 0.6s ease;
|
|
3122
3264
|
}
|
|
@@ -3258,7 +3400,7 @@ export default {
|
|
|
3258
3400
|
}
|
|
3259
3401
|
|
|
3260
3402
|
.file-local-path .path-value:hover {
|
|
3261
|
-
color: #
|
|
3403
|
+
color: #0c5ee3;
|
|
3262
3404
|
}
|
|
3263
3405
|
|
|
3264
3406
|
/* Electron环境指示器样式 */
|
|
@@ -3292,7 +3434,7 @@ export default {
|
|
|
3292
3434
|
}
|
|
3293
3435
|
|
|
3294
3436
|
.start-upload-button {
|
|
3295
|
-
background: linear-gradient(90deg, #
|
|
3437
|
+
background: linear-gradient(90deg, #0c5ee3, #3b82f6);
|
|
3296
3438
|
color: white;
|
|
3297
3439
|
border: none;
|
|
3298
3440
|
padding: 12px 24px;
|
|
@@ -3300,15 +3442,15 @@ export default {
|
|
|
3300
3442
|
font-size: 14px;
|
|
3301
3443
|
cursor: pointer;
|
|
3302
3444
|
transition: all 0.3s ease;
|
|
3303
|
-
box-shadow: 0 6px 20px rgba(
|
|
3445
|
+
box-shadow: 0 6px 20px rgba(12, 94, 227, 0.3);
|
|
3304
3446
|
position: relative;
|
|
3305
3447
|
overflow: hidden;
|
|
3306
3448
|
}
|
|
3307
3449
|
|
|
3308
3450
|
.start-upload-button:hover {
|
|
3309
|
-
background: linear-gradient(90deg, #
|
|
3451
|
+
background: linear-gradient(90deg, #084bb8, #0b56d0);
|
|
3310
3452
|
transform: translateY(-2px);
|
|
3311
|
-
box-shadow: 0 8px 25px rgba(
|
|
3453
|
+
box-shadow: 0 8px 25px rgba(12, 94, 227, 0.4);
|
|
3312
3454
|
}
|
|
3313
3455
|
|
|
3314
3456
|
.start-upload-button:disabled {
|