@cmstops/pro-compo 0.1.61 → 0.1.62
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 +107 -0
- package/dist/index.min.css +1 -1
- package/dist/matrix/baijiahao.png +0 -0
- package/dist/matrix/bilibili.png +0 -0
- package/dist/matrix/channelsweixin.png +0 -0
- package/dist/matrix/douyin.png +0 -0
- package/dist/matrix/kuaishou.png +0 -0
- package/dist/matrix/qq.png +0 -0
- package/dist/matrix/toutiao.png +0 -0
- package/dist/matrix/weibo.png +0 -0
- package/dist/matrix/weixin.png +0 -0
- package/es/contentDetailList/__demo__/matrix/platform.d.ts +27 -0
- package/es/contentDetailList/component.js +79 -8
- package/es/contentDetailList/components/Content/CompoItem/index.js +32 -19
- package/es/contentDetailList/components/Content/ContentListItem/index.js +38 -25
- package/es/contentDetailList/components/Content/DocItem/index.js +2 -1
- package/es/contentDetailList/components/Content/DocMpItem/index.js +13 -4
- package/es/contentDetailList/components/Content/KongoNavItem/index.js +35 -22
- package/es/contentDetailList/components/Content/LiveItem/index.js +32 -19
- package/es/contentDetailList/components/Content/MaccountItem/index.js +31 -19
- package/es/contentDetailList/components/Content/courseItem/index.js +34 -21
- package/es/contentDetailList/components/Content/funhdItem/index.js +34 -21
- package/es/contentDetailList/components/Content/index.js +114 -22
- package/es/contentDetailList/components/Doc/index.js +3 -1
- package/es/contentDetailList/components/Records/MatrixItem/index.d.ts +0 -0
- package/es/contentDetailList/components/Records/MatrixItem/index.js +131 -0
- package/es/contentDetailList/components/Records/index.d.ts +0 -0
- package/es/contentDetailList/components/Records/index.js +63 -0
- package/es/contentDetailList/style/MatrixItem.less +127 -0
- package/es/contentDetailList/style/index.css +107 -0
- package/es/contentDetailList/style/index.less +1 -0
- package/es/index.css +107 -0
- package/es/matrix/baijiahao.png +0 -0
- package/es/matrix/bilibili.png +0 -0
- package/es/matrix/channelsweixin.png +0 -0
- package/es/matrix/douyin.png +0 -0
- package/es/matrix/kuaishou.png +0 -0
- package/es/matrix/qq.png +0 -0
- package/es/matrix/toutiao.png +0 -0
- package/es/matrix/weibo.png +0 -0
- package/es/matrix/weixin.png +0 -0
- package/es/selectThumb/component.js +0 -7
- package/es/utils/typeMap.d.ts +23 -0
- package/es/utils/typeMap.js +26 -2
- package/lib/contentDetailList/component.js +96 -25
- package/lib/contentDetailList/components/Content/CompoItem/index.js +32 -19
- package/lib/contentDetailList/components/Content/ContentListItem/index.js +38 -25
- package/lib/contentDetailList/components/Content/DocItem/index.js +2 -1
- package/lib/contentDetailList/components/Content/DocMpItem/index.js +13 -4
- package/lib/contentDetailList/components/Content/KongoNavItem/index.js +35 -22
- package/lib/contentDetailList/components/Content/LiveItem/index.js +32 -19
- package/lib/contentDetailList/components/Content/MaccountItem/index.js +31 -19
- package/lib/contentDetailList/components/Content/courseItem/index.js +34 -21
- package/lib/contentDetailList/components/Content/funhdItem/index.js +34 -21
- package/lib/contentDetailList/components/Content/index.js +113 -21
- package/lib/contentDetailList/components/Doc/index.js +3 -1
- package/lib/contentDetailList/components/Records/MatrixItem/index.js +132 -0
- package/lib/contentDetailList/components/Records/index.js +64 -0
- package/lib/contentDetailList/style/MatrixItem.less +127 -0
- package/lib/contentDetailList/style/index.css +107 -0
- package/lib/contentDetailList/style/index.less +1 -0
- package/lib/index.css +107 -0
- package/lib/selectThumb/component.js +0 -7
- package/lib/utils/typeMap.js +27 -1
- package/package.json +1 -1
- package/es/contentDetailList/components/Content/MaccountItem/temp/user.js +0 -2
- package/lib/contentDetailList/components/Content/MaccountItem/temp/user.js +0 -3
|
@@ -97,17 +97,28 @@ const _sfc_main = vue.defineComponent({
|
|
|
97
97
|
item: {},
|
|
98
98
|
index: {},
|
|
99
99
|
abttrites: {},
|
|
100
|
+
extraAttrs: {},
|
|
100
101
|
parmas: {}
|
|
101
102
|
},
|
|
102
|
-
emits: [
|
|
103
|
+
emits: [
|
|
104
|
+
"cellMouseEnter",
|
|
105
|
+
"cellMouseLeave",
|
|
106
|
+
"sortChange",
|
|
107
|
+
"clickTitle",
|
|
108
|
+
"dragstart"
|
|
109
|
+
],
|
|
103
110
|
setup(__props, { emit: __emit }) {
|
|
104
|
-
const props = __props;
|
|
105
111
|
const emit = __emit;
|
|
112
|
+
const cellMouseEnter = (params) => {
|
|
113
|
+
emit("cellMouseEnter", params);
|
|
114
|
+
};
|
|
115
|
+
const cellMouseLeave = (params) => {
|
|
116
|
+
emit("cellMouseLeave", params);
|
|
117
|
+
};
|
|
106
118
|
const clickTitle = (item) => {
|
|
107
119
|
emit("clickTitle", item);
|
|
108
120
|
};
|
|
109
121
|
vue.onMounted(() => {
|
|
110
|
-
console.log("props", props.item);
|
|
111
122
|
});
|
|
112
123
|
return (_ctx, _cache) => {
|
|
113
124
|
return vue.openBlock(), vue.createElementBlock(vue.Fragment, null, [
|
|
@@ -116,8 +127,17 @@ const _sfc_main = vue.defineComponent({
|
|
|
116
127
|
key: `doc-${_ctx.item.post_id}`,
|
|
117
128
|
item: { ..._ctx.item, index: _ctx.index },
|
|
118
129
|
abttrites: _ctx.abttrites,
|
|
119
|
-
|
|
130
|
+
extraAttrs: _ctx.extraAttrs,
|
|
131
|
+
onClickTitle: clickTitle,
|
|
132
|
+
onCellMouseEnter: cellMouseEnter,
|
|
133
|
+
onCellMouseLeave: cellMouseLeave
|
|
120
134
|
}, {
|
|
135
|
+
batch: vue.withCtx(() => [
|
|
136
|
+
vue.renderSlot(_ctx.$slots, "batch", {
|
|
137
|
+
row: _ctx.item,
|
|
138
|
+
index: _ctx.index
|
|
139
|
+
})
|
|
140
|
+
]),
|
|
121
141
|
index: vue.withCtx(() => [
|
|
122
142
|
vue.createElementVNode("span", _hoisted_1, vue.toDisplayString(_ctx.index + 1), 1)
|
|
123
143
|
]),
|
|
@@ -144,13 +164,22 @@ const _sfc_main = vue.defineComponent({
|
|
|
144
164
|
})
|
|
145
165
|
]),
|
|
146
166
|
_: 3
|
|
147
|
-
}, 8, ["item", "abttrites"])) : _ctx.item.catalog === "contentList" && _ctx.item.list_type === 7 && _ctx.item.target_type === 6 ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 1 }, [
|
|
167
|
+
}, 8, ["item", "abttrites", "extraAttrs"])) : _ctx.item.catalog === "contentList" && _ctx.item.list_type === 7 && _ctx.item.target_type === 6 ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 1 }, [
|
|
148
168
|
vue.createCommentVNode(" \u7EC4\u4EF6 "),
|
|
149
169
|
(vue.openBlock(), vue.createBlock(index$1, {
|
|
150
170
|
key: `compo-${_ctx.item.post_id}`,
|
|
151
171
|
item: { ..._ctx.item, index: _ctx.index },
|
|
152
|
-
|
|
172
|
+
extraAttrs: _ctx.extraAttrs,
|
|
173
|
+
onClickTitle: clickTitle,
|
|
174
|
+
onCellMouseEnter: cellMouseEnter,
|
|
175
|
+
onCellMouseLeave: cellMouseLeave
|
|
153
176
|
}, {
|
|
177
|
+
batch: vue.withCtx(() => [
|
|
178
|
+
vue.renderSlot(_ctx.$slots, "batch", {
|
|
179
|
+
row: _ctx.item,
|
|
180
|
+
index: _ctx.index
|
|
181
|
+
})
|
|
182
|
+
]),
|
|
154
183
|
index: vue.withCtx(() => [
|
|
155
184
|
vue.createElementVNode("span", _hoisted_7, vue.toDisplayString(_ctx.index + 1), 1)
|
|
156
185
|
]),
|
|
@@ -177,15 +206,24 @@ const _sfc_main = vue.defineComponent({
|
|
|
177
206
|
})
|
|
178
207
|
]),
|
|
179
208
|
_: 3
|
|
180
|
-
}, 8, ["item"]))
|
|
209
|
+
}, 8, ["item", "extraAttrs"]))
|
|
181
210
|
], 2112)) : _ctx.item.catalog === "contentList" && _ctx.item.list_type === 4 && _ctx.item.target_type === 6 ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 2 }, [
|
|
182
211
|
vue.createCommentVNode(" \u9891\u9053 "),
|
|
183
212
|
(vue.openBlock(), vue.createBlock(index$2, {
|
|
184
213
|
key: `contentlist-${_ctx.item.post_id}`,
|
|
185
214
|
item: { ..._ctx.item, index: _ctx.index },
|
|
186
215
|
parmas: _ctx.parmas,
|
|
187
|
-
|
|
216
|
+
extraAttrs: _ctx.extraAttrs,
|
|
217
|
+
onClickTitle: clickTitle,
|
|
218
|
+
onCellMouseEnter: cellMouseEnter,
|
|
219
|
+
onCellMouseLeave: cellMouseLeave
|
|
188
220
|
}, {
|
|
221
|
+
batch: vue.withCtx(() => [
|
|
222
|
+
vue.renderSlot(_ctx.$slots, "batch", {
|
|
223
|
+
row: _ctx.item,
|
|
224
|
+
index: _ctx.index
|
|
225
|
+
})
|
|
226
|
+
]),
|
|
189
227
|
index: vue.withCtx(() => [
|
|
190
228
|
vue.createElementVNode("span", _hoisted_13, vue.toDisplayString(_ctx.index + 1), 1)
|
|
191
229
|
]),
|
|
@@ -218,15 +256,24 @@ const _sfc_main = vue.defineComponent({
|
|
|
218
256
|
})
|
|
219
257
|
]),
|
|
220
258
|
_: 3
|
|
221
|
-
}, 8, ["item", "parmas"]))
|
|
259
|
+
}, 8, ["item", "parmas", "extraAttrs"]))
|
|
222
260
|
], 2112)) : _ctx.item.catalog === "mp_account" ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 3 }, [
|
|
223
261
|
vue.createCommentVNode(" \u516C\u4F17\u53F7 "),
|
|
224
262
|
(vue.openBlock(), vue.createBlock(index$3, {
|
|
225
263
|
key: `maccount-${_ctx.item.post_id}`,
|
|
226
264
|
item: { ..._ctx.item, index: _ctx.index },
|
|
227
265
|
abttrites: _ctx.abttrites,
|
|
228
|
-
|
|
266
|
+
extraAttrs: _ctx.extraAttrs,
|
|
267
|
+
onClickTitle: clickTitle,
|
|
268
|
+
onCellMouseEnter: cellMouseEnter,
|
|
269
|
+
onCellMouseLeave: cellMouseLeave
|
|
229
270
|
}, {
|
|
271
|
+
batch: vue.withCtx(() => [
|
|
272
|
+
vue.renderSlot(_ctx.$slots, "batch", {
|
|
273
|
+
row: _ctx.item,
|
|
274
|
+
index: _ctx.index
|
|
275
|
+
})
|
|
276
|
+
]),
|
|
230
277
|
index: vue.withCtx(() => [
|
|
231
278
|
vue.createElementVNode("span", _hoisted_19, vue.toDisplayString(_ctx.index + 1), 1)
|
|
232
279
|
]),
|
|
@@ -249,14 +296,23 @@ const _sfc_main = vue.defineComponent({
|
|
|
249
296
|
})
|
|
250
297
|
]),
|
|
251
298
|
_: 3
|
|
252
|
-
}, 8, ["item", "abttrites"]))
|
|
299
|
+
}, 8, ["item", "abttrites", "extraAttrs"]))
|
|
253
300
|
], 2112)) : _ctx.item.catalog === "ilive" ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 4 }, [
|
|
254
301
|
vue.createCommentVNode(" \u4E91\u76F4\u64AD "),
|
|
255
302
|
(vue.openBlock(), vue.createBlock(index$4, {
|
|
256
303
|
key: `live-${_ctx.item.post_id}`,
|
|
257
304
|
item: { ..._ctx.item, index: _ctx.index },
|
|
258
|
-
|
|
305
|
+
extraAttrs: _ctx.extraAttrs,
|
|
306
|
+
onClickTitle: clickTitle,
|
|
307
|
+
onCellMouseEnter: cellMouseEnter,
|
|
308
|
+
onCellMouseLeave: cellMouseLeave
|
|
259
309
|
}, {
|
|
310
|
+
batch: vue.withCtx(() => [
|
|
311
|
+
vue.renderSlot(_ctx.$slots, "batch", {
|
|
312
|
+
row: _ctx.item,
|
|
313
|
+
index: _ctx.index
|
|
314
|
+
})
|
|
315
|
+
]),
|
|
260
316
|
index: vue.withCtx(() => [
|
|
261
317
|
vue.createElementVNode("span", _hoisted_24, vue.toDisplayString(_ctx.index + 1), 1)
|
|
262
318
|
]),
|
|
@@ -267,14 +323,23 @@ const _sfc_main = vue.defineComponent({
|
|
|
267
323
|
})
|
|
268
324
|
]),
|
|
269
325
|
_: 3
|
|
270
|
-
}, 8, ["item"]))
|
|
326
|
+
}, 8, ["item", "extraAttrs"]))
|
|
271
327
|
], 2112)) : _ctx.item.catalog === "kongo" ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 5 }, [
|
|
272
328
|
vue.createCommentVNode(" \u529F\u80FD\u5BFC\u822A "),
|
|
273
329
|
(vue.openBlock(), vue.createBlock(index$5, {
|
|
274
330
|
key: `kongo-${_ctx.item.post_id}`,
|
|
275
331
|
item: { ..._ctx.item, index: _ctx.index },
|
|
276
|
-
|
|
332
|
+
extraAttrs: _ctx.extraAttrs,
|
|
333
|
+
onClickTitle: clickTitle,
|
|
334
|
+
onCellMouseEnter: cellMouseEnter,
|
|
335
|
+
onCellMouseLeave: cellMouseLeave
|
|
277
336
|
}, {
|
|
337
|
+
batch: vue.withCtx(() => [
|
|
338
|
+
vue.renderSlot(_ctx.$slots, "batch", {
|
|
339
|
+
row: _ctx.item,
|
|
340
|
+
index: _ctx.index
|
|
341
|
+
})
|
|
342
|
+
]),
|
|
278
343
|
index: vue.withCtx(() => [
|
|
279
344
|
vue.createElementVNode("span", _hoisted_25, vue.toDisplayString(_ctx.index + 1), 1)
|
|
280
345
|
]),
|
|
@@ -297,15 +362,24 @@ const _sfc_main = vue.defineComponent({
|
|
|
297
362
|
})
|
|
298
363
|
]),
|
|
299
364
|
_: 3
|
|
300
|
-
}, 8, ["item"]))
|
|
365
|
+
}, 8, ["item", "extraAttrs"]))
|
|
301
366
|
], 2112)) : _ctx.item.catalog === "mp_content" ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 6 }, [
|
|
302
367
|
vue.createCommentVNode(" \u516C\u4F17\u53F7\u5185\u5BB9 "),
|
|
303
368
|
(vue.openBlock(), vue.createBlock(index$6, {
|
|
304
369
|
key: `doc-mp-${_ctx.item.post_id}`,
|
|
305
370
|
abttrites: _ctx.abttrites,
|
|
371
|
+
extraAttrs: _ctx.extraAttrs,
|
|
306
372
|
item: { ..._ctx.item, index: _ctx.index },
|
|
307
|
-
onClickTitle: clickTitle
|
|
373
|
+
onClickTitle: clickTitle,
|
|
374
|
+
onCellMouseEnter: cellMouseEnter,
|
|
375
|
+
onCellMouseLeave: cellMouseLeave
|
|
308
376
|
}, {
|
|
377
|
+
batch: vue.withCtx(() => [
|
|
378
|
+
vue.renderSlot(_ctx.$slots, "batch", {
|
|
379
|
+
row: _ctx.item,
|
|
380
|
+
index: _ctx.index
|
|
381
|
+
})
|
|
382
|
+
]),
|
|
309
383
|
index: vue.withCtx(() => [
|
|
310
384
|
vue.createElementVNode("span", _hoisted_30, vue.toDisplayString(_ctx.index + 1), 1)
|
|
311
385
|
]),
|
|
@@ -328,14 +402,23 @@ const _sfc_main = vue.defineComponent({
|
|
|
328
402
|
})
|
|
329
403
|
]),
|
|
330
404
|
_: 3
|
|
331
|
-
}, 8, ["abttrites", "item"]))
|
|
405
|
+
}, 8, ["abttrites", "extraAttrs", "item"]))
|
|
332
406
|
], 2112)) : _ctx.item.catalog === "funhd" ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 7 }, [
|
|
333
407
|
vue.createCommentVNode(" \u4E92\u52A8\u8FD0\u8425\uFF08\u6613\u4F01\u79C0\uFF09 "),
|
|
334
408
|
(vue.openBlock(), vue.createBlock(index$7, {
|
|
335
409
|
key: `funhd-${_ctx.item.post_id}`,
|
|
336
410
|
item: { ..._ctx.item, index: _ctx.index },
|
|
337
|
-
|
|
411
|
+
extraAttrs: _ctx.extraAttrs,
|
|
412
|
+
onClickTitle: clickTitle,
|
|
413
|
+
onCellMouseEnter: cellMouseEnter,
|
|
414
|
+
onCellMouseLeave: cellMouseLeave
|
|
338
415
|
}, {
|
|
416
|
+
batch: vue.withCtx(() => [
|
|
417
|
+
vue.renderSlot(_ctx.$slots, "batch", {
|
|
418
|
+
row: _ctx.item,
|
|
419
|
+
index: _ctx.index
|
|
420
|
+
})
|
|
421
|
+
]),
|
|
339
422
|
index: vue.withCtx(() => [
|
|
340
423
|
vue.createElementVNode("span", _hoisted_35, vue.toDisplayString(_ctx.index + 1), 1)
|
|
341
424
|
]),
|
|
@@ -346,14 +429,23 @@ const _sfc_main = vue.defineComponent({
|
|
|
346
429
|
})
|
|
347
430
|
]),
|
|
348
431
|
_: 3
|
|
349
|
-
}, 8, ["item"]))
|
|
432
|
+
}, 8, ["item", "extraAttrs"]))
|
|
350
433
|
], 2112)) : _ctx.item.catalog === "course" ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 8 }, [
|
|
351
434
|
vue.createCommentVNode(" \u8BFE\u7A0B "),
|
|
352
435
|
(vue.openBlock(), vue.createBlock(index$8, {
|
|
353
436
|
key: `course-${_ctx.item.post_id}`,
|
|
354
437
|
item: { ..._ctx.item, index: _ctx.index },
|
|
355
|
-
|
|
438
|
+
extraAttrs: _ctx.extraAttrs,
|
|
439
|
+
onClickTitle: clickTitle,
|
|
440
|
+
onCellMouseEnter: cellMouseEnter,
|
|
441
|
+
onCellMouseLeave: cellMouseLeave
|
|
356
442
|
}, {
|
|
443
|
+
batch: vue.withCtx(() => [
|
|
444
|
+
vue.renderSlot(_ctx.$slots, "batch", {
|
|
445
|
+
row: _ctx.item,
|
|
446
|
+
index: _ctx.index
|
|
447
|
+
})
|
|
448
|
+
]),
|
|
357
449
|
index: vue.withCtx(() => [
|
|
358
450
|
vue.createElementVNode("span", _hoisted_36, vue.toDisplayString(_ctx.index + 1), 1)
|
|
359
451
|
]),
|
|
@@ -364,7 +456,7 @@ const _sfc_main = vue.defineComponent({
|
|
|
364
456
|
})
|
|
365
457
|
]),
|
|
366
458
|
_: 3
|
|
367
|
-
}, 8, ["item"]))
|
|
459
|
+
}, 8, ["item", "extraAttrs"]))
|
|
368
460
|
], 2112)) : vue.createCommentVNode("v-if", true)
|
|
369
461
|
], 2112);
|
|
370
462
|
};
|
|
@@ -5,6 +5,7 @@ const _sfc_main = vue.defineComponent({
|
|
|
5
5
|
__name: "index",
|
|
6
6
|
props: {
|
|
7
7
|
abttrites: {},
|
|
8
|
+
extraAttrs: {},
|
|
8
9
|
item: {},
|
|
9
10
|
index: {}
|
|
10
11
|
},
|
|
@@ -24,6 +25,7 @@ const _sfc_main = vue.defineComponent({
|
|
|
24
25
|
return vue.openBlock(), vue.createBlock(index, {
|
|
25
26
|
item: _ctx.item,
|
|
26
27
|
abttrites: _ctx.abttrites,
|
|
28
|
+
extraAttrs: _ctx.extraAttrs,
|
|
27
29
|
onClickTitle: clickTitle,
|
|
28
30
|
onCellMouseEnter: cellMouseEnter,
|
|
29
31
|
onCellMouseLeave: cellMouseLeave
|
|
@@ -41,7 +43,7 @@ const _sfc_main = vue.defineComponent({
|
|
|
41
43
|
})
|
|
42
44
|
]),
|
|
43
45
|
_: 3
|
|
44
|
-
}, 8, ["item", "abttrites"]);
|
|
46
|
+
}, 8, ["item", "abttrites", "extraAttrs"]);
|
|
45
47
|
};
|
|
46
48
|
}
|
|
47
49
|
});
|
|
@@ -0,0 +1,132 @@
|
|
|
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 component = require("../../../../typeIcons/component.js");
|
|
6
|
+
var index = require("../../../../utils/index.js");
|
|
7
|
+
var typeMap = require("../../../../utils/typeMap.js");
|
|
8
|
+
const _hoisted_1 = { class: "cover-view" };
|
|
9
|
+
const _hoisted_2 = {
|
|
10
|
+
key: 1,
|
|
11
|
+
class: "no-img"
|
|
12
|
+
};
|
|
13
|
+
const _hoisted_3 = { class: "batch-select" };
|
|
14
|
+
const _hoisted_4 = { class: "info-view" };
|
|
15
|
+
const _hoisted_5 = { class: "title_i" };
|
|
16
|
+
const _hoisted_6 = { class: "abttrite-v" };
|
|
17
|
+
const _hoisted_7 = { class: "left" };
|
|
18
|
+
const _hoisted_8 = {
|
|
19
|
+
key: 0,
|
|
20
|
+
class: "abttr tags account"
|
|
21
|
+
};
|
|
22
|
+
const _hoisted_9 = { class: "name" };
|
|
23
|
+
const _hoisted_10 = { class: "abttr tags state" };
|
|
24
|
+
const _hoisted_11 = { class: "abttr tags user" };
|
|
25
|
+
const _hoisted_12 = { class: "abttr time" };
|
|
26
|
+
const _hoisted_13 = { class: "abttr tags state" };
|
|
27
|
+
const _hoisted_14 = { class: "abttr time" };
|
|
28
|
+
const _hoisted_15 = { class: "right" };
|
|
29
|
+
const _sfc_main = vue.defineComponent({
|
|
30
|
+
__name: "index",
|
|
31
|
+
props: {
|
|
32
|
+
item: {},
|
|
33
|
+
extraAttrs: {}
|
|
34
|
+
},
|
|
35
|
+
emits: ["clickTitle", "cellMouseEnter", "cellMouseLeave"],
|
|
36
|
+
setup(__props, { emit: __emit }) {
|
|
37
|
+
const props = __props;
|
|
38
|
+
const emit = __emit;
|
|
39
|
+
const { matrix } = props.extraAttrs || {};
|
|
40
|
+
const { getPlatformInfoById, accounts } = matrix || {};
|
|
41
|
+
const covers = vue.computed(() => {
|
|
42
|
+
return props.item.cover ? JSON.parse(props.item.cover) : [];
|
|
43
|
+
});
|
|
44
|
+
const account = vue.computed(() => {
|
|
45
|
+
return accounts == null ? void 0 : accounts.find(
|
|
46
|
+
(item) => item.platformAccountId === props.item.accountId
|
|
47
|
+
);
|
|
48
|
+
});
|
|
49
|
+
const platformInfo = vue.computed(() => {
|
|
50
|
+
return getPlatformInfoById(props.item.platformId);
|
|
51
|
+
});
|
|
52
|
+
const docTypeMap = {
|
|
53
|
+
Article: "imagetext",
|
|
54
|
+
Video: "video",
|
|
55
|
+
MiniVideo: "svideo"
|
|
56
|
+
};
|
|
57
|
+
const mouseEnterFun = (event, row) => {
|
|
58
|
+
emit("cellMouseEnter", { row, event });
|
|
59
|
+
};
|
|
60
|
+
const mouseLeaveFun = (event, row) => {
|
|
61
|
+
emit("cellMouseLeave", { row, event });
|
|
62
|
+
};
|
|
63
|
+
const clickTitle = () => {
|
|
64
|
+
emit("clickTitle", props.item);
|
|
65
|
+
};
|
|
66
|
+
return (_ctx, _cache) => {
|
|
67
|
+
var _a;
|
|
68
|
+
return vue.openBlock(), vue.createElementBlock("div", {
|
|
69
|
+
class: "matrix-records-item-view",
|
|
70
|
+
onMouseenter: _cache[0] || (_cache[0] = ($event) => mouseEnterFun($event, _ctx.item)),
|
|
71
|
+
onMouseleave: _cache[1] || (_cache[1] = ($event) => mouseLeaveFun($event, _ctx.item))
|
|
72
|
+
}, [
|
|
73
|
+
vue.createElementVNode("div", _hoisted_1, [
|
|
74
|
+
covers.value ? (vue.openBlock(), vue.createBlock(vue.unref(webVue.Image), {
|
|
75
|
+
key: 0,
|
|
76
|
+
src: covers.value[0],
|
|
77
|
+
preview: false,
|
|
78
|
+
fit: "cover",
|
|
79
|
+
class: "image"
|
|
80
|
+
}, null, 8, ["src"])) : (vue.openBlock(), vue.createElementBlock("span", _hoisted_2, vue.toDisplayString(vue.unref(index.noCoverText)(_ctx.item)), 1)),
|
|
81
|
+
vue.createElementVNode("div", _hoisted_3, [
|
|
82
|
+
vue.renderSlot(_ctx.$slots, "batch", { row: _ctx.item })
|
|
83
|
+
])
|
|
84
|
+
]),
|
|
85
|
+
vue.createElementVNode("div", _hoisted_4, [
|
|
86
|
+
vue.createElementVNode("div", {
|
|
87
|
+
class: "title",
|
|
88
|
+
onClick: clickTitle
|
|
89
|
+
}, [
|
|
90
|
+
vue.renderSlot(_ctx.$slots, "index"),
|
|
91
|
+
vue.createElementVNode("span", _hoisted_5, vue.toDisplayString(_ctx.item.alias || _ctx.item.title), 1)
|
|
92
|
+
]),
|
|
93
|
+
vue.createElementVNode("div", _hoisted_6, [
|
|
94
|
+
vue.createElementVNode("div", _hoisted_7, [
|
|
95
|
+
vue.createVNode(component, {
|
|
96
|
+
class: "icon",
|
|
97
|
+
doc: true,
|
|
98
|
+
type: docTypeMap[_ctx.item.contentType]
|
|
99
|
+
}, null, 8, ["type"]),
|
|
100
|
+
vue.renderSlot(_ctx.$slots, "tip"),
|
|
101
|
+
account.value ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_8, [
|
|
102
|
+
platformInfo.value ? (vue.openBlock(), vue.createBlock(vue.unref(webVue.Image), {
|
|
103
|
+
key: 0,
|
|
104
|
+
class: "avatar",
|
|
105
|
+
src: account.value.avatar,
|
|
106
|
+
preview: false,
|
|
107
|
+
fit: "cover"
|
|
108
|
+
}, null, 8, ["src"])) : vue.createCommentVNode("v-if", true),
|
|
109
|
+
vue.createElementVNode("span", _hoisted_9, vue.toDisplayString(account.value.name), 1)
|
|
110
|
+
])) : vue.createCommentVNode("v-if", true),
|
|
111
|
+
vue.createElementVNode("span", _hoisted_10, vue.toDisplayString(vue.unref(typeMap.matrixPublishStateMap)[_ctx.item.publishState]), 1),
|
|
112
|
+
vue.createElementVNode("span", _hoisted_11, vue.toDisplayString(((_a = _ctx.item.user) == null ? void 0 : _a.alias) || "--"), 1),
|
|
113
|
+
vue.createElementVNode("span", _hoisted_12, [
|
|
114
|
+
vue.createVNode(vue.unref(icon.IconSubscribed)),
|
|
115
|
+
vue.createTextVNode(" \u53D1\u5E03\u65F6\u95F4: " + vue.toDisplayString(vue.unref(index.timeFormat)(_ctx.item.publishTime)), 1)
|
|
116
|
+
]),
|
|
117
|
+
vue.createElementVNode("span", _hoisted_13, vue.toDisplayString(vue.unref(typeMap.matrixPublishFormalStateMap)[_ctx.item.platformState]), 1),
|
|
118
|
+
vue.createElementVNode("span", _hoisted_14, [
|
|
119
|
+
vue.createVNode(vue.unref(icon.IconSend)),
|
|
120
|
+
vue.createTextVNode(" \u5206\u53D1\u65F6\u95F4: " + vue.toDisplayString(vue.unref(index.timeFormat)(_ctx.item.distributeTime)), 1)
|
|
121
|
+
])
|
|
122
|
+
]),
|
|
123
|
+
vue.createElementVNode("div", _hoisted_15, [
|
|
124
|
+
vue.renderSlot(_ctx.$slots, "option", { row: _ctx.item })
|
|
125
|
+
])
|
|
126
|
+
])
|
|
127
|
+
])
|
|
128
|
+
], 32);
|
|
129
|
+
};
|
|
130
|
+
}
|
|
131
|
+
});
|
|
132
|
+
module.exports = _sfc_main;
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var vue = require("vue");
|
|
3
|
+
var index = require("./MatrixItem/index.js");
|
|
4
|
+
const _hoisted_1 = { class: "index" };
|
|
5
|
+
const _sfc_main = vue.defineComponent({
|
|
6
|
+
__name: "index",
|
|
7
|
+
props: {
|
|
8
|
+
item: {},
|
|
9
|
+
index: {},
|
|
10
|
+
abttrites: {},
|
|
11
|
+
extraAttrs: {},
|
|
12
|
+
parmas: {}
|
|
13
|
+
},
|
|
14
|
+
emits: [
|
|
15
|
+
"cellMouseEnter",
|
|
16
|
+
"cellMouseLeave",
|
|
17
|
+
"sortChange",
|
|
18
|
+
"clickTitle",
|
|
19
|
+
"dragstart"
|
|
20
|
+
],
|
|
21
|
+
setup(__props, { emit: __emit }) {
|
|
22
|
+
const emit = __emit;
|
|
23
|
+
const cellMouseEnter = (params) => {
|
|
24
|
+
emit("cellMouseEnter", params);
|
|
25
|
+
};
|
|
26
|
+
const cellMouseLeave = (params) => {
|
|
27
|
+
emit("cellMouseLeave", params);
|
|
28
|
+
};
|
|
29
|
+
const clickTitle = (item) => {
|
|
30
|
+
emit("clickTitle", item);
|
|
31
|
+
};
|
|
32
|
+
return (_ctx, _cache) => {
|
|
33
|
+
return vue.openBlock(), vue.createElementBlock(vue.Fragment, null, [
|
|
34
|
+
vue.createCommentVNode(" \u81EA\u5A92\u4F53\u53D1\u5E03\u8BB0\u5F55 "),
|
|
35
|
+
_ctx.item.catalog === "matrix" ? (vue.openBlock(), vue.createBlock(index, {
|
|
36
|
+
key: `matrix-${_ctx.item.id}`,
|
|
37
|
+
item: { ..._ctx.item, index: _ctx.index },
|
|
38
|
+
extraAttrs: _ctx.extraAttrs,
|
|
39
|
+
onClickTitle: clickTitle,
|
|
40
|
+
onCellMouseEnter: cellMouseEnter,
|
|
41
|
+
onCellMouseLeave: cellMouseLeave
|
|
42
|
+
}, {
|
|
43
|
+
batch: vue.withCtx(() => [
|
|
44
|
+
vue.renderSlot(_ctx.$slots, "batch", {
|
|
45
|
+
row: _ctx.item,
|
|
46
|
+
index: _ctx.index
|
|
47
|
+
})
|
|
48
|
+
]),
|
|
49
|
+
index: vue.withCtx(() => [
|
|
50
|
+
vue.createElementVNode("span", _hoisted_1, vue.toDisplayString(_ctx.index + 1), 1)
|
|
51
|
+
]),
|
|
52
|
+
option: vue.withCtx(() => [
|
|
53
|
+
vue.renderSlot(_ctx.$slots, "option", {
|
|
54
|
+
row: _ctx.item,
|
|
55
|
+
index: _ctx.index
|
|
56
|
+
})
|
|
57
|
+
]),
|
|
58
|
+
_: 3
|
|
59
|
+
}, 8, ["item", "extraAttrs"])) : vue.createCommentVNode("v-if", true)
|
|
60
|
+
], 2112);
|
|
61
|
+
};
|
|
62
|
+
}
|
|
63
|
+
});
|
|
64
|
+
module.exports = _sfc_main;
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
.matrix-records-item-view {
|
|
2
|
+
display: flex;
|
|
3
|
+
// width: 100%;
|
|
4
|
+
padding: 10px;
|
|
5
|
+
border-bottom: 1px solid #f0f0f0;
|
|
6
|
+
|
|
7
|
+
&:hover {
|
|
8
|
+
background: #fafafa;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.cover-view {
|
|
12
|
+
position: relative;
|
|
13
|
+
flex-shrink: 0;
|
|
14
|
+
width: 110px;
|
|
15
|
+
height: 70px;
|
|
16
|
+
margin-right: 20px;
|
|
17
|
+
background: #edf3ff;
|
|
18
|
+
|
|
19
|
+
.image {
|
|
20
|
+
width: 100%;
|
|
21
|
+
height: 100%;
|
|
22
|
+
border-radius: 4px;
|
|
23
|
+
|
|
24
|
+
img {
|
|
25
|
+
width: 100%;
|
|
26
|
+
height: 100%;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.no-img {
|
|
31
|
+
display: flex;
|
|
32
|
+
align-items: center;
|
|
33
|
+
justify-content: center;
|
|
34
|
+
width: 100%;
|
|
35
|
+
height: 100%;
|
|
36
|
+
color: white;
|
|
37
|
+
font-size: 30px;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.info-view {
|
|
42
|
+
display: flex;
|
|
43
|
+
flex: 1;
|
|
44
|
+
flex-direction: column;
|
|
45
|
+
justify-content: space-between;
|
|
46
|
+
padding: 2px 0;
|
|
47
|
+
|
|
48
|
+
.title {
|
|
49
|
+
display: flex;
|
|
50
|
+
align-items: center;
|
|
51
|
+
margin-bottom: 10px;
|
|
52
|
+
overflow: hidden;
|
|
53
|
+
color: #1d2129;
|
|
54
|
+
font-weight: 400;
|
|
55
|
+
font-size: 14px;
|
|
56
|
+
font-style: normal;
|
|
57
|
+
line-height: 22px;
|
|
58
|
+
cursor: pointer;
|
|
59
|
+
-webkit-line-clamp: 2;
|
|
60
|
+
-webkit-box-orient: vertical;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.abttrite-v {
|
|
64
|
+
display: flex;
|
|
65
|
+
align-items: center;
|
|
66
|
+
justify-content: space-between;
|
|
67
|
+
|
|
68
|
+
.left {
|
|
69
|
+
display: flex;
|
|
70
|
+
align-items: center;
|
|
71
|
+
color: #808692;
|
|
72
|
+
font-size: 12px;
|
|
73
|
+
|
|
74
|
+
.abttr {
|
|
75
|
+
display: inline-block;
|
|
76
|
+
width: 130px;
|
|
77
|
+
margin-right: 10px;
|
|
78
|
+
overflow: hidden;
|
|
79
|
+
white-space: nowrap;
|
|
80
|
+
text-overflow: ellipsis;
|
|
81
|
+
|
|
82
|
+
&.time {
|
|
83
|
+
width: 240px;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
&.tags {
|
|
87
|
+
display: flex;
|
|
88
|
+
align-items: center;
|
|
89
|
+
width: 190px;
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
.account {
|
|
94
|
+
margin-left: 10px;
|
|
95
|
+
|
|
96
|
+
.avatar {
|
|
97
|
+
width: 25px;
|
|
98
|
+
height: 25px;
|
|
99
|
+
margin-right: 10px;
|
|
100
|
+
border-radius: 50%;
|
|
101
|
+
|
|
102
|
+
img {
|
|
103
|
+
width: 100%;
|
|
104
|
+
height: 100%;
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
.state {
|
|
110
|
+
&::before {
|
|
111
|
+
display: inline-block;
|
|
112
|
+
width: 6px;
|
|
113
|
+
height: 6px;
|
|
114
|
+
margin-right: 5px;
|
|
115
|
+
background-color: currentColor;
|
|
116
|
+
border-radius: 50%;
|
|
117
|
+
content: '';
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
.right {
|
|
123
|
+
margin-right: 20px;
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
}
|