@cmstops/pro-compo 0.1.57 → 0.1.59

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- import { defineComponent, ref, provide, computed, watch, nextTick, openBlock, createElementBlock, createTextVNode, toDisplayString, createCommentVNode, Fragment, renderList, createBlock, createVNode, unref, withCtx, createElementVNode, withDirectives, vShow } from "vue";
1
+ import { defineComponent, ref, provide, computed, watch, nextTick, openBlock, createElementBlock, createElementVNode, normalizeClass, normalizeStyle, withDirectives, vShow, toDisplayString, createCommentVNode, Fragment, renderList, createBlock, createVNode, unref, withCtx, createTextVNode } from "vue";
2
2
  import { RadioGroup, Radio, Switch } from "@arco-design/web-vue";
3
3
  import { docThumbObjMap, docThumbArrMap, docThumbRatioMap } from "../utils/doc.js";
4
4
  import _sfc_main$3 from "../resourceModal/component.js";
@@ -7,37 +7,36 @@ import _sfc_main$1 from "./components/card.js";
7
7
  import _sfc_main$2 from "./components/colorPalette.js";
8
8
  import { DEFAULT_BASE_API } from "../config.js";
9
9
  const _hoisted_1 = { class: "select-thumb-container" };
10
- const _hoisted_2 = {
11
- key: 0,
12
- class: "title"
13
- };
14
- const _hoisted_3 = {
15
- key: 0,
16
- class: "tip"
17
- };
10
+ const _hoisted_2 = { class: "star" };
11
+ const _hoisted_3 = { class: "thumbbox" };
18
12
  const _hoisted_4 = {
19
- key: 1,
13
+ key: 0,
20
14
  class: "thumb-list-view"
21
15
  };
22
- const _hoisted_5 = { class: "banner-view" };
23
- const _hoisted_6 = { class: "title" };
24
- const _hoisted_7 = /* @__PURE__ */ createElementVNode("span", null, "\u72EC\u7ACB\u8F6E\u64AD\u56FE", -1);
16
+ const _hoisted_5 = { style: { "margin-top": "-10px" } };
17
+ const _hoisted_6 = /* @__PURE__ */ createElementVNode("span", { style: { "margin-right": "10px" } }, "\u72EC\u7ACB\u8F6E\u64AD\u56FE", -1);
18
+ const _hoisted_7 = { class: "thumbbox" };
25
19
  const _hoisted_8 = { class: "title" };
26
20
  const _hoisted_9 = /* @__PURE__ */ createElementVNode("span", null, "\u72EC\u7ACB\u8F6E\u64AD\u56FE\u80CC\u666F\u989C\u8272", -1);
27
21
  const _hoisted_10 = [
28
22
  _hoisted_9
29
23
  ];
30
- const _hoisted_11 = { class: "banner-view" };
31
- const _hoisted_12 = { class: "title" };
32
- const _hoisted_13 = { key: 0 };
33
- const _hoisted_14 = { key: 1 };
24
+ const _hoisted_11 = { key: 0 };
25
+ const _hoisted_12 = { key: 1 };
26
+ const _hoisted_13 = /* @__PURE__ */ createElementVNode("span", { class: "star" }, "*", -1);
27
+ const _hoisted_14 = { key: 2 };
34
28
  const _hoisted_15 = /* @__PURE__ */ createElementVNode("span", { class: "star" }, "*", -1);
