@cmstops/pro-compo 0.1.18 → 0.1.20
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 +80 -93
- package/dist/index.min.css +1 -1
- package/es/contentDetailList/component.js +145 -54
- package/es/contentDetailList/components/Content/CompoItem/index.js +3 -2
- package/es/contentDetailList/components/Content/ContentListItem/index.js +21 -13
- package/es/contentDetailList/components/Content/DocItem/ApprovalStateMap/index.js +2 -3
- package/es/contentDetailList/components/Content/DocItem/index.js +4 -2
- package/es/contentDetailList/components/Content/KongoNavItem/DocTags/index.js +9 -8
- package/es/contentDetailList/components/Content/KongoNavItem/index.js +3 -2
- package/es/contentDetailList/components/Content/LiveItem/index.js +3 -2
- package/es/contentDetailList/components/Content/MaccountItem/index.js +2 -1
- package/es/contentDetailList/components/Content/index.js +219 -242
- package/es/contentDetailList/components/Doc/index.js +24 -35
- package/es/contentDetailList/scripts/index.d.ts +0 -10
- package/es/contentDetailList/style/ComoItem.less +7 -19
- package/es/contentDetailList/style/Content.less +1 -1
- package/es/contentDetailList/style/ContentListItem.less +29 -32
- package/es/contentDetailList/style/Doc.less +1 -5
- package/es/contentDetailList/style/DocItem.less +11 -16
- package/es/contentDetailList/style/DocTags.less +2 -1
- package/es/contentDetailList/style/KongoNavItem.less +6 -19
- package/es/contentDetailList/style/LiveItem.less +8 -20
- package/es/contentDetailList/style/MaccountItem.less +8 -16
- package/es/contentDetailList/style/index.css +78 -93
- package/es/contentDetailList/style/index.less +10 -0
- package/es/index.css +80 -93
- package/es/mediaFilter/style/index.css +1 -0
- package/es/mediaFilter/style/index.less +1 -0
- package/es/style.css +1 -0
- package/es/typeIcons/style/index.css +1 -0
- package/es/typeIcons/style/index.less +1 -0
- package/es/utils/doc.d.ts +1 -0
- package/es/utils/doc.js +27 -1
- package/es/utils/index.d.ts +2 -0
- package/es/utils/index.js +16 -1
- package/es/utils/typeMap.d.ts +19 -0
- package/es/utils/typeMap.js +65 -1
- package/lib/contentDetailList/component.js +148 -53
- package/lib/contentDetailList/components/Content/CompoItem/index.js +4 -3
- package/lib/contentDetailList/components/Content/ContentListItem/index.js +22 -14
- package/lib/contentDetailList/components/Content/DocItem/ApprovalStateMap/index.js +8 -9
- package/lib/contentDetailList/components/Content/DocItem/index.js +8 -6
- package/lib/contentDetailList/components/Content/KongoNavItem/DocTags/index.js +16 -15
- package/lib/contentDetailList/components/Content/KongoNavItem/index.js +3 -2
- package/lib/contentDetailList/components/Content/LiveItem/index.js +3 -2
- package/lib/contentDetailList/components/Content/MaccountItem/index.js +2 -1
- package/lib/contentDetailList/components/Content/index.js +218 -245
- package/lib/contentDetailList/components/Doc/index.js +23 -34
- package/lib/contentDetailList/style/ComoItem.less +7 -19
- package/lib/contentDetailList/style/Content.less +1 -1
- package/lib/contentDetailList/style/ContentListItem.less +29 -32
- package/lib/contentDetailList/style/Doc.less +1 -5
- package/lib/contentDetailList/style/DocItem.less +11 -16
- package/lib/contentDetailList/style/DocTags.less +2 -1
- package/lib/contentDetailList/style/KongoNavItem.less +6 -19
- package/lib/contentDetailList/style/LiveItem.less +8 -20
- package/lib/contentDetailList/style/MaccountItem.less +8 -16
- package/lib/contentDetailList/style/index.css +78 -93
- package/lib/contentDetailList/style/index.less +10 -0
- package/lib/index.css +80 -93
- package/lib/mediaFilter/style/index.css +1 -0
- package/lib/mediaFilter/style/index.less +1 -0
- package/lib/typeIcons/style/index.css +1 -0
- package/lib/typeIcons/style/index.less +1 -0
- package/lib/utils/doc.js +29 -0
- package/lib/utils/index.js +17 -0
- package/lib/utils/typeMap.js +71 -0
- package/package.json +1 -1
- package/es/contentDetailList/scripts/data.d.ts +0 -254
- package/es/contentDetailList/scripts/index.js +0 -137
- package/lib/contentDetailList/scripts/index.js +0 -153
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { defineComponent, computed, openBlock, createElementBlock, normalizeClass, createElementVNode, createBlock, unref, toDisplayString, renderSlot, createTextVNode, createVNode, Fragment, renderList, createCommentVNode, withCtx } from "vue";
|
|
2
2
|
import { Image, Tooltip, Popover, Button } from "@arco-design/web-vue";
|
|
3
|
-
import { noCoverText,
|
|
3
|
+
import { noCoverText, timeFormat } from "../../../../utils/index.js";
|
|
4
|
+
import { approvalItem, docStateMap } from "../../../../utils/doc.js";
|
|
4
5
|
import _sfc_main$1 from "../../../../typeIcons/component.js";
|
|
5
6
|
import _sfc_main$2 from "../KongoNavItem/DocTags/index.js";
|
|
6
7
|
import _sfc_main$3 from "./ApprovalStateMap/index.js";
|
|
@@ -65,7 +66,7 @@ const _sfc_main = defineComponent({
|
|
|
65
66
|
};
|
|
66
67
|
return (_ctx, _cache) => {
|
|
67
68
|
return openBlock(), createElementBlock("div", {
|
|
68
|
-
class: normalizeClass(["medialist-doc-item-view", {
|
|
69
|
+
class: normalizeClass(["medialist-doc-item-view", { "gray-for-state-hide": hide.value }]),
|
|
69
70
|
onMouseenter: _cache[0] || (_cache[0] = ($event) => mouseEnterFun($event, _ctx.item)),
|
|
70
71
|
onMouseleave: _cache[1] || (_cache[1] = ($event) => mouseLeaveFun($event, _ctx.item))
|
|
71
72
|
}, [
|
|
@@ -73,6 +74,7 @@ const _sfc_main = defineComponent({
|
|
|
73
74
|
thumb.value ? (openBlock(), createBlock(unref(Image), {
|
|
74
75
|
key: 0,
|
|
75
76
|
src: thumb.value,
|
|
77
|
+
class: "image",
|
|
76
78
|
fit: "cover"
|
|
77
79
|
}, null, 8, ["src"])) : (openBlock(), createElementBlock("span", _hoisted_2, toDisplayString(unref(noCoverText)(_ctx.item)), 1)),
|
|
78
80
|
createElementVNode("div", _hoisted_3, [
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { defineComponent, ref, computed, openBlock, createElementBlock, Fragment, createCommentVNode, createElementVNode, createBlock, unref, withCtx, renderList, createVNode, normalizeClass, createTextVNode, toDisplayString } from "vue";
|
|
2
2
|
import { Popover, Tag, Tooltip } from "@arco-design/web-vue";
|
|
3
|
-
import {
|
|
3
|
+
import { kongo_source_map, contentList_list_type_map } from "../../../../../utils/typeMap.js";
|
|
4
|
+
import { docThumbMap } from "../../../../../utils/doc.js";
|
|
4
5
|
const _hoisted_1 = { class: "doc-tags-container" };
|
|
5
6
|
const _hoisted_2 = { class: "doc-tags-thumb-ul" };
|
|
6
7
|
const _hoisted_3 = ["src"];
|
|
@@ -74,7 +75,7 @@ const _sfc_main = defineComponent({
|
|
|
74
75
|
default: withCtx(() => [
|
|
75
76
|
createVNode(unref(Tag), {
|
|
76
77
|
class: normalizeClass({ disabled: _ctx.disabled }),
|
|
77
|
-
size: "
|
|
78
|
+
size: "small"
|
|
78
79
|
}, {
|
|
79
80
|
default: withCtx(() => [
|
|
80
81
|
createTextVNode(toDisplayString(thumbType.value), 1)
|
|
@@ -91,7 +92,7 @@ const _sfc_main = defineComponent({
|
|
|
91
92
|
}, {
|
|
92
93
|
default: withCtx(() => [
|
|
93
94
|
createVNode(unref(Tag), {
|
|
94
|
-
size: "
|
|
95
|
+
size: "small",
|
|
95
96
|
class: normalizeClass([{ disabled: _ctx.disabled }, "thumb"])
|
|
96
97
|
}, {
|
|
97
98
|
default: withCtx(() => [
|
|
@@ -110,7 +111,7 @@ const _sfc_main = defineComponent({
|
|
|
110
111
|
}, {
|
|
111
112
|
default: withCtx(() => [
|
|
112
113
|
createVNode(unref(Tag), {
|
|
113
|
-
size: "
|
|
114
|
+
size: "small",
|
|
114
115
|
class: normalizeClass([{ disabled: _ctx.disabled }, "yuanchuang"])
|
|
115
116
|
}, {
|
|
116
117
|
default: withCtx(() => [
|
|
@@ -128,7 +129,7 @@ const _sfc_main = defineComponent({
|
|
|
128
129
|
}, {
|
|
129
130
|
default: withCtx(() => [
|
|
130
131
|
createVNode(unref(Tag), {
|
|
131
|
-
size: "
|
|
132
|
+
size: "small",
|
|
132
133
|
class: normalizeClass([{ disabled: _ctx.disabled }, "star"])
|
|
133
134
|
}, {
|
|
134
135
|
default: withCtx(() => [
|
|
@@ -146,7 +147,7 @@ const _sfc_main = defineComponent({
|
|
|
146
147
|
}, {
|
|
147
148
|
default: withCtx(() => [
|
|
148
149
|
createVNode(unref(Tag), {
|
|
149
|
-
size: "
|
|
150
|
+
size: "small",
|
|
150
151
|
class: normalizeClass([{ disabled: _ctx.disabled }, "waring"])
|
|
151
152
|
}, {
|
|
152
153
|
default: withCtx(() => [
|
|
@@ -159,7 +160,7 @@ const _sfc_main = defineComponent({
|
|
|
159
160
|
}, 8, ["content"])) : createCommentVNode("v-if", true)
|
|
160
161
|
], 64)) : _ctx.item.catalog === "kongo" ? (openBlock(), createBlock(unref(Tag), {
|
|
161
162
|
key: 1,
|
|
162
|
-
size: "
|
|
163
|
+
size: "small"
|
|
163
164
|
}, {
|
|
164
165
|
default: withCtx(() => [
|
|
165
166
|
createTextVNode(toDisplayString(unref(kongo_source_map)[_ctx.item.series]), 1)
|
|
@@ -167,7 +168,7 @@ const _sfc_main = defineComponent({
|
|
|
167
168
|
_: 1
|
|
168
169
|
})) : _ctx.item.catalog === "mp_account" ? (openBlock(), createBlock(unref(Tag), {
|
|
169
170
|
key: 2,
|
|
170
|
-
size: "
|
|
171
|
+
size: "small"
|
|
171
172
|
}, {
|
|
172
173
|
default: withCtx(() => [
|
|
173
174
|
createTextVNode(toDisplayString(unref(contentList_list_type_map)[_ctx.item.mp_type]), 1)
|
|
@@ -2,7 +2,7 @@ import { defineComponent, computed, openBlock, createElementBlock, normalizeClas
|
|
|
2
2
|
import { Image, Tooltip } from "@arco-design/web-vue";
|
|
3
3
|
import _sfc_main$1 from "../../../../typeIcons/component.js";
|
|
4
4
|
import _sfc_main$2 from "./DocTags/index.js";
|
|
5
|
-
import { noCoverText, timeFormat } from "
|
|
5
|
+
import { noCoverText, timeFormat } from "../../../../utils/index.js";
|
|
6
6
|
const _hoisted_1 = { class: "cover-view" };
|
|
7
7
|
const _hoisted_2 = {
|
|
8
8
|
key: 1,
|
|
@@ -65,13 +65,14 @@ const _sfc_main = defineComponent({
|
|
|
65
65
|
};
|
|
66
66
|
return (_ctx, _cache) => {
|
|
67
67
|
return openBlock(), createElementBlock("div", {
|
|
68
|
-
class: normalizeClass(["medialist-kongo-item-view", {
|
|
68
|
+
class: normalizeClass(["medialist-kongo-item-view", { "gray-for-state-hide": hide.value }])
|
|
69
69
|
}, [
|
|
70
70
|
createElementVNode("div", _hoisted_1, [
|
|
71
71
|
thumb.value ? (openBlock(), createBlock(unref(Image), {
|
|
72
72
|
key: 0,
|
|
73
73
|
src: thumb.value,
|
|
74
74
|
fit: "cover",
|
|
75
|
+
class: "image",
|
|
75
76
|
lazy: true
|
|
76
77
|
}, null, 8, ["src"])) : (openBlock(), createElementBlock("span", _hoisted_2, toDisplayString(unref(noCoverText)(_ctx.item)), 1))
|
|
77
78
|
]),
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent, computed, openBlock, createElementBlock, normalizeClass, createElementVNode, createBlock, unref, toDisplayString, renderSlot, createVNode } from "vue";
|
|
2
2
|
import { Image } from "@arco-design/web-vue";
|
|
3
3
|
import _sfc_main$1 from "../../../../typeIcons/component.js";
|
|
4
|
-
import { noCoverText, timeFormat } from "
|
|
4
|
+
import { noCoverText, timeFormat } from "../../../../utils/index.js";
|
|
5
5
|
const _hoisted_1 = { class: "cover-view" };
|
|
6
6
|
const _hoisted_2 = {
|
|
7
7
|
key: 1,
|
|
@@ -41,12 +41,13 @@ const _sfc_main = defineComponent({
|
|
|
41
41
|
};
|
|
42
42
|
return (_ctx, _cache) => {
|
|
43
43
|
return openBlock(), createElementBlock("div", {
|
|
44
|
-
class: normalizeClass(["medialist-ilive-item-view", {
|
|
44
|
+
class: normalizeClass(["medialist-ilive-item-view", { "gray-for-state-hide": hide.value }])
|
|
45
45
|
}, [
|
|
46
46
|
createElementVNode("div", _hoisted_1, [
|
|
47
47
|
pc_banner.value ? (openBlock(), createBlock(unref(Image), {
|
|
48
48
|
key: 0,
|
|
49
49
|
src: pc_banner.value,
|
|
50
|
+
class: "image",
|
|
50
51
|
fit: "cover"
|
|
51
52
|
}, null, 8, ["src"])) : (openBlock(), createElementBlock("span", _hoisted_2, toDisplayString(unref(noCoverText)(_ctx.item)), 1))
|
|
52
53
|
]),
|
|
@@ -26,11 +26,12 @@ const _sfc_main = defineComponent({
|
|
|
26
26
|
};
|
|
27
27
|
return (_ctx, _cache) => {
|
|
28
28
|
return openBlock(), createElementBlock("div", {
|
|
29
|
-
class: normalizeClass(["medialist-account-item-view", {
|
|
29
|
+
class: normalizeClass(["medialist-account-item-view", { "gray-for-state-hide": hide.value }])
|
|
30
30
|
}, [
|
|
31
31
|
createElementVNode("div", _hoisted_1, [
|
|
32
32
|
createVNode(unref(Image), {
|
|
33
33
|
src: _ctx.item.mp_logo || unref(defaultAvatar),
|
|
34
|
+
class: "image",
|
|
34
35
|
fit: "cover"
|
|
35
36
|
}, null, 8, ["src"])
|
|
36
37
|
]),
|