@cmstops/pro-compo 0.3.17 → 0.3.19
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 +482 -54
- package/dist/index.min.css +1 -1
- package/es/colorPalette/style/index.css +10 -10
- package/es/colorPalette/style/index.less +29 -25
- package/es/contentDetailList/components/Content/GroupPieceItem/index.js +1 -1
- package/es/contentDetailList/components/Content/index.js +2 -2
- package/es/contentDetailList/style/GroupPieceItem.less +1 -1
- package/es/contentDetailList/style/index.css +15 -15
- package/es/index.css +482 -54
- package/es/index.d.ts +2 -0
- package/es/index.js +2 -0
- package/es/index.less +2 -0
- package/es/mediaGridList/component.d.ts +0 -0
- package/es/mediaGridList/component.js +222 -0
- package/es/mediaGridList/components/FileTypeThumb/index.d.ts +0 -0
- package/es/mediaGridList/components/FileTypeThumb/index.js +127 -0
- package/es/mediaGridList/index.d.ts +2 -0
- package/es/mediaGridList/index.js +7 -0
- package/es/mediaGridList/style/FileTypeThumb.less +204 -0
- package/es/mediaGridList/style/css.js +1 -0
- package/es/mediaGridList/style/index.css +364 -0
- package/es/mediaGridList/style/index.d.ts +1 -0
- package/es/mediaGridList/style/index.js +1 -0
- package/es/mediaGridList/style/index.less +230 -0
- package/es/mediaView/component.d.ts +0 -0
- package/es/mediaView/component.js +65 -0
- package/es/mediaView/index.d.ts +2 -0
- package/es/mediaView/index.js +7 -0
- package/es/mediaView/style/css.js +1 -0
- package/es/mediaView/style/index.css +64 -0
- package/es/mediaView/style/index.d.ts +1 -0
- package/es/mediaView/style/index.js +1 -0
- package/es/mediaView/style/index.less +71 -0
- package/es/resourceModal/components/MediaPreviewer/index.js +1 -1
- package/es/resourceModal/components/MediaSelection/MainContent/index.js +2 -2
- package/es/resourceModal/components/MediaSelection/SystemResourceSelected/components/SystemResourceFilter.js +1 -1
- package/es/resourceModal/components/MediaSelection/SystemResourceSelected/components/SystemResourceList.js +1 -1
- package/es/resourceModal/components/MediaSelection/SystemResourceSelected/index.js +1 -1
- package/es/resourceModal/components/MediaSelection/ToolbarSearch/index.js +1 -1
- package/es/resourceModal/style/FileTypeThumb.less +26 -26
- package/es/resourceModal/style/MainContent.less +3 -3
- package/es/resourceModal/style/SystemResourceSelected.less +1 -1
- package/es/resourceModal/style/index.css +29 -29
- package/es/uploadBefore/script/fileTypeAdapter.d.ts +1 -1
- package/es/utils/typeMap.d.ts +1 -1
- package/es/utils/typeMap.js +2 -2
- package/lib/colorPalette/style/index.css +10 -10
- package/lib/colorPalette/style/index.less +29 -25
- package/lib/contentDetailList/components/Content/GroupPieceItem/index.js +1 -1
- package/lib/contentDetailList/components/Content/index.js +2 -2
- package/lib/contentDetailList/style/GroupPieceItem.less +1 -1
- package/lib/contentDetailList/style/index.css +15 -15
- package/lib/index.css +482 -54
- package/lib/index.js +4 -0
- package/lib/index.less +2 -0
- package/lib/mediaGridList/component.js +223 -0
- package/lib/mediaGridList/components/FileTypeThumb/index.js +128 -0
- package/lib/mediaGridList/index.js +8 -0
- package/lib/mediaGridList/style/FileTypeThumb.less +204 -0
- package/lib/mediaGridList/style/css.js +2 -0
- package/lib/mediaGridList/style/index.css +364 -0
- package/lib/mediaGridList/style/index.js +2 -0
- package/lib/mediaGridList/style/index.less +230 -0
- package/lib/mediaView/component.js +66 -0
- package/lib/mediaView/index.js +8 -0
- package/lib/mediaView/style/css.js +2 -0
- package/lib/mediaView/style/index.css +64 -0
- package/lib/mediaView/style/index.js +2 -0
- package/lib/mediaView/style/index.less +71 -0
- package/lib/resourceModal/components/MediaPreviewer/index.js +1 -1
- package/lib/resourceModal/components/MediaSelection/MainContent/index.js +2 -2
- package/lib/resourceModal/components/MediaSelection/SystemResourceSelected/components/SystemResourceFilter.js +1 -1
- package/lib/resourceModal/components/MediaSelection/SystemResourceSelected/components/SystemResourceList.js +1 -1
- package/lib/resourceModal/components/MediaSelection/SystemResourceSelected/index.js +1 -1
- package/lib/resourceModal/components/MediaSelection/ToolbarSearch/index.js +1 -1
- package/lib/resourceModal/style/FileTypeThumb.less +26 -26
- package/lib/resourceModal/style/MainContent.less +3 -3
- package/lib/resourceModal/style/SystemResourceSelected.less +1 -1
- package/lib/resourceModal/style/index.css +29 -29
- package/lib/utils/typeMap.js +2 -2
- package/package.json +1 -1
- /package/es/{resourceModal/assets → assets}/images/sys_load_more.js +0 -0
- /package/es/{resourceModal/assets → assets}/images/unknown.js +0 -0
- /package/es/{resourceModal/assets → assets}/selection/null.js +0 -0
- /package/es/{resourceModal/script → utils}/filter.d.ts +0 -0
- /package/es/{resourceModal/script → utils}/filter.js +0 -0
- /package/lib/{resourceModal/assets → assets}/images/sys_load_more.js +0 -0
- /package/lib/{resourceModal/assets → assets}/images/unknown.js +0 -0
- /package/lib/{resourceModal/assets → assets}/selection/null.js +0 -0
- /package/lib/{resourceModal/script → utils}/filter.js +0 -0
package/lib/index.js
CHANGED
|
@@ -22,6 +22,8 @@ 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("./mediaGridList/index.js");
|
|
26
|
+
var index$m = require("./mediaView/index.js");
|
|
25
27
|
exports["default"] = components;
|
|
26
28
|
exports.appCenter = index;
|
|
27
29
|
exports.messageBox = index$1;
|
|
@@ -44,3 +46,5 @@ exports.editMetaInfo = index$h;
|
|
|
44
46
|
exports.baseFilter = index$i;
|
|
45
47
|
exports.dataTags = index$j;
|
|
46
48
|
exports.colorPalette = index$k;
|
|
49
|
+
exports.mediaGridList = index$l;
|
|
50
|
+
exports.mediaView = index$m;
|
package/lib/index.less
CHANGED
|
@@ -0,0 +1,223 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var vue = require("vue");
|
|
3
|
+
var webVue = require("@arco-design/web-vue");
|
|
4
|
+
var vueCmstopIcons = require("@arco-iconbox/vue-cmstop-icons");
|
|
5
|
+
var component = require("../typeIcons/component.js");
|
|
6
|
+
var index = require("./components/FileTypeThumb/index.js");
|
|
7
|
+
var filter = require("../utils/filter.js");
|
|
8
|
+
const _hoisted_1 = { class: "file-wrap" };
|
|
9
|
+
const _hoisted_2 = {
|
|
10
|
+
key: 0,
|
|
11
|
+
class: "folder-list clearfix"
|
|
12
|
+
};
|
|
13
|
+
const _hoisted_3 = ["onClick"];
|
|
14
|
+
const _hoisted_4 = { class: "wrap" };
|
|
15
|
+
const _hoisted_5 = { class: "thumb" };
|
|
16
|
+
const _hoisted_6 = ["onClick"];
|
|
17
|
+
const _hoisted_7 = { class: "wrap" };
|
|
18
|
+
const _hoisted_8 = { class: "thumb" };
|
|
19
|
+
const _hoisted_9 = { class: "folder-more-wrap" };
|
|
20
|
+
const _hoisted_10 = { class: "file-list clearfix" };
|
|
21
|
+
const _hoisted_11 = { class: "thumb-wrap" };
|
|
22
|
+
const _hoisted_12 = /* @__PURE__ */ vue.createElementVNode("div", { class: "transcoding-in-progress grid-mode" }, [
|
|
23
|
+
/* @__PURE__ */ vue.createElementVNode("div", { class: "transcoding-progress" }, "\u8F6C\u7801\u4E2D\u2026")
|
|
24
|
+
], -1);
|
|
25
|
+
const _hoisted_13 = {
|
|
26
|
+
key: 1,
|
|
27
|
+
class: "load_more_title"
|
|
28
|
+
};
|
|
29
|
+
const _hoisted_14 = {
|
|
30
|
+
key: 1,
|
|
31
|
+
class: "nomore_tips"
|
|
32
|
+
};
|
|
33
|
+
const _hoisted_15 = {
|
|
34
|
+
key: 2,
|
|
35
|
+
class: "null-file"
|
|
36
|
+
};
|
|
37
|
+
const _hoisted_16 = /* @__PURE__ */ vue.createElementVNode("p", null, "\u6682\u65E0\u7D20\u6750", -1);
|
|
38
|
+
const _hoisted_17 = [
|
|
39
|
+
_hoisted_16
|
|
40
|
+
];
|
|
41
|
+
const _sfc_main = vue.defineComponent({
|
|
42
|
+
...{ name: "mediaGridList" },
|
|
43
|
+
__name: "component",
|
|
44
|
+
props: {
|
|
45
|
+
folderList: {},
|
|
46
|
+
fileList: {},
|
|
47
|
+
fileListCount: {},
|
|
48
|
+
isOver: { type: Boolean },
|
|
49
|
+
showFolder: { type: Boolean },
|
|
50
|
+
preview: { type: Boolean },
|
|
51
|
+
changeDirectory: { type: Function },
|
|
52
|
+
loadFileMore: { type: Function }
|
|
53
|
+
},
|
|
54
|
+
emits: ["confirm"],
|
|
55
|
+
setup(__props, { emit: __emit }) {
|
|
56
|
+
const props = __props;
|
|
57
|
+
const isFold = vue.ref(true);
|
|
58
|
+
vue.watch(
|
|
59
|
+
() => {
|
|
60
|
+
var _a;
|
|
61
|
+
return (_a = props.folderList) == null ? void 0 : _a.length;
|
|
62
|
+
},
|
|
63
|
+
(n) => {
|
|
64
|
+
isFold.value = n > 10;
|
|
65
|
+
},
|
|
66
|
+
{ immediate: true }
|
|
67
|
+
);
|
|
68
|
+
const emit = __emit;
|
|
69
|
+
const confirm = (itemData) => {
|
|
70
|
+
selectedData.value = [itemData];
|
|
71
|
+
emit("confirm", selectedData.value);
|
|
72
|
+
};
|
|
73
|
+
const selectedData = vue.ref([]);
|
|
74
|
+
return (_ctx, _cache) => {
|
|
75
|
+
return vue.openBlock(), vue.createBlock(vue.unref(webVue.Scrollbar), { class: "media-grid-list-scroll" }, {
|
|
76
|
+
default: vue.withCtx(() => {
|
|
77
|
+
var _a, _b, _c, _d, _e;
|
|
78
|
+
return [
|
|
79
|
+
vue.createElementVNode("div", _hoisted_1, [
|
|
80
|
+
vue.createCommentVNode(" \u6587\u4EF6\u5939 "),
|
|
81
|
+
_ctx.folderList ? vue.withDirectives((vue.openBlock(), vue.createElementBlock("div", _hoisted_2, [
|
|
82
|
+
vue.createCommentVNode(" \u6587\u4EF6\u5939\u6570\u91CF<10 "),
|
|
83
|
+
!isFold.value ? (vue.openBlock(true), vue.createElementBlock(vue.Fragment, { key: 0 }, vue.renderList(_ctx.folderList, (item, index2) => {
|
|
84
|
+
return vue.openBlock(), vue.createElementBlock("div", {
|
|
85
|
+
key: index2,
|
|
86
|
+
class: "item folder-item",
|
|
87
|
+
onClick: ($event) => _ctx.changeDirectory(item)
|
|
88
|
+
}, [
|
|
89
|
+
vue.createElementVNode("div", _hoisted_4, [
|
|
90
|
+
vue.createVNode(vue.unref(webVue.Tooltip), {
|
|
91
|
+
content: item.alias,
|
|
92
|
+
"open-delay": 500,
|
|
93
|
+
class: "item",
|
|
94
|
+
effect: "dark",
|
|
95
|
+
placement: "top"
|
|
96
|
+
}, {
|
|
97
|
+
default: vue.withCtx(() => [
|
|
98
|
+
vue.createElementVNode("div", _hoisted_5, [
|
|
99
|
+
vue.createElementVNode("h4", null, vue.toDisplayString(item.alias), 1)
|
|
100
|
+
])
|
|
101
|
+
]),
|
|
102
|
+
_: 2
|
|
103
|
+
}, 1032, ["content"])
|
|
104
|
+
])
|
|
105
|
+
], 8, _hoisted_3);
|
|
106
|
+
}), 128)) : (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 1 }, [
|
|
107
|
+
vue.createCommentVNode(" \u6587\u4EF6\u5939\u6570\u91CF>10 "),
|
|
108
|
+
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList((_a = _ctx.folderList) == null ? void 0 : _a.slice(0, 9), (item, index2) => {
|
|
109
|
+
return vue.openBlock(), vue.createElementBlock("div", {
|
|
110
|
+
key: index2,
|
|
111
|
+
class: "item folder-item",
|
|
112
|
+
onClick: ($event) => _ctx.changeDirectory(item)
|
|
113
|
+
}, [
|
|
114
|
+
vue.createElementVNode("div", _hoisted_7, [
|
|
115
|
+
vue.createVNode(vue.unref(webVue.Tooltip), {
|
|
116
|
+
content: item.alias,
|
|
117
|
+
"open-delay": 500,
|
|
118
|
+
class: "item",
|
|
119
|
+
effect: "dark",
|
|
120
|
+
placement: "top"
|
|
121
|
+
}, {
|
|
122
|
+
default: vue.withCtx(() => [
|
|
123
|
+
vue.createElementVNode("div", _hoisted_8, [
|
|
124
|
+
vue.createElementVNode("h4", null, vue.toDisplayString(item.alias), 1)
|
|
125
|
+
])
|
|
126
|
+
]),
|
|
127
|
+
_: 2
|
|
128
|
+
}, 1032, ["content"])
|
|
129
|
+
])
|
|
130
|
+
], 8, _hoisted_6);
|
|
131
|
+
}), 128))
|
|
132
|
+
], 64)),
|
|
133
|
+
((_b = _ctx.folderList) == null ? void 0 : _b.length) > 10 ? (vue.openBlock(), vue.createElementBlock("div", {
|
|
134
|
+
key: 2,
|
|
135
|
+
class: "folder-more-button",
|
|
136
|
+
onClick: _cache[0] || (_cache[0] = ($event) => isFold.value = !isFold.value)
|
|
137
|
+
}, [
|
|
138
|
+
vue.createElementVNode("div", _hoisted_9, [
|
|
139
|
+
isFold.value ? (vue.openBlock(), vue.createBlock(vue.unref(vueCmstopIcons.IconDoubleDown), { key: 0 })) : (vue.openBlock(), vue.createBlock(vue.unref(vueCmstopIcons.IconDoubleUp), { key: 1 })),
|
|
140
|
+
vue.createTextVNode(" " + vue.toDisplayString(isFold.value ? "\u5C55\u5F00\u5168\u90E8" : "\u6536\u7F29\u5168\u90E8"), 1)
|
|
141
|
+
])
|
|
142
|
+
])) : vue.createCommentVNode("v-if", true)
|
|
143
|
+
], 512)), [
|
|
144
|
+
[vue.vShow, ((_c = _ctx.folderList) == null ? void 0 : _c.length) !== 0 && _ctx.showFolder]
|
|
145
|
+
]) : vue.createCommentVNode("v-if", true),
|
|
146
|
+
vue.createCommentVNode(" \u6587\u4EF6 "),
|
|
147
|
+
vue.createElementVNode("div", _hoisted_10, [
|
|
148
|
+
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.fileList, (item, index$1) => {
|
|
149
|
+
return vue.openBlock(), vue.createElementBlock("div", {
|
|
150
|
+
key: index$1,
|
|
151
|
+
class: "item"
|
|
152
|
+
}, [
|
|
153
|
+
vue.createElementVNode("div", {
|
|
154
|
+
class: vue.normalizeClass([{ active: selectedData.value.includes(item) }, "shadow-wrap"])
|
|
155
|
+
}, [
|
|
156
|
+
vue.createElementVNode("div", _hoisted_11, [
|
|
157
|
+
vue.createVNode(index, {
|
|
158
|
+
"item-data": item,
|
|
159
|
+
preview: _ctx.preview,
|
|
160
|
+
onConfirm: confirm
|
|
161
|
+
}, null, 8, ["item-data", "preview"])
|
|
162
|
+
]),
|
|
163
|
+
vue.createElementVNode("h4", null, [
|
|
164
|
+
vue.createVNode(component, {
|
|
165
|
+
doc: item.catalog !== "image",
|
|
166
|
+
resource: item.catalog === "image",
|
|
167
|
+
type: item.catalog,
|
|
168
|
+
class: "icon"
|
|
169
|
+
}, null, 8, ["doc", "resource", "type"]),
|
|
170
|
+
vue.createVNode(vue.unref(webVue.Tooltip), {
|
|
171
|
+
content: item.alias,
|
|
172
|
+
"open-delay": 500,
|
|
173
|
+
effect: "dark",
|
|
174
|
+
placement: "top"
|
|
175
|
+
}, {
|
|
176
|
+
default: vue.withCtx(() => [
|
|
177
|
+
vue.createElementVNode("span", null, vue.toDisplayString(item.alias), 1)
|
|
178
|
+
]),
|
|
179
|
+
_: 2
|
|
180
|
+
}, 1032, ["content"])
|
|
181
|
+
]),
|
|
182
|
+
vue.createElementVNode("p", null, vue.toDisplayString(vue.unref(filter.timeFormat)(item.updated_at)), 1),
|
|
183
|
+
vue.createCommentVNode(" \u89C6\u9891\u8F6C\u7801\u8FDB\u5EA6 "),
|
|
184
|
+
item.task ? (vue.openBlock(), vue.createBlock(vue.unref(webVue.Tooltip), {
|
|
185
|
+
key: 0,
|
|
186
|
+
"open-delay": 2e3,
|
|
187
|
+
content: "\u8F6C\u7801\u4E2D\uFF0C\u6682\u4E0D\u53EF\u7528",
|
|
188
|
+
effect: "dark",
|
|
189
|
+
placement: "bottom"
|
|
190
|
+
}, {
|
|
191
|
+
default: vue.withCtx(() => [
|
|
192
|
+
_hoisted_12
|
|
193
|
+
]),
|
|
194
|
+
_: 1
|
|
195
|
+
})) : vue.createCommentVNode("v-if", true)
|
|
196
|
+
], 2)
|
|
197
|
+
]);
|
|
198
|
+
}), 128))
|
|
199
|
+
]),
|
|
200
|
+
_ctx.fileListCount ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_13, [
|
|
201
|
+
!_ctx.isOver ? (vue.openBlock(), vue.createBlock(vue.unref(webVue.Button), {
|
|
202
|
+
key: 0,
|
|
203
|
+
class: "loadmore_tips",
|
|
204
|
+
size: "small",
|
|
205
|
+
type: "text",
|
|
206
|
+
onClick: _ctx.loadFileMore
|
|
207
|
+
}, {
|
|
208
|
+
default: vue.withCtx(() => [
|
|
209
|
+
vue.createTextVNode("\u52A0\u8F7D\u66F4\u591A\u2026 ")
|
|
210
|
+
]),
|
|
211
|
+
_: 1
|
|
212
|
+
}, 8, ["onClick"])) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_14, "\u6CA1\u6709\u66F4\u591A\u4E86\u2026"))
|
|
213
|
+
])) : 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", _hoisted_15, _hoisted_17)) : vue.createCommentVNode("v-if", true)
|
|
215
|
+
])
|
|
216
|
+
];
|
|
217
|
+
}),
|
|
218
|
+
_: 1
|
|
219
|
+
});
|
|
220
|
+
};
|
|
221
|
+
}
|
|
222
|
+
});
|
|
223
|
+
module.exports = _sfc_main;
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var vue = require("vue");
|
|
3
|
+
var webVue = require("@arco-design/web-vue");
|
|
4
|
+
var icon = require("@arco-design/web-vue/es/icon");
|
|
5
|
+
var component = require("../../../mediaView/component.js");
|
|
6
|
+
const _hoisted_1 = { class: "file-type-thumb" };
|
|
7
|
+
const _hoisted_2 = {
|
|
8
|
+
key: 0,
|
|
9
|
+
class: "rate-info-tag tag"
|
|
10
|
+
};
|
|
11
|
+
const _hoisted_3 = {
|
|
12
|
+
key: 1,
|
|
13
|
+
class: "ai-tag tag"
|
|
14
|
+
};
|
|
15
|
+
const _hoisted_4 = {
|
|
16
|
+
key: 0,
|
|
17
|
+
class: "rate-info-tag tag"
|
|
18
|
+
};
|
|
19
|
+
const _hoisted_5 = {
|
|
20
|
+
key: 1,
|
|
21
|
+
class: "ai-tag tag"
|
|
22
|
+
};
|
|
23
|
+
const _hoisted_6 = {
|
|
24
|
+
key: 0,
|
|
25
|
+
class: "mask"
|
|
26
|
+
};
|
|
27
|
+
const _sfc_main = vue.defineComponent({
|
|
28
|
+
__name: "index",
|
|
29
|
+
props: {
|
|
30
|
+
itemData: {},
|
|
31
|
+
preview: { type: Boolean }
|
|
32
|
+
},
|
|
33
|
+
emits: ["confirm"],
|
|
34
|
+
setup(__props, { emit: __emit }) {
|
|
35
|
+
const props = __props;
|
|
36
|
+
const emit = __emit;
|
|
37
|
+
const visible = vue.ref(false);
|
|
38
|
+
const previewType = vue.computed(() => props.itemData.catalog);
|
|
39
|
+
const previewUrl = vue.computed(() => props.itemData.url || "");
|
|
40
|
+
const openPreview = () => visible.value = true;
|
|
41
|
+
const closePreviewer = (val) => visible.value = val;
|
|
42
|
+
const add = () => {
|
|
43
|
+
emit("confirm", props.itemData);
|
|
44
|
+
};
|
|
45
|
+
const getRate = vue.computed(() => {
|
|
46
|
+
if (!props.itemData.metas)
|
|
47
|
+
return "";
|
|
48
|
+
const { metas } = props.itemData;
|
|
49
|
+
let width = 0;
|
|
50
|
+
let height = 0;
|
|
51
|
+
metas.forEach((item) => {
|
|
52
|
+
if (item.key === "width") {
|
|
53
|
+
width = typeof item.value === "string" ? parseInt(item.value, 10) : item.value;
|
|
54
|
+
}
|
|
55
|
+
if (item.key === "height") {
|
|
56
|
+
height = typeof item.value === "string" ? parseInt(item.value, 10) : item.value;
|
|
57
|
+
}
|
|
58
|
+
});
|
|
59
|
+
const rate = (width / height).toFixed(1);
|
|
60
|
+
if (rate === (16 / 9).toFixed(1))
|
|
61
|
+
return "16:9";
|
|
62
|
+
if (rate === (4 / 3).toFixed(1))
|
|
63
|
+
return "4:3";
|
|
64
|
+
if (rate === (4 / 1).toFixed(1))
|
|
65
|
+
return "4:1";
|
|
66
|
+
if (rate === (3 / 4).toFixed(1))
|
|
67
|
+
return "3:4";
|
|
68
|
+
return "\u5176\u4ED6";
|
|
69
|
+
});
|
|
70
|
+
return (_ctx, _cache) => {
|
|
71
|
+
return vue.openBlock(), vue.createElementBlock(vue.Fragment, null, [
|
|
72
|
+
vue.createElementVNode("div", _hoisted_1, [
|
|
73
|
+
_ctx.itemData.thumb ? (vue.openBlock(), vue.createElementBlock("div", {
|
|
74
|
+
key: 0,
|
|
75
|
+
class: "pic",
|
|
76
|
+
style: vue.normalizeStyle({ "background-image": "url(" + _ctx.itemData.thumb + ")" })
|
|
77
|
+
}, [
|
|
78
|
+
getRate.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2, vue.toDisplayString(getRate.value), 1)) : vue.createCommentVNode("v-if", true),
|
|
79
|
+
_ctx.itemData.source === "ai" ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3, "AI\u751F\u6210")) : vue.createCommentVNode("v-if", true)
|
|
80
|
+
], 4)) : (vue.openBlock(), vue.createElementBlock("div", {
|
|
81
|
+
key: 1,
|
|
82
|
+
class: vue.normalizeClass(["pic", `${_ctx.itemData.catalog} ${_ctx.itemData.series}`])
|
|
83
|
+
}, [
|
|
84
|
+
getRate.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_4, vue.toDisplayString(getRate.value), 1)) : vue.createCommentVNode("v-if", true),
|
|
85
|
+
_ctx.itemData.source === "ai" ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_5, "AI\u751F\u6210")) : vue.createCommentVNode("v-if", true)
|
|
86
|
+
], 2)),
|
|
87
|
+
vue.createVNode(vue.Transition, { name: "el-fade-in" }, {
|
|
88
|
+
default: vue.withCtx(() => [
|
|
89
|
+
_ctx.preview ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_6, [
|
|
90
|
+
vue.createElementVNode("span", {
|
|
91
|
+
class: "half",
|
|
92
|
+
onClick: vue.withModifiers(openPreview, ["stop"])
|
|
93
|
+
}, [
|
|
94
|
+
vue.createVNode(vue.unref(icon.IconEye), {
|
|
95
|
+
"stroke-width": 6,
|
|
96
|
+
size: 20
|
|
97
|
+
})
|
|
98
|
+
]),
|
|
99
|
+
vue.createVNode(vue.unref(webVue.Divider), { direction: "vertical" }),
|
|
100
|
+
vue.createElementVNode("span", {
|
|
101
|
+
class: "half",
|
|
102
|
+
onClick: vue.withModifiers(add, ["stop"])
|
|
103
|
+
}, [
|
|
104
|
+
vue.createVNode(vue.unref(icon.IconPlus), {
|
|
105
|
+
"stroke-width": 6,
|
|
106
|
+
size: 20
|
|
107
|
+
})
|
|
108
|
+
])
|
|
109
|
+
])) : (vue.openBlock(), vue.createElementBlock("div", {
|
|
110
|
+
key: 1,
|
|
111
|
+
class: "transparent",
|
|
112
|
+
onClick: vue.withModifiers(add, ["stop"])
|
|
113
|
+
}))
|
|
114
|
+
]),
|
|
115
|
+
_: 1
|
|
116
|
+
})
|
|
117
|
+
]),
|
|
118
|
+
visible.value ? (vue.openBlock(), vue.createBlock(component, {
|
|
119
|
+
key: 0,
|
|
120
|
+
type: previewType.value,
|
|
121
|
+
url: previewUrl.value,
|
|
122
|
+
onClose: closePreviewer
|
|
123
|
+
}, null, 8, ["type", "url"])) : vue.createCommentVNode("v-if", true)
|
|
124
|
+
], 64);
|
|
125
|
+
};
|
|
126
|
+
}
|
|
127
|
+
});
|
|
128
|
+
module.exports = _sfc_main;
|
|
@@ -0,0 +1,204 @@
|
|
|
1
|
+
.file-type-thumb {
|
|
2
|
+
position: relative;
|
|
3
|
+
width: 100%;
|
|
4
|
+
|
|
5
|
+
&:hover .mask {
|
|
6
|
+
display: flex;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.mask {
|
|
10
|
+
position: absolute;
|
|
11
|
+
top: 0;
|
|
12
|
+
display: none;
|
|
13
|
+
align-items: center;
|
|
14
|
+
justify-content: center;
|
|
15
|
+
width: 100%;
|
|
16
|
+
height: 100%;
|
|
17
|
+
color: #eaeaea;
|
|
18
|
+
font-size: 18px;
|
|
19
|
+
background: rgba(0, 0, 0, 0.3);
|
|
20
|
+
|
|
21
|
+
i {
|
|
22
|
+
display: inline-block;
|
|
23
|
+
cursor: pointer;
|
|
24
|
+
|
|
25
|
+
&:active {
|
|
26
|
+
opacity: 0.4;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.half {
|
|
31
|
+
display: flex;
|
|
32
|
+
align-items: center;
|
|
33
|
+
justify-content: center;
|
|
34
|
+
width: 48%;
|
|
35
|
+
height: 100%;
|
|
36
|
+
|
|
37
|
+
&:hover {
|
|
38
|
+
cursor: pointer;
|
|
39
|
+
opacity: 0.7;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.el-divider {
|
|
44
|
+
margin: 0;
|
|
45
|
+
opacity: 0.4;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.transparent {
|
|
50
|
+
position: absolute;
|
|
51
|
+
top: 0;
|
|
52
|
+
width: 100%;
|
|
53
|
+
height: 100%;
|
|
54
|
+
|
|
55
|
+
&:hover {
|
|
56
|
+
cursor: pointer;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.tag {
|
|
61
|
+
position: absolute;
|
|
62
|
+
top: 8px;
|
|
63
|
+
left: 5px;
|
|
64
|
+
padding: 2px 8px;
|
|
65
|
+
color: white;
|
|
66
|
+
font-size: 12px;
|
|
67
|
+
background-color: rgba(#000, #000, #000, 0.4);
|
|
68
|
+
border-radius: 12px;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.rate-info-tag {
|
|
72
|
+
top: 8px;
|
|
73
|
+
left: 5px;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.ai-tag {
|
|
77
|
+
top: 8px;
|
|
78
|
+
right: 5px;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.pic {
|
|
82
|
+
width: 100%;
|
|
83
|
+
padding-top: 56.25%;
|
|
84
|
+
background-color: #fff;
|
|
85
|
+
background-image: url('../../assets/images/unknown.png');
|
|
86
|
+
background-repeat: no-repeat;
|
|
87
|
+
background-repeat: repeat-x;
|
|
88
|
+
background-position: top;
|
|
89
|
+
background-size: cover;
|
|
90
|
+
|
|
91
|
+
&:hover {
|
|
92
|
+
transform: scale(1.02);
|
|
93
|
+
transition: ease-out 0.4s;
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
.audio {
|
|
98
|
+
background-image: url('../../assets/images/music.png') !important;
|
|
99
|
+
|
|
100
|
+
&.doc {
|
|
101
|
+
background-image: url('../../assets/images/draf.png') !important;
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
.project {
|
|
106
|
+
background-image: url('../../assets/images/project1.png') !important;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
.doc {
|
|
110
|
+
background-image: url('../../assets/images/draf.png');
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
.link {
|
|
114
|
+
background-image: url('../../assets/images/link.png');
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
.sp_topic {
|
|
118
|
+
background-image: url('../../assets/images/link.png');
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
.live {
|
|
122
|
+
background-image: url('../../assets/images/live.png');
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
.pdf {
|
|
126
|
+
background-image: url('../../assets/images/pdf.png') !important;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
.officeexcel {
|
|
130
|
+
background-image: url('../../assets/images/excel.png') !important;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
.officeppt {
|
|
134
|
+
background-image: url('../../assets/images/ppt.png') !important;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
.zip {
|
|
138
|
+
background-image: url('../../assets/images/zip.png') !important;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
.rar {
|
|
142
|
+
background-image: url('../../assets/images/rar.png') !important;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
.txt {
|
|
146
|
+
background-image: url('../../assets/images/txt.png') !important;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
.exe {
|
|
150
|
+
background-image: url('../../assets/images/exe.png') !important;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
.html {
|
|
154
|
+
background-image: url('../../assets/images/html.png') !important;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
.officedoc {
|
|
158
|
+
background-image: url('../../assets/images/word.png') !important;
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
.wechat {
|
|
162
|
+
background-image: url('../../assets/images/wechat.png') !important;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
.h5 {
|
|
166
|
+
background-image: url('../../assets/images/h5.png') !important;
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
.ad {
|
|
170
|
+
background-image: url('../../assets/images/ad.png') !important;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
.booklink {
|
|
174
|
+
background-image: url('../../assets/images/booklink.png') !important;
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
.activity {
|
|
178
|
+
background-image: url('../../assets/images/activity.png') !important;
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
.svideo {
|
|
182
|
+
background-image: url('../../assets/images/svideo.png') !important;
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
.cloud_lottery {
|
|
186
|
+
background-image: url('../../assets/images/cloud_lottery.png') !important;
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
.cloud_form {
|
|
190
|
+
background-image: url('../../assets/images/cloud_form.png') !important;
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
.illegal-media-warning {
|
|
194
|
+
position: absolute;
|
|
195
|
+
top: 0;
|
|
196
|
+
width: 100%;
|
|
197
|
+
height: 100%;
|
|
198
|
+
background-color: rgba(0, 0, 0, 0.65);
|
|
199
|
+
background-image: url('../../assets/images/unknown.png');
|
|
200
|
+
background-repeat: no-repeat;
|
|
201
|
+
background-position: center;
|
|
202
|
+
background-size: 30%;
|
|
203
|
+
}
|
|
204
|
+
}
|