35
- const _hoisted_16 = { key: 2 };
36
- const _hoisted_17 = /* @__PURE__ */ createElementVNode("span", { class: "tip" }, "(\u5EFA\u8BAE\u5C3A\u5BF8\uFF1A1242px*662px)", -1);
37
- const _hoisted_18 = { class: "title" };
38
- const _hoisted_19 = /* @__PURE__ */ createElementVNode("span", null, "\u5934\u56FE\u80CC\u666F\u989C\u8272", -1);
39
- const _hoisted_20 = [
40
- _hoisted_19
29
+ const _hoisted_16 = { key: 3 };
30
+ const _hoisted_17 = {
31
+ class: "tip",
32
+ style: { "margin-left": "10px" }
33
+ };
34
+ const _hoisted_18 = { class: "thumbbox" };
35
+ const _hoisted_19 = { class: "tip" };
36
+ const _hoisted_20 = { class: "title" };
37
+ const _hoisted_21 = /* @__PURE__ */ createElementVNode("span", null, "\u5934\u56FE\u80CC\u666F\u989C\u8272", -1);
38
+ const _hoisted_22 = [
39
+ _hoisted_21
41
40
  ];
42
41
  const _sfc_main = defineComponent({
43
42
  ...{ name: "selectThumb" },
@@ -46,7 +45,10 @@ const _sfc_main = defineComponent({
46
45
  BASE_API: {},
47
46
  mode: {},
48
47
  dataValue: {},
48
+ flex: { type: Boolean },
49
+ offset: {},
49
50
  title: {},
51
+ titleValid: { type: Boolean },
50
52
  showTitle: { type: Boolean },
51
53
  cropper: { type: Boolean },
52
54
  aiImages: {},
@@ -157,6 +159,8 @@ const _sfc_main = defineComponent({
157
159
  return "1,2,3,4,7";
158
160
  if (series === "h5")
159
161
  return "1,2,3,4,7";
162
+ if (series === "local_live")
163
+ return "2,3";
160
164
  }
161
165
  return "1,2,3,4,5,7";
162
166
  });
@@ -180,9 +184,13 @@ const _sfc_main = defineComponent({
180
184
  };
181
185
  const docSeriesShowTopThemeColor = computed(() => {
182
186
  const { series } = props;
183
- return ["special", "special_v3", "video_album", "audio_album"].includes(
184
- series
185
- );
187
+ return [
188
+ "special",
189
+ "special_v3",
190
+ "video_album",
191
+ "audio_album",
192
+ "local_live"
193
+ ].includes(series);
186
194
  });
187
195
  const submitCallback = (data) => {
188
196
  var _a;
@@ -312,122 +320,184 @@ const _sfc_main = defineComponent({
312
320
  callback(styleData2);
313
321
  };
314
322
  return (_ctx, _cache) => {
315
- var _a, _b, _c;
323
+ var _a, _b, _c, _d, _e, _f;
316
324
  return openBlock(), createElementBlock("div", _hoisted_1, [
317
- _ctx.mode !== "smiple" ? (openBlock(), createElementBlock("div", _hoisted_2, [
318
- createTextVNode(toDisplayString(_ctx.title ? _ctx.title : "\u5C01\u9762") + " ", 1),
319
- ((_a = curtemplate.value) == null ? void 0 : _a.value) !== "4" ? (openBlock(), createElementBlock("span", _hoisted_3, "(" + toDisplayString((_b = curtemplate.value) == null ? void 0 : _b.alias) + "\u6BD4\u4F8B\uFF1A" + toDisplayString((_c = curtemplate.value) == null ? void 0 : _c.ratioStr) + ")", 1)) : createCommentVNode("v-if", true)
320
- ])) : createCommentVNode("v-if", true),
321
- currentModel.value ? (openBlock(), createElementBlock("div", _hoisted_4, [
322
- (openBlock(true), createElementBlock(Fragment, null, renderList(currentModel.value.maxLength, (item, index) => {
323
- return openBlock(), createBlock(_sfc_main$1, {
324
- key: index,
325
- id: `thumb-card-${index}`,
326
- data: thumbList.value[index],
327
- model: model.value,
328
- "preview-list": previewList.value,
329
- "thumb-model": "thumb",
330
- onOpen: ($event) => openDialogMediaSelection($event, index)
331
- }, null, 8, ["id", "data", "model", "preview-list", "onOpen"]);
332
- }), 128))
333
- ])) : createCommentVNode("v-if", true),
334
- _ctx.mode === "doc" ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [
335
- createCommentVNode(" \u9009\u62E9\u5927\u56FE\u3001\u4E09\u56FE\u3001\u5355\u56FE...\u7B49\u6A21\u5F0F "),
336
- createVNode(unref(RadioGroup), {
337
- modelValue: model.value,
338
- "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => model.value = $event),
339
- size: "small",
340
- type: "button",
341
- onChange: modelChange
342
- }, {
343
- default: withCtx(() => [
344
- (openBlock(true), createElementBlock(Fragment, null, renderList(modelList.value, (item, index) => {
345
- return openBlock(), createBlock(unref(Radio), {
325
+ createElementVNode("div", {
326
+ class: normalizeClass(["banner-view", { flex: _ctx.flex }])
327
+ }, [
328
+ _ctx.mode !== "smiple" ? (openBlock(), createElementBlock("div", {
329
+ key: 0,
330
+ class: "title",
331
+ style: normalizeStyle({ width: _ctx.offset })
332
+ }, [
333
+ withDirectives(createElementVNode("span", _hoisted_2, "*", 512), [
334
+ [vShow, _ctx.titleValid]
335
+ ]),
336
+ createElementVNode("span", null, toDisplayString(_ctx.title ? _ctx.title : "\u5C01\u9762"), 1),
337
+ ((_a = curtemplate.value) == null ? void 0 : _a.value) !== "4" ? withDirectives((openBlock(), createElementBlock("span", {
338
+ key: 0,
339
+ class: "tip",
340
+ style: { "margin-left": "10px" }
341
+ }, " (" + toDisplayString((_b = curtemplate.value) == null ? void 0 : _b.alias) + "\u6BD4\u4F8B\uFF1A" + toDisplayString((_c = curtemplate.value) == null ? void 0 : _c.ratioStr) + ") ", 513)), [
342
+ [vShow, !_ctx.flex]
343
+ ]) : createCommentVNode("v-if", true)
344
+ ], 4)) : createCommentVNode("v-if", true),
345
+ createElementVNode("div", _hoisted_3, [
346
+ currentModel.value ? (openBlock(), createElementBlock("div", _hoisted_4, [
347
+ (openBlock(true), createElementBlock(Fragment, null, renderList(currentModel.value.maxLength, (item, index) => {
348
+ return openBlock(), createBlock(_sfc_main$1, {
346
349
  key: index,
347
- value: item.value
348
- }, {
349
- default: withCtx(() => [
350
- createTextVNode(toDisplayString(item.alias), 1)
351
- ]),
352
- _: 2
353
- }, 1032, ["value"]);
350
+ id: `thumb-card-${index}`,
351
+ data: thumbList.value[index],
352
+ model: model.value,
353
+ "preview-list": previewList.value,
354
+ "thumb-model": "thumb",
355
+ onOpen: ($event) => openDialogMediaSelection($event, index)
356
+ }, null, 8, ["id", "data", "model", "preview-list", "onOpen"]);
354
357
  }), 128))
358
+ ])) : createCommentVNode("v-if", true),
359
+ createElementVNode("div", _hoisted_5, [
360
+ ((_d = curtemplate.value) == null ? void 0 : _d.value) !== "4" ? withDirectives((openBlock(), createElementBlock("span", {
361
+ key: 0,
362
+ class: "tip"
363
+ }, " (" + toDisplayString((_e = curtemplate.value) == null ? void 0 : _e.alias) + "\u6BD4\u4F8B\uFF1A" + toDisplayString((_f = curtemplate.value) == null ? void 0 : _f.ratioStr) + ") ", 513)), [
364
+ [vShow, _ctx.flex]
365
+ ]) : createCommentVNode("v-if", true)
355
366
  ]),
356
- _: 1
357
- }, 8, ["modelValue"]),
367
+ _ctx.mode === "doc" ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
368
+ createCommentVNode(" \u9009\u62E9\u5927\u56FE\u3001\u4E09\u56FE\u3001\u5355\u56FE...\u7B49\u6A21\u5F0F "),
369
+ createVNode(unref(RadioGroup), {
370
+ modelValue: model.value,
371
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => model.value = $event),
372
+ size: "small",
373
+ type: "button",
374
+ style: { "margin-top": "10px" },
375
+ onChange: modelChange
376
+ }, {
377
+ default: withCtx(() => [
378
+ (openBlock(true), createElementBlock(Fragment, null, renderList(modelList.value, (item, index) => {
379
+ return openBlock(), createBlock(unref(Radio), {
380
+ key: index,
381
+ value: item.value
382
+ }, {
383
+ default: withCtx(() => [
384
+ createTextVNode(toDisplayString(item.alias), 1)
385
+ ]),
386
+ _: 2
387
+ }, 1032, ["value"]);
388
+ }), 128))
389
+ ]),
390
+ _: 1
391
+ }, 8, ["modelValue"])
392
+ ], 64)) : createCommentVNode("v-if", true)
393
+ ])
394
+ ], 2),
395
+ _ctx.mode === "doc" ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
358
396
  createCommentVNode(" \u72EC\u7ACB\u8F6E\u535A\u56FE "),
359
- createElementVNode("div", _hoisted_5, [
360
- createElementVNode("div", _hoisted_6, [
361
- _hoisted_7,
362
- createVNode(unref(Switch), {
397
+ createElementVNode("div", {
398
+ class: normalizeClass(["banner-view", { flex: _ctx.flex }])
399
+ }, [
400
+ createElementVNode("div", {
401
+ class: "title",
402
+ style: normalizeStyle({ width: _ctx.offset })
403
+ }, [
404
+ _hoisted_6,
405
+ withDirectives(createVNode(unref(Switch), {
363
406
  modelValue: hasBanner.value,
364
407
  "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => hasBanner.value = $event),
365
408
  size: "small"
366
- }, null, 8, ["modelValue"])
367
- ]),
368
- withDirectives(createVNode(_sfc_main$1, {
369
- id: `banner-card`,
370
- data: banner.value,
371
- "preview-list": previewList.value,
372
- "thumb-model": "banner",
373
- onOpen: openDialogMediaSelection
374
- }, null, 8, ["data", "preview-list"]), [
375
- [vShow, hasBanner.value]
376
- ]),
377
- withDirectives(createElementVNode("div", _hoisted_8, _hoisted_10, 512), [
378
- [vShow, hasBanner.value && styleData.value.banner_theme_color]
379
- ]),
380
- createCommentVNode(" banner\u8C03\u8272\u677F "),
381
- withDirectives(createVNode(_sfc_main$2, {
382
- "style-data": styleData.value,
383
- model: "banner",
384
- onChange: colorChange
385
- }, null, 8, ["style-data"]), [
386
- [vShow, hasBanner.value]
409
+ }, null, 8, ["modelValue"]), [
410
+ [vShow, !_ctx.flex]
411
+ ])
412
+ ], 4),
413
+ createElementVNode("div", _hoisted_7, [
414
+ withDirectives(createVNode(unref(Switch), {
415
+ modelValue: hasBanner.value,
416
+ "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => hasBanner.value = $event),
417
+ style: { "margin-bottom": "10px" },
418
+ size: "small"
419
+ }, null, 8, ["modelValue"]), [
420
+ [vShow, _ctx.flex]
421
+ ]),
422
+ withDirectives(createVNode(_sfc_main$1, {
423
+ id: `banner-card`,
424
+ data: banner.value,
425
+ "preview-list": previewList.value,
426
+ "thumb-model": "banner",
427
+ onOpen: openDialogMediaSelection
428
+ }, null, 8, ["data", "preview-list"]), [
429
+ [vShow, hasBanner.value]
430
+ ]),
431
+ withDirectives(createElementVNode("div", _hoisted_8, _hoisted_10, 512), [
432
+ [vShow, hasBanner.value && styleData.value.banner_theme_color]
433
+ ]),
434
+ createCommentVNode(" banner\u8C03\u8272\u677F "),
435
+ withDirectives(createVNode(_sfc_main$2, {
436
+ "style-data": styleData.value,
437
+ model: "banner",
438
+ onChange: colorChange
439
+ }, null, 8, ["style-data"]), [
440
+ [vShow, hasBanner.value]
441
+ ])
387
442
  ])
388
- ]),
443
+ ], 2),
389
444
  createCommentVNode(" pc\u5C01\u9762\u56FE\uFF08\u4E13\u9898\u5934\u56FE\u5171\u7528\u4E00\u4E2A\u5B57\u6BB5\uFF09 "),
390
- createElementVNode("div", _hoisted_11, [
391
- createElementVNode("div", _hoisted_12, [
392
- ["special", "special_v3"].includes(props.series) ? (openBlock(), createElementBlock("span", _hoisted_13, "\u4E13\u9898\u5934\u56FE")) : ["video_album", "audio_album"].includes(props.series) ? (openBlock(), createElementBlock("span", _hoisted_14, [
393
- _hoisted_15,
445
+ createElementVNode("div", {
446
+ class: normalizeClass(["banner-view", { flex: _ctx.flex }])
447
+ }, [
448
+ createElementVNode("div", {
449
+ class: "title",
450
+ style: normalizeStyle({ width: _ctx.offset })
451
+ }, [
452
+ ["special", "special_v3"].includes(props.series) ? (openBlock(), createElementBlock("span", _hoisted_11, "\u4E13\u9898\u5934\u56FE")) : ["video_album", "audio_album"].includes(props.series) ? (openBlock(), createElementBlock("span", _hoisted_12, [
453
+ _hoisted_13,
394
454
  createTextVNode("\u5C01\u9762\u5934\u56FE")
455
+ ])) : ["local_live"].includes(props.series) ? (openBlock(), createElementBlock("span", _hoisted_14, [
456
+ _hoisted_15,
457
+ createTextVNode("\u76F4\u64AD\u5934\u56FE")
395
458
  ])) : (openBlock(), createElementBlock("span", _hoisted_16, "PC\u5C01\u9762\u56FE")),
396
- _hoisted_17
397
- ]),
398
- createVNode(_sfc_main$1, {
399
- id: `pc-banner-card`,
400
- data: pcBanner.value,
401
- previewList: previewList.value,
402
- thumbModel: "pcBanner",
403
- onOpen: openDialogMediaSelection
404
- }, null, 8, ["data", "previewList"]),
405
- withDirectives(createElementVNode("div", _hoisted_18, _hoisted_20, 512), [
406
- [vShow, docSeriesShowTopThemeColor.value && styleData.value.top_theme_color]
407
- ]),
408
- withDirectives(createVNode(_sfc_main$2, {
409
- styleData: styleData.value,
410
- model: "top",
411
- onChange: colorChange
412
- }, null, 8, ["styleData"]), [
413
- [vShow, docSeriesShowTopThemeColor.value]
459
+ withDirectives(createElementVNode("span", _hoisted_17, "(\u5EFA\u8BAE\u5C3A\u5BF8\uFF1A1242px*662px)", 512), [
460
+ [vShow, !_ctx.flex]
461
+ ])
462
+ ], 4),
463
+ createElementVNode("div", _hoisted_18, [
464
+ createVNode(_sfc_main$1, {
465
+ id: `pc-banner-card`,
466
+ data: pcBanner.value,
467
+ previewList: previewList.value,
468
+ thumbModel: "pcBanner",
469
+ onOpen: openDialogMediaSelection
470
+ }, null, 8, ["data", "previewList"]),
471
+ withDirectives(createElementVNode("span", _hoisted_19, "(\u5EFA\u8BAE\u5C3A\u5BF8\uFF1A1242px*662px)", 512), [
472
+ [vShow, _ctx.flex]
473
+ ]),
474
+ withDirectives(createElementVNode("div", _hoisted_20, _hoisted_22, 512), [
475
+ [vShow, docSeriesShowTopThemeColor.value && styleData.value.top_theme_color]
476
+ ]),
477
+ withDirectives(createVNode(_sfc_main$2, {
478
+ styleData: styleData.value,
479
+ model: "top",
480
+ onChange: colorChange
481
+ }, null, 8, ["styleData"]), [
482
+ [vShow, docSeriesShowTopThemeColor.value]
483
+ ])
414
484
  ])
415
- ])
485
+ ], 2)
416
486
  ], 64)) : createCommentVNode("v-if", true),
417
487
  createVNode(_sfc_main$3, {
418
488
  dialogVisible: dialogMediaSelectionShow.value,
419
- "onUpdate:dialogVisible": _cache[2] || (_cache[2] = ($event) => dialogMediaSelectionShow.value = $event),
489
+ "onUpdate:dialogVisible": _cache[3] || (_cache[3] = ($event) => dialogMediaSelectionShow.value = $event),
420
490
  preview: false,
421
491
  "catalog-props": "image",
422
492
  ai_static_covers: _ctx.aiImages,
423
493
  BASE_API: unref(BASE_API),
424
494
  onSubmit: submitCallback,
425
- onUpload: _cache[3] || (_cache[3] = (cb) => _ctx.$emit("upload", cb))
495
+ onUpload: _cache[4] || (_cache[4] = (cb) => _ctx.$emit("upload", cb))
426
496
  }, null, 8, ["dialogVisible", "ai_static_covers", "BASE_API"]),
427
497
  refreshCrop.value ? (openBlock(), createBlock(_sfc_main$4, {
428
- key: 3,
498
+ key: 1,
429
499
  visible: dialogCropperShow.value,
430
- "onUpdate:visible": _cache[4] || (_cache[4] = ($event) => dialogCropperShow.value = $event),
500
+ "onUpdate:visible": _cache[5] || (_cache[5] = ($event) => dialogCropperShow.value = $event),
431
501
  "aspect-ratio-prop": aspectRatioProp.value,
432
502
  BASE_API: unref(BASE_API),
433
503
  "corp-data": cropperData.value,
@@ -110,18 +110,18 @@
110
110
  transform-origin: center;
111
111
  }
112
112
  .select-thumb-container .title {
113
- font-size: 14px;
113
+ margin-bottom: 10px;
114
114
  color: #4e5969;
115
115
  font-weight: 700;
116
- line-height: 40px;
117
- margin: 5px 0px;
118
- }
119
- .select-thumb-container .title span {
120
- margin-right: 10px;
116
+ font-size: 14px;
121
117
  }
122
- .select-thumb-container .title .tip {
123
- font-size: 12px;
118
+ .select-thumb-container .tip {
119
+ display: inline-block;
124
120
  color: rgba(78, 89, 105, 0.4);
121
+ font-size: 12px;
122
+ }
123
+ .select-thumb-container .thumbbox {
124
+ margin-bottom: 10px;
125
125
  }
126
126
  .select-thumb-container .thumb-list-view {
127
127
  display: flex;
@@ -129,12 +129,15 @@
129
129
  margin-bottom: 10px;
130
130
  }
131
131
  .select-thumb-container .star {
132
- color: red;
133
132
  margin-right: 2px !important;
133
+ color: red;
134
+ }
135
+ .select-thumb-container .flex {
136
+ display: flex;
134
137
  }
135
138
  .select-thumb-container .color-picker-input {
136
139
  width: 32px;
137
140
  height: 32px;
141
+ padding: 0 2px;
138
142
  border: none;
139
- padding: 0px 2px;
140
143
  }
@@ -2,33 +2,43 @@
2
2
  @radio-button-size: 32px;
3
3
  @import './card.less';
4
4
  @import './colorPalette.less';
5
+
5
6
  .title {
6
- font-size: 14px;
7
+ margin-bottom: 10px;
7
8
  color: #4e5969;
8
9
  font-weight: 700;
9
- line-height: 40px;
10
- margin: 5px 0px;
11
- span {
12
- margin-right: 10px;
13
- }
14
- .tip {
15
- font-size: 12px;
16
- color: rgba(78, 89, 105, 0.4);
17
- }
10
+ font-size: 14px;
11
+ }
12
+
13
+ .tip {
14
+ display: inline-block;
15
+ color: rgba(78, 89, 105, 0.4);
16
+ font-size: 12px;
17
+ }
18
+
19
+ .thumbbox {
20
+ margin-bottom: 10px;
18
21
  }
22
+
19
23
  .thumb-list-view {
20
24
  display: flex;
21
25
  align-items: center;
22
26
  margin-bottom: 10px;
23
27
  }
28
+
24
29
  .star {
25
- color: red;
26
30
  margin-right: 2px !important;
31
+ color: red;
32
+ }
33
+
34
+ .flex {
35
+ display: flex;
27
36
  }
37
+
28
38
  .color-picker-input {
29
39
  width: @radio-button-size;
30
40
  height: @radio-button-size;
41
+ padding: 0 2px;
31
42
  border: none;
32
- padding: 0px 2px;
33
43
  }
34
44
  }
package/lib/index.css CHANGED
@@ -874,6 +874,24 @@
874
874
  .file-type-thumb .transparent:hover {
875
875
  cursor: pointer;
876
876
  }
877
+ .file-type-thumb .tag {
878
+ position: absolute;
879
+ top: 8px;
880
+ left: 5px;
881
+ padding: 2px 8px;
882
+ color: white;
883
+ font-size: 12px;
884
+ background-color: rgba(#000, #000, #000, 0.4);
885
+ border-radius: 12px;
886
+ }
887
+ .file-type-thumb .rate-info-tag {
888
+ top: 8px;
889
+ left: 5px;
890
+ }
891
+ .file-type-thumb .ai-tag {
892
+ top: 8px;
893
+ right: 5px;
894
+ }
877
895
  .file-type-thumb .pic {
878
896
  width: 100%;
879
897
  padding-top: 56.25%;
@@ -3251,18 +3269,18 @@
3251
3269
  transform-origin: center;
3252
3270
  }
3253
3271
  .select-thumb-container .title {
3254
- font-size: 14px;
3272
+ margin-bottom: 10px;
3255
3273
  color: #4e5969;
3256
3274
  font-weight: 700;
3257
- line-height: 40px;
3258
- margin: 5px 0px;
3259
- }
3260
- .select-thumb-container .title span {
3261
- margin-right: 10px;
3275
+ font-size: 14px;
3262
3276
  }
3263
- .select-thumb-container .title .tip {
3264
- font-size: 12px;
3277
+ .select-thumb-container .tip {
3278
+ display: inline-block;
3265
3279
  color: rgba(78, 89, 105, 0.4);
3280
+ font-size: 12px;
3281
+ }
3282
+ .select-thumb-container .thumbbox {
3283
+ margin-bottom: 10px;
3266
3284
  }
3267
3285
  .select-thumb-container .thumb-list-view {
3268
3286
  display: flex;
@@ -3270,14 +3288,17 @@
3270
3288
  margin-bottom: 10px;
3271
3289
  }
3272
3290
  .select-thumb-container .star {
3273
- color: red;
3274
3291
  margin-right: 2px !important;
3292
+ color: red;
3293
+ }
3294
+ .select-thumb-container .flex {
3295
+ display: flex;
3275
3296
  }
3276
3297
  .select-thumb-container .color-picker-input {
3277
3298
  width: 32px;
3278
3299
  height: 32px;
3300
+ padding: 0 2px;
3279
3301
  border: none;
3280
- padding: 0px 2px;
3281
3302
  }
3282
3303
  .edit-meta-info-dialog-body {
3283
3304
  padding: 0;
@@ -5,6 +5,22 @@ var icon = require("@arco-design/web-vue/es/icon");
5
5
  var index = require("../../../MediaPreviewer/index.js");
6
6
  const _hoisted_1 = { class: "file-type-thumb" };
7
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 = {
8
24
  key: 0,
9
25
  class: "mask"
10
26
  };
@@ -26,6 +42,31 @@ const _sfc_main = vue.defineComponent({
26
42
  const add = () => {
27
43
  emit("confirm", props.itemData);
28
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
+ });
29
70
  return (_ctx, _cache) => {
30
71
  return vue.openBlock(), vue.createElementBlock(vue.Fragment, null, [
31
72
  vue.createElementVNode("div", _hoisted_1, [
@@ -33,13 +74,19 @@ const _sfc_main = vue.defineComponent({
33
74
  key: 0,
34
75
  class: "pic",
35
76
  style: vue.normalizeStyle({ "background-image": "url(" + _ctx.itemData.thumb + ")" })
36
- }, null, 4)) : (vue.openBlock(), vue.createElementBlock("div", {
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", {
37
81
  key: 1,
38
82
  class: vue.normalizeClass(["pic", `${_ctx.itemData.catalog} ${_ctx.itemData.series}`])
39
- }, null, 2)),
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)),
40
87
  vue.createVNode(vue.Transition, { name: "el-fade-in" }, {
41
88
  default: vue.withCtx(() => [
42
- _ctx.preview ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2, [
89
+ _ctx.preview ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_6, [
43
90
  vue.createElementVNode("span", {
44
91
  class: "half",
45
92
  onClick: vue.withModifiers(openPreview, ["stop"])
@@ -57,6 +57,27 @@
57
57
  }
58
58
  }
59
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
+
60
81
  .pic {
61
82
  width: 100%;
62
83
  padding-top: 56.25%;