@cmstops/pro-compo 0.1.8 → 0.1.10

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.
Files changed (114) hide show
  1. package/dist/index.css +857 -0
  2. package/dist/index.min.css +1 -1
  3. package/es/appCenter/script/routeMap.d.ts +1 -1
  4. package/es/config.d.ts +1 -1
  5. package/es/config.js +1 -1
  6. package/es/contentModal/component.js +5 -2
  7. package/es/contentModal/components/CompoList/index.js +12 -1
  8. package/es/contentModal/components/storeBox/index.js +1 -1
  9. package/es/index.css +857 -0
  10. package/es/index.d.ts +2 -0
  11. package/es/index.js +2 -0
  12. package/es/index.less +2 -0
  13. package/es/previousVersion/component.d.ts +0 -0
  14. package/es/previousVersion/component.js +378 -0
  15. package/es/previousVersion/index.d.ts +2 -0
  16. package/es/previousVersion/index.js +7 -0
  17. package/es/previousVersion/script/api.d.ts +15 -0
  18. package/es/previousVersion/script/api.js +39 -0
  19. package/es/previousVersion/script/tool.d.ts +6 -0
  20. package/es/previousVersion/script/tool.js +22 -0
  21. package/es/previousVersion/style/css.js +1 -0
  22. package/es/previousVersion/style/index.css +166 -0
  23. package/es/previousVersion/style/index.d.ts +1 -0
  24. package/es/previousVersion/style/index.js +1 -0
  25. package/es/previousVersion/style/index.less +208 -0
  26. package/es/resourceModal/assets/images/unknown.js +2 -0
  27. package/es/resourceModal/assets/selection/null.js +2 -0
  28. package/es/resourceModal/component.js +65 -4
  29. package/es/resourceModal/components/MediaPreviewer/index.d.ts +0 -0
  30. package/es/resourceModal/components/MediaPreviewer/index.js +69 -0
  31. package/es/resourceModal/components/MediaSelection/DocAiMediaSelected/index.d.ts +0 -0
  32. package/es/resourceModal/components/MediaSelection/DocAiMediaSelected/index.js +111 -0
  33. package/es/resourceModal/components/MediaSelection/MainContent/FileTypeThumb/index.d.ts +0 -0
  34. package/es/resourceModal/components/MediaSelection/MainContent/FileTypeThumb/index.js +85 -0
  35. package/es/resourceModal/components/MediaSelection/MainContent/index.d.ts +0 -0
  36. package/es/resourceModal/components/MediaSelection/MainContent/index.js +171 -0
  37. package/es/resourceModal/components/MediaSelection/ToolbarSearch/index.d.ts +0 -0
  38. package/es/resourceModal/components/MediaSelection/ToolbarSearch/index.js +211 -0
  39. package/es/resourceModal/components/MediaSelection/index.d.ts +0 -0
  40. package/es/resourceModal/components/MediaSelection/index.js +272 -0
  41. package/es/resourceModal/script/api.d.ts +8 -0
  42. package/es/resourceModal/script/api.js +30 -0
  43. package/es/resourceModal/script/filter.d.ts +8 -0
  44. package/es/resourceModal/script/filter.js +22 -0
  45. package/es/resourceModal/script/mediaSelection.d.ts +10 -0
  46. package/es/resourceModal/style/DocAiMediaSelected.less +56 -0
  47. package/es/resourceModal/style/FileTypeThumb.less +183 -0
  48. package/es/resourceModal/style/MainContent.less +200 -0
  49. package/es/resourceModal/style/MediaPreviewer.less +71 -0
  50. package/es/resourceModal/style/MediaSelection.less +59 -0
  51. package/es/resourceModal/style/ToolbarSearch.less +40 -0
  52. package/es/resourceModal/style/index.css +514 -3
  53. package/es/resourceModal/style/index.less +16 -3
  54. package/es/selectGategory/component.d.ts +0 -0
  55. package/es/selectGategory/component.js +95 -0
  56. package/es/selectGategory/components/ColumnSelection/index.d.ts +0 -0
  57. package/es/selectGategory/components/ColumnSelection/index.js +273 -0
  58. package/es/selectGategory/index.d.ts +2 -0
  59. package/es/selectGategory/index.js +7 -0
  60. package/es/selectGategory/script/api.d.ts +6 -0
  61. package/es/selectGategory/script/api.js +15 -0
  62. package/es/selectGategory/style/ColumnSelection.less +190 -0
  63. package/es/selectGategory/style/css.js +1 -0
  64. package/es/selectGategory/style/index.css +180 -0
  65. package/es/selectGategory/style/index.d.ts +1 -0
  66. package/es/selectGategory/style/index.js +1 -0
  67. package/es/selectGategory/style/index.less +40 -0
  68. package/es/utils/doc.d.ts +69 -0
  69. package/es/utils/typeMap.js +2 -1
  70. package/lib/config.js +1 -1
  71. package/lib/contentModal/component.js +5 -2
  72. package/lib/contentModal/components/CompoList/index.js +11 -0
  73. package/lib/contentModal/components/storeBox/index.js +1 -1
  74. package/lib/index.css +857 -0
  75. package/lib/index.js +4 -0
  76. package/lib/index.less +2 -0
  77. package/lib/previousVersion/component.js +379 -0
  78. package/lib/previousVersion/index.js +8 -0
  79. package/lib/previousVersion/script/api.js +43 -0
  80. package/lib/previousVersion/script/tool.js +24 -0
  81. package/lib/previousVersion/style/css.js +2 -0
  82. package/lib/previousVersion/style/index.css +166 -0
  83. package/lib/previousVersion/style/index.js +2 -0
  84. package/lib/previousVersion/style/index.less +208 -0
  85. package/lib/resourceModal/assets/images/unknown.js +3 -0
  86. package/lib/resourceModal/assets/selection/null.js +3 -0
  87. package/lib/resourceModal/component.js +64 -3
  88. package/lib/resourceModal/components/MediaPreviewer/index.js +70 -0
  89. package/lib/resourceModal/components/MediaSelection/DocAiMediaSelected/index.js +112 -0
  90. package/lib/resourceModal/components/MediaSelection/MainContent/FileTypeThumb/index.js +86 -0
  91. package/lib/resourceModal/components/MediaSelection/MainContent/index.js +172 -0
  92. package/lib/resourceModal/components/MediaSelection/ToolbarSearch/index.js +212 -0
  93. package/lib/resourceModal/components/MediaSelection/index.js +273 -0
  94. package/lib/resourceModal/script/api.js +35 -0
  95. package/lib/resourceModal/script/filter.js +25 -0
  96. package/lib/resourceModal/style/DocAiMediaSelected.less +56 -0
  97. package/lib/resourceModal/style/FileTypeThumb.less +183 -0
  98. package/lib/resourceModal/style/MainContent.less +200 -0
  99. package/lib/resourceModal/style/MediaPreviewer.less +71 -0
  100. package/lib/resourceModal/style/MediaSelection.less +59 -0
  101. package/lib/resourceModal/style/ToolbarSearch.less +40 -0
  102. package/lib/resourceModal/style/index.css +514 -3
  103. package/lib/resourceModal/style/index.less +16 -3
  104. package/lib/selectGategory/component.js +96 -0
  105. package/lib/selectGategory/components/ColumnSelection/index.js +274 -0
  106. package/lib/selectGategory/index.js +8 -0
  107. package/lib/selectGategory/script/api.js +18 -0
  108. package/lib/selectGategory/style/ColumnSelection.less +190 -0
  109. package/lib/selectGategory/style/css.js +2 -0
  110. package/lib/selectGategory/style/index.css +180 -0
  111. package/lib/selectGategory/style/index.js +2 -0
  112. package/lib/selectGategory/style/index.less +40 -0
  113. package/lib/utils/typeMap.js +2 -1
  114. package/package.json +2 -2
