@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.
@@ -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
- @click="handleOverlayClick"
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
  <!-- 左侧上传区域 -->
@@ -257,17 +258,29 @@
257
258
  </template>
258
259
 
259
260
  <script>
260
- import { ref, reactive, computed, watch, onMounted, onBeforeUnmount, defineEmits, defineProps, nextTick } from 'vue'
261
+ import { ref, reactive, computed, watch, onMounted, onBeforeUnmount, defineEmits, defineProps, nextTick, getCurrentInstance } from 'vue'
261
262
 
262
263
  export default {
263
264
  name: 'JrUploadModalVue3',
264
265
 
265
266
  props: {
266
267
  // 基础配置
267
- visible: {
268
- type: Boolean,
269
- default: false
270
- },
268
+ visible: {
269
+ type: Boolean,
270
+ default: false
271
+ },
272
+ showOverlay: {
273
+ type: Boolean,
274
+ default: false
275
+ },
276
+ autoClose: {
277
+ type: Boolean,
278
+ default: false
279
+ },
280
+ autoCloseDelay: {
281
+ type: Number,
282
+ default: 1000
283
+ },
271
284
  title: {
272
285
  type: String,
273
286
  default: '文件上传'
@@ -317,7 +330,10 @@ export default {
317
330
  uploadPath: { type: String, default: '' },
318
331
 
319
332
  // bucket名称(可选)
320
- bucketName: { type: String, default: '' }
333
+ bucketName: { type: String, default: '' },
334
+
335
+ // 是否将弹框DOM挂载到document.body,避免父容器overflow:hidden影响
336
+ appendToBody: { type: Boolean, default: true }
321
337
  },
322
338
 
323
339
  emits: [
@@ -333,6 +349,9 @@ export default {
333
349
  ],
334
350
 
335
351
  setup(props, { emit }) {
352
+ // 获取组件实例(用于 append-to-body)
353
+ const instance = getCurrentInstance()
354
+
336
355
  // 响应式数据
337
356
  const filesToUpload = ref([])
338
357
  const isUploading = ref(false)
@@ -344,9 +363,10 @@ export default {
344
363
  const uploadSuccess = ref(false)
345
364
 
346
365
  // 弹框控制
347
- const isMinimized = ref(false)
348
- const isMinimizing = ref(false)
349
- const isRestoring = ref(false)
366
+ const isMinimized = ref(false)
367
+ const isMinimizing = ref(false)
368
+ const isRestoring = ref(false)
369
+ const autoCloseTimer = ref(null)
350
370
 
351
371
  // 拖拽相关
352
372
  const dragStartX = ref(0)
@@ -383,13 +403,23 @@ export default {
383
403
  const fileInput = ref(null)
384
404
  const uploadButton = ref(null)
385
405
 
386
- // 计算属性
387
- const fileRestrictions = computed(() => {
388
- return {
389
- allowedExtensions: props.accept ? props.accept.split(',').map(ext => {
390
- const trimmed = ext.trim()
391
- return trimmed.startsWith('.') ? trimmed : '.' + trimmed
392
- }) : null,
406
+ // 计算属性
407
+ const fileRestrictions = computed(() => {
408
+ const allowedExtensions = props.accept ? props.accept.split(',').map(ext => {
409
+ const trimmed = ext.trim()
410
+ return trimmed.startsWith('.') ? trimmed : '.' + trimmed
411
+ }) : null
412
+
413
+ if (allowedExtensions) {
414
+ ['.aqtf', '.hftf', '.gef', '.tb_dg_gef', '.nsxtf', '.sxt2', '.gbq7', '.jmbs'].forEach(ext => {
415
+ if (!allowedExtensions.some(item => item.toLowerCase() === ext)) {
416
+ allowedExtensions.push(ext)
417
+ }
418
+ })
419
+ }
420
+
421
+ return {
422
+ allowedExtensions,
393
423
  maxSizeBytes: props.maxSize && props.maxSize > 0 ? props.maxSize * 1024 : null,
394
424
  maxFileCount: props.maxCount && props.maxCount > 0 ? props.maxCount : null,
395
425
  multiple: props.multiple,
@@ -441,6 +471,11 @@ export default {
441
471
  watch(() => props.visible, async (newVal) => {
442
472
  if (newVal) {
443
473
  await initializeComponent()
474
+ // append-to-body: 弹框显示时将根元素移动到document.body
475
+ if (props.appendToBody && instance && instance.vnode.el) {
476
+ await nextTick()
477
+ document.body.appendChild(instance.vnode.el)
478
+ }
444
479
  // 调试信息:打印当前组件参数
445
480
  console.log('🔧 JrUploadModal 组件参数:', {
446
481
  accept: props.accept,
@@ -487,16 +522,40 @@ export default {
487
522
  await initializeComponent()
488
523
  }
489
524
 
525
+ // append-to-body: 组件挂载时将根元素移动到document.body
526
+ if (props.appendToBody && instance && instance.vnode.el) {
527
+ document.body.appendChild(instance.vnode.el)
528
+ }
529
+
490
530
  // 动态设置CSS背景图片
491
531
  setDynamicBackgroundImages()
492
532
  })
493
533
 
494
534
  onBeforeUnmount(() => {
535
+ // append-to-body cleanup: 从document.body移除已挂载的元素
536
+ if (props.appendToBody && instance && instance.vnode.el && instance.vnode.el.parentNode === document.body) {
537
+ document.body.removeChild(instance.vnode.el)
538
+ }
495
539
  cleanup()
496
540
  })
497
541
 
498
- // 方法定义
499
- const initializeComponent = async () => {
542
+ // 方法定义
543
+ /**
544
+ * 判断文件后缀是否允许上传,投标成果类后缀兼容包含 gef 或 sxt 的扩展名。
545
+ */
546
+ const isAllowedFileExtension = (fileExt, allowedExtensions) => {
547
+ const normalizedExt = (fileExt || '').toLowerCase()
548
+ if (!normalizedExt) return false
549
+
550
+ if (['.aqtf', '.hftf', '.gef', '.tb_dg_gef', '.nsxtf', '.sxt2', '.gbq7', '.jmbs'].includes(normalizedExt)
551
+ || normalizedExt.includes('gef') || normalizedExt.includes('sxt')) {
552
+ return true
553
+ }
554
+
555
+ return allowedExtensions.some(ext => ext.toLowerCase() === normalizedExt)
556
+ }
557
+
558
+ const initializeComponent = async () => {
500
559
  isElectronEnv.value = detectElectronEnvironment()
501
560
 
502
561
  // 发送环境检测事件
@@ -570,12 +629,12 @@ export default {
570
629
  const baseUrl = props.config.baseUrl
571
630
  const dependencies = [
572
631
  `${baseUrl}/js/aliyun-oss-sdk-6.18.0.min.js`,
573
- `${baseUrl}/js/jr-transfer-sdk.js`,
632
+ `${baseUrl}/js/jr-transfer-sdk.js?v=20260814-jmbs`,
574
633
  `${baseUrl}/js/jszip.min.js`
575
634
  ]
576
635
 
577
636
  // 检查是否已加载
578
- if (window.JrTransferSDK && window.OSS && window.JSZip) {
637
+ if (window.JrTransferSDK && window.JrTransferSDK.SDK_VERSION === '20260814-jmbs' && window.OSS && window.JSZip) {
579
638
  return Promise.resolve()
580
639
  }
581
640
 
@@ -606,7 +665,11 @@ export default {
606
665
  }
607
666
  }
608
667
 
609
- const cleanup = () => {
668
+ const cleanup = () => {
669
+ if (autoCloseTimer.value) {
670
+ clearTimeout(autoCloseTimer.value)
671
+ autoCloseTimer.value = null
672
+ }
610
673
  // 清理资源
611
674
  if (_dynamicStyle.value) {
612
675
  _dynamicStyle.value.remove()
@@ -614,7 +677,11 @@ export default {
614
677
  }
615
678
  }
616
679
 
617
- const resetState = () => {
680
+ const resetState = () => {
681
+ if (autoCloseTimer.value) {
682
+ clearTimeout(autoCloseTimer.value)
683
+ autoCloseTimer.value = null
684
+ }
618
685
  filesToUpload.value = []
619
686
  uploadProgress.total = 0
620
687
  uploadProgress.completed = 0
@@ -632,22 +699,10 @@ export default {
632
699
  tempLocalPaths.value = []
633
700
  }
634
701
 
635
- // 动态设置CSS背景图片
636
- const setDynamicBackgroundImages = () => {
637
- if (!props.config.baseUrl) return
638
-
639
- // 设置提示图标背景
640
- const style = document.createElement('style')
641
- style.textContent = `
642
- .jr-upload-modal-wrapper .restrictions-title::before {
643
- background-image: url('${props.config.baseUrl}/images/tipsicon.svg') !important;
644
- }
645
- `
646
- document.head.appendChild(style)
647
-
648
- // 保存引用以便清理
649
- _dynamicStyle.value = style
650
- }
702
+ // 动态设置CSS背景图片
703
+ const setDynamicBackgroundImages = () => {
704
+ // 提示图标使用组件内 CSS 绘制,避免外部系统缓存图片导致颜色不一致
705
+ }
651
706
 
652
707
  // 加载压缩配置
653
708
  const loadCompressionConfig = async () => {
@@ -910,7 +965,7 @@ export default {
910
965
  // 文件类型验证
911
966
  if (fileRestrictions.value.allowedExtensions) {
912
967
  const fileExt = '.' + file.name.toLowerCase().split('.').pop()
913
- if (!fileRestrictions.value.allowedExtensions.some(ext => ext.toLowerCase() === fileExt)) {
968
+ if (!isAllowedFileExtension(fileExt, fileRestrictions.value.allowedExtensions)) {
914
969
  showError(`不支持的文件类型 ${fileExt}`)
915
970
  continue
916
971
  }
@@ -1569,8 +1624,17 @@ export default {
1569
1624
  'pdf': 'application/pdf',
1570
1625
  'doc': 'application/msword',
1571
1626
  'docx': 'application/vnd.openxmlformats-officedocument.wordprocessingml.document',
1572
- 'xls': 'application/vnd.ms-excel',
1573
- 'xlsx': 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet',
1627
+ 'xls': 'application/vnd.ms-excel',
1628
+ 'xlsx': 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet',
1629
+ 'et': 'application/vnd.ms-excel',
1630
+ 'aqtf': 'application/octet-stream',
1631
+ 'hftf': 'application/octet-stream',
1632
+ 'gef': 'application/octet-stream',
1633
+ 'tb_dg_gef': 'application/octet-stream',
1634
+ 'nsxtf': 'application/octet-stream',
1635
+ 'sxt2': 'application/octet-stream',
1636
+ 'gbq7': 'application/octet-stream',
1637
+ 'jmbs': 'application/octet-stream',
1574
1638
  'ppt': 'application/vnd.ms-powerpoint',
1575
1639
  'pptx': 'application/vnd.openxmlformats-officedocument.presentationml.presentation',
1576
1640
  'txt': 'text/plain',
@@ -1927,7 +1991,9 @@ export default {
1927
1991
  }
1928
1992
  }
1929
1993
 
1930
- console.log('✅ 上传完成:', uploadResult)
1994
+ scheduleAutoClose()
1995
+
1996
+ console.log('✅ 上传完成:', uploadResult)
1931
1997
 
1932
1998
  } catch (error) {
1933
1999
  console.error('上传过程出错:', error)
@@ -2286,7 +2352,24 @@ export default {
2286
2352
  }, 400)
2287
2353
  }
2288
2354
 
2289
- const closeModal = () => {
2355
+ const scheduleAutoClose = () => {
2356
+ if (!props.autoClose) {
2357
+ return
2358
+ }
2359
+ if (autoCloseTimer.value) {
2360
+ clearTimeout(autoCloseTimer.value)
2361
+ }
2362
+ const parsedDelay = Number(props.autoCloseDelay)
2363
+ const delay = Number.isFinite(parsedDelay) && parsedDelay >= 0 ? Math.floor(parsedDelay) : 1000
2364
+ autoCloseTimer.value = setTimeout(() => {
2365
+ autoCloseTimer.value = null
2366
+ if (props.visible) {
2367
+ closeModal()
2368
+ }
2369
+ }, delay)
2370
+ }
2371
+
2372
+ const closeModal = () => {
2290
2373
  resetState()
2291
2374
  emit('close')
2292
2375
  emit('update:visible', false)
@@ -2297,10 +2380,13 @@ export default {
2297
2380
  }
2298
2381
  }
2299
2382
 
2300
- const handleOverlayClick = () => {
2301
- if (!isMinimized.value) {
2302
- closeModal()
2303
- }
2383
+ const handleOverlayClick = () => {
2384
+ if (!props.showOverlay) {
2385
+ return
2386
+ }
2387
+ if (!isMinimized.value) {
2388
+ closeModal()
2389
+ }
2304
2390
  }
2305
2391
 
2306
2392
  // 拖拽功能
@@ -2445,45 +2531,72 @@ export default {
2445
2531
  }
2446
2532
 
2447
2533
  /* 弹框遮罩层 - 半透明遮罩 */
2448
- .jr-upload-modal-overlay {
2449
- position: fixed;
2450
- top: 0;
2451
- left: 0;
2452
- width: 100%;
2453
- height: 100%;
2454
- background: rgba(0, 0, 0, 0.5);
2455
- backdrop-filter: blur(2px);
2456
- z-index: 9999;
2457
- display: flex;
2458
- justify-content: center;
2459
- align-items: center;
2460
- padding: 20px;
2461
- overflow: hidden;
2462
- }
2534
+ .jr-upload-modal-overlay {
2535
+ position: fixed;
2536
+ top: 0;
2537
+ left: 0;
2538
+ width: 100%;
2539
+ height: 100%;
2540
+ background: transparent;
2541
+ backdrop-filter: none;
2542
+ z-index: 9999;
2543
+ display: flex;
2544
+ justify-content: center;
2545
+ align-items: center;
2546
+ padding: 20px;
2547
+ overflow: hidden;
2548
+ pointer-events: none;
2549
+ }
2550
+
2551
+ .jr-upload-modal-overlay.with-overlay {
2552
+ background: rgba(0, 0, 0, 0.5);
2553
+ backdrop-filter: blur(2px);
2554
+ justify-content: center;
2555
+ align-items: center;
2556
+ padding: 20px;
2557
+ pointer-events: auto;
2558
+ }
2463
2559
 
2464
2560
  /* 弹框容器 - 模拟jr-simple-sdk的模态框 */
2465
2561
  /* 弹框容器 */
2466
- .modal-container {
2467
- width: 90%;
2468
- max-width: 1200px;
2469
- height: 80vh;
2470
- max-height: 800px;
2471
- background: rgba(255, 255, 255, 0.95);
2472
- backdrop-filter: blur(20px);
2473
- -webkit-backdrop-filter: blur(20px);
2474
- border-radius: 12px;
2475
- box-shadow:
2476
- 0 20px 60px rgba(0, 0, 0, 0.15),
2477
- 0 8px 32px rgba(0, 0, 0, 0.1),
2478
- 0 1px 3px rgba(0, 0, 0, 0.05);
2479
- border: 1px solid rgba(255, 255, 255, 0.5);
2480
- overflow: hidden;
2481
- position: relative;
2482
- display: flex;
2483
- flex-direction: column;
2484
- transform: scale(1);
2485
- transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
2486
- }
2562
+ .modal-container {
2563
+ width: 90%;
2564
+ max-width: 1200px;
2565
+ height: 80vh;
2566
+ max-height: 800px;
2567
+ background: rgba(255, 255, 255, 0.95);
2568
+ backdrop-filter: blur(20px);
2569
+ -webkit-backdrop-filter: blur(20px);
2570
+ border-radius: 12px;
2571
+ box-shadow:
2572
+ 0 20px 60px rgba(0, 0, 0, 0.15),
2573
+ 0 8px 32px rgba(0, 0, 0, 0.1),
2574
+ 0 1px 3px rgba(0, 0, 0, 0.05);
2575
+ border: 1px solid rgba(255, 255, 255, 0.5);
2576
+ overflow: hidden;
2577
+ position: relative;
2578
+ display: flex;
2579
+ flex-direction: column;
2580
+ transform: scale(1);
2581
+ transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
2582
+ pointer-events: auto;
2583
+ }
2584
+
2585
+ .jr-upload-modal-overlay.with-overlay .modal-container {
2586
+ width: 90%;
2587
+ max-width: 1200px;
2588
+ height: 80vh;
2589
+ max-height: 800px;
2590
+ background: rgba(255, 255, 255, 0.95);
2591
+ backdrop-filter: blur(20px);
2592
+ -webkit-backdrop-filter: blur(20px);
2593
+ border-radius: 12px;
2594
+ box-shadow:
2595
+ 0 20px 60px rgba(0, 0, 0, 0.15),
2596
+ 0 8px 32px rgba(0, 0, 0, 0.1),
2597
+ 0 1px 3px rgba(0, 0, 0, 0.05);
2598
+ border: 1px solid rgba(255, 255, 255, 0.5);
2599
+ }
2487
2600
 
2488
2601
  /* 模拟iframe的body区域 */
2489
2602
  .modal-content {
@@ -2492,32 +2605,42 @@ export default {
2492
2605
  position: relative;
2493
2606
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', sans-serif;
2494
2607
  /* 背景图片通过内联样式动态设置 */
2495
- background-size: cover;
2496
- display: flex;
2497
- justify-content: center;
2498
- align-items: center;
2499
- padding: 20px;
2500
- border-radius: 0 0 12px 12px;
2501
- }
2608
+ background-size: cover;
2609
+ display: flex;
2610
+ justify-content: center;
2611
+ align-items: center;
2612
+ padding: 0;
2613
+ border-radius: 0;
2614
+ }
2615
+
2616
+ .jr-upload-modal-overlay.with-overlay .modal-content {
2617
+ padding: 20px;
2618
+ border-radius: 0 0 12px 12px;
2619
+ }
2502
2620
 
2503
2621
  /* 标题栏 */
2504
- .modal-header {
2505
- height: 50px;
2506
- background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 250, 252, 0.9) 100%);
2507
- border-bottom: 1px solid rgba(226, 232, 240, 0.8);
2508
- display: flex;
2509
- align-items: center;
2510
- justify-content: space-between;
2511
- padding: 0 20px;
2512
- position: relative;
2513
- cursor: move;
2514
- user-select: none;
2515
- }
2516
-
2517
- .modal-title {
2518
- font-size: 16px;
2519
- font-weight: 500;
2520
- color: #1e293b;
2622
+ .modal-header {
2623
+ height: 50px !important;
2624
+ background: linear-gradient(135deg, #0c5ee3 0%, rgba(59, 130, 246, 0.9) 100%) !important;
2625
+ border-bottom: 1px solid rgba(12, 94, 227, 0.25) !important;
2626
+ display: flex;
2627
+ align-items: center;
2628
+ justify-content: space-between;
2629
+ padding: 0 20px;
2630
+ position: relative;
2631
+ cursor: move;
2632
+ user-select: none;
2633
+ border-radius: 0;
2634
+ }
2635
+
2636
+ .jr-upload-modal-overlay.with-overlay .modal-header {
2637
+ border-radius: 12px 12px 0 0;
2638
+ }
2639
+
2640
+ .modal-title {
2641
+ font-size: 16px;
2642
+ font-weight: 500;
2643
+ color: #fff !important;
2521
2644
  display: flex;
2522
2645
  align-items: center;
2523
2646
  gap: 8px;
@@ -2534,67 +2657,82 @@ export default {
2534
2657
  width: 16px;
2535
2658
  height: 16px;
2536
2659
  border-radius: 50%;
2537
- border: none;
2660
+ border: none !important;
2538
2661
  cursor: pointer;
2539
2662
  transition: all 0.2s ease;
2540
2663
  position: relative;
2541
- display: flex;
2542
- align-items: center;
2543
- justify-content: center;
2544
- }
2545
-
2546
- .control-btn:hover {
2547
- transform: scale(1.1);
2548
- }
2549
-
2550
- .minimize-btn {
2551
- background: #ffbd2e;
2552
- }
2553
-
2554
- .minimize-btn:hover {
2555
- background: #f5a623;
2556
- }
2664
+ display: flex;
2665
+ align-items: center;
2666
+ justify-content: center;
2667
+ appearance: none !important;
2668
+ -webkit-appearance: none !important;
2669
+ }
2670
+
2671
+ .control-btn:hover {
2672
+ transform: scale(1.1);
2673
+ background: rgba(255, 255, 255, 0.16) !important;
2674
+ }
2675
+
2676
+ .minimize-btn {
2677
+ background: none !important;
2678
+ }
2679
+
2680
+ .minimize-btn:hover {
2681
+ background: rgba(255, 255, 255, 0.16) !important;
2682
+ }
2557
2683
 
2558
2684
  .minimize-btn::after {
2559
2685
  content: '';
2560
- width: 6px;
2561
- height: 1px;
2562
- background: #fff;
2686
+ width: 10px;
2687
+ height: 2px;
2688
+ background: #fff !important;
2563
2689
  position: absolute;
2564
2690
  }
2565
2691
 
2566
- .close-btn {
2567
- background: #ff5f57;
2568
- }
2569
-
2570
- .close-btn:hover {
2571
- background: #e8443a;
2572
- }
2692
+ .close-btn {
2693
+ background: none !important;
2694
+ }
2695
+
2696
+ .close-btn:hover {
2697
+ background: rgba(255, 255, 255, 0.16) !important;
2698
+ }
2573
2699
 
2574
2700
  .close-btn::after {
2575
- content: '×';
2576
- font-size: 12px;
2577
- color: #fff;
2701
+ content: '\2715';
2702
+ font-size: 14px;
2703
+ color: #fff !important;
2578
2704
  line-height: 1;
2579
2705
  }
2580
2706
 
2581
- .main-container {
2582
- margin-left: 0!important;
2583
- width: 92%;
2584
- max-width: 1200px;
2585
- height: 85%!important;
2586
- max-height: 800px;
2587
- background: rgba(69, 70, 60, 0.5);
2588
- backdrop-filter: blur(20px);
2589
- -webkit-backdrop-filter: blur(20px);
2590
- box-shadow:
2591
- 0 8px 32px rgba(0, 0, 0, 0.1),
2592
- 0 1px 3px rgba(0, 0, 0, 0.05),
2593
- inset 0 1px 0 rgba(255, 255, 255, 0.6);
2594
- overflow: hidden;
2595
- position: relative;
2596
- border-radius: 12px;
2597
- }
2707
+ .main-container {
2708
+ margin-left: 0!important;
2709
+ width: 100%;
2710
+ max-width: none;
2711
+ height: 100%!important;
2712
+ max-height: none;
2713
+ background: transparent;
2714
+ backdrop-filter: none;
2715
+ -webkit-backdrop-filter: none;
2716
+ box-shadow: none;
2717
+ overflow: hidden;
2718
+ position: relative;
2719
+ border-radius: 0;
2720
+ }
2721
+
2722
+ .jr-upload-modal-overlay.with-overlay .main-container {
2723
+ width: 92%;
2724
+ max-width: 1200px;
2725
+ height: 85%!important;
2726
+ max-height: 800px;
2727
+ background: rgba(69, 70, 60, 0.5);
2728
+ backdrop-filter: blur(20px);
2729
+ -webkit-backdrop-filter: blur(20px);
2730
+ box-shadow:
2731
+ 0 8px 32px rgba(0, 0, 0, 0.1),
2732
+ 0 1px 3px rgba(0, 0, 0, 0.05),
2733
+ inset 0 1px 0 rgba(255, 255, 255, 0.6);
2734
+ border-radius: 12px;
2735
+ }
2598
2736
 
2599
2737
  .content-grid {
2600
2738
  display: grid;
@@ -2629,8 +2767,8 @@ export default {
2629
2767
  width: 200%;
2630
2768
  height: 200%;
2631
2769
  background:
2632
- radial-gradient(circle at 30% 70%, rgba(255, 140, 0, 0.06) 0%, transparent 40%),
2633
- radial-gradient(circle at 70% 30%, rgba(255, 184, 77, 0.04) 0%, transparent 35%);
2770
+ radial-gradient(circle at 30% 70%, rgba(12, 94, 227, 0.06) 0%, transparent 40%),
2771
+ radial-gradient(circle at 70% 30%, rgba(59, 130, 246, 0.04) 0%, transparent 35%);
2634
2772
  animation: gentleGlow 20s ease-in-out infinite;
2635
2773
  pointer-events: none;
2636
2774
  z-index: 0;
@@ -2647,7 +2785,7 @@ export default {
2647
2785
  }
2648
2786
  }
2649
2787
 
2650
- /* 左下角渐变橙点 */
2788
+ /* 左下角渐变蓝点 */
2651
2789
  .upload-panel::after {
2652
2790
  content: '';
2653
2791
  position: absolute;
@@ -2656,10 +2794,10 @@ export default {
2656
2794
  width: 200px;
2657
2795
  height: 200px;
2658
2796
  background: linear-gradient(135deg,
2659
- rgba(255, 107, 3, 0.8) 0%,
2660
- rgba(255, 131, 51, 0.7) 30%,
2661
- rgba(255, 155, 99, 0.6) 60%,
2662
- rgba(255, 179, 147, 0.5) 100%);
2797
+ rgba(12, 94, 227, 0.8) 0%,
2798
+ rgba(37, 99, 235, 0.7) 30%,
2799
+ rgba(96, 165, 250, 0.6) 60%,
2800
+ rgba(147, 197, 253, 0.5) 100%);
2663
2801
  border-radius: 50%;
2664
2802
  filter: blur(40px);
2665
2803
  pointer-events: none;
@@ -2695,14 +2833,14 @@ export default {
2695
2833
  height: 100px;
2696
2834
  margin: 0 auto 24px;
2697
2835
  background: linear-gradient(135deg,
2698
- rgba(248, 205, 175, 0.8) 0%,
2699
- rgba(242, 202, 185, 0.5) 100%);
2836
+ rgba(147, 197, 253, 0.8) 0%,
2837
+ rgba(191, 219, 254, 0.5) 100%);
2700
2838
  border-radius: 50%;
2701
2839
  display: flex;
2702
2840
  align-items: center;
2703
2841
  justify-content: center;
2704
2842
  font-size: 48px;
2705
- color: #FF8C00;
2843
+ color: #0c5ee3;
2706
2844
  transition: all 0.3s ease;
2707
2845
  position: relative;
2708
2846
  overflow: visible;
@@ -2745,7 +2883,7 @@ export default {
2745
2883
  position: relative;
2746
2884
  width: 3px;
2747
2885
  height: 25px;
2748
- background: linear-gradient(180deg, #ff6822, #ff922b);
2886
+ background: linear-gradient(180deg, #0c5ee3, #3b82f6);
2749
2887
  border-radius: 2px;
2750
2888
  animation: arrowFlow 2.4s ease-in-out infinite;
2751
2889
  }
@@ -2760,7 +2898,7 @@ export default {
2760
2898
  height: 0;
2761
2899
  border-left: 6px solid transparent;
2762
2900
  border-right: 6px solid transparent;
2763
- border-top: 10px solid #ff922b;
2901
+ border-top: 10px solid #3b82f6;
2764
2902
  opacity: 0.7;
2765
2903
  }
2766
2904
 
@@ -2814,7 +2952,7 @@ export default {
2814
2952
  }
2815
2953
 
2816
2954
  .upload-panel.active .upload-visual {
2817
- background: linear-gradient(135deg, rgba(255, 140, 0, 0.2), rgba(255, 184, 77, 0.2));
2955
+ background: linear-gradient(135deg, rgba(12, 94, 227, 0.2), rgba(59, 130, 246, 0.2));
2818
2956
  transform: scale(1.05);
2819
2957
  }
2820
2958
 
@@ -2828,7 +2966,7 @@ export default {
2828
2966
  }
2829
2967
 
2830
2968
  .upload-panel:hover .upload-visual {
2831
- background: linear-gradient(135deg, rgba(255, 140, 0, 0.15), rgba(255, 184, 77, 0.15));
2969
+ background: linear-gradient(135deg, rgba(12, 94, 227, 0.15), rgba(59, 130, 246, 0.15));
2832
2970
  transform: scale(1.02);
2833
2971
  }
2834
2972
 
@@ -2855,7 +2993,7 @@ export default {
2855
2993
  }
2856
2994
 
2857
2995
  .upload-button {
2858
- background: linear-gradient(90deg, #ff6822, #ff922b);
2996
+ background: linear-gradient(90deg, #0c5ee3, #3b82f6);
2859
2997
  color: white;
2860
2998
  border: none;
2861
2999
  padding: 10px 24px;
@@ -2864,16 +3002,16 @@ export default {
2864
3002
  font-weight: 500;
2865
3003
  cursor: pointer;
2866
3004
  transition: all 0.3s ease;
2867
- box-shadow: 0 6px 20px rgba(255, 104, 34, 0.3);
3005
+ box-shadow: 0 6px 20px rgba(12, 94, 227, 0.3);
2868
3006
  margin-bottom: 24px;
2869
3007
  position: relative;
2870
3008
  z-index: 2;
2871
3009
  }
2872
3010
 
2873
3011
  .upload-button:hover {
2874
- background: linear-gradient(90deg, #e55a1c, #ff8520);
3012
+ background: linear-gradient(90deg, #084bb8, #0b56d0);
2875
3013
  transform: translateY(-2px);
2876
- box-shadow: 0 8px 25px rgba(255, 104, 34, 0.4);
3014
+ box-shadow: 0 8px 25px rgba(12, 94, 227, 0.4);
2877
3015
  }
2878
3016
 
2879
3017
  .upload-button:disabled {
@@ -2906,22 +3044,28 @@ export default {
2906
3044
  gap: 6px;
2907
3045
  }
2908
3046
 
2909
- .restrictions-title::before {
2910
- content: "";
2911
- width: 16px;
2912
- height: 16px;
2913
- /* tipsicon.svg 通过JS动态设置,见mounted方法 */
2914
- background-size: contain;
2915
- background-repeat: no-repeat;
2916
- background-position: center;
2917
- display: inline-block;
2918
- margin-right: 0px;
2919
- position: relative;
2920
- top: 1px;
2921
- }
3047
+ .restrictions-title::before {
3048
+ content: "i" !important;
3049
+ width: 16px !important;
3050
+ height: 16px !important;
3051
+ border-radius: 50% !important;
3052
+ background: #0c5ee3 !important;
3053
+ background-image: none !important;
3054
+ color: #fff !important;
3055
+ display: inline-flex !important;
3056
+ align-items: center !important;
3057
+ justify-content: center !important;
3058
+ font-family: Arial, sans-serif !important;
3059
+ font-size: 11px !important;
3060
+ font-weight: 700 !important;
3061
+ line-height: 16px !important;
3062
+ margin-right: 0 !important;
3063
+ position: relative !important;
3064
+ top: 1px !important;
3065
+ }
2922
3066
 
2923
3067
  .restrictions-title.validating {
2924
- color: #ff8c00;
3068
+ color: #0c5ee3;
2925
3069
  animation: validatingPulse 1.5s ease-in-out infinite;
2926
3070
  }
2927
3071
 
@@ -2966,7 +3110,7 @@ export default {
2966
3110
  }
2967
3111
 
2968
3112
  .format-tag {
2969
- color: #ff8c00;
3113
+ color: #0c5ee3;
2970
3114
  font-size: 12px;
2971
3115
  font-weight: 500;
2972
3116
  text-transform: uppercase;
@@ -2974,7 +3118,7 @@ export default {
2974
3118
  }
2975
3119
 
2976
3120
  .size-highlight {
2977
- color: #ff6b03;
3121
+ color: #0c5ee3;
2978
3122
  font-weight: 600;
2979
3123
  }
2980
3124
 
@@ -2995,7 +3139,7 @@ export default {
2995
3139
  height: 100%;
2996
3140
  }
2997
3141
 
2998
- /* 右上角渐变橙点 */
3142
+ /* 右上角渐变蓝点 */
2999
3143
  .files-panel::after {
3000
3144
  content: '';
3001
3145
  position: absolute;
@@ -3004,10 +3148,10 @@ export default {
3004
3148
  width: 200px;
3005
3149
  height: 200px;
3006
3150
  background: linear-gradient(135deg,
3007
- rgba(255, 107, 3, 0.8) 0%,
3008
- rgba(255, 131, 51, 0.7) 30%,
3009
- rgba(255, 155, 99, 0.6) 60%,
3010
- rgba(255, 179, 147, 0.5) 100%);
3151
+ rgba(12, 94, 227, 0.8) 0%,
3152
+ rgba(37, 99, 235, 0.7) 30%,
3153
+ rgba(96, 165, 250, 0.6) 60%,
3154
+ rgba(147, 197, 253, 0.5) 100%);
3011
3155
  border-radius: 50%;
3012
3156
  filter: blur(40px);
3013
3157
  pointer-events: none;
@@ -3062,7 +3206,7 @@ export default {
3062
3206
  font-size: 16px;
3063
3207
  font-weight: 600;
3064
3208
  color: #1e293b;
3065
- text-shadow: 0 0 20px rgba(255, 140, 0, 0.1);
3209
+ text-shadow: 0 0 20px rgba(12, 94, 227, 0.1);
3066
3210
  margin-bottom: 12px;
3067
3211
  }
3068
3212
 
@@ -3085,7 +3229,7 @@ export default {
3085
3229
  }
3086
3230
 
3087
3231
  .file-card:hover {
3088
- border-color: #ff6b03;
3232
+ border-color: #0c5ee3;
3089
3233
  }
3090
3234
 
3091
3235
  .file-row {
@@ -3132,7 +3276,7 @@ export default {
3132
3276
  }
3133
3277
 
3134
3278
  .file-title:hover {
3135
- color: #ff6b03;
3279
+ color: #0c5ee3;
3136
3280
  }
3137
3281
 
3138
3282
  .file-meta {
@@ -3227,7 +3371,7 @@ export default {
3227
3371
 
3228
3372
  .progress-bar {
3229
3373
  height: 100%;
3230
- background: linear-gradient(90deg, #FF8C00, #ffb84d);
3374
+ background: linear-gradient(90deg, #0c5ee3, #60a5fa);
3231
3375
  border-radius: 3px;
3232
3376
  transition: width 0.6s ease;
3233
3377
  }
@@ -3369,7 +3513,7 @@ export default {
3369
3513
  }
3370
3514
 
3371
3515
  .file-local-path .path-value:hover {
3372
- color: #ff6b03;
3516
+ color: #0c5ee3;
3373
3517
  }
3374
3518
 
3375
3519
  /* Electron环境指示器样式 */
@@ -3403,7 +3547,7 @@ export default {
3403
3547
  }
3404
3548
 
3405
3549
  .start-upload-button {
3406
- background: linear-gradient(90deg, #ff6822, #ff922b);
3550
+ background: linear-gradient(90deg, #0c5ee3, #3b82f6);
3407
3551
  color: white;
3408
3552
  border: none;
3409
3553
  padding: 12px 24px;
@@ -3411,15 +3555,15 @@ export default {
3411
3555
  font-size: 14px;
3412
3556
  cursor: pointer;
3413
3557
  transition: all 0.3s ease;
3414
- box-shadow: 0 6px 20px rgba(255, 104, 34, 0.3);
3558
+ box-shadow: 0 6px 20px rgba(12, 94, 227, 0.3);
3415
3559
  position: relative;
3416
3560
  overflow: hidden;
3417
3561
  }
3418
3562
 
3419
3563
  .start-upload-button:hover {
3420
- background: linear-gradient(90deg, #e55a1c, #ff8520);
3564
+ background: linear-gradient(90deg, #084bb8, #0b56d0);
3421
3565
  transform: translateY(-2px);
3422
- box-shadow: 0 8px 25px rgba(255, 104, 34, 0.4);
3566
+ box-shadow: 0 8px 25px rgba(12, 94, 227, 0.4);
3423
3567
  }
3424
3568
 
3425
3569
  .start-upload-button:disabled {