@cmstops/pro-compo 0.1.91 → 0.1.92
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/es/contentDetailList/components/Records/MatrixItem/index.js +9 -4
- package/es/contentModal/components/ViewAllColumn/MediaFilter/index.js +2 -4
- package/lib/contentDetailList/components/Records/MatrixItem/index.js +9 -4
- package/lib/contentModal/components/ViewAllColumn/MediaFilter/index.js +2 -4
- package/package.json +1 -1
|
@@ -40,15 +40,20 @@ const _sfc_main = defineComponent({
|
|
|
40
40
|
const { matrix } = props.extraAttrs || {};
|
|
41
41
|
const { getPlatformInfoById } = matrix || {};
|
|
42
42
|
const cover = computed(() => {
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
43
|
+
let covers = [];
|
|
44
|
+
try {
|
|
45
|
+
covers = JSON.parse(props.item.cover || "[]");
|
|
46
|
+
} catch (error) {
|
|
47
|
+
}
|
|
48
|
+
if (covers == null ? void 0 : covers.length) {
|
|
49
|
+
return covers[0];
|
|
46
50
|
}
|
|
47
51
|
if (props.item.payload) {
|
|
48
52
|
const _payload = JSON.parse(props.item.payload);
|
|
49
|
-
if (_payload
|
|
53
|
+
if (_payload && Array.isArray(_payload)) {
|
|
50
54
|
return _payload[0].covers[0];
|
|
51
55
|
}
|
|
56
|
+
return (_payload == null ? void 0 : _payload.covers[0]) || "";
|
|
52
57
|
}
|
|
53
58
|
return "";
|
|
54
59
|
});
|
|
@@ -4,6 +4,7 @@ import { IconRefresh } from "@arco-design/web-vue/es/icon";
|
|
|
4
4
|
import { docSeries, docThumbMap } from "../../../../utils/doc.js";
|
|
5
5
|
import _sfc_main$1 from "../columnTree/index.js";
|
|
6
6
|
const _hoisted_1 = { class: "media-filter-container" };
|
|
7
|
+
const _hoisted_2 = { class: "sort-button" };
|
|
7
8
|
const _sfc_main = defineComponent({
|
|
8
9
|
...{ name: "MediaFilter" },
|
|
9
10
|
__name: "index",
|
|
@@ -228,10 +229,7 @@ const _sfc_main = defineComponent({
|
|
|
228
229
|
]),
|
|
229
230
|
_: 1
|
|
230
231
|
}),
|
|
231
|
-
createElementVNode("div",
|
|
232
|
-
class: "sort-button",
|
|
233
|
-
onClick: reset
|
|
234
|
-
}, [
|
|
232
|
+
createElementVNode("div", _hoisted_2, [
|
|
235
233
|
createVNode(unref(Select), {
|
|
236
234
|
modelValue: filter.value.order,
|
|
237
235
|
"onUpdate:modelValue": _cache[5] || (_cache[5] = ($event) => filter.value.order = $event),
|
|
@@ -41,15 +41,20 @@ const _sfc_main = vue.defineComponent({
|
|
|
41
41
|
const { matrix } = props.extraAttrs || {};
|
|
42
42
|
const { getPlatformInfoById } = matrix || {};
|
|
43
43
|
const cover = vue.computed(() => {
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
44
|
+
let covers = [];
|
|
45
|
+
try {
|
|
46
|
+
covers = JSON.parse(props.item.cover || "[]");
|
|
47
|
+
} catch (error) {
|
|
48
|
+
}
|
|
49
|
+
if (covers == null ? void 0 : covers.length) {
|
|
50
|
+
return covers[0];
|
|
47
51
|
}
|
|
48
52
|
if (props.item.payload) {
|
|
49
53
|
const _payload = JSON.parse(props.item.payload);
|
|
50
|
-
if (_payload
|
|
54
|
+
if (_payload && Array.isArray(_payload)) {
|
|
51
55
|
return _payload[0].covers[0];
|
|
52
56
|
}
|
|
57
|
+
return (_payload == null ? void 0 : _payload.covers[0]) || "";
|
|
53
58
|
}
|
|
54
59
|
return "";
|
|
55
60
|
});
|
|
@@ -5,6 +5,7 @@ var icon = require("@arco-design/web-vue/es/icon");
|
|
|
5
5
|
var doc = require("../../../../utils/doc.js");
|
|
6
6
|
var index = require("../columnTree/index.js");
|
|
7
7
|
const _hoisted_1 = { class: "media-filter-container" };
|
|
8
|
+
const _hoisted_2 = { class: "sort-button" };
|
|
8
9
|
const _sfc_main = vue.defineComponent({
|
|
9
10
|
...{ name: "MediaFilter" },
|
|
10
11
|
__name: "index",
|
|
@@ -229,10 +230,7 @@ const _sfc_main = vue.defineComponent({
|
|
|
229
230
|
]),
|
|
230
231
|
_: 1
|
|
231
232
|
}),
|
|
232
|
-
vue.createElementVNode("div",
|
|
233
|
-
class: "sort-button",
|
|
234
|
-
onClick: reset
|
|
235
|
-
}, [
|
|
233
|
+
vue.createElementVNode("div", _hoisted_2, [
|
|
236
234
|
vue.createVNode(vue.unref(webVue.Select), {
|
|
237
235
|
modelValue: filter.value.order,
|
|
238
236
|
"onUpdate:modelValue": _cache[5] || (_cache[5] = ($event) => filter.value.order = $event),
|