@@ -0,0 +1,273 @@
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 api = require("../../script/api.js");
6
+ var index = require("./DocAiMediaSelected/index.js");
7
+ var index$1 = require("./ToolbarSearch/index.js");
8
+ var index$2 = require("./MainContent/index.js");
9
+ const _hoisted_1 = {
10
+ class: "media-selection",
11
+ unselectable: "on"
12
+ };
13
+ const _hoisted_2 = { class: "media-selection-section" };
14
+ const _hoisted_3 = { class: "components-title" };
15
+ const _hoisted_4 = { class: "simple-resources" };
16
+ const _hoisted_5 = { class: "directory-breadcrumb" };
17
+ const _sfc_main = vue.defineComponent({
18
+ __name: "index",
19
+ props: {
20
+ selectedMax: {},
21
+ base_api: {},
22
+ catalogProps: {},
23
+ preview: { type: Boolean },
24
+ addType: {},
25
+ ai_static_covers: {},
26
+ ai_gif_covers: {}
27
+ },
28
+ emits: ["add"],
29
+ setup(__props, { emit }) {
30
+ const props = __props;
31
+ const add = (itemData) => {
32
+ emit("add", itemData);
33
+ };
34
+ const breadCrumbs = vue.ref([
35
+ { directory_id: 0, alias: "\u6839\u76EE\u5F55" }
36
+ ]);
37
+ const folderList = vue.ref([]);
38
+ const fileList = vue.ref([]);
39
+ const fileListCount = vue.ref(0);
40
+ const getFilesQueryParam = vue.ref({
41
+ directory_id: 0,
42
+ limit: 30,
43
+ offset: 0,
44
+ catalog: ""
45
+ });
46
+ const filter = vue.ref(null);
47
+ const activeMediaType = vue.ref(
48
+ props.ai_static_covers && props.ai_static_covers.length ? "ai" : "all"
49
+ );
50
+ const api$1 = vue.ref({ getAttachmentsAll: api.getAttachmentsAll, getAttachmentsMy: api.getAttachmentsMy });
51
+ const currentDirectory = vue.ref({
52
+ directory_id: 0,
53
+ alias: ""
54
+ });
55
+ const isOver = vue.ref(false);
56
+ const getMoreData = vue.ref();
57
+ vue.onMounted(() => {
58
+ if (props.catalogProps && props.catalogProps !== "all") {
59
+ getFilesQueryParam.value.catalog = props.catalogProps;
60
+ }
61
+ loadData();
62
+ });
63
+ const resourcesHeight = vue.computed(() => {
64
+ var _a, _b;
65
+ if (((_a = filter.value) == null ? void 0 : _a.keyword) && breadCrumbs.value.length > 1)
66
+ return "calc(100% - 194px)";
67
+ if ((_b = filter.value) == null ? void 0 : _b.keyword)
68
+ return "calc(100% - 150px)";
69
+ if (breadCrumbs.value.length > 1)
70
+ return "calc(100% - 146px)";
71
+ if (activeMediaType.value !== "ai")
72
+ return "calc(100% - 102px)";
73
+ return "calc(100% - 40px)";
74
+ });
75
+ const resetQuery = (item) => {
76
+ filter.value = null;
77
+ getMoreData.value.reset();
78
+ getFilesQueryParam.value.directory_id = item ? item[breadCrumbs.value.length - 2].directory_id : 0;
79
+ getFilesQueryParam.value.offset = 0;
80
+ };
81
+ const MediaTypeChange = (e) => {
82
+ activeMediaType.value = e;
83
+ resetQuery();
84
+ loadData();
85
+ breadCrumbs.value = [{ directory_id: 0, alias: "\u6839\u76EE\u5F55" }];
86
+ };
87
+ const changeDirectory = (item) => {
88
+ getFilesQueryParam.value.directory_id = item.id;
89
+ getFilesQueryParam.value.offset = 0;
90
+ currentDirectory.value = { alias: item.alias, directory_id: item.id };
91
+ filter.value = null;
92
+ loadData({ toDir: true });
93
+ };
94
+ const returnAny = (item) => {
95
+ getFilesQueryParam.value.directory_id = item.directory_id;
96
+ getFilesQueryParam.value.offset = 0;
97
+ currentDirectory.value = {
98
+ alias: item.alias,
99
+ directory_id: item.directory_id
100
+ };
101
+ let curIndex = 0;
102
+ breadCrumbs.value.forEach((cur, index2) => {
103
+ if (item.directory_id === cur.directory_id)
104
+ curIndex = index2;
105
+ });
106
+ breadCrumbs.value = breadCrumbs.value.slice(0, curIndex + 1);
107
+ filter.value = null;
108
+ loadData();
109
+ };
110
+ const goBackDirectory = () => {
111
+ resetQuery(breadCrumbs.value);
112
+ loadData({ goBack: true });
113
+ };
114
+ const loadData = (params) => {
115
+ isOver.value = false;
116
+ const API = activeMediaType.value === "all" ? api$1.value.getAttachmentsAll : api$1.value.getAttachmentsMy;
117
+ let query = { ...getFilesQueryParam.value };
118
+ if (filter.value) {
119
+ query = Object.assign(query, filter.value);
120
+ folderList.value = [];
121
+ }
122
+ const promise = filter.value ? [API(props.base_api, query)] : [
123
+ API(props.base_api, query),
124
+ api.getDirectories(props.base_api, { parent_id: query.directory_id })
125
+ ];
126
+ Promise.all(promise).then((res) => {
127
+ const files = res[0].code === 0 ? res[0].message.data || [] : [];
128
+ const folders = res[1] && res[1].code === 0 ? res[1].message.data || [] : [];
129
+ folderList.value = folders;
130
+ if (params && params.more) {
131
+ fileList.value = fileList.value.concat(files);
132
+ } else {
133
+ fileList.value = files;
134
+ }
135
+ if (params && params.goBack) {
136
+ breadCrumbs.value.pop();
137
+ } else if (params && params.toDir) {
138
+ breadCrumbs.value.push(currentDirectory.value);
139
+ }
140
+ fileListCount.value = res[0].code === 0 ? res[0].message.count || 0 : 0;
141
+ if (fileListCount.value < 30) {
142
+ isOver.value = true;
143
+ }
144
+ });
145
+ };
146
+ const loadFileMore = () => {
147
+ if (fileListCount.value > 30 && fileList.value.length < fileListCount.value) {
148
+ isOver.value = false;
149
+ getFilesQueryParam.value.offset = fileList.value.length;
150
+ loadData({ more: true });
151
+ } else {
152
+ isOver.value = true;
153
+ }
154
+ };
155
+ const search = (value) => {
156
+ getFilesQueryParam.value.offset = 0;
157
+ filter.value = value === null ? null : { ...value };
158
+ loadData();
159
+ };
160
+ return (_ctx, _cache) => {
161
+ return vue.openBlock(), vue.createElementBlock("div", _hoisted_1, [
162
+ vue.createElementVNode("div", _hoisted_2, [
163
+ vue.createCommentVNode(" \u9876\u90E8\u6807\u9898\uFF0C\u5173\u95ED\u6309\u94AE\uFF0C\u6587\u4EF6\u4E0A\u4F20 "),
164
+ vue.createElementVNode("div", _hoisted_3, [
165
+ vue.createVNode(vue.unref(webVue.Tabs), {
166
+ modelValue: activeMediaType.value,
167
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => activeMediaType.value = $event),
168
+ class: "media-tabs",
169
+ onTabClick: MediaTypeChange
170
+ }, {
171
+ default: vue.withCtx(() => [
172
+ _ctx.ai_static_covers && _ctx.ai_static_covers.length ? (vue.openBlock(), vue.createBlock(vue.unref(webVue.TabPane), {
173
+ key: "ai",
174
+ title: "AI\u4F18\u9009"
175
+ })) : vue.createCommentVNode("v-if", true),
176
+ vue.createVNode(vue.unref(webVue.TabPane), {
177
+ key: "all",
178
+ title: "\u5168\u90E8\u7D20\u6750"
179
+ }),
180
+ vue.createVNode(vue.unref(webVue.TabPane), {
181
+ key: "my",
182
+ title: "\u6211\u7684\u7D20\u6750"
183
+ })
184
+ ]),
185
+ _: 1
186
+ }, 8, ["modelValue"])
187
+ ]),
188
+ vue.createElementVNode("div", {
189
+ class: "resources",
190
+ style: vue.normalizeStyle({ height: resourcesHeight.value })
191
+ }, [
192
+ vue.createCommentVNode(" ai\u4F18\u9009\u7D20\u6750 "),
193
+ activeMediaType.value === "ai" ? (vue.openBlock(), vue.createBlock(index, {
194
+ key: 0,
195
+ ai_static_covers: _ctx.ai_static_covers,
196
+ ai_gif_covers: _ctx.ai_gif_covers,
197
+ "selected-max": _ctx.selectedMax,
198
+ preview: _ctx.preview,
199
+ "add-type": _ctx.addType,
200
+ onAdd: add
201
+ }, null, 8, ["ai_static_covers", "ai_gif_covers", "selected-max", "preview", "add-type"])) : vue.createCommentVNode("v-if", true),
202
+ vue.createCommentVNode(" \u7D20\u6750\u5E93\u7D20\u6750 "),
203
+ vue.createCommentVNode(" \u7EC4\u7EC7\u3001\u6587\u4EF6\u5939\u9762\u5305\u5C51 "),
204
+ vue.withDirectives(vue.createElementVNode("div", _hoisted_4, [
205
+ vue.createElementVNode("div", _hoisted_5, [
206
+ vue.createVNode(index$1, {
207
+ ref_key: "getMoreData",
208
+ ref: getMoreData,
209
+ class: "tool-search-box",
210
+ "active-media-type": activeMediaType.value,
211
+ base_api: _ctx.base_api,
212
+ onSearch: search
213
+ }, {
214
+ other: vue.withCtx(() => [
215
+ breadCrumbs.value.length > 1 ? (vue.openBlock(), vue.createBlock(vue.unref(webVue.Button), {
216
+ key: 0,
217
+ class: "back",
218
+ type: "secondary",
219
+ size: "medium",
220
+ onClick: goBackDirectory
221
+ }, {
222
+ icon: vue.withCtx(() => [
223
+ vue.createVNode(vue.unref(icon.IconArrowLeft))
224
+ ]),
225
+ _: 1
226
+ })) : vue.createCommentVNode("v-if", true)
227
+ ]),
228
+ _: 1
229
+ }, 8, ["active-media-type", "base_api"])
230
+ ]),
231
+ breadCrumbs.value.length > 1 ? (vue.openBlock(), vue.createBlock(vue.unref(webVue.Breadcrumb), {
232
+ key: 0,
233
+ separator: "/",
234
+ class: "breadcrumb"
235
+ }, {
236
+ default: vue.withCtx(() => [
237
+ (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(breadCrumbs.value, (item) => {
238
+ return vue.openBlock(), vue.createBlock(vue.unref(webVue.BreadcrumbItem), {
239
+ key: item.directory_id,
240
+ class: "breadcrumbItem",
241
+ onClick: ($event) => returnAny(item)
242
+ }, {
243
+ default: vue.withCtx(() => [
244
+ vue.createTextVNode(vue.toDisplayString(item.alias), 1)
245
+ ]),
246
+ _: 2
247
+ }, 1032, ["onClick"]);
248
+ }), 128))
249
+ ]),
250
+ _: 1
251
+ })) : vue.createCommentVNode("v-if", true),
252
+ vue.createCommentVNode(" \u6211\u7684\u5DE5\u7A0B\u3001\u89C6\u9891\u5217\u8868 "),
253
+ vue.createVNode(index$2, {
254
+ "folder-list": folderList.value,
255
+ "file-list": fileList.value,
256
+ "file-list-count": fileListCount.value,
257
+ "is-over": isOver.value,
258
+ preview: _ctx.preview,
259
+ "add-type": _ctx.addType,
260
+ "change-directory": changeDirectory,
261
+ "load-file-more": loadFileMore,
262
+ onAdd: add
263
+ }, null, 8, ["folder-list", "file-list", "file-list-count", "is-over", "preview", "add-type"])
264
+ ], 512), [
265
+ [vue.vShow, ["all", "my"].includes(activeMediaType.value)]
266
+ ])
267
+ ], 4)
268
+ ])
269
+ ]);
270
+ };
271
+ }
272
+ });
273
+ module.exports = _sfc_main;
@@ -0,0 +1,35 @@
1
+ "use strict";
2
+ Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
3
+ var request = require("../../utils/request.js");
4
+ function getAttachmentsAll(BASE_API, query) {
5
+ return request(BASE_API, {
6
+ url: `/poplar/v3/attachments`,
7
+ method: "get",
8
+ params: query
9
+ });
10
+ }
11
+ function getAttachmentsMy(BASE_API, query) {
12
+ return request(BASE_API, {
13
+ url: `/poplar/v3/my/attachments`,
14
+ method: "get",
15
+ params: query
16
+ });
17
+ }
18
+ function getDirectories(BASE_API, query) {
19
+ return request(BASE_API, {
20
+ url: `/poplar/v3/directories`,
21
+ method: "get",
22
+ params: query
23
+ });
24
+ }
25
+ function getAccountList(BASE_API, id, query) {
26
+ return request(BASE_API, {
27
+ url: `/poplar/v2/accounts/${id}`,
28
+ method: "get",
29
+ params: query
30
+ });
31
+ }
32
+ exports.getAccountList = getAccountList;
33
+ exports.getAttachmentsAll = getAttachmentsAll;
34
+ exports.getAttachmentsMy = getAttachmentsMy;
35
+ exports.getDirectories = getDirectories;
@@ -0,0 +1,25 @@
1
+ "use strict";
2
+ Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
3
+ var vue = require("vue");
4
+ const rateOptions = vue.ref([
5
+ { label: "\u5168\u90E8\u6BD4\u4F8B", value: "" },
6
+ { label: "16:9", value: "16:9" },
7
+ { label: "4:3", value: "4:3" },
8
+ { label: "4:1", value: "4:1" },
9
+ { label: "3:4", value: "3:4" },
10
+ { label: "\u5176\u4ED6", value: "others" }
11
+ ]);
12
+ const keywordsSelection = vue.ref([
13
+ { name: "\u5168\u90E8\u7ED3\u679C", value: "" },
14
+ { name: "\u6807\u9898", value: "alias" },
15
+ { name: "\u624B\u52A8\u6807\u7B7E", value: "tags" },
16
+ { name: "\u4EBA\u8138", value: "ai_figure" },
17
+ { name: "\u573A\u666F", value: "ai_scenario" },
18
+ { name: "\u5B9E\u4F53(\u56FE\u50CF)", value: "ai_entity" },
19
+ { name: "Logo", value: "ai_logo" },
20
+ { name: "\u6587\u672C(OCR)", value: "ai_ocr_keywords" },
21
+ { name: "\u8BED\u97F3", value: "ai_speech_keywords" },
22
+ { name: "\u77E5\u8BC6\u56FE\u8C31", value: "ai_knowledge_graph" }
23
+ ]);
24
+ exports.keywordsSelection = keywordsSelection;
25
+ exports.rateOptions = rateOptions;
@@ -0,0 +1,56 @@
1
+ .doc-ai-media-selected {
2
+ height: 100%;
3
+
4
+ .arco-scrollbar {
5
+ height: 100%;
6
+
7
+ .doc-ai-media-selected-scrollbar {
8
+ height: 100%;
9
+ overflow: auto;
10
+
11
+ .thumb_type {
12
+ margin: 20px 0 10px 20px;
13
+ }
14
+
15
+ .thumb-list {
16
+ display: flex;
17
+ flex-wrap: wrap;
18
+ align-items: center;
19
+ margin-left: 18px;
20
+
21
+ .thumb-wrap {
22
+ width: 20%;
23
+ height: 100px;
24
+ margin-bottom: 20px;
25
+
26
+ .thumb-item {
27
+ height: 100%;
28
+ margin-right: 20px;
29
+
30
+ .pic {
31
+ position: relative;
32
+ width: 100%;
33
+ height: 100%;
34
+ overflow: hidden;
35
+ overflow: hidden;
36
+ border: solid 3px transparent;
37
+ border-radius: 4px;
38
+
39
+ &.active {
40
+ border: solid 3px #4886ff;
41
+ border-radius: 4px;
42
+ }
43
+
44
+ img {
45
+ display: block;
46
+ width: 100%;
47
+ height: 100%;
48
+ object-fit: cover;
49
+ }
50
+ }
51
+ }
52
+ }
53
+ }
54
+ }
55
+ }
56
+ }
@@ -0,0 +1,183 @@
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
+ .pic {
61
+ width: 100%;
62
+ padding-top: 56.25%;
63
+ background-color: #fff;
64
+ background-image: url('../assets/images/unknown.png');
65
+ background-repeat: no-repeat;
66
+ background-repeat: repeat-x;
67
+ background-position: top;
68
+ background-size: cover;
69
+
70
+ &:hover {
71
+ transform: scale(1.02);
72
+ transition: ease-out 0.4s;
73
+ }
74
+ }
75
+
76
+ .audio {
77
+ background-image: url('../assets/images/music.png') !important;
78
+
79
+ &.doc {
80
+ background-image: url('../assets/images/draf.png') !important;
81
+ }
82
+ }
83
+
84
+ .project {
85
+ background-image: url('../assets/images/project1.png') !important;
86
+ }
87
+
88
+ .doc {
89
+ background-image: url('../assets/images/draf.png');
90
+ }
91
+
92
+ .link {
93
+ background-image: url('../assets/images/link.png');
94
+ }
95
+
96
+ .sp_topic {
97
+ background-image: url('../assets/images/link.png');
98
+ }
99
+
100
+ .live {
101
+ background-image: url('../assets/images/live.png');
102
+ }
103
+
104
+ .pdf {
105
+ background-image: url('../assets/images/pdf.png') !important;
106
+ }
107
+
108
+ .officeexcel {
109
+ background-image: url('../assets/images/excel.png') !important;
110
+ }
111
+
112
+ .officeppt {
113
+ background-image: url('../assets/images/ppt.png') !important;
114
+ }
115
+
116
+ .zip {
117
+ background-image: url('../assets/images/zip.png') !important;
118
+ }
119
+
120
+ .rar {
121
+ background-image: url('../assets/images/rar.png') !important;
122
+ }
123
+
124
+ .txt {
125
+ background-image: url('../assets/images/txt.png') !important;
126
+ }
127
+
128
+ .exe {
129
+ background-image: url('../assets/images/exe.png') !important;
130
+ }
131
+
132
+ .html {
133
+ background-image: url('../assets/images/html.png') !important;
134
+ }
135
+
136
+ .officedoc {
137
+ background-image: url('../assets/images/word.png') !important;
138
+ }
139
+
140
+ .wechat {
141
+ background-image: url('../assets/images/wechat.png') !important;
142
+ }
143
+
144
+ .h5 {
145
+ background-image: url('../assets/images/h5.png') !important;
146
+ }
147
+
148
+ .ad {
149
+ background-image: url('../assets/images/ad.png') !important;
150
+ }
151
+
152
+ .booklink {
153
+ background-image: url('../assets/images/booklink.png') !important;
154
+ }
155
+
156
+ .activity {
157
+ background-image: url('../assets/images/activity.png') !important;
158
+ }
159
+
160
+ .svideo {
161
+ background-image: url('../assets/images/svideo.png') !important;
162
+ }
163
+
164
+ .cloud_lottery {
165
+ background-image: url('../assets/images/cloud_lottery.png') !important;
166
+ }
167
+
168
+ .cloud_form {
169
+ background-image: url('../assets/images/cloud_form.png') !important;
170
+ }
171
+
172
+ .illegal-media-warning {
173
+ position: absolute;
174
+ top: 0;
175
+ width: 100%;
176
+ height: 100%;
177
+ background-color: rgba(0, 0, 0, 0.65);
178
+ background-image: url('../assets/images/unknown.png');
179
+ background-repeat: no-repeat;
180
+ background-position: center;
181
+ background-size: 30%;
182
+ }
183
+ }