@cmstops/pro-compo 0.3.23 → 0.3.25
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.css +52 -45
- package/dist/index.min.css +1 -1
- package/es/contentDetailList/components/Content/index.js +4 -1
- package/es/contentModal/components/ViewAllColumn/MediaFilter/index.js +58 -32
- package/es/editMetaInfo/components/metaInfoForm.js +57 -23
- package/es/index.css +52 -45
- package/es/index.d.ts +1 -1
- package/es/index.js +1 -1
- package/es/index.less +1 -1
- package/es/{mediaGridList → resourceGridList}/component.js +39 -25
- package/es/{mediaGridList → resourceGridList}/components/FileTypeThumb/index.js +1 -1
- package/es/resourceGridList/index.d.ts +2 -0
- package/es/{mediaGridList → resourceGridList}/index.js +2 -2
- package/es/{mediaGridList → resourceGridList}/style/FileTypeThumb.less +5 -4
- package/es/{mediaGridList → resourceGridList}/style/index.css +49 -43
- package/es/{mediaGridList → resourceGridList}/style/index.less +6 -0
- package/es/resourceModal/style/FileTypeThumb.less +3 -2
- package/es/resourceModal/style/index.css +3 -2
- package/lib/contentDetailList/components/Content/index.js +4 -1
- package/lib/contentModal/components/ViewAllColumn/MediaFilter/index.js +55 -29
- package/lib/editMetaInfo/components/metaInfoForm.js +57 -23
- package/lib/index.css +52 -45
- package/lib/index.js +2 -2
- package/lib/index.less +1 -1
- package/lib/{mediaGridList → resourceGridList}/component.js +38 -24
- package/lib/{mediaGridList → resourceGridList}/components/FileTypeThumb/index.js +1 -1
- package/lib/{mediaGridList → resourceGridList}/index.js +2 -2
- package/lib/{mediaGridList → resourceGridList}/style/FileTypeThumb.less +5 -4
- package/lib/{mediaGridList → resourceGridList}/style/index.css +49 -43
- package/lib/{mediaGridList → resourceGridList}/style/index.less +6 -0
- package/lib/resourceModal/style/FileTypeThumb.less +3 -2
- package/lib/resourceModal/style/index.css +3 -2
- package/package.json +1 -1
- package/es/mediaGridList/index.d.ts +0 -2
- /package/es/{mediaGridList → resourceGridList}/component.d.ts +0 -0
- /package/es/{mediaGridList → resourceGridList}/components/FileTypeThumb/index.d.ts +0 -0
- /package/es/{mediaGridList → resourceGridList}/style/css.js +0 -0
- /package/es/{mediaGridList → resourceGridList}/style/index.d.ts +0 -0
- /package/es/{mediaGridList → resourceGridList}/style/index.js +0 -0
- /package/lib/{mediaGridList → resourceGridList}/style/css.js +0 -0
- /package/lib/{mediaGridList → resourceGridList}/style/index.js +0 -0
|
@@ -40,6 +40,8 @@ const _sfc_main = defineComponent({
|
|
|
40
40
|
const form = ref({
|
|
41
41
|
title: "",
|
|
42
42
|
style: "",
|
|
43
|
+
app_link_title: "",
|
|
44
|
+
pc_link_title: "",
|
|
43
45
|
sub_title: "",
|
|
44
46
|
head_title: "",
|
|
45
47
|
summary: "",
|
|
@@ -346,6 +348,38 @@ const _sfc_main = defineComponent({
|
|
|
346
348
|
]),
|
|
347
349
|
_: 1
|
|
348
350
|
}),
|
|
351
|
+
createVNode(unref(FormItem), {
|
|
352
|
+
key: "app_link_title",
|
|
353
|
+
field: "app_link_title",
|
|
354
|
+
label: "APP \u94FE\u63A5\u6807\u9898"
|
|
355
|
+
}, {
|
|
356
|
+
default: withCtx(() => [
|
|
357
|
+
createVNode(unref(Input), {
|
|
358
|
+
modelValue: form.value.app_link_title,
|
|
359
|
+
"onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => form.value.app_link_title = $event),
|
|
360
|
+
"allow-clear": "",
|
|
361
|
+
class: "input-w",
|
|
362
|
+
placeholder: "\u586B\u5199APP\u94FE\u63A5\u6807\u9898"
|
|
363
|
+
}, null, 8, ["modelValue"])
|
|
364
|
+
]),
|
|
365
|
+
_: 1
|
|
366
|
+
}),
|
|
367
|
+
createVNode(unref(FormItem), {
|
|
368
|
+
key: "pc_link_title",
|
|
369
|
+
field: "pc_link_title",
|
|
370
|
+
label: "PC \u94FE\u63A5\u6807\u9898"
|
|
371
|
+
}, {
|
|
372
|
+
default: withCtx(() => [
|
|
373
|
+
createVNode(unref(Input), {
|
|
374
|
+
modelValue: form.value.pc_link_title,
|
|
375
|
+
"onUpdate:modelValue": _cache[5] || (_cache[5] = ($event) => form.value.pc_link_title = $event),
|
|
376
|
+
"allow-clear": "",
|
|
377
|
+
class: "input-w",
|
|
378
|
+
placeholder: "\u586B\u5199PC\u94FE\u63A5\u6807\u9898"
|
|
379
|
+
}, null, 8, ["modelValue"])
|
|
380
|
+
]),
|
|
381
|
+
_: 1
|
|
382
|
+
}),
|
|
349
383
|
createVNode(unref(FormItem), {
|
|
350
384
|
key: "sub_title",
|
|
351
385
|
field: "sub_title",
|
|
@@ -354,7 +388,7 @@ const _sfc_main = defineComponent({
|
|
|
354
388
|
default: withCtx(() => [
|
|
355
389
|
createVNode(unref(Input), {
|
|
356
390
|
modelValue: form.value.sub_title,
|
|
357
|
-
"onUpdate:modelValue": _cache[
|
|
391
|
+
"onUpdate:modelValue": _cache[6] || (_cache[6] = ($event) => form.value.sub_title = $event),
|
|
358
392
|
"allow-clear": "",
|
|
359
393
|
class: "input-w",
|
|
360
394
|
placeholder: "\u586B\u5199\u526F\u6807\u9898"
|
|
@@ -370,7 +404,7 @@ const _sfc_main = defineComponent({
|
|
|
370
404
|
default: withCtx(() => [
|
|
371
405
|
createVNode(unref(Input), {
|
|
372
406
|
modelValue: form.value.head_title,
|
|
373
|
-
"onUpdate:modelValue": _cache[
|
|
407
|
+
"onUpdate:modelValue": _cache[7] || (_cache[7] = ($event) => form.value.head_title = $event),
|
|
374
408
|
"allow-clear": "",
|
|
375
409
|
class: "input-w",
|
|
376
410
|
placeholder: "\u586B\u5199\u5F15\u6807\u9898"
|
|
@@ -386,7 +420,7 @@ const _sfc_main = defineComponent({
|
|
|
386
420
|
default: withCtx(() => [
|
|
387
421
|
createVNode(unref(Input), {
|
|
388
422
|
modelValue: form.value.summary,
|
|
389
|
-
"onUpdate:modelValue": _cache[
|
|
423
|
+
"onUpdate:modelValue": _cache[8] || (_cache[8] = ($event) => form.value.summary = $event),
|
|
390
424
|
"allow-clear": "",
|
|
391
425
|
class: "input-w",
|
|
392
426
|
placeholder: "\u586B\u5199\u6458\u8981"
|
|
@@ -402,7 +436,7 @@ const _sfc_main = defineComponent({
|
|
|
402
436
|
default: withCtx(() => [
|
|
403
437
|
createVNode(unref(Input), {
|
|
404
438
|
modelValue: form.value.guide,
|
|
405
|
-
"onUpdate:modelValue": _cache[
|
|
439
|
+
"onUpdate:modelValue": _cache[9] || (_cache[9] = ($event) => form.value.guide = $event),
|
|
406
440
|
"allow-clear": "",
|
|
407
441
|
class: "input-w",
|
|
408
442
|
placeholder: "\u586B\u5199\u5BFC\u8BFB"
|
|
@@ -418,7 +452,7 @@ const _sfc_main = defineComponent({
|
|
|
418
452
|
default: withCtx(() => [
|
|
419
453
|
createVNode(unref(InputTag), {
|
|
420
454
|
modelValue: form.value.keywords,
|
|
421
|
-
"onUpdate:modelValue": _cache[
|
|
455
|
+
"onUpdate:modelValue": _cache[10] || (_cache[10] = ($event) => form.value.keywords = $event),
|
|
422
456
|
"allow-clear": "",
|
|
423
457
|
class: "input-w",
|
|
424
458
|
placeholder: "\u8BBE\u7F6E\u5173\u952E\u8BCD"
|
|
@@ -434,7 +468,7 @@ const _sfc_main = defineComponent({
|
|
|
434
468
|
default: withCtx(() => [
|
|
435
469
|
createVNode(unref(Select), {
|
|
436
470
|
modelValue: form.value.source,
|
|
437
|
-
"onUpdate:modelValue": _cache[
|
|
471
|
+
"onUpdate:modelValue": _cache[11] || (_cache[11] = ($event) => form.value.source = $event),
|
|
438
472
|
class: "input-w",
|
|
439
473
|
placeholder: "\u8BF7\u9009\u62E9"
|
|
440
474
|
}, {
|
|
@@ -461,7 +495,7 @@ const _sfc_main = defineComponent({
|
|
|
461
495
|
default: withCtx(() => [
|
|
462
496
|
createVNode(unref(Switch), {
|
|
463
497
|
modelValue: form.value.statement,
|
|
464
|
-
"onUpdate:modelValue": _cache[
|
|
498
|
+
"onUpdate:modelValue": _cache[12] || (_cache[12] = ($event) => form.value.statement = $event),
|
|
465
499
|
onChange: changeStatement
|
|
466
500
|
}, null, 8, ["modelValue"])
|
|
467
501
|
]),
|
|
@@ -475,7 +509,7 @@ const _sfc_main = defineComponent({
|
|
|
475
509
|
default: withCtx(() => [
|
|
476
510
|
createVNode(unref(Input), {
|
|
477
511
|
modelValue: form.value.source_url,
|
|
478
|
-
"onUpdate:modelValue": _cache[
|
|
512
|
+
"onUpdate:modelValue": _cache[13] || (_cache[13] = ($event) => form.value.source_url = $event),
|
|
479
513
|
"allow-clear": "",
|
|
480
514
|
class: "input-w",
|
|
481
515
|
placeholder: "\u586B\u5199\u6765\u6E90URL"
|
|
@@ -491,7 +525,7 @@ const _sfc_main = defineComponent({
|
|
|
491
525
|
default: withCtx(() => [
|
|
492
526
|
createVNode(unref(Input), {
|
|
493
527
|
modelValue: form.value.author,
|
|
494
|
-
"onUpdate:modelValue": _cache[
|
|
528
|
+
"onUpdate:modelValue": _cache[14] || (_cache[14] = ($event) => form.value.author = $event),
|
|
495
529
|
"allow-clear": "",
|
|
496
530
|
class: "input-w",
|
|
497
531
|
placeholder: "\u586B\u5199\u4F5C\u8005"
|
|
@@ -507,7 +541,7 @@ const _sfc_main = defineComponent({
|
|
|
507
541
|
default: withCtx(() => [
|
|
508
542
|
createVNode(unref(Select), {
|
|
509
543
|
modelValue: form.value.duty_editor,
|
|
510
|
-
"onUpdate:modelValue": _cache[
|
|
544
|
+
"onUpdate:modelValue": _cache[15] || (_cache[15] = ($event) => form.value.duty_editor = $event),
|
|
511
545
|
class: "input-w",
|
|
512
546
|
multiple: "",
|
|
513
547
|
placeholder: "\u8BBE\u7F6E\u7F16\u8F91"
|
|
@@ -534,7 +568,7 @@ const _sfc_main = defineComponent({
|
|
|
534
568
|
default: withCtx(() => [
|
|
535
569
|
createVNode(unref(InputTag), {
|
|
536
570
|
modelValue: form.value.extra_attrs,
|
|
537
|
-
"onUpdate:modelValue": _cache[
|
|
571
|
+
"onUpdate:modelValue": _cache[16] || (_cache[16] = ($event) => form.value.extra_attrs = $event),
|
|
538
572
|
"allow-clear": "",
|
|
539
573
|
class: "input-w",
|
|
540
574
|
placeholder: "\u8BBE\u7F6E\u81EA\u5B9A\u4E49\u5C5E\u6027"
|
|
@@ -551,7 +585,7 @@ const _sfc_main = defineComponent({
|
|
|
551
585
|
default: withCtx(() => [
|
|
552
586
|
createVNode(unref(DatePicker), {
|
|
553
587
|
modelValue: form.value.self_publish_time,
|
|
554
|
-
"onUpdate:modelValue": _cache[
|
|
588
|
+
"onUpdate:modelValue": _cache[17] || (_cache[17] = ($event) => form.value.self_publish_time = $event),
|
|
555
589
|
"time-picker-props": { defaultValue: "12:00:00" },
|
|
556
590
|
placeholder: "\u9009\u62E9\u81EA\u5B9A\u4E49\u53D1\u5E03\u65F6\u95F4",
|
|
557
591
|
"show-time": "",
|
|
@@ -569,7 +603,7 @@ const _sfc_main = defineComponent({
|
|
|
569
603
|
default: withCtx(() => [
|
|
570
604
|
createVNode(unref(Switch), {
|
|
571
605
|
modelValue: form.value.line_time,
|
|
572
|
-
"onUpdate:modelValue": _cache[
|
|
606
|
+
"onUpdate:modelValue": _cache[18] || (_cache[18] = ($event) => form.value.line_time = $event),
|
|
573
607
|
onChange: lineTimeChange
|
|
574
608
|
}, null, 8, ["modelValue"])
|
|
575
609
|
]),
|
|
@@ -585,7 +619,7 @@ const _sfc_main = defineComponent({
|
|
|
585
619
|
default: withCtx(() => [
|
|
586
620
|
createVNode(unref(DatePicker), {
|
|
587
621
|
modelValue: form.value.online_time,
|
|
588
|
-
"onUpdate:modelValue": _cache[
|
|
622
|
+
"onUpdate:modelValue": _cache[19] || (_cache[19] = ($event) => form.value.online_time = $event),
|
|
589
623
|
"disabled-date": disabledStartTime,
|
|
590
624
|
"time-picker-props": { defaultValue: "12:00:00" },
|
|
591
625
|
disabled: disabledDatePickerOnlineTime.value,
|
|
@@ -605,7 +639,7 @@ const _sfc_main = defineComponent({
|
|
|
605
639
|
default: withCtx(() => [
|
|
606
640
|
createVNode(unref(DatePicker), {
|
|
607
641
|
modelValue: form.value.offline_time,
|
|
608
|
-
"onUpdate:modelValue": _cache[
|
|
642
|
+
"onUpdate:modelValue": _cache[20] || (_cache[20] = ($event) => form.value.offline_time = $event),
|
|
609
643
|
"disabled-date": disabledEndTime,
|
|
610
644
|
"time-picker-props": { defaultValue: "12:00:00" },
|
|
611
645
|
placeholder: "\u9009\u62E9\u4E0B\u7EBF\u65F6\u95F4",
|
|
@@ -625,7 +659,7 @@ const _sfc_main = defineComponent({
|
|
|
625
659
|
default: withCtx(() => [
|
|
626
660
|
createVNode(unref(Switch), {
|
|
627
661
|
modelValue: form.value.ori_count,
|
|
628
|
-
"onUpdate:modelValue": _cache[
|
|
662
|
+
"onUpdate:modelValue": _cache[21] || (_cache[21] = ($event) => form.value.ori_count = $event)
|
|
629
663
|
}, null, 8, ["modelValue"])
|
|
630
664
|
]),
|
|
631
665
|
_: 1
|
|
@@ -639,7 +673,7 @@ const _sfc_main = defineComponent({
|
|
|
639
673
|
default: withCtx(() => [
|
|
640
674
|
createVNode(unref(InputNumber), {
|
|
641
675
|
modelValue: form.value.ori_read_count,
|
|
642
|
-
"onUpdate:modelValue": _cache[
|
|
676
|
+
"onUpdate:modelValue": _cache[22] || (_cache[22] = ($event) => form.value.ori_read_count = $event),
|
|
643
677
|
style: { width: "240px" }
|
|
644
678
|
}, null, 8, ["modelValue"])
|
|
645
679
|
]),
|
|
@@ -656,7 +690,7 @@ const _sfc_main = defineComponent({
|
|
|
656
690
|
default: withCtx(() => [
|
|
657
691
|
createVNode(unref(InputNumber), {
|
|
658
692
|
modelValue: form.value.ori_thumbup_count,
|
|
659
|
-
"onUpdate:modelValue": _cache[
|
|
693
|
+
"onUpdate:modelValue": _cache[23] || (_cache[23] = ($event) => form.value.ori_thumbup_count = $event),
|
|
660
694
|
style: { width: "240px" }
|
|
661
695
|
}, null, 8, ["modelValue"])
|
|
662
696
|
]),
|
|
@@ -673,7 +707,7 @@ const _sfc_main = defineComponent({
|
|
|
673
707
|
default: withCtx(() => [
|
|
674
708
|
createVNode(unref(Switch), {
|
|
675
709
|
modelValue: form.value.comment_available,
|
|
676
|
-
"onUpdate:modelValue": _cache[
|
|
710
|
+
"onUpdate:modelValue": _cache[24] || (_cache[24] = ($event) => form.value.comment_available = $event)
|
|
677
711
|
}, null, 8, ["modelValue"])
|
|
678
712
|
]),
|
|
679
713
|
_: 1
|
|
@@ -687,7 +721,7 @@ const _sfc_main = defineComponent({
|
|
|
687
721
|
default: withCtx(() => [
|
|
688
722
|
createVNode(unref(Switch), {
|
|
689
723
|
modelValue: form.value.is_recommend,
|
|
690
|
-
"onUpdate:modelValue": _cache[
|
|
724
|
+
"onUpdate:modelValue": _cache[25] || (_cache[25] = ($event) => form.value.is_recommend = $event)
|
|
691
725
|
}, null, 8, ["modelValue"])
|
|
692
726
|
]),
|
|
693
727
|
_: 1
|
|
@@ -701,7 +735,7 @@ const _sfc_main = defineComponent({
|
|
|
701
735
|
default: withCtx(() => [
|
|
702
736
|
createVNode(unref(Switch), {
|
|
703
737
|
modelValue: form.value.album_status,
|
|
704
|
-
"onUpdate:modelValue": _cache[
|
|
738
|
+
"onUpdate:modelValue": _cache[26] || (_cache[26] = ($event) => form.value.album_status = $event)
|
|
705
739
|
}, null, 8, ["modelValue"])
|
|
706
740
|
]),
|
|
707
741
|
_: 1
|
|
@@ -716,12 +750,12 @@ const _sfc_main = defineComponent({
|
|
|
716
750
|
default: withCtx(() => [
|
|
717
751
|
createVNode(unref(Switch), {
|
|
718
752
|
modelValue: silenceOptions.value,
|
|
719
|
-
"onUpdate:modelValue": _cache[
|
|
753
|
+
"onUpdate:modelValue": _cache[27] || (_cache[27] = ($event) => silenceOptions.value = $event)
|
|
720
754
|
}, null, 8, ["modelValue"]),
|
|
721
755
|
silenceOptions.value ? (openBlock(), createElementBlock("div", _hoisted_1, [
|
|
722
756
|
createVNode(unref(RadioGroup), {
|
|
723
757
|
modelValue: form.value.mourn_style,
|
|
724
|
-
"onUpdate:modelValue": _cache[
|
|
758
|
+
"onUpdate:modelValue": _cache[28] || (_cache[28] = ($event) => form.value.mourn_style = $event)
|
|
725
759
|
}, {
|
|
726
760
|
default: withCtx(() => [
|
|
727
761
|
createVNode(unref(Radio), { value: 1 }, {
|
package/es/index.css
CHANGED
|
@@ -887,8 +887,9 @@
|
|
|
887
887
|
}
|
|
888
888
|
.file-type-thumb .tag {
|
|
889
889
|
position: absolute;
|
|
890
|
-
|
|
891
|
-
|
|
890
|
+
display: flex;
|
|
891
|
+
align-items: center;
|
|
892
|
+
justify-content: center;
|
|
892
893
|
padding: 2px 8px;
|
|
893
894
|
color: white;
|
|
894
895
|
font-size: 12px;
|
|
@@ -3894,14 +3895,14 @@
|
|
|
3894
3895
|
padding: 0 2px;
|
|
3895
3896
|
border: none;
|
|
3896
3897
|
}
|
|
3897
|
-
.file-type-thumb {
|
|
3898
|
+
.resource-grid-file-type-thumb {
|
|
3898
3899
|
position: relative;
|
|
3899
3900
|
width: 100%;
|
|
3900
3901
|
}
|
|
3901
|
-
.file-type-thumb:hover .mask {
|
|
3902
|
+
.resource-grid-file-type-thumb:hover .mask {
|
|
3902
3903
|
display: flex;
|
|
3903
3904
|
}
|
|
3904
|
-
.file-type-thumb .mask {
|
|
3905
|
+
.resource-grid-file-type-thumb .mask {
|
|
3905
3906
|
position: absolute;
|
|
3906
3907
|
top: 0;
|
|
3907
3908
|
display: none;
|
|
@@ -3913,56 +3914,57 @@
|
|
|
3913
3914
|
font-size: 18px;
|
|
3914
3915
|
background: rgba(0, 0, 0, 0.3);
|
|
3915
3916
|
}
|
|
3916
|
-
.file-type-thumb .mask i {
|
|
3917
|
+
.resource-grid-file-type-thumb .mask i {
|
|
3917
3918
|
display: inline-block;
|
|
3918
3919
|
cursor: pointer;
|
|
3919
3920
|
}
|
|
3920
|
-
.file-type-thumb .mask i:active {
|
|
3921
|
+
.resource-grid-file-type-thumb .mask i:active {
|
|
3921
3922
|
opacity: 0.4;
|
|
3922
3923
|
}
|
|
3923
|
-
.file-type-thumb .mask .half {
|
|
3924
|
+
.resource-grid-file-type-thumb .mask .half {
|
|
3924
3925
|
display: flex;
|
|
3925
3926
|
align-items: center;
|
|
3926
3927
|
justify-content: center;
|
|
3927
3928
|
width: 48%;
|
|
3928
3929
|
height: 100%;
|
|
3929
3930
|
}
|
|
3930
|
-
.file-type-thumb .mask .half:hover {
|
|
3931
|
+
.resource-grid-file-type-thumb .mask .half:hover {
|
|
3931
3932
|
cursor: pointer;
|
|
3932
3933
|
opacity: 0.7;
|
|
3933
3934
|
}
|
|
3934
|
-
.file-type-thumb .mask .el-divider {
|
|
3935
|
+
.resource-grid-file-type-thumb .mask .el-divider {
|
|
3935
3936
|
margin: 0;
|
|
3936
3937
|
opacity: 0.4;
|
|
3937
3938
|
}
|
|
3938
|
-
.file-type-thumb .transparent {
|
|
3939
|
+
.resource-grid-file-type-thumb .transparent {
|
|
3939
3940
|
position: absolute;
|
|
3940
3941
|
top: 0;
|
|
3941
3942
|
width: 100%;
|
|
3942
3943
|
height: 100%;
|
|
3943
3944
|
}
|
|
3944
|
-
.file-type-thumb .transparent:hover {
|
|
3945
|
+
.resource-grid-file-type-thumb .transparent:hover {
|
|
3945
3946
|
cursor: pointer;
|
|
3946
3947
|
}
|
|
3947
|
-
.file-type-thumb .tag {
|
|
3948
|
+
.resource-grid-file-type-thumb .tag {
|
|
3948
3949
|
position: absolute;
|
|
3949
|
-
|
|
3950
|
-
|
|
3950
|
+
display: flex;
|
|
3951
|
+
align-items: center;
|
|
3952
|
+
justify-content: center;
|
|
3951
3953
|
padding: 2px 8px;
|
|
3952
3954
|
color: white;
|
|
3953
3955
|
font-size: 12px;
|
|
3954
|
-
background-color: rgba(
|
|
3956
|
+
background-color: rgba(0, 0, 0, 0.2);
|
|
3955
3957
|
border-radius: 12px;
|
|
3956
3958
|
}
|
|
3957
|
-
.file-type-thumb .rate-info-tag {
|
|
3959
|
+
.resource-grid-file-type-thumb .rate-info-tag {
|
|
3958
3960
|
top: 8px;
|
|
3959
3961
|
left: 5px;
|
|
3960
3962
|
}
|
|
3961
|
-
.file-type-thumb .ai-tag {
|
|
3963
|
+
.resource-grid-file-type-thumb .ai-tag {
|
|
3962
3964
|
top: 8px;
|
|
3963
3965
|
right: 5px;
|
|
3964
3966
|
}
|
|
3965
|
-
.file-type-thumb .pic {
|
|
3967
|
+
.resource-grid-file-type-thumb .pic {
|
|
3966
3968
|
width: 100%;
|
|
3967
3969
|
padding-top: 56.25%;
|
|
3968
3970
|
background-color: #fff;
|
|
@@ -3972,83 +3974,83 @@
|
|
|
3972
3974
|
background-position: top;
|
|
3973
3975
|
background-size: cover;
|
|
3974
3976
|
}
|
|
3975
|
-
.file-type-thumb .pic:hover {
|
|
3977
|
+
.resource-grid-file-type-thumb .pic:hover {
|
|
3976
3978
|
transform: scale(1.02);
|
|
3977
3979
|
transition: ease-out 0.4s;
|
|
3978
3980
|
}
|
|
3979
|
-
.file-type-thumb .audio {
|
|
3981
|
+
.resource-grid-file-type-thumb .audio {
|
|
3980
3982
|
background-image: url('../assets/images/music.png') !important;
|
|
3981
3983
|
}
|
|
3982
|
-
.file-type-thumb .audio.doc {
|
|
3984
|
+
.resource-grid-file-type-thumb .audio.doc {
|
|
3983
3985
|
background-image: url('../assets/images/draf.png') !important;
|
|
3984
3986
|
}
|
|
3985
|
-
.file-type-thumb .project {
|
|
3987
|
+
.resource-grid-file-type-thumb .project {
|
|
3986
3988
|
background-image: url('../assets/images/project1.png') !important;
|
|
3987
3989
|
}
|
|
3988
|
-
.file-type-thumb .doc {
|
|
3990
|
+
.resource-grid-file-type-thumb .doc {
|
|
3989
3991
|
background-image: url('../assets/images/draf.png');
|
|
3990
3992
|
}
|
|
3991
|
-
.file-type-thumb .link {
|
|
3993
|
+
.resource-grid-file-type-thumb .link {
|
|
3992
3994
|
background-image: url('../assets/images/link.png');
|
|
3993
3995
|
}
|
|
3994
|
-
.file-type-thumb .sp_topic {
|
|
3996
|
+
.resource-grid-file-type-thumb .sp_topic {
|
|
3995
3997
|
background-image: url('../assets/images/link.png');
|
|
3996
3998
|
}
|
|
3997
|
-
.file-type-thumb .live {
|
|
3999
|
+
.resource-grid-file-type-thumb .live {
|
|
3998
4000
|
background-image: url('../assets/images/live.png');
|
|
3999
4001
|
}
|
|
4000
|
-
.file-type-thumb .pdf {
|
|
4002
|
+
.resource-grid-file-type-thumb .pdf {
|
|
4001
4003
|
background-image: url('../assets/images/pdf.png') !important;
|
|
4002
4004
|
}
|
|
4003
|
-
.file-type-thumb .officeexcel {
|
|
4005
|
+
.resource-grid-file-type-thumb .officeexcel {
|
|
4004
4006
|
background-image: url('../assets/images/excel.png') !important;
|
|
4005
4007
|
}
|
|
4006
|
-
.file-type-thumb .officeppt {
|
|
4008
|
+
.resource-grid-file-type-thumb .officeppt {
|
|
4007
4009
|
background-image: url('../assets/images/ppt.png') !important;
|
|
4008
4010
|
}
|
|
4009
|
-
.file-type-thumb .zip {
|
|
4011
|
+
.resource-grid-file-type-thumb .zip {
|
|
4010
4012
|
background-image: url('../assets/images/zip.png') !important;
|
|
4011
4013
|
}
|
|
4012
|
-
.file-type-thumb .rar {
|
|
4014
|
+
.resource-grid-file-type-thumb .rar {
|
|
4013
4015
|
background-image: url('../assets/images/rar.png') !important;
|
|
4014
4016
|
}
|
|
4015
|
-
.file-type-thumb .txt {
|
|
4017
|
+
.resource-grid-file-type-thumb .txt {
|
|
4016
4018
|
background-image: url('../assets/images/txt.png') !important;
|
|
4017
4019
|
}
|
|
4018
|
-
.file-type-thumb .exe {
|
|
4020
|
+
.resource-grid-file-type-thumb .exe {
|
|
4019
4021
|
background-image: url('../assets/images/exe.png') !important;
|
|
4020
4022
|
}
|
|
4021
|
-
.file-type-thumb .html {
|
|
4023
|
+
.resource-grid-file-type-thumb .html {
|
|
4022
4024
|
background-image: url('../assets/images/html.png') !important;
|
|
4023
4025
|
}
|
|
4024
|
-
.file-type-thumb .officedoc {
|
|
4026
|
+
.resource-grid-file-type-thumb .officedoc {
|
|
4025
4027
|
background-image: url('../assets/images/word.png') !important;
|
|
4026
4028
|
}
|
|
4027
|
-
.file-type-thumb .wechat {
|
|
4029
|
+
.resource-grid-file-type-thumb .wechat {
|
|
4028
4030
|
background-image: url('../assets/images/wechat.png') !important;
|
|
4029
4031
|
}
|
|
4030
|
-
.file-type-thumb .h5 {
|
|
4032
|
+
.resource-grid-file-type-thumb .h5 {
|
|
4031
4033
|
background-image: url('../assets/images/h5.png') !important;
|
|
4032
4034
|
}
|
|
4033
|
-
.file-type-thumb .ad {
|
|
4035
|
+
.resource-grid-file-type-thumb .ad {
|
|
4034
4036
|
background-image: url('../assets/images/ad.png') !important;
|
|
4035
4037
|
}
|
|
4036
|
-
.file-type-thumb .booklink {
|
|
4038
|
+
.resource-grid-file-type-thumb .booklink {
|
|
4037
4039
|
background-image: url('../assets/images/booklink.png') !important;
|
|
4038
4040
|
}
|
|
4039
|
-
.file-type-thumb .activity {
|
|
4041
|
+
.resource-grid-file-type-thumb .activity {
|
|
4040
4042
|
background-image: url('../assets/images/activity.png') !important;
|
|
4041
4043
|
}
|
|
4042
|
-
.file-type-thumb .svideo {
|
|
4044
|
+
.resource-grid-file-type-thumb .svideo {
|
|
4043
4045
|
background-image: url('../assets/images/svideo.png') !important;
|
|
4044
4046
|
}
|
|
4045
|
-
.file-type-thumb .cloud_lottery {
|
|
4047
|
+
.resource-grid-file-type-thumb .cloud_lottery {
|
|
4046
4048
|
background-image: url('../assets/images/cloud_lottery.png') !important;
|
|
4047
4049
|
}
|
|
4048
|
-
.file-type-thumb .cloud_form {
|
|
4050
|
+
.resource-grid-file-type-thumb .cloud_form {
|
|
4049
4051
|
background-image: url('../assets/images/cloud_form.png') !important;
|
|
4050
4052
|
}
|
|
4051
|
-
.file-type-thumb .illegal-media-warning {
|
|
4053
|
+
.resource-grid-file-type-thumb .illegal-media-warning {
|
|
4052
4054
|
position: absolute;
|
|
4053
4055
|
top: 0;
|
|
4054
4056
|
width: 100%;
|
|
@@ -4228,6 +4230,11 @@
|
|
|
4228
4230
|
line-height: 1em;
|
|
4229
4231
|
opacity: 0.65;
|
|
4230
4232
|
}
|
|
4233
|
+
.media-grid-list-scroll .file-wrap .file-list .item .shadow-wrap .menu-wrap {
|
|
4234
|
+
position: absolute;
|
|
4235
|
+
right: 10px;
|
|
4236
|
+
bottom: 10px;
|
|
4237
|
+
}
|
|
4231
4238
|
.media-grid-list-scroll .file-wrap .file-list::after {
|
|
4232
4239
|
height: 50px;
|
|
4233
4240
|
}
|
package/es/index.d.ts
CHANGED
|
@@ -20,5 +20,5 @@ export { default as editMetaInfo } from './editMetaInfo';
|
|
|
20
20
|
export { default as baseFilter } from './baseFilter';
|
|
21
21
|
export { default as dataTags } from './dataTags';
|
|
22
22
|
export { default as colorPalette } from './colorPalette';
|
|
23
|
-
export { default as
|
|
23
|
+
export { default as resourceGridList } from './resourceGridList';
|
|
24
24
|
export { default as mediaView } from './mediaView';
|
package/es/index.js
CHANGED
|
@@ -20,5 +20,5 @@ export { default as editMetaInfo } from "./editMetaInfo/index.js";
|
|
|
20
20
|
export { default as baseFilter } from "./baseFilter/index.js";
|
|
21
21
|
export { default as dataTags } from "./dataTags/index.js";
|
|
22
22
|
export { default as colorPalette } from "./colorPalette/index.js";
|
|
23
|
-
export { default as
|
|
23
|
+
export { default as resourceGridList } from "./resourceGridList/index.js";
|
|
24
24
|
export { default as mediaView } from "./mediaView/index.js";
|
package/es/index.less
CHANGED
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
@import './baseFilter/style/index.less';
|
|
21
21
|
@import './dataTags/style/index.less';
|
|
22
22
|
@import './colorPalette/style/index.less';
|
|
23
|
-
@import './
|
|
23
|
+
@import './resourceGridList/style/index.less';
|
|
24
24
|
@import './mediaView/style/index.less';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent, ref, watch, openBlock, createBlock, unref, withCtx, createElementVNode, createCommentVNode, withDirectives, createElementBlock, Fragment, renderList, createVNode, toDisplayString, createTextVNode, vShow, normalizeClass } from "vue";
|
|
1
|
+
import { defineComponent, ref, watch, openBlock, createBlock, unref, withCtx, createElementVNode, createCommentVNode, withDirectives, createElementBlock, Fragment, renderList, createVNode, toDisplayString, createTextVNode, vShow, normalizeClass, renderSlot } from "vue";
|
|
2
2
|
import { Scrollbar, Tooltip, Button } from "@arco-design/web-vue";
|
|
3
3
|
import { IconDoubleDown, IconDoubleUp } from "@arco-iconbox/vue-cmstop-icons";
|
|
4
4
|
import _sfc_main$2 from "../typeIcons/component.js";
|
|
@@ -17,28 +17,30 @@ const _hoisted_7 = { class: "wrap" };
|
|
|
17
17
|
const _hoisted_8 = { class: "thumb" };
|
|
18
18
|
const _hoisted_9 = { class: "folder-more-wrap" };
|
|
19
19
|
const _hoisted_10 = { class: "file-list clearfix" };
|
|
20
|
-
const _hoisted_11 =
|
|
21
|
-
const _hoisted_12 =
|
|
20
|
+
const _hoisted_11 = ["onClick"];
|
|
21
|
+
const _hoisted_12 = { class: "thumb-wrap" };
|
|
22
|
+
const _hoisted_13 = { class: "menu-wrap" };
|
|
23
|
+
const _hoisted_14 = /* @__PURE__ */ createElementVNode("div", { class: "transcoding-in-progress grid-mode" }, [
|
|
22
24
|
/* @__PURE__ */ createElementVNode("div", { class: "transcoding-progress" }, "\u8F6C\u7801\u4E2D\u2026")
|
|
23
25
|
], -1);
|
|
24
|
-
const
|
|
26
|
+
const _hoisted_15 = {
|
|
25
27
|
key: 1,
|
|
26
28
|
class: "load_more_title"
|
|
27
29
|
};
|
|
28
|
-
const
|
|
30
|
+
const _hoisted_16 = {
|
|
29
31
|
key: 1,
|
|
30
32
|
class: "nomore_tips"
|
|
31
33
|
};
|
|
32
|
-
const
|
|
34
|
+
const _hoisted_17 = {
|
|
33
35
|
key: 2,
|
|
34
36
|
class: "null-file"
|
|
35
37
|
};
|
|
36
|
-
const
|
|
37
|
-
const
|
|
38
|
-
|
|
38
|
+
const _hoisted_18 = /* @__PURE__ */ createElementVNode("p", null, "\u6682\u65E0\u7D20\u6750", -1);
|
|
39
|
+
const _hoisted_19 = [
|
|
40
|
+
_hoisted_18
|
|
39
41
|
];
|
|
40
42
|
const _sfc_main = defineComponent({
|
|
41
|
-
...{ name: "
|
|
43
|
+
...{ name: "resourceGridList" },
|
|
42
44
|
__name: "component",
|
|
43
45
|
props: {
|
|
44
46
|
folderList: {},
|
|
@@ -46,11 +48,9 @@ const _sfc_main = defineComponent({
|
|
|
46
48
|
fileListCount: {},
|
|
47
49
|
isOver: { type: Boolean },
|
|
48
50
|
showFolder: { type: Boolean },
|
|
49
|
-
preview: { type: Boolean }
|
|
50
|
-
changeDirectory: { type: Function },
|
|
51
|
-
loadFileMore: { type: Function }
|
|
51
|
+
preview: { type: Boolean }
|
|
52
52
|
},
|
|
53
|
-
emits: ["confirm"],
|
|
53
|
+
emits: ["confirm", "clickDir", "clickItem", "loadMore"],
|
|
54
54
|
setup(__props, { emit: __emit }) {
|
|
55
55
|
const props = __props;
|
|
56
56
|
const isFold = ref(true);
|
|
@@ -70,6 +70,15 @@ const _sfc_main = defineComponent({
|
|
|
70
70
|
emit("confirm", selectedData.value);
|
|
71
71
|
};
|
|
72
72
|
const selectedData = ref([]);
|
|
73
|
+
const _changeDirectory = (item) => {
|
|
74
|
+
emit("clickDir", item);
|
|
75
|
+
};
|
|
76
|
+
const _clickFileItem = (item) => {
|
|
77
|
+
emit("clickItem", item);
|
|
78
|
+
};
|
|
79
|
+
const _loadFileMore = () => {
|
|
80
|
+
emit("loadMore");
|
|
81
|
+
};
|
|
73
82
|
return (_ctx, _cache) => {
|
|
74
83
|
return openBlock(), createBlock(unref(Scrollbar), { class: "media-grid-list-scroll" }, {
|
|
75
84
|
default: withCtx(() => {
|
|
@@ -83,7 +92,7 @@ const _sfc_main = defineComponent({
|
|
|
83
92
|
return openBlock(), createElementBlock("div", {
|
|
84
93
|
key: index,
|
|
85
94
|
class: "item folder-item",
|
|
86
|
-
onClick: ($event) =>
|
|
95
|
+
onClick: ($event) => _changeDirectory(item)
|
|
87
96
|
}, [
|
|
88
97
|
createElementVNode("div", _hoisted_4, [
|
|
89
98
|
createVNode(unref(Tooltip), {
|
|
@@ -108,7 +117,7 @@ const _sfc_main = defineComponent({
|
|
|
108
117
|
return openBlock(), createElementBlock("div", {
|
|
109
118
|
key: index,
|
|
110
119
|
class: "item folder-item",
|
|
111
|
-
onClick: ($event) =>
|
|
120
|
+
onClick: ($event) => _changeDirectory(item)
|
|
112
121
|
}, [
|
|
113
122
|
createElementVNode("div", _hoisted_7, [
|
|
114
123
|
createVNode(unref(Tooltip), {
|
|
@@ -150,9 +159,10 @@ const _sfc_main = defineComponent({
|
|
|
150
159
|
class: "item"
|
|
151
160
|
}, [
|
|
152
161
|
createElementVNode("div", {
|
|
153
|
-
class: normalizeClass([{ active: selectedData.value.includes(item) }, "shadow-wrap"])
|
|
162
|
+
class: normalizeClass([{ active: selectedData.value.includes(item) }, "shadow-wrap"]),
|
|
163
|
+
onClick: ($event) => _clickFileItem(item)
|
|
154
164
|
}, [
|
|
155
|
-
createElementVNode("div",
|
|
165
|
+
createElementVNode("div", _hoisted_12, [
|
|
156
166
|
createVNode(_sfc_main$1, {
|
|
157
167
|
"item-data": item,
|
|
158
168
|
preview: _ctx.preview,
|
|
@@ -179,6 +189,10 @@ const _sfc_main = defineComponent({
|
|
|
179
189
|
}, 1032, ["content"])
|
|
180
190
|
]),
|
|
181
191
|
createElementVNode("p", null, toDisplayString(unref(timeFormat)(item.updated_at)), 1),
|
|
192
|
+
createCommentVNode(" \u83DC\u5355\u63D2\u69FD "),
|
|
193
|
+
createElementVNode("div", _hoisted_13, [
|
|
194
|
+
renderSlot(_ctx.$slots, "menu", { item })
|
|
195
|
+
]),
|
|
182
196
|
createCommentVNode(" \u89C6\u9891\u8F6C\u7801\u8FDB\u5EA6 "),
|
|
183
197
|
item.task ? (openBlock(), createBlock(unref(Tooltip), {
|
|
184
198
|
key: 0,
|
|
@@ -188,33 +202,33 @@ const _sfc_main = defineComponent({
|
|
|
188
202
|
placement: "bottom"
|
|
189
203
|
}, {
|
|
190
204
|
default: withCtx(() => [
|
|
191
|
-
|
|
205
|
+
_hoisted_14
|
|
192
206
|
]),
|
|
193
207
|
_: 1
|
|
194
208
|
})) : createCommentVNode("v-if", true)
|
|
195
|
-
],
|
|
209
|
+
], 10, _hoisted_11)
|
|
196
210
|
]);
|
|
197
211
|
}), 128))
|
|
198
212
|
]),
|
|
199
|
-
_ctx.fileListCount ? (openBlock(), createElementBlock("div",
|
|
213
|
+
_ctx.fileListCount ? (openBlock(), createElementBlock("div", _hoisted_15, [
|
|
200
214
|
!_ctx.isOver ? (openBlock(), createBlock(unref(Button), {
|
|
201
215
|
key: 0,
|
|
202
216
|
class: "loadmore_tips",
|
|
203
217
|
size: "small",
|
|
204
218
|
type: "text",
|
|
205
|
-
onClick:
|
|
219
|
+
onClick: _loadFileMore
|
|
206
220
|
}, {
|
|
207
221
|
default: withCtx(() => [
|
|
208
222
|
createTextVNode("\u52A0\u8F7D\u66F4\u591A\u2026 ")
|
|
209
223
|
]),
|
|
210
224
|
_: 1
|
|
211
|
-
}
|
|
225
|
+
})) : (openBlock(), createElementBlock("div", _hoisted_16, "\u6CA1\u6709\u66F4\u591A\u4E86\u2026"))
|
|
212
226
|
])) : createCommentVNode("v-if", true),
|
|
213
|
-
!((_d = _ctx.fileList) == null ? void 0 : _d.length) && !((_e = _ctx.folderList) == null ? void 0 : _e.length) ? (openBlock(), createElementBlock("div",
|
|
227
|
+
!((_d = _ctx.fileList) == null ? void 0 : _d.length) && !((_e = _ctx.folderList) == null ? void 0 : _e.length) ? (openBlock(), createElementBlock("div", _hoisted_17, _hoisted_19)) : createCommentVNode("v-if", true)
|
|
214
228
|
])
|
|
215
229
|
];
|
|
216
230
|
}),
|
|
217
|
-
_:
|
|
231
|
+
_: 3
|
|
218
232
|
});
|
|
219
233
|
};
|
|
220
234
|
}
|
|
@@ -2,7 +2,7 @@ import { defineComponent, ref, computed, openBlock, createElementBlock, Fragment
|
|
|
2
2
|
import { Divider } from "@arco-design/web-vue";
|
|
3
3
|
import { IconEye, IconPlus } from "@arco-design/web-vue/es/icon";
|
|
4
4
|
import _sfc_main$1 from "../../../mediaView/component.js";
|
|
5
|
-
const _hoisted_1 = { class: "file-type-thumb" };
|
|
5
|
+
const _hoisted_1 = { class: "resource-grid-file-type-thumb" };
|
|
6
6
|
const _hoisted_2 = {
|
|
7
7
|
key: 0,
|
|
8
8
|
class: "rate-info-tag tag"
|