@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,16 +1,24 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var vue = require("vue");
|
|
3
|
+
var webVue = require("@arco-design/web-vue");
|
|
4
|
+
var draggable = require("vuedraggable");
|
|
3
5
|
var index = require("./components/Content/index.js");
|
|
4
6
|
var index$1 = require("./components/Doc/index.js");
|
|
7
|
+
function _interopDefaultLegacy(e) {
|
|
8
|
+
return e && typeof e === "object" && "default" in e ? e : { "default": e };
|
|
9
|
+
}
|
|
10
|
+
var draggable__default = /* @__PURE__ */ _interopDefaultLegacy(draggable);
|
|
5
11
|
const _hoisted_1 = { class: "content-detail-list-container" };
|
|
12
|
+
const _hoisted_2 = { class: "drag-item" };
|
|
6
13
|
const _sfc_main = vue.defineComponent({
|
|
7
14
|
...{ name: "contentDetailList" },
|
|
8
15
|
__name: "component",
|
|
9
16
|
props: {
|
|
17
|
+
height: {},
|
|
10
18
|
type: {},
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
19
|
+
data: {},
|
|
20
|
+
parmas: {},
|
|
21
|
+
dragalbe: { type: Boolean },
|
|
14
22
|
abttrites: {}
|
|
15
23
|
},
|
|
16
24
|
emits: [
|
|
@@ -18,20 +26,41 @@ const _sfc_main = vue.defineComponent({
|
|
|
18
26
|
"dragstart",
|
|
19
27
|
"clickTitle",
|
|
20
28
|
"cellMouseEnter",
|
|
21
|
-
"cellMouseLeave"
|
|
29
|
+
"cellMouseLeave",
|
|
30
|
+
"update:data",
|
|
31
|
+
"scroll",
|
|
32
|
+
"scrollReachEnd"
|
|
22
33
|
],
|
|
23
34
|
setup(__props, { emit }) {
|
|
24
35
|
const props = __props;
|
|
25
|
-
const
|
|
26
|
-
const
|
|
36
|
+
const parmasProps = props.parmas || {};
|
|
37
|
+
const dragalbeProps = props.dragalbe || false;
|
|
27
38
|
const abttritesProps = props.abttrites || [];
|
|
28
|
-
const
|
|
29
|
-
|
|
39
|
+
const outerStyle = vue.computed(() => {
|
|
40
|
+
return {
|
|
41
|
+
height: props.height || "100%",
|
|
42
|
+
overflow: "auto"
|
|
43
|
+
};
|
|
44
|
+
});
|
|
45
|
+
const dataList = vue.computed({
|
|
46
|
+
get() {
|
|
47
|
+
return props.data;
|
|
48
|
+
},
|
|
49
|
+
set(value) {
|
|
50
|
+
emit("update:data", value);
|
|
51
|
+
}
|
|
52
|
+
});
|
|
53
|
+
const handleScroll = (e) => {
|
|
54
|
+
emit("scroll", e);
|
|
55
|
+
const { target } = e;
|
|
56
|
+
if (target.scrollHeight - target.scrollTop === target.clientHeight) {
|
|
57
|
+
emit("scrollReachEnd");
|
|
58
|
+
}
|
|
30
59
|
};
|
|
31
|
-
const
|
|
32
|
-
emit("
|
|
60
|
+
const sortChange = (e) => {
|
|
61
|
+
emit("sortChange", e);
|
|
33
62
|
};
|
|
34
|
-
const
|
|
63
|
+
const clickTitle = (e) => {
|
|
35
64
|
emit("clickTitle", e);
|
|
36
65
|
};
|
|
37
66
|
const tableCellMouseEnter = (e) => {
|
|
@@ -41,48 +70,114 @@ const _sfc_main = vue.defineComponent({
|
|
|
41
70
|
emit("cellMouseLeave", e);
|
|
42
71
|
};
|
|
43
72
|
return (_ctx, _cache) => {
|
|
44
|
-
return vue.openBlock(), vue.
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
73
|
+
return vue.openBlock(), vue.createBlock(vue.unref(webVue.Scrollbar), {
|
|
74
|
+
class: "mobile-content-list-scrollbar",
|
|
75
|
+
"outer-style": outerStyle.value,
|
|
76
|
+
style: { "height": "100%", "overflow": "auto" },
|
|
77
|
+
onScroll: handleScroll
|
|
78
|
+
}, {
|
|
79
|
+
default: vue.withCtx(() => [
|
|
80
|
+
vue.createElementVNode("div", _hoisted_1, [
|
|
81
|
+
vue.unref(dragalbeProps) ? (vue.openBlock(), vue.createBlock(vue.unref(draggable__default["default"]), {
|
|
82
|
+
key: 0,
|
|
83
|
+
modelValue: dataList.value,
|
|
84
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => dataList.value = $event),
|
|
85
|
+
animation: 150,
|
|
86
|
+
sort: vue.unref(dragalbeProps),
|
|
87
|
+
onChange: sortChange,
|
|
88
|
+
onStart: _cache[1] || (_cache[1] = ($event) => _ctx.$emit("dragstart"))
|
|
89
|
+
}, {
|
|
90
|
+
item: vue.withCtx(({ element, index: index$2 }) => [
|
|
91
|
+
vue.createElementVNode("div", _hoisted_2, [
|
|
92
|
+
props.type === "content" ? (vue.openBlock(), vue.createBlock(index, {
|
|
93
|
+
key: index$2,
|
|
94
|
+
item: element,
|
|
95
|
+
index: index$2,
|
|
96
|
+
parmas: vue.unref(parmasProps),
|
|
97
|
+
abttrites: vue.unref(abttritesProps),
|
|
98
|
+
onClickTitle: clickTitle
|
|
99
|
+
}, {
|
|
100
|
+
option: vue.withCtx(() => [
|
|
101
|
+
vue.renderSlot(_ctx.$slots, "option", {
|
|
102
|
+
row: element,
|
|
103
|
+
index: index$2
|
|
104
|
+
})
|
|
105
|
+
]),
|
|
106
|
+
_: 2
|
|
107
|
+
}, 1032, ["item", "index", "parmas", "abttrites"])) : vue.createCommentVNode("v-if", true),
|
|
108
|
+
props.type === "doc" ? (vue.openBlock(), vue.createBlock(index$1, {
|
|
109
|
+
key: index$2,
|
|
110
|
+
item: element,
|
|
111
|
+
index: index$2,
|
|
112
|
+
abttrites: vue.unref(abttritesProps),
|
|
113
|
+
onClickTitle: clickTitle,
|
|
114
|
+
onCellMouseEnter: tableCellMouseEnter,
|
|
115
|
+
onCellMouseLeave: tableCellMouseLeave
|
|
116
|
+
}, {
|
|
117
|
+
batch: vue.withCtx(() => [
|
|
118
|
+
vue.renderSlot(_ctx.$slots, "batch", {
|
|
119
|
+
row: element,
|
|
120
|
+
index: index$2
|
|
121
|
+
})
|
|
122
|
+
]),
|
|
123
|
+
option: vue.withCtx(() => [
|
|
124
|
+
vue.renderSlot(_ctx.$slots, "option", {
|
|
125
|
+
row: element,
|
|
126
|
+
index: index$2
|
|
127
|
+
})
|
|
128
|
+
]),
|
|
129
|
+
_: 2
|
|
130
|
+
}, 1032, ["item", "index", "abttrites"])) : vue.createCommentVNode("v-if", true)
|
|
131
|
+
])
|
|
132
|
+
]),
|
|
133
|
+
_: 3
|
|
134
|
+
}, 8, ["modelValue", "sort"])) : (vue.openBlock(true), vue.createElementBlock(vue.Fragment, { key: 1 }, vue.renderList(dataList.value, (item, index$2) => {
|
|
135
|
+
return vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: index$2 }, [
|
|
136
|
+
props.type === "content" ? (vue.openBlock(), vue.createBlock(index, {
|
|
137
|
+
key: index$2,
|
|
138
|
+
item,
|
|
139
|
+
index: index$2,
|
|
140
|
+
parmas: vue.unref(parmasProps),
|
|
141
|
+
abttrites: vue.unref(abttritesProps),
|
|
142
|
+
onClickTitle: clickTitle
|
|
143
|
+
}, {
|
|
144
|
+
option: vue.withCtx(() => [
|
|
145
|
+
vue.renderSlot(_ctx.$slots, "option", {
|
|
146
|
+
row: item,
|
|
147
|
+
index: index$2
|
|
148
|
+
})
|
|
149
|
+
]),
|
|
150
|
+
_: 2
|
|
151
|
+
}, 1032, ["item", "index", "parmas", "abttrites"])) : vue.createCommentVNode("v-if", true),
|
|
152
|
+
props.type === "doc" ? (vue.openBlock(), vue.createBlock(index$1, {
|
|
153
|
+
key: index$2,
|
|
154
|
+
item,
|
|
155
|
+
index: index$2,
|
|
156
|
+
abttrites: vue.unref(abttritesProps),
|
|
157
|
+
onClickTitle: clickTitle,
|
|
158
|
+
onCellMouseEnter: tableCellMouseEnter,
|
|
159
|
+
onCellMouseLeave: tableCellMouseLeave
|
|
160
|
+
}, {
|
|
161
|
+
batch: vue.withCtx(() => [
|
|
162
|
+
vue.renderSlot(_ctx.$slots, "batch", {
|
|
163
|
+
row: item,
|
|
164
|
+
index: index$2
|
|
165
|
+
})
|
|
166
|
+
]),
|
|
167
|
+
option: vue.withCtx(() => [
|
|
168
|
+
vue.renderSlot(_ctx.$slots, "option", {
|
|
169
|
+
row: item,
|
|
170
|
+
index: index$2
|
|
171
|
+
})
|
|
172
|
+
]),
|
|
173
|
+
_: 2
|
|
174
|
+
}, 1032, ["item", "index", "abttrites"])) : vue.createCommentVNode("v-if", true)
|
|
175
|
+
], 64);
|
|
176
|
+
}), 128))
|
|
177
|
+
])
|
|
178
|
+
]),
|
|
179
|
+
_: 3
|
|
180
|
+
}, 8, ["outer-style"]);
|
|
86
181
|
};
|
|
87
182
|
}
|
|
88
183
|
});
|
|
@@ -2,7 +2,8 @@
|
|
|
2
2
|
var vue = require("vue");
|
|
3
3
|
var webVue = require("@arco-design/web-vue");
|
|
4
4
|
var component = require("../../../../typeIcons/component.js");
|
|
5
|
-
var index = require("
|
|
5
|
+
var index = require("../../../../utils/index.js");
|
|
6
|
+
var typeMap = require("../../../../utils/typeMap.js");
|
|
6
7
|
const _hoisted_1 = { class: "cover-view" };
|
|
7
8
|
const _hoisted_2 = {
|
|
8
9
|
key: 1,
|
|
@@ -23,7 +24,7 @@ const _sfc_main = vue.defineComponent({
|
|
|
23
24
|
emits: ["clickTitle"],
|
|
24
25
|
setup(__props, { emit }) {
|
|
25
26
|
const props = __props;
|
|
26
|
-
const comColumnsMap = vue.ref(
|
|
27
|
+
const comColumnsMap = vue.ref(typeMap.compoColumnsMap().value);
|
|
27
28
|
const hide = vue.computed(() => {
|
|
28
29
|
const { hide: hide2 } = props.item;
|
|
29
30
|
return hide2 === 7 || hide2 === 6;
|
|
@@ -33,7 +34,7 @@ const _sfc_main = vue.defineComponent({
|
|
|
33
34
|
};
|
|
34
35
|
return (_ctx, _cache) => {
|
|
35
36
|
return vue.openBlock(), vue.createElementBlock("div", {
|
|
36
|
-
class: vue.normalizeClass(["medialist-component-item-view", {
|
|
37
|
+
class: vue.normalizeClass(["medialist-component-item-view", { "gray-for-state-hide": hide.value }])
|
|
37
38
|
}, [
|
|
38
39
|
vue.createElementVNode("div", _hoisted_1, [
|
|
39
40
|
_ctx.item.cover && _ctx.item.cover.data && _ctx.item.cover.data[0] ? (vue.openBlock(), vue.createBlock(vue.unref(webVue.Image), {
|
|
@@ -3,7 +3,8 @@ var vue = require("vue");
|
|
|
3
3
|
var webVue = require("@arco-design/web-vue");
|
|
4
4
|
var icon = require("@arco-design/web-vue/es/icon");
|
|
5
5
|
var component = require("../../../../typeIcons/component.js");
|
|
6
|
-
var index = require("
|
|
6
|
+
var index = require("../../../../utils/index.js");
|
|
7
|
+
var typeMap = require("../../../../utils/typeMap.js");
|
|
7
8
|
const _hoisted_1 = { class: "cover-view" };
|
|
8
9
|
const _hoisted_2 = {
|
|
9
10
|
key: 1,
|
|
@@ -11,10 +12,10 @@ const _hoisted_2 = {
|
|
|
11
12
|
};
|
|
12
13
|
const _hoisted_3 = { class: "info-view" };
|
|
13
14
|
const _hoisted_4 = { class: "title_i" };
|
|
14
|
-
const _hoisted_5 = { class: "
|
|
15
|
+
const _hoisted_5 = { class: "title-tips" };
|
|
15
16
|
const _hoisted_6 = {
|
|
16
17
|
key: 0,
|
|
17
|
-
class: "
|
|
18
|
+
class: "title-tips red"
|
|
18
19
|
};
|
|
19
20
|
const _hoisted_7 = { class: "abttrite-v" };
|
|
20
21
|
const _hoisted_8 = { class: "left" };
|
|
@@ -26,7 +27,7 @@ const _sfc_main = vue.defineComponent({
|
|
|
26
27
|
__name: "index",
|
|
27
28
|
props: {
|
|
28
29
|
item: {},
|
|
29
|
-
|
|
30
|
+
parmas: {}
|
|
30
31
|
},
|
|
31
32
|
emits: ["clickTitle"],
|
|
32
33
|
setup(__props, { emit }) {
|
|
@@ -40,13 +41,14 @@ const _sfc_main = vue.defineComponent({
|
|
|
40
41
|
};
|
|
41
42
|
return (_ctx, _cache) => {
|
|
42
43
|
return vue.openBlock(), vue.createElementBlock("div", {
|
|
43
|
-
class: vue.normalizeClass(["medialist-component-item-view", {
|
|
44
|
+
class: vue.normalizeClass(["medialist-component-item-view", { "gray-for-state-hide": hide.value }])
|
|
44
45
|
}, [
|
|
45
46
|
vue.createElementVNode("div", _hoisted_1, [
|
|
46
47
|
_ctx.item.cover && _ctx.item.cover.data && _ctx.item.cover.data[0] ? (vue.openBlock(), vue.createBlock(vue.unref(webVue.Image), {
|
|
47
48
|
key: 0,
|
|
48
49
|
src: _ctx.item.cover.data[0].thumb,
|
|
49
|
-
fit: "cover"
|
|
50
|
+
fit: "cover",
|
|
51
|
+
class: "image"
|
|
50
52
|
}, null, 8, ["src"])) : (vue.openBlock(), vue.createElementBlock("span", _hoisted_2, vue.toDisplayString(vue.unref(index.noCoverText)(_ctx.item)), 1))
|
|
51
53
|
]),
|
|
52
54
|
vue.createElementVNode("div", _hoisted_3, [
|
|
@@ -64,12 +66,18 @@ const _sfc_main = vue.defineComponent({
|
|
|
64
66
|
position: "top",
|
|
65
67
|
trigger: "hover"
|
|
66
68
|
}, {
|
|
67
|
-
default: vue.withCtx(() =>
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
vue.
|
|
71
|
-
|
|
72
|
-
|
|
69
|
+
default: vue.withCtx(() => {
|
|
70
|
+
var _a, _b, _c, _d;
|
|
71
|
+
return [
|
|
72
|
+
((_b = (_a = _ctx.parmas) == null ? void 0 : _a.labelTip) == null ? void 0 : _b.info(_ctx.item)) ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_6, [
|
|
73
|
+
vue.createVNode(vue.unref(icon.IconInfoCircle), {
|
|
74
|
+
class: "icon",
|
|
75
|
+
size: "16"
|
|
76
|
+
}),
|
|
77
|
+
vue.createElementVNode("span", null, vue.toDisplayString(((_d = (_c = _ctx.parmas) == null ? void 0 : _c.labelTip) == null ? void 0 : _d.info(_ctx.item)) || ""), 1)
|
|
78
|
+
])) : vue.createCommentVNode("v-if", true)
|
|
79
|
+
];
|
|
80
|
+
}),
|
|
73
81
|
_: 1
|
|
74
82
|
})
|
|
75
83
|
]),
|
|
@@ -81,10 +89,10 @@ const _sfc_main = vue.defineComponent({
|
|
|
81
89
|
type: _ctx.item.series
|
|
82
90
|
}, null, 8, ["type"]),
|
|
83
91
|
vue.createElementVNode("span", _hoisted_9, [
|
|
84
|
-
vue.createTextVNode(vue.toDisplayString(vue.unref(
|
|
92
|
+
vue.createTextVNode(vue.toDisplayString(vue.unref(typeMap.contentList_relation_type_map)[_ctx.item.relation_type]) + "\u9891\u9053", 1),
|
|
85
93
|
vue.renderSlot(_ctx.$slots, "tip")
|
|
86
94
|
]),
|
|
87
|
-
vue.createElementVNode("span", _hoisted_10, vue.toDisplayString(vue.unref(
|
|
95
|
+
vue.createElementVNode("span", _hoisted_10, vue.toDisplayString(vue.unref(typeMap.contentList_layout_map)[_ctx.item.list_layout || "blank"]), 1),
|
|
88
96
|
vue.createElementVNode("span", _hoisted_11, "\u53D1\u5E03\u65F6\u95F4: " + vue.toDisplayString(vue.unref(index.timeFormat)(_ctx.item.pub_time)), 1)
|
|
89
97
|
]),
|
|
90
98
|
vue.createElementVNode("div", _hoisted_12, [
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var vue = require("vue");
|
|
3
|
-
var
|
|
3
|
+
var typeMap = require("../../../../../utils/typeMap.js");
|
|
4
4
|
const _hoisted_1 = {
|
|
5
5
|
key: 0,
|
|
6
6
|
class: "approval-state-view"
|
|
@@ -40,12 +40,11 @@ const _sfc_main = vue.defineComponent({
|
|
|
40
40
|
}),
|
|
41
41
|
onClick: _cache[0] || (_cache[0] = vue.withModifiers(($event) => showUserInfo(_ctx.item), ["stop"]))
|
|
42
42
|
}, [
|
|
43
|
-
vue.createElementVNode("span", null, vue.toDisplayString(vue.unref(
|
|
43
|
+
vue.createElementVNode("span", null, vue.toDisplayString(vue.unref(typeMap.calcApprovingUser)(_ctx.item)), 1),
|
|
44
44
|
vue.createElementVNode("span", null, [
|
|
45
|
-
vue.createTextVNode(vue.toDisplayString(vue.unref(
|
|
46
|
-
vue.createElementVNode("span", null, vue.toDisplayString(vue.unref(
|
|
47
|
-
])
|
|
48
|
-
vue.createCommentVNode(' <img\n v-show="calcIsRobot(item)"\n class="ai-iconfont"\n src="static/images/icon-ai.png"\n /> ')
|
|
45
|
+
vue.createTextVNode(vue.toDisplayString(vue.unref(typeMap.approveFlowStatusMap)[_ctx.item.status]) + " ", 1),
|
|
46
|
+
vue.createElementVNode("span", null, vue.toDisplayString(vue.unref(typeMap.calcApprovingDependent)(_ctx.item)), 1)
|
|
47
|
+
])
|
|
49
48
|
], 2)) : vue.createCommentVNode("v-if", true)
|
|
50
49
|
])) : [2, 3].includes(_ctx.item.status) ? (vue.openBlock(), vue.createElementBlock("span", {
|
|
51
50
|
key: 1,
|
|
@@ -54,8 +53,8 @@ const _sfc_main = vue.defineComponent({
|
|
|
54
53
|
pass: _ctx.item.status === 3
|
|
55
54
|
})
|
|
56
55
|
}, [
|
|
57
|
-
vue.createTextVNode(vue.toDisplayString(vue.unref(
|
|
58
|
-
vue.createElementVNode("span", null, vue.toDisplayString(vue.unref(
|
|
56
|
+
vue.createTextVNode(vue.toDisplayString(vue.unref(typeMap.approveFlowStatusMap)[_ctx.item.status]) + " ", 1),
|
|
57
|
+
vue.createElementVNode("span", null, vue.toDisplayString(vue.unref(typeMap.calcApprovingDependent)(_ctx.item)), 1)
|
|
59
58
|
], 2)) : (vue.openBlock(), vue.createElementBlock("span", {
|
|
60
59
|
key: 2,
|
|
61
60
|
class: vue.normalizeClass({
|
|
@@ -63,7 +62,7 @@ const _sfc_main = vue.defineComponent({
|
|
|
63
62
|
pass: _ctx.item.status === 5,
|
|
64
63
|
checking: [6, 7].includes(_ctx.item.status)
|
|
65
64
|
})
|
|
66
|
-
}, vue.toDisplayString(vue.unref(
|
|
65
|
+
}, vue.toDisplayString(vue.unref(typeMap.approveFlowStatusMap)[_ctx.item.status]), 3))
|
|
67
66
|
])) : vue.createCommentVNode("v-if", true);
|
|
68
67
|
};
|
|
69
68
|
}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var vue = require("vue");
|
|
3
3
|
var webVue = require("@arco-design/web-vue");
|
|
4
|
-
var index = require("
|
|
4
|
+
var index = require("../../../../utils/index.js");
|
|
5
|
+
var doc = require("../../../../utils/doc.js");
|
|
5
6
|
var component = require("../../../../typeIcons/component.js");
|
|
6
7
|
var index$1 = require("../KongoNavItem/DocTags/index.js");
|
|
7
8
|
var index$2 = require("./ApprovalStateMap/index.js");
|
|
@@ -66,7 +67,7 @@ const _sfc_main = vue.defineComponent({
|
|
|
66
67
|
};
|
|
67
68
|
return (_ctx, _cache) => {
|
|
68
69
|
return vue.openBlock(), vue.createElementBlock("div", {
|
|
69
|
-
class: vue.normalizeClass(["medialist-doc-item-view", {
|
|
70
|
+
class: vue.normalizeClass(["medialist-doc-item-view", { "gray-for-state-hide": hide.value }]),
|
|
70
71
|
onMouseenter: _cache[0] || (_cache[0] = ($event) => mouseEnterFun($event, _ctx.item)),
|
|
71
72
|
onMouseleave: _cache[1] || (_cache[1] = ($event) => mouseLeaveFun($event, _ctx.item))
|
|
72
73
|
}, [
|
|
@@ -74,6 +75,7 @@ const _sfc_main = vue.defineComponent({
|
|
|
74
75
|
thumb.value ? (vue.openBlock(), vue.createBlock(vue.unref(webVue.Image), {
|
|
75
76
|
key: 0,
|
|
76
77
|
src: thumb.value,
|
|
78
|
+
class: "image",
|
|
77
79
|
fit: "cover"
|
|
78
80
|
}, null, 8, ["src"])) : (vue.openBlock(), vue.createElementBlock("span", _hoisted_2, vue.toDisplayString(vue.unref(index.noCoverText)(_ctx.item)), 1)),
|
|
79
81
|
vue.createElementVNode("div", _hoisted_3, [
|
|
@@ -104,19 +106,19 @@ const _sfc_main = vue.defineComponent({
|
|
|
104
106
|
vue.createCommentVNode(" \u5BA1\u6838\u72B6\u6001 "),
|
|
105
107
|
column.key === "approval_status" ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_8, [
|
|
106
108
|
_hoisted_9,
|
|
107
|
-
vue.unref(
|
|
109
|
+
vue.unref(doc.approvalItem)(_ctx.item) ? (vue.openBlock(), vue.createBlock(index$2, {
|
|
108
110
|
key: 0,
|
|
109
|
-
item: vue.unref(
|
|
111
|
+
item: vue.unref(doc.approvalItem)(_ctx.item)
|
|
110
112
|
}, null, 8, ["item"])) : (vue.openBlock(), vue.createElementBlock("span", _hoisted_10, "--"))
|
|
111
113
|
])) : column.key === "state" ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 1 }, [
|
|
112
114
|
vue.createCommentVNode(" \u72B6\u6001 "),
|
|
113
115
|
vue.createElementVNode("span", _hoisted_11, [
|
|
114
116
|
vue.createVNode(vue.unref(webVue.Tooltip), {
|
|
115
|
-
content: `\u72B6\u6001: ${vue.unref(
|
|
117
|
+
content: `\u72B6\u6001: ${vue.unref(doc.docStateMap)[_ctx.item.state]}`,
|
|
116
118
|
position: "top"
|
|
117
119
|
}, {
|
|
118
120
|
default: vue.withCtx(() => [
|
|
119
|
-
vue.createElementVNode("span", null, vue.toDisplayString(vue.unref(
|
|
121
|
+
vue.createElementVNode("span", null, vue.toDisplayString(vue.unref(doc.docStateMap)[_ctx.item.state]), 1)
|
|
120
122
|
]),
|
|
121
123
|
_: 1
|
|
122
124
|
}, 8, ["content"])
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var vue = require("vue");
|
|
3
3
|
var webVue = require("@arco-design/web-vue");
|
|
4
|
-
var
|
|
4
|
+
var typeMap = require("../../../../../utils/typeMap.js");
|
|
5
|
+
var doc = require("../../../../../utils/doc.js");
|
|
5
6
|
const _hoisted_1 = { class: "doc-tags-container" };
|
|
6
7
|
const _hoisted_2 = { class: "doc-tags-thumb-ul" };
|
|
7
8
|
const _hoisted_3 = ["src"];
|
|
@@ -22,12 +23,12 @@ const _sfc_main = vue.defineComponent({
|
|
|
22
23
|
const style = JSON.parse(props.item.style);
|
|
23
24
|
if (style.model === 0)
|
|
24
25
|
return "\u65E0\u56FE";
|
|
25
|
-
return
|
|
26
|
+
return doc.docThumbMap()[style.model];
|
|
26
27
|
}
|
|
27
28
|
if (props.item.cover) {
|
|
28
29
|
if (props.item.cover.model === 0)
|
|
29
30
|
return "\u65E0\u56FE";
|
|
30
|
-
return
|
|
31
|
+
return doc.docThumbMap()[props.item.cover.model];
|
|
31
32
|
}
|
|
32
33
|
return "\u65E0\u56FE";
|
|
33
34
|
});
|
|
@@ -62,9 +63,9 @@ const _sfc_main = vue.defineComponent({
|
|
|
62
63
|
}, {
|
|
63
64
|
content: vue.withCtx(() => [
|
|
64
65
|
vue.createElementVNode("div", _hoisted_2, [
|
|
65
|
-
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(thumbs.value, (thumb,
|
|
66
|
+
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(thumbs.value, (thumb, index) => {
|
|
66
67
|
return vue.openBlock(), vue.createElementBlock("img", {
|
|
67
|
-
key:
|
|
68
|
+
key: index,
|
|
68
69
|
src: thumb.thumb || thumb.url,
|
|
69
70
|
fit: "cover",
|
|
70
71
|
lazy: true
|
|
@@ -75,7 +76,7 @@ const _sfc_main = vue.defineComponent({
|
|
|
75
76
|
default: vue.withCtx(() => [
|
|
76
77
|
vue.createVNode(vue.unref(webVue.Tag), {
|
|
77
78
|
class: vue.normalizeClass({ disabled: _ctx.disabled }),
|
|
78
|
-
size: "
|
|
79
|
+
size: "small"
|
|
79
80
|
}, {
|
|
80
81
|
default: vue.withCtx(() => [
|
|
81
82
|
vue.createTextVNode(vue.toDisplayString(thumbType.value), 1)
|
|
@@ -92,7 +93,7 @@ const _sfc_main = vue.defineComponent({
|
|
|
92
93
|
}, {
|
|
93
94
|
default: vue.withCtx(() => [
|
|
94
95
|
vue.createVNode(vue.unref(webVue.Tag), {
|
|
95
|
-
size: "
|
|
96
|
+
size: "small",
|
|
96
97
|
class: vue.normalizeClass([{ disabled: _ctx.disabled }, "thumb"])
|
|
97
98
|
}, {
|
|
98
99
|
default: vue.withCtx(() => [
|
|
@@ -111,7 +112,7 @@ const _sfc_main = vue.defineComponent({
|
|
|
111
112
|
}, {
|
|
112
113
|
default: vue.withCtx(() => [
|
|
113
114
|
vue.createVNode(vue.unref(webVue.Tag), {
|
|
114
|
-
size: "
|
|
115
|
+
size: "small",
|
|
115
116
|
class: vue.normalizeClass([{ disabled: _ctx.disabled }, "yuanchuang"])
|
|
116
117
|
}, {
|
|
117
118
|
default: vue.withCtx(() => [
|
|
@@ -129,7 +130,7 @@ const _sfc_main = vue.defineComponent({
|
|
|
129
130
|
}, {
|
|
130
131
|
default: vue.withCtx(() => [
|
|
131
132
|
vue.createVNode(vue.unref(webVue.Tag), {
|
|
132
|
-
size: "
|
|
133
|
+
size: "small",
|
|
133
134
|
class: vue.normalizeClass([{ disabled: _ctx.disabled }, "star"])
|
|
134
135
|
}, {
|
|
135
136
|
default: vue.withCtx(() => [
|
|
@@ -147,7 +148,7 @@ const _sfc_main = vue.defineComponent({
|
|
|
147
148
|
}, {
|
|
148
149
|
default: vue.withCtx(() => [
|
|
149
150
|
vue.createVNode(vue.unref(webVue.Tag), {
|
|
150
|
-
size: "
|
|
151
|
+
size: "small",
|
|
151
152
|
class: vue.normalizeClass([{ disabled: _ctx.disabled }, "waring"])
|
|
152
153
|
}, {
|
|
153
154
|
default: vue.withCtx(() => [
|
|
@@ -160,22 +161,22 @@ const _sfc_main = vue.defineComponent({
|
|
|
160
161
|
}, 8, ["content"])) : vue.createCommentVNode("v-if", true)
|
|
161
162
|
], 64)) : _ctx.item.catalog === "kongo" ? (vue.openBlock(), vue.createBlock(vue.unref(webVue.Tag), {
|
|
162
163
|
key: 1,
|
|
163
|
-
size: "
|
|
164
|
+
size: "small"
|
|
164
165
|
}, {
|
|
165
166
|
default: vue.withCtx(() => [
|
|
166
|
-
vue.createTextVNode(vue.toDisplayString(vue.unref(
|
|
167
|
+
vue.createTextVNode(vue.toDisplayString(vue.unref(typeMap.kongo_source_map)[_ctx.item.series]), 1)
|
|
167
168
|
]),
|
|
168
169
|
_: 1
|
|
169
170
|
})) : _ctx.item.catalog === "mp_account" ? (vue.openBlock(), vue.createBlock(vue.unref(webVue.Tag), {
|
|
170
171
|
key: 2,
|
|
171
|
-
size: "
|
|
172
|
+
size: "small"
|
|
172
173
|
}, {
|
|
173
174
|
default: vue.withCtx(() => [
|
|
174
|
-
vue.createTextVNode(vue.toDisplayString(vue.unref(
|
|
175
|
+
vue.createTextVNode(vue.toDisplayString(vue.unref(typeMap.contentList_list_type_map)[_ctx.item.mp_type]), 1)
|
|
175
176
|
]),
|
|
176
177
|
_: 1
|
|
177
178
|
})) : (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 3 }, [
|
|
178
|
-
_ctx.item.list_type ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_4, vue.toDisplayString(vue.unref(
|
|
179
|
+
_ctx.item.list_type ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_4, vue.toDisplayString(vue.unref(typeMap.contentList_list_type_map)[_ctx.item.list_type]), 1)) : (vue.openBlock(), vue.createElementBlock("span", _hoisted_5, "--"))
|
|
179
180
|
], 64))
|
|
180
181
|
])
|
|
181
182
|
], 2112);
|
|
@@ -3,7 +3,7 @@ var vue = require("vue");
|
|
|
3
3
|
var webVue = require("@arco-design/web-vue");
|
|
4
4
|
var component = require("../../../../typeIcons/component.js");
|
|
5
5
|
var index$1 = require("./DocTags/index.js");
|
|
6
|
-
var index = require("
|
|
6
|
+
var index = require("../../../../utils/index.js");
|
|
7
7
|
const _hoisted_1 = { class: "cover-view" };
|
|
8
8
|
const _hoisted_2 = {
|
|
9
9
|
key: 1,
|
|
@@ -66,13 +66,14 @@ const _sfc_main = vue.defineComponent({
|
|
|
66
66
|
};
|
|
67
67
|
return (_ctx, _cache) => {
|
|
68
68
|
return vue.openBlock(), vue.createElementBlock("div", {
|
|
69
|
-
class: vue.normalizeClass(["medialist-kongo-item-view", {
|
|
69
|
+
class: vue.normalizeClass(["medialist-kongo-item-view", { "gray-for-state-hide": hide.value }])
|
|
70
70
|
}, [
|
|
71
71
|
vue.createElementVNode("div", _hoisted_1, [
|
|
72
72
|
thumb.value ? (vue.openBlock(), vue.createBlock(vue.unref(webVue.Image), {
|
|
73
73
|
key: 0,
|
|
74
74
|
src: thumb.value,
|
|
75
75
|
fit: "cover",
|
|
76
|
+
class: "image",
|
|
76
77
|
lazy: true
|
|
77
78
|
}, null, 8, ["src"])) : (vue.openBlock(), vue.createElementBlock("span", _hoisted_2, vue.toDisplayString(vue.unref(index.noCoverText)(_ctx.item)), 1))
|
|
78
79
|
]),
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
var vue = require("vue");
|
|
3
3
|
var webVue = require("@arco-design/web-vue");
|
|
4
4
|
var component = require("../../../../typeIcons/component.js");
|
|
5
|
-
var index = require("
|
|
5
|
+
var index = require("../../../../utils/index.js");
|
|
6
6
|
const _hoisted_1 = { class: "cover-view" };
|
|
7
7
|
const _hoisted_2 = {
|
|
8
8
|
key: 1,
|
|
@@ -42,12 +42,13 @@ const _sfc_main = vue.defineComponent({
|
|
|
42
42
|
};
|
|
43
43
|
return (_ctx, _cache) => {
|
|
44
44
|
return vue.openBlock(), vue.createElementBlock("div", {
|
|
45
|
-
class: vue.normalizeClass(["medialist-ilive-item-view", {
|
|
45
|
+
class: vue.normalizeClass(["medialist-ilive-item-view", { "gray-for-state-hide": hide.value }])
|
|
46
46
|
}, [
|
|
47
47
|
vue.createElementVNode("div", _hoisted_1, [
|
|
48
48
|
pc_banner.value ? (vue.openBlock(), vue.createBlock(vue.unref(webVue.Image), {
|
|
49
49
|
key: 0,
|
|
50
50
|
src: pc_banner.value,
|
|
51
|
+
class: "image",
|
|
51
52
|
fit: "cover"
|
|
52
53
|
}, null, 8, ["src"])) : (vue.openBlock(), vue.createElementBlock("span", _hoisted_2, vue.toDisplayString(vue.unref(index.noCoverText)(_ctx.item)), 1))
|
|
53
54
|
]),
|
|
@@ -27,11 +27,12 @@ const _sfc_main = vue.defineComponent({
|
|
|
27
27
|
};
|
|
28
28
|
return (_ctx, _cache) => {
|
|
29
29
|
return vue.openBlock(), vue.createElementBlock("div", {
|
|
30
|
-
class: vue.normalizeClass(["medialist-account-item-view", {
|
|
30
|
+
class: vue.normalizeClass(["medialist-account-item-view", { "gray-for-state-hide": hide.value }])
|
|
31
31
|
}, [
|
|
32
32
|
vue.createElementVNode("div", _hoisted_1, [
|
|
33
33
|
vue.createVNode(vue.unref(webVue.Image), {
|
|
34
34
|
src: _ctx.item.mp_logo || vue.unref(user),
|
|
35
|
+
class: "image",
|
|
35
36
|
fit: "cover"
|
|
36
37
|
}, null, 8, ["src"])
|
|
37
38
|
]),
|