@cmstops/pro-compo 0.3.24 → 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/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/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
package/lib/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/lib/index.js
CHANGED
|
@@ -22,7 +22,7 @@ var index$h = require("./editMetaInfo/index.js");
|
|
|
22
22
|
var index$i = require("./baseFilter/index.js");
|
|
23
23
|
var index$j = require("./dataTags/index.js");
|
|
24
24
|
var index$k = require("./colorPalette/index.js");
|
|
25
|
-
var index$l = require("./
|
|
25
|
+
var index$l = require("./resourceGridList/index.js");
|
|
26
26
|
var index$m = require("./mediaView/index.js");
|
|
27
27
|
exports["default"] = components;
|
|
28
28
|
exports.appCenter = index;
|
|
@@ -46,5 +46,5 @@ exports.editMetaInfo = index$h;
|
|
|
46
46
|
exports.baseFilter = index$i;
|
|
47
47
|
exports.dataTags = index$j;
|
|
48
48
|
exports.colorPalette = index$k;
|
|
49
|
-
exports.
|
|
49
|
+
exports.resourceGridList = index$l;
|
|
50
50
|
exports.mediaView = index$m;
|
package/lib/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';
|
|
@@ -18,28 +18,30 @@ const _hoisted_7 = { class: "wrap" };
|
|
|
18
18
|
const _hoisted_8 = { class: "thumb" };
|
|
19
19
|
const _hoisted_9 = { class: "folder-more-wrap" };
|
|
20
20
|
const _hoisted_10 = { class: "file-list clearfix" };
|
|
21
|
-
const _hoisted_11 =
|
|
22
|
-
const _hoisted_12 =
|
|
21
|
+
const _hoisted_11 = ["onClick"];
|
|
22
|
+
const _hoisted_12 = { class: "thumb-wrap" };
|
|
23
|
+
const _hoisted_13 = { class: "menu-wrap" };
|
|
24
|
+
const _hoisted_14 = /* @__PURE__ */ vue.createElementVNode("div", { class: "transcoding-in-progress grid-mode" }, [
|
|
23
25
|
/* @__PURE__ */ vue.createElementVNode("div", { class: "transcoding-progress" }, "\u8F6C\u7801\u4E2D\u2026")
|
|
24
26
|
], -1);
|
|
25
|
-
const
|
|
27
|
+
const _hoisted_15 = {
|
|
26
28
|
key: 1,
|
|
27
29
|
class: "load_more_title"
|
|
28
30
|
};
|
|
29
|
-
const
|
|
31
|
+
const _hoisted_16 = {
|
|
30
32
|
key: 1,
|
|
31
33
|
class: "nomore_tips"
|
|
32
34
|
};
|
|
33
|
-
const
|
|
35
|
+
const _hoisted_17 = {
|
|
34
36
|
key: 2,
|
|
35
37
|
class: "null-file"
|
|
36
38
|
};
|
|
37
|
-
const
|
|
38
|
-
const
|
|
39
|
-
|
|
39
|
+
const _hoisted_18 = /* @__PURE__ */ vue.createElementVNode("p", null, "\u6682\u65E0\u7D20\u6750", -1);
|
|
40
|
+
const _hoisted_19 = [
|
|
41
|
+
_hoisted_18
|
|
40
42
|
];
|
|
41
43
|
const _sfc_main = vue.defineComponent({
|
|
42
|
-
...{ name: "
|
|
44
|
+
...{ name: "resourceGridList" },
|
|
43
45
|
__name: "component",
|
|
44
46
|
props: {
|
|
45
47
|
folderList: {},
|
|
@@ -47,11 +49,9 @@ const _sfc_main = vue.defineComponent({
|
|
|
47
49
|
fileListCount: {},
|
|
48
50
|
isOver: { type: Boolean },
|
|
49
51
|
showFolder: { type: Boolean },
|
|
50
|
-
preview: { type: Boolean }
|
|
51
|
-
changeDirectory: { type: Function },
|
|
52
|
-
loadFileMore: { type: Function }
|
|
52
|
+
preview: { type: Boolean }
|
|
53
53
|
},
|
|
54
|
-
emits: ["confirm"],
|
|
54
|
+
emits: ["confirm", "clickDir", "clickItem", "loadMore"],
|
|
55
55
|
setup(__props, { emit: __emit }) {
|
|
56
56
|
const props = __props;
|
|
57
57
|
const isFold = vue.ref(true);
|
|
@@ -71,6 +71,15 @@ const _sfc_main = vue.defineComponent({
|
|
|
71
71
|
emit("confirm", selectedData.value);
|
|
72
72
|
};
|
|
73
73
|
const selectedData = vue.ref([]);
|
|
74
|
+
const _changeDirectory = (item) => {
|
|
75
|
+
emit("clickDir", item);
|
|
76
|
+
};
|
|
77
|
+
const _clickFileItem = (item) => {
|
|
78
|
+
emit("clickItem", item);
|
|
79
|
+
};
|
|
80
|
+
const _loadFileMore = () => {
|
|
81
|
+
emit("loadMore");
|
|
82
|
+
};
|
|
74
83
|
return (_ctx, _cache) => {
|
|
75
84
|
return vue.openBlock(), vue.createBlock(vue.unref(webVue.Scrollbar), { class: "media-grid-list-scroll" }, {
|
|
76
85
|
default: vue.withCtx(() => {
|
|
@@ -84,7 +93,7 @@ const _sfc_main = vue.defineComponent({
|
|
|
84
93
|
return vue.openBlock(), vue.createElementBlock("div", {
|
|
85
94
|
key: index2,
|
|
86
95
|
class: "item folder-item",
|
|
87
|
-
onClick: ($event) =>
|
|
96
|
+
onClick: ($event) => _changeDirectory(item)
|
|
88
97
|
}, [
|
|
89
98
|
vue.createElementVNode("div", _hoisted_4, [
|
|
90
99
|
vue.createVNode(vue.unref(webVue.Tooltip), {
|
|
@@ -109,7 +118,7 @@ const _sfc_main = vue.defineComponent({
|
|
|
109
118
|
return vue.openBlock(), vue.createElementBlock("div", {
|
|
110
119
|
key: index2,
|
|
111
120
|
class: "item folder-item",
|
|
112
|
-
onClick: ($event) =>
|
|
121
|
+
onClick: ($event) => _changeDirectory(item)
|
|
113
122
|
}, [
|
|
114
123
|
vue.createElementVNode("div", _hoisted_7, [
|
|
115
124
|
vue.createVNode(vue.unref(webVue.Tooltip), {
|
|
@@ -151,9 +160,10 @@ const _sfc_main = vue.defineComponent({
|
|
|
151
160
|
class: "item"
|
|
152
161
|
}, [
|
|
153
162
|
vue.createElementVNode("div", {
|
|
154
|
-
class: vue.normalizeClass([{ active: selectedData.value.includes(item) }, "shadow-wrap"])
|
|
163
|
+
class: vue.normalizeClass([{ active: selectedData.value.includes(item) }, "shadow-wrap"]),
|
|
164
|
+
onClick: ($event) => _clickFileItem(item)
|
|
155
165
|
}, [
|
|
156
|
-
vue.createElementVNode("div",
|
|
166
|
+
vue.createElementVNode("div", _hoisted_12, [
|
|
157
167
|
vue.createVNode(index, {
|
|
158
168
|
"item-data": item,
|
|
159
169
|
preview: _ctx.preview,
|
|
@@ -180,6 +190,10 @@ const _sfc_main = vue.defineComponent({
|
|
|
180
190
|
}, 1032, ["content"])
|
|
181
191
|
]),
|
|
182
192
|
vue.createElementVNode("p", null, vue.toDisplayString(vue.unref(filter.timeFormat)(item.updated_at)), 1),
|
|
193
|
+
vue.createCommentVNode(" \u83DC\u5355\u63D2\u69FD "),
|
|
194
|
+
vue.createElementVNode("div", _hoisted_13, [
|
|
195
|
+
vue.renderSlot(_ctx.$slots, "menu", { item })
|
|
196
|
+
]),
|
|
183
197
|
vue.createCommentVNode(" \u89C6\u9891\u8F6C\u7801\u8FDB\u5EA6 "),
|
|
184
198
|
item.task ? (vue.openBlock(), vue.createBlock(vue.unref(webVue.Tooltip), {
|
|
185
199
|
key: 0,
|
|
@@ -189,33 +203,33 @@ const _sfc_main = vue.defineComponent({
|
|
|
189
203
|
placement: "bottom"
|
|
190
204
|
}, {
|
|
191
205
|
default: vue.withCtx(() => [
|
|
192
|
-
|
|
206
|
+
_hoisted_14
|
|
193
207
|
]),
|
|
194
208
|
_: 1
|
|
195
209
|
})) : vue.createCommentVNode("v-if", true)
|
|
196
|
-
],
|
|
210
|
+
], 10, _hoisted_11)
|
|
197
211
|
]);
|
|
198
212
|
}), 128))
|
|
199
213
|
]),
|
|
200
|
-
_ctx.fileListCount ? (vue.openBlock(), vue.createElementBlock("div",
|
|
214
|
+
_ctx.fileListCount ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_15, [
|
|
201
215
|
!_ctx.isOver ? (vue.openBlock(), vue.createBlock(vue.unref(webVue.Button), {
|
|
202
216
|
key: 0,
|
|
203
217
|
class: "loadmore_tips",
|
|
204
218
|
size: "small",
|
|
205
219
|
type: "text",
|
|
206
|
-
onClick:
|
|
220
|
+
onClick: _loadFileMore
|
|
207
221
|
}, {
|
|
208
222
|
default: vue.withCtx(() => [
|
|
209
223
|
vue.createTextVNode("\u52A0\u8F7D\u66F4\u591A\u2026 ")
|
|
210
224
|
]),
|
|
211
225
|
_: 1
|
|
212
|
-
}
|
|
226
|
+
})) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_16, "\u6CA1\u6709\u66F4\u591A\u4E86\u2026"))
|
|
213
227
|
])) : vue.createCommentVNode("v-if", true),
|
|
214
|
-
!((_d = _ctx.fileList) == null ? void 0 : _d.length) && !((_e = _ctx.folderList) == null ? void 0 : _e.length) ? (vue.openBlock(), vue.createElementBlock("div",
|
|
228
|
+
!((_d = _ctx.fileList) == null ? void 0 : _d.length) && !((_e = _ctx.folderList) == null ? void 0 : _e.length) ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_17, _hoisted_19)) : vue.createCommentVNode("v-if", true)
|
|
215
229
|
])
|
|
216
230
|
];
|
|
217
231
|
}),
|
|
218
|
-
_:
|
|
232
|
+
_: 3
|
|
219
233
|
});
|
|
220
234
|
};
|
|
221
235
|
}
|
|
@@ -3,7 +3,7 @@ var vue = require("vue");
|
|
|
3
3
|
var webVue = require("@arco-design/web-vue");
|
|
4
4
|
var icon = require("@arco-design/web-vue/es/icon");
|
|
5
5
|
var component = require("../../../mediaView/component.js");
|
|
6
|
-
const _hoisted_1 = { class: "file-type-thumb" };
|
|
6
|
+
const _hoisted_1 = { class: "resource-grid-file-type-thumb" };
|
|
7
7
|
const _hoisted_2 = {
|
|
8
8
|
key: 0,
|
|
9
9
|
class: "rate-info-tag tag"
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var component = require("./component.js");
|
|
3
|
-
const
|
|
3
|
+
const resourceGridList = Object.assign(component, {
|
|
4
4
|
install: (app) => {
|
|
5
5
|
app.component(component.name, component);
|
|
6
6
|
}
|
|
7
7
|
});
|
|
8
|
-
module.exports =
|
|
8
|
+
module.exports = resourceGridList;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
.file-type-thumb {
|
|
1
|
+
.resource-grid-file-type-thumb {
|
|
2
2
|
position: relative;
|
|
3
3
|
width: 100%;
|
|
4
4
|
|
|
@@ -59,12 +59,13 @@
|
|
|
59
59
|
|
|
60
60
|
.tag {
|
|
61
61
|
position: absolute;
|
|
62
|
-
|
|
63
|
-
|
|
62
|
+
display: flex;
|
|
63
|
+
align-items: center;
|
|
64
|
+
justify-content: center;
|
|
64
65
|
padding: 2px 8px;
|
|
65
66
|
color: white;
|
|
66
67
|
font-size: 12px;
|
|
67
|
-
background-color: rgba(
|
|
68
|
+
background-color: rgba(0, 0, 0, 0.2);
|
|
68
69
|
border-radius: 12px;
|
|
69
70
|
}
|
|
70
71
|
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
.file-type-thumb {
|
|
1
|
+
.resource-grid-file-type-thumb {
|
|
2
2
|
position: relative;
|
|
3
3
|
width: 100%;
|
|
4
4
|
}
|
|
5
|
-
.file-type-thumb:hover .mask {
|
|
5
|
+
.resource-grid-file-type-thumb:hover .mask {
|
|
6
6
|
display: flex;
|
|
7
7
|
}
|
|
8
|
-
.file-type-thumb .mask {
|
|
8
|
+
.resource-grid-file-type-thumb .mask {
|
|
9
9
|
position: absolute;
|
|
10
10
|
top: 0;
|
|
11
11
|
display: none;
|
|
@@ -17,56 +17,57 @@
|
|
|
17
17
|
font-size: 18px;
|
|
18
18
|
background: rgba(0, 0, 0, 0.3);
|
|
19
19
|
}
|
|
20
|
-
.file-type-thumb .mask i {
|
|
20
|
+
.resource-grid-file-type-thumb .mask i {
|
|
21
21
|
display: inline-block;
|
|
22
22
|
cursor: pointer;
|
|
23
23
|
}
|
|
24
|
-
.file-type-thumb .mask i:active {
|
|
24
|
+
.resource-grid-file-type-thumb .mask i:active {
|
|
25
25
|
opacity: 0.4;
|
|
26
26
|
}
|
|
27
|
-
.file-type-thumb .mask .half {
|
|
27
|
+
.resource-grid-file-type-thumb .mask .half {
|
|
28
28
|
display: flex;
|
|
29
29
|
align-items: center;
|
|
30
30
|
justify-content: center;
|
|
31
31
|
width: 48%;
|
|
32
32
|
height: 100%;
|
|
33
33
|
}
|
|
34
|
-
.file-type-thumb .mask .half:hover {
|
|
34
|
+
.resource-grid-file-type-thumb .mask .half:hover {
|
|
35
35
|
cursor: pointer;
|
|
36
36
|
opacity: 0.7;
|
|
37
37
|
}
|
|
38
|
-
.file-type-thumb .mask .el-divider {
|
|
38
|
+
.resource-grid-file-type-thumb .mask .el-divider {
|
|
39
39
|
margin: 0;
|
|
40
40
|
opacity: 0.4;
|
|
41
41
|
}
|
|
42
|
-
.file-type-thumb .transparent {
|
|
42
|
+
.resource-grid-file-type-thumb .transparent {
|
|
43
43
|
position: absolute;
|
|
44
44
|
top: 0;
|
|
45
45
|
width: 100%;
|
|
46
46
|
height: 100%;
|
|
47
47
|
}
|
|
48
|
-
.file-type-thumb .transparent:hover {
|
|
48
|
+
.resource-grid-file-type-thumb .transparent:hover {
|
|
49
49
|
cursor: pointer;
|
|
50
50
|
}
|
|
51
|
-
.file-type-thumb .tag {
|
|
51
|
+
.resource-grid-file-type-thumb .tag {
|
|
52
52
|
position: absolute;
|
|
53
|
-
|
|
54
|
-
|
|
53
|
+
display: flex;
|
|
54
|
+
align-items: center;
|
|
55
|
+
justify-content: center;
|
|
55
56
|
padding: 2px 8px;
|
|
56
57
|
color: white;
|
|
57
58
|
font-size: 12px;
|
|
58
|
-
background-color: rgba(
|
|
59
|
+
background-color: rgba(0, 0, 0, 0.2);
|
|
59
60
|
border-radius: 12px;
|
|
60
61
|
}
|
|
61
|
-
.file-type-thumb .rate-info-tag {
|
|
62
|
+
.resource-grid-file-type-thumb .rate-info-tag {
|
|
62
63
|
top: 8px;
|
|
63
64
|
left: 5px;
|
|
64
65
|
}
|
|
65
|
-
.file-type-thumb .ai-tag {
|
|
66
|
+
.resource-grid-file-type-thumb .ai-tag {
|
|
66
67
|
top: 8px;
|
|
67
68
|
right: 5px;
|
|
68
69
|
}
|
|
69
|
-
.file-type-thumb .pic {
|
|
70
|
+
.resource-grid-file-type-thumb .pic {
|
|
70
71
|
width: 100%;
|
|
71
72
|
padding-top: 56.25%;
|
|
72
73
|
background-color: #fff;
|
|
@@ -76,83 +77,83 @@
|
|
|
76
77
|
background-position: top;
|
|
77
78
|
background-size: cover;
|
|
78
79
|
}
|
|
79
|
-
.file-type-thumb .pic:hover {
|
|
80
|
+
.resource-grid-file-type-thumb .pic:hover {
|
|
80
81
|
transform: scale(1.02);
|
|
81
82
|
transition: ease-out 0.4s;
|
|
82
83
|
}
|
|
83
|
-
.file-type-thumb .audio {
|
|
84
|
+
.resource-grid-file-type-thumb .audio {
|
|
84
85
|
background-image: url('../assets/images/music.png') !important;
|
|
85
86
|
}
|
|
86
|
-
.file-type-thumb .audio.doc {
|
|
87
|
+
.resource-grid-file-type-thumb .audio.doc {
|
|
87
88
|
background-image: url('../assets/images/draf.png') !important;
|
|
88
89
|
}
|
|
89
|
-
.file-type-thumb .project {
|
|
90
|
+
.resource-grid-file-type-thumb .project {
|
|
90
91
|
background-image: url('../assets/images/project1.png') !important;
|
|
91
92
|
}
|
|
92
|
-
.file-type-thumb .doc {
|
|
93
|
+
.resource-grid-file-type-thumb .doc {
|
|
93
94
|
background-image: url('../assets/images/draf.png');
|
|
94
95
|
}
|
|
95
|
-
.file-type-thumb .link {
|
|
96
|
+
.resource-grid-file-type-thumb .link {
|
|
96
97
|
background-image: url('../assets/images/link.png');
|
|
97
98
|
}
|
|
98
|
-
.file-type-thumb .sp_topic {
|
|
99
|
+
.resource-grid-file-type-thumb .sp_topic {
|
|
99
100
|
background-image: url('../assets/images/link.png');
|
|
100
101
|
}
|
|
101
|
-
.file-type-thumb .live {
|
|
102
|
+
.resource-grid-file-type-thumb .live {
|
|
102
103
|
background-image: url('../assets/images/live.png');
|
|
103
104
|
}
|
|
104
|
-
.file-type-thumb .pdf {
|
|
105
|
+
.resource-grid-file-type-thumb .pdf {
|
|
105
106
|
background-image: url('../assets/images/pdf.png') !important;
|
|
106
107
|
}
|
|
107
|
-
.file-type-thumb .officeexcel {
|
|
108
|
+
.resource-grid-file-type-thumb .officeexcel {
|
|
108
109
|
background-image: url('../assets/images/excel.png') !important;
|
|
109
110
|
}
|
|
110
|
-
.file-type-thumb .officeppt {
|
|
111
|
+
.resource-grid-file-type-thumb .officeppt {
|
|
111
112
|
background-image: url('../assets/images/ppt.png') !important;
|
|
112
113
|
}
|
|
113
|
-
.file-type-thumb .zip {
|
|
114
|
+
.resource-grid-file-type-thumb .zip {
|
|
114
115
|
background-image: url('../assets/images/zip.png') !important;
|
|
115
116
|
}
|
|
116
|
-
.file-type-thumb .rar {
|
|
117
|
+
.resource-grid-file-type-thumb .rar {
|
|
117
118
|
background-image: url('../assets/images/rar.png') !important;
|
|
118
119
|
}
|
|
119
|
-
.file-type-thumb .txt {
|
|
120
|
+
.resource-grid-file-type-thumb .txt {
|
|
120
121
|
background-image: url('../assets/images/txt.png') !important;
|
|
121
122
|
}
|
|
122
|
-
.file-type-thumb .exe {
|
|
123
|
+
.resource-grid-file-type-thumb .exe {
|
|
123
124
|
background-image: url('../assets/images/exe.png') !important;
|
|
124
125
|
}
|
|
125
|
-
.file-type-thumb .html {
|
|
126
|
+
.resource-grid-file-type-thumb .html {
|
|
126
127
|
background-image: url('../assets/images/html.png') !important;
|
|
127
128
|
}
|
|
128
|
-
.file-type-thumb .officedoc {
|
|
129
|
+
.resource-grid-file-type-thumb .officedoc {
|
|
129
130
|
background-image: url('../assets/images/word.png') !important;
|
|
130
131
|
}
|
|
131
|
-
.file-type-thumb .wechat {
|
|
132
|
+
.resource-grid-file-type-thumb .wechat {
|
|
132
133
|
background-image: url('../assets/images/wechat.png') !important;
|
|
133
134
|
}
|
|
134
|
-
.file-type-thumb .h5 {
|
|
135
|
+
.resource-grid-file-type-thumb .h5 {
|
|
135
136
|
background-image: url('../assets/images/h5.png') !important;
|
|
136
137
|
}
|
|
137
|
-
.file-type-thumb .ad {
|
|
138
|
+
.resource-grid-file-type-thumb .ad {
|
|
138
139
|
background-image: url('../assets/images/ad.png') !important;
|
|
139
140
|
}
|
|
140
|
-
.file-type-thumb .booklink {
|
|
141
|
+
.resource-grid-file-type-thumb .booklink {
|
|
141
142
|
background-image: url('../assets/images/booklink.png') !important;
|
|
142
143
|
}
|
|
143
|
-
.file-type-thumb .activity {
|
|
144
|
+
.resource-grid-file-type-thumb .activity {
|
|
144
145
|
background-image: url('../assets/images/activity.png') !important;
|
|
145
146
|
}
|
|
146
|
-
.file-type-thumb .svideo {
|
|
147
|
+
.resource-grid-file-type-thumb .svideo {
|
|
147
148
|
background-image: url('../assets/images/svideo.png') !important;
|
|
148
149
|
}
|
|
149
|
-
.file-type-thumb .cloud_lottery {
|
|
150
|
+
.resource-grid-file-type-thumb .cloud_lottery {
|
|
150
151
|
background-image: url('../assets/images/cloud_lottery.png') !important;
|
|
151
152
|
}
|
|
152
|
-
.file-type-thumb .cloud_form {
|
|
153
|
+
.resource-grid-file-type-thumb .cloud_form {
|
|
153
154
|
background-image: url('../assets/images/cloud_form.png') !important;
|
|
154
155
|
}
|
|
155
|
-
.file-type-thumb .illegal-media-warning {
|
|
156
|
+
.resource-grid-file-type-thumb .illegal-media-warning {
|
|
156
157
|
position: absolute;
|
|
157
158
|
top: 0;
|
|
158
159
|
width: 100%;
|
|
@@ -332,6 +333,11 @@
|
|
|
332
333
|
line-height: 1em;
|
|
333
334
|
opacity: 0.65;
|
|
334
335
|
}
|
|
336
|
+
.media-grid-list-scroll .file-wrap .file-list .item .shadow-wrap .menu-wrap {
|
|
337
|
+
position: absolute;
|
|
338
|
+
right: 10px;
|
|
339
|
+
bottom: 10px;
|
|
340
|
+
}
|
|
335
341
|
.media-grid-list-scroll .file-wrap .file-list::after {
|
|
336
342
|
height: 50px;
|
|
337
343
|
}
|