@cmstops/pro-compo 0.1.72 → 0.1.74
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 +40 -3
- package/dist/index.min.css +1 -1
- package/es/baseFilter/component.js +55 -113
- package/es/contentDetailList/components/Records/MatrixItem/index.js +70 -45
- package/es/contentDetailList/style/MatrixItem.less +51 -7
- package/es/contentDetailList/style/index.css +40 -3
- package/es/index.css +40 -3
- package/es/utils/typeMap.d.ts +2 -0
- package/es/utils/typeMap.js +4 -11
- package/lib/baseFilter/component.js +54 -112
- package/lib/contentDetailList/components/Records/MatrixItem/index.js +69 -44
- package/lib/contentDetailList/style/MatrixItem.less +51 -7
- package/lib/contentDetailList/style/index.css +40 -3
- package/lib/index.css +40 -3
- package/lib/utils/typeMap.js +3 -11
- package/package.json +1 -1
package/es/utils/typeMap.js
CHANGED
|
@@ -83,15 +83,6 @@ const mp_type_map = {
|
|
|
83
83
|
1: "\u4E2A\u4EBA\u53F7",
|
|
84
84
|
2: "\u7EC4\u7EC7\u53F7"
|
|
85
85
|
};
|
|
86
|
-
const mpTypeOptions = () => {
|
|
87
|
-
const arr = Object.keys(mp_type_map).map((key) => {
|
|
88
|
-
return {
|
|
89
|
-
value: key,
|
|
90
|
-
label: mp_type_map[key]
|
|
91
|
-
};
|
|
92
|
-
});
|
|
93
|
-
return arr;
|
|
94
|
-
};
|
|
95
86
|
const kongo_source_map = {
|
|
96
87
|
app: "\u5E94\u7528",
|
|
97
88
|
url: "\u94FE\u63A5",
|
|
@@ -137,10 +128,12 @@ const local_live_doc_status = [
|
|
|
137
128
|
{ value: 2, label: "\u5DF2\u7ED3\u675F", bgColor: "rgba(0, 0, 0, 0.6)" }
|
|
138
129
|
];
|
|
139
130
|
const matrixPublishStateMap = {
|
|
131
|
+
"-1": "\u5F85\u83B7\u53D6\u72B6\u6001",
|
|
140
132
|
0: "\u5F85\u53D1\u5E03",
|
|
141
133
|
1: "\u53D1\u5E03\u4E2D",
|
|
142
134
|
2: "\u53D1\u5E03\u6210\u529F",
|
|
143
|
-
3: "\u53D1\u5E03\u5931\u8D25"
|
|
135
|
+
3: "\u53D1\u5E03\u5931\u8D25",
|
|
136
|
+
4: "\u53D1\u5E03\u5931\u8D25"
|
|
144
137
|
};
|
|
145
138
|
const matrixPublishFormalStateMap = {
|
|
146
139
|
"-1": "\u5F85\u83B7\u53D6\u72B6\u6001",
|
|
@@ -159,4 +152,4 @@ const matrixPublishFormalStateMap = {
|
|
|
159
152
|
12: "\u672A\u77E5",
|
|
160
153
|
13: "\u79C1\u5BC6"
|
|
161
154
|
};
|
|
162
|
-
export { approveFlowStatusMap, calcApprovingDependent, calcApprovingUser, compoColumnsMap, componentsColumns, contentList_layout_map, contentList_list_type_map, contentList_relation_type_map, ilive_type_map, key_target_type_map, kongo_source_map, local_live_doc_status, local_live_doc_type, matrixPublishFormalStateMap, matrixPublishStateMap,
|
|
155
|
+
export { approveFlowStatusMap, calcApprovingDependent, calcApprovingUser, compoColumnsMap, componentsColumns, contentList_layout_map, contentList_list_type_map, contentList_relation_type_map, ilive_type_map, key_target_type_map, kongo_source_map, local_live_doc_status, local_live_doc_type, matrixPublishFormalStateMap, matrixPublishStateMap, mp_type_map };
|
|
@@ -1,10 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var vue = require("vue");
|
|
3
3
|
var webVue = require("@arco-design/web-vue");
|
|
4
|
-
var doc = require("../utils/doc.js");
|
|
5
|
-
var typeMap = require("../utils/typeMap.js");
|
|
6
4
|
var filterItem = require("./components/filterItem.js");
|
|
7
|
-
var config = require("../config.js");
|
|
8
5
|
const _hoisted_1 = { class: "base-filter-container" };
|
|
9
6
|
const _hoisted_2 = { class: "left" };
|
|
10
7
|
const _hoisted_3 = {
|
|
@@ -24,18 +21,30 @@ const _sfc_main = vue.defineComponent({
|
|
|
24
21
|
setup(__props, { emit: __emit }) {
|
|
25
22
|
const props = __props;
|
|
26
23
|
const emit = __emit;
|
|
27
|
-
props.BASE_API || config.DEFAULT_BASE_API;
|
|
28
24
|
const render = vue.ref(false);
|
|
29
25
|
const form = vue.ref({});
|
|
30
26
|
const columnsKeys = vue.computed(() => props.columns.map((column) => column.key));
|
|
31
27
|
const columnsMap = vue.computed(() => {
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
return
|
|
28
|
+
const map = props.columns.reduce((map2, column) => {
|
|
29
|
+
map2[column.key] = column;
|
|
30
|
+
return map2;
|
|
35
31
|
}, {});
|
|
32
|
+
return map;
|
|
36
33
|
});
|
|
37
|
-
const
|
|
38
|
-
|
|
34
|
+
const renderColumns = vue.computed(() => {
|
|
35
|
+
let rangeKeys = props.columns.filter((column) => column.range).map((column) => column.range);
|
|
36
|
+
rangeKeys = [...new Set(rangeKeys)];
|
|
37
|
+
const _columns = props.columns.filter((column) => !column.range);
|
|
38
|
+
rangeKeys.forEach((key) => {
|
|
39
|
+
const rangeItem = props.columns.filter((column) => column.range === key);
|
|
40
|
+
rangeItem[0].key = key;
|
|
41
|
+
_columns.push(rangeItem[0]);
|
|
42
|
+
});
|
|
43
|
+
return _columns;
|
|
44
|
+
});
|
|
45
|
+
const getOptions = (item) => {
|
|
46
|
+
return item.options ? item.options : [];
|
|
47
|
+
};
|
|
39
48
|
const hasValue = vue.computed(() => {
|
|
40
49
|
return (key) => {
|
|
41
50
|
var _a, _b;
|
|
@@ -107,10 +116,9 @@ const _sfc_main = vue.defineComponent({
|
|
|
107
116
|
}
|
|
108
117
|
return _parmas;
|
|
109
118
|
};
|
|
110
|
-
const _mpTypeOptions = typeMap.mpTypeOptions();
|
|
111
119
|
vue.watch(
|
|
112
120
|
() => columnsKeys.value,
|
|
113
|
-
(
|
|
121
|
+
() => {
|
|
114
122
|
renderForm();
|
|
115
123
|
},
|
|
116
124
|
{ immediate: true }
|
|
@@ -122,110 +130,35 @@ const _sfc_main = vue.defineComponent({
|
|
|
122
130
|
},
|
|
123
131
|
{ deep: true }
|
|
124
132
|
);
|
|
125
|
-
const seriesOptions = doc.typeOptions();
|
|
126
133
|
return (_ctx, _cache) => {
|
|
127
134
|
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1, [
|
|
128
135
|
vue.createElementVNode("div", _hoisted_2, [
|
|
129
136
|
render.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3, [
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
modelValue: form.value.
|
|
139
|
-
"onUpdate:modelValue":
|
|
140
|
-
style: vue.normalizeStyle({ width: styleWidth(columnsMap.value.
|
|
141
|
-
"allow-clear": "",
|
|
142
|
-
size: "medium",
|
|
143
|
-
placeholder: `\u8BF7\u8F93\u5165${(_a = columnsMap.value.word) == null ? void 0 : _a.label}`
|
|
144
|
-
}, null, 8, ["modelValue", "style", "placeholder"])
|
|
145
|
-
];
|
|
146
|
-
}),
|
|
147
|
-
_: 1
|
|
148
|
-
}, 8, ["active"])) : vue.createCommentVNode("v-if", true),
|
|
149
|
-
hasKey("series") ? (vue.openBlock(), vue.createBlock(filterItem, {
|
|
150
|
-
key: 1,
|
|
151
|
-
active: hasValue.value("series")
|
|
152
|
-
}, {
|
|
153
|
-
default: vue.withCtx(() => {
|
|
154
|
-
var _a;
|
|
155
|
-
return [
|
|
156
|
-
vue.createVNode(vue.unref(webVue.Select), {
|
|
157
|
-
modelValue: form.value.series,
|
|
158
|
-
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => form.value.series = $event),
|
|
159
|
-
"allow-clear": "",
|
|
160
|
-
style: vue.normalizeStyle({ width: styleWidth(columnsMap.value.series) }),
|
|
161
|
-
placeholder: `\u8BF7\u9009\u62E9${(_a = columnsMap.value.series) == null ? void 0 : _a.label}`
|
|
162
|
-
}, {
|
|
163
|
-
default: vue.withCtx(() => [
|
|
164
|
-
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(vue.unref(seriesOptions), (opt) => {
|
|
165
|
-
return vue.openBlock(), vue.createBlock(vue.unref(webVue.Option), {
|
|
166
|
-
key: opt.value,
|
|
167
|
-
label: opt.label,
|
|
168
|
-
value: opt.value
|
|
169
|
-
}, null, 8, ["label", "value"]);
|
|
170
|
-
}), 128))
|
|
171
|
-
]),
|
|
172
|
-
_: 1
|
|
173
|
-
}, 8, ["modelValue", "style", "placeholder"])
|
|
174
|
-
];
|
|
175
|
-
}),
|
|
176
|
-
_: 1
|
|
177
|
-
}, 8, ["active"])) : vue.createCommentVNode("v-if", true),
|
|
178
|
-
hasKey("pub_time") ? (vue.openBlock(), vue.createBlock(filterItem, {
|
|
179
|
-
key: 2,
|
|
180
|
-
active: hasValue.value("pub_time")
|
|
181
|
-
}, {
|
|
182
|
-
default: vue.withCtx(() => [
|
|
183
|
-
vue.createVNode(vue.unref(webVue.RangePicker), {
|
|
184
|
-
modelValue: form.value.pub_time.range,
|
|
185
|
-
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => form.value.pub_time.range = $event),
|
|
186
|
-
style: vue.normalizeStyle({ width: styleWidth(form.value.pub_time) }),
|
|
187
|
-
"value-format": "timestamp",
|
|
188
|
-
onClick: _cache[3] || (_cache[3] = vue.withModifiers(() => {
|
|
189
|
-
}, ["stop"]))
|
|
190
|
-
}, null, 8, ["modelValue", "style"])
|
|
191
|
-
]),
|
|
192
|
-
_: 1
|
|
193
|
-
}, 8, ["active"])) : vue.createCommentVNode("v-if", true),
|
|
194
|
-
hasKey("mp_name") ? (vue.openBlock(), vue.createBlock(filterItem, {
|
|
195
|
-
key: 3,
|
|
196
|
-
active: hasValue.value("mp_name")
|
|
197
|
-
}, {
|
|
198
|
-
default: vue.withCtx(() => {
|
|
199
|
-
var _a;
|
|
200
|
-
return [
|
|
201
|
-
vue.createVNode(vue.unref(webVue.InputSearch), {
|
|
202
|
-
modelValue: form.value.mp_name,
|
|
203
|
-
"onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => form.value.mp_name = $event),
|
|
204
|
-
style: vue.normalizeStyle({ width: styleWidth(columnsMap.value.mp_name) }),
|
|
137
|
+
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(renderColumns.value, (item, index) => {
|
|
138
|
+
return vue.openBlock(), vue.createBlock(filterItem, {
|
|
139
|
+
key: index,
|
|
140
|
+
active: hasValue.value(item.key)
|
|
141
|
+
}, {
|
|
142
|
+
default: vue.withCtx(() => [
|
|
143
|
+
item.component === "input" ? (vue.openBlock(), vue.createBlock(vue.unref(webVue.InputSearch), {
|
|
144
|
+
key: 0,
|
|
145
|
+
modelValue: form.value[item.key],
|
|
146
|
+
"onUpdate:modelValue": ($event) => form.value[item.key] = $event,
|
|
147
|
+
style: vue.normalizeStyle({ width: styleWidth(columnsMap.value[item.key]) }),
|
|
205
148
|
"allow-clear": "",
|
|
206
149
|
size: "medium",
|
|
207
|
-
placeholder: `\u8BF7\u8F93\u5165${
|
|
208
|
-
}, null, 8, ["modelValue", "style", "placeholder"])
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
hasKey("mp_type") ? (vue.openBlock(), vue.createBlock(filterItem, {
|
|
214
|
-
key: 4,
|
|
215
|
-
active: hasValue.value("mp_type")
|
|
216
|
-
}, {
|
|
217
|
-
default: vue.withCtx(() => {
|
|
218
|
-
var _a;
|
|
219
|
-
return [
|
|
220
|
-
vue.createVNode(vue.unref(webVue.Select), {
|
|
221
|
-
modelValue: form.value.mp_type,
|
|
222
|
-
"onUpdate:modelValue": _cache[5] || (_cache[5] = ($event) => form.value.mp_type = $event),
|
|
223
|
-
style: vue.normalizeStyle([{ width: styleWidth(columnsMap.value.mp_type) }, { "width": "150px" }]),
|
|
150
|
+
placeholder: `\u8BF7\u8F93\u5165${item.label}`
|
|
151
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "style", "placeholder"])) : vue.createCommentVNode("v-if", true),
|
|
152
|
+
item.component === "select" ? (vue.openBlock(), vue.createBlock(vue.unref(webVue.Select), {
|
|
153
|
+
key: 1,
|
|
154
|
+
modelValue: form.value[item.key],
|
|
155
|
+
"onUpdate:modelValue": ($event) => form.value[item.key] = $event,
|
|
224
156
|
"allow-clear": "",
|
|
225
|
-
|
|
157
|
+
style: vue.normalizeStyle({ width: styleWidth(columnsMap.value[item.key]) }),
|
|
158
|
+
placeholder: `\u8BF7\u9009\u62E9${item.label}`
|
|
226
159
|
}, {
|
|
227
160
|
default: vue.withCtx(() => [
|
|
228
|
-
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(
|
|
161
|
+
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(getOptions(item), (opt) => {
|
|
229
162
|
return vue.openBlock(), vue.createBlock(vue.unref(webVue.Option), {
|
|
230
163
|
key: opt.value,
|
|
231
164
|
label: opt.label,
|
|
@@ -233,12 +166,21 @@ const _sfc_main = vue.defineComponent({
|
|
|
233
166
|
}, null, 8, ["label", "value"]);
|
|
234
167
|
}), 128))
|
|
235
168
|
]),
|
|
236
|
-
_:
|
|
237
|
-
},
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
169
|
+
_: 2
|
|
170
|
+
}, 1032, ["modelValue", "onUpdate:modelValue", "style", "placeholder"])) : vue.createCommentVNode("v-if", true),
|
|
171
|
+
item.component === "range-picker" ? (vue.openBlock(), vue.createBlock(vue.unref(webVue.RangePicker), {
|
|
172
|
+
key: 2,
|
|
173
|
+
modelValue: form.value[item.key].range,
|
|
174
|
+
"onUpdate:modelValue": ($event) => form.value[item.key].range = $event,
|
|
175
|
+
style: vue.normalizeStyle({ width: styleWidth(form.value[item.key]) }),
|
|
176
|
+
"value-format": "timestamp",
|
|
177
|
+
onClick: _cache[0] || (_cache[0] = vue.withModifiers(() => {
|
|
178
|
+
}, ["stop"]))
|
|
179
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "style"])) : vue.createCommentVNode("v-if", true)
|
|
180
|
+
]),
|
|
181
|
+
_: 2
|
|
182
|
+
}, 1032, ["active"]);
|
|
183
|
+
}), 128))
|
|
242
184
|
])) : vue.createCommentVNode("v-if", true)
|
|
243
185
|
]),
|
|
244
186
|
vue.createElementVNode("div", _hoisted_4, [
|
|
@@ -8,20 +8,25 @@ var typeMap = require("../../../../utils/typeMap.js");
|
|
|
8
8
|
const _hoisted_1 = { class: "cover-view" };
|
|
9
9
|
const _hoisted_2 = {
|
|
10
10
|
key: 1,
|
|
11
|
+
class: "no-img weixin"
|
|
12
|
+
};
|
|
13
|
+
const _hoisted_3 = {
|
|
14
|
+
key: 2,
|
|
11
15
|
class: "no-img"
|
|
12
16
|
};
|
|
13
|
-
const
|
|
14
|
-
const
|
|
15
|
-
const
|
|
16
|
-
const
|
|
17
|
-
const
|
|
18
|
-
const
|
|
19
|
-
const
|
|
20
|
-
const
|
|
21
|
-
const
|
|
22
|
-
const
|
|
23
|
-
const
|
|
24
|
-
const
|
|
17
|
+
const _hoisted_4 = { class: "batch-select" };
|
|
18
|
+
const _hoisted_5 = { class: "info-view" };
|
|
19
|
+
const _hoisted_6 = { class: "title_i" };
|
|
20
|
+
const _hoisted_7 = { class: "abttrite-v" };
|
|
21
|
+
const _hoisted_8 = { class: "left" };
|
|
22
|
+
const _hoisted_9 = { class: "abttr tags account" };
|
|
23
|
+
const _hoisted_10 = { class: "avatar-v" };
|
|
24
|
+
const _hoisted_11 = { class: "name" };
|
|
25
|
+
const _hoisted_12 = { key: 1 };
|
|
26
|
+
const _hoisted_13 = { class: "abttr tags user" };
|
|
27
|
+
const _hoisted_14 = { class: "abttr time" };
|
|
28
|
+
const _hoisted_15 = { class: "abttr time" };
|
|
29
|
+
const _hoisted_16 = { class: "right" };
|
|
25
30
|
const _sfc_main = vue.defineComponent({
|
|
26
31
|
__name: "index",
|
|
27
32
|
props: {
|
|
@@ -33,15 +38,28 @@ const _sfc_main = vue.defineComponent({
|
|
|
33
38
|
const props = __props;
|
|
34
39
|
const emit = __emit;
|
|
35
40
|
const { matrix } = props.extraAttrs || {};
|
|
36
|
-
const { getPlatformInfoById
|
|
37
|
-
const
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
41
|
+
const { getPlatformInfoById } = matrix || {};
|
|
42
|
+
const cover = vue.computed(() => {
|
|
43
|
+
if (props.item.cover) {
|
|
44
|
+
return props.item.cover;
|
|
45
|
+
}
|
|
46
|
+
if (props.item.payload) {
|
|
47
|
+
const _payload = JSON.parse(props.item.payload);
|
|
48
|
+
if (_payload[0] && _payload[0].covers.length) {
|
|
49
|
+
return _payload[0].covers[0];
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
return "";
|
|
44
53
|
});
|
|
54
|
+
const setAvatar = (account) => {
|
|
55
|
+
if (!account.avatar) {
|
|
56
|
+
return platformInfo.value.pfIcon;
|
|
57
|
+
}
|
|
58
|
+
if (props.item.platformId === 15) {
|
|
59
|
+
return platformInfo.value.pfIcon;
|
|
60
|
+
}
|
|
61
|
+
return account.avatar;
|
|
62
|
+
};
|
|
45
63
|
const platformInfo = vue.computed(() => {
|
|
46
64
|
return getPlatformInfoById(props.item.platformId);
|
|
47
65
|
});
|
|
@@ -67,62 +85,69 @@ const _sfc_main = vue.defineComponent({
|
|
|
67
85
|
onMouseleave: _cache[1] || (_cache[1] = ($event) => mouseLeaveFun($event, _ctx.item))
|
|
68
86
|
}, [
|
|
69
87
|
vue.createElementVNode("div", _hoisted_1, [
|
|
70
|
-
|
|
88
|
+
cover.value ? (vue.openBlock(), vue.createBlock(vue.unref(webVue.Image), {
|
|
71
89
|
key: 0,
|
|
72
|
-
src:
|
|
90
|
+
src: cover.value,
|
|
73
91
|
preview: false,
|
|
74
92
|
fit: "cover",
|
|
75
93
|
class: "image"
|
|
76
|
-
}, null, 8, ["src"])) : (vue.openBlock(), vue.createElementBlock("span", _hoisted_2, vue.toDisplayString(vue.unref(index.noCoverText)(_ctx.item)), 1)),
|
|
77
|
-
vue.createElementVNode("div",
|
|
94
|
+
}, null, 8, ["src"])) : _ctx.item.platformId === 20 ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_2, "\u5FAE\u4FE1\u7EC4\u7A3F")) : (vue.openBlock(), vue.createElementBlock("span", _hoisted_3, vue.toDisplayString(vue.unref(index.noCoverText)(_ctx.item)), 1)),
|
|
95
|
+
vue.createElementVNode("div", _hoisted_4, [
|
|
78
96
|
vue.renderSlot(_ctx.$slots, "batch", { row: _ctx.item })
|
|
79
97
|
])
|
|
80
98
|
]),
|
|
81
|
-
vue.createElementVNode("div",
|
|
99
|
+
vue.createElementVNode("div", _hoisted_5, [
|
|
82
100
|
vue.createElementVNode("div", {
|
|
83
101
|
class: "title",
|
|
84
102
|
onClick: clickTitle
|
|
85
103
|
}, [
|
|
86
104
|
vue.renderSlot(_ctx.$slots, "index"),
|
|
87
|
-
vue.createElementVNode("span",
|
|
105
|
+
vue.createElementVNode("span", _hoisted_6, vue.toDisplayString(_ctx.item.alias || _ctx.item.title || `\u5206\u53D1\u8BB0\u5F55${new Date().getTime()}`), 1)
|
|
88
106
|
]),
|
|
89
|
-
vue.createElementVNode("div",
|
|
90
|
-
vue.createElementVNode("div",
|
|
107
|
+
vue.createElementVNode("div", _hoisted_7, [
|
|
108
|
+
vue.createElementVNode("div", _hoisted_8, [
|
|
91
109
|
vue.createVNode(component, {
|
|
92
110
|
class: "icon",
|
|
93
111
|
doc: true,
|
|
94
112
|
type: docTypeMap[_ctx.item.contentType]
|
|
95
113
|
}, null, 8, ["type"]),
|
|
96
114
|
vue.renderSlot(_ctx.$slots, "tip"),
|
|
97
|
-
vue.createElementVNode("span",
|
|
98
|
-
account
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
115
|
+
vue.createElementVNode("span", _hoisted_9, [
|
|
116
|
+
_ctx.item.account ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 0 }, [
|
|
117
|
+
vue.createElementVNode("div", _hoisted_10, [
|
|
118
|
+
vue.createVNode(vue.unref(webVue.Image), {
|
|
119
|
+
class: "avatar",
|
|
120
|
+
src: setAvatar(_ctx.item.account),
|
|
121
|
+
preview: false,
|
|
122
|
+
fit: "cover"
|
|
123
|
+
}, null, 8, ["src"]),
|
|
124
|
+
vue.createVNode(vue.unref(webVue.Image), {
|
|
125
|
+
class: "pla-icon",
|
|
126
|
+
src: platformInfo.value.pfIcon,
|
|
127
|
+
preview: false,
|
|
128
|
+
fit: "cover"
|
|
129
|
+
}, null, 8, ["src"])
|
|
130
|
+
]),
|
|
131
|
+
vue.createElementVNode("span", _hoisted_11, vue.toDisplayString(_ctx.item.account.name || `\u7528\u6237${new Date().getTime()}`), 1)
|
|
132
|
+
], 64)) : (vue.openBlock(), vue.createElementBlock("span", _hoisted_12, "--"))
|
|
108
133
|
]),
|
|
109
134
|
vue.createElementVNode("span", {
|
|
110
135
|
class: vue.normalizeClass(["abttr tags state", [`p-state-${_ctx.item.publishState}`]])
|
|
111
136
|
}, vue.toDisplayString(vue.unref(typeMap.matrixPublishStateMap)[_ctx.item.publishState]), 3),
|
|
112
|
-
vue.createElementVNode("span",
|
|
113
|
-
vue.createElementVNode("span",
|
|
137
|
+
vue.createElementVNode("span", _hoisted_13, vue.toDisplayString(((_a = _ctx.item.user) == null ? void 0 : _a.alias) || "--"), 1),
|
|
138
|
+
vue.createElementVNode("span", _hoisted_14, [
|
|
114
139
|
vue.createVNode(vue.unref(icon.IconSubscribed)),
|
|
115
|
-
vue.createTextVNode(" \u53D1\u5E03\u65F6\u95F4: " + vue.toDisplayString(vue.unref(index.timeFormat)(_ctx.item.publishTime)), 1)
|
|
140
|
+
vue.createTextVNode(" \u53D1\u5E03\u65F6\u95F4: " + vue.toDisplayString(vue.unref(index.timeFormat)(_ctx.item.publishTime || _ctx.item.updatedAt)), 1)
|
|
116
141
|
]),
|
|
117
142
|
vue.createElementVNode("span", {
|
|
118
143
|
class: vue.normalizeClass(["abttr tags state", [`m-state-${_ctx.item.platformState}`]])
|
|
119
144
|
}, vue.toDisplayString(vue.unref(typeMap.matrixPublishFormalStateMap)[_ctx.item.platformState]), 3),
|
|
120
|
-
vue.createElementVNode("span",
|
|
145
|
+
vue.createElementVNode("span", _hoisted_15, [
|
|
121
146
|
vue.createVNode(vue.unref(icon.IconSend)),
|
|
122
147
|
vue.createTextVNode(" \u5206\u53D1\u65F6\u95F4: " + vue.toDisplayString(vue.unref(index.timeFormat)(_ctx.item.distributeTime)), 1)
|
|
123
148
|
])
|
|
124
149
|
]),
|
|
125
|
-
vue.createElementVNode("div",
|
|
150
|
+
vue.createElementVNode("div", _hoisted_16, [
|
|
126
151
|
vue.renderSlot(_ctx.$slots, "option", { row: _ctx.item })
|
|
127
152
|
])
|
|
128
153
|
])
|
|
@@ -35,6 +35,12 @@
|
|
|
35
35
|
height: 100%;
|
|
36
36
|
color: white;
|
|
37
37
|
font-size: 30px;
|
|
38
|
+
|
|
39
|
+
&.weixin {
|
|
40
|
+
font-size: 20px;
|
|
41
|
+
background: #89be89;
|
|
42
|
+
border-radius: 6px;
|
|
43
|
+
}
|
|
38
44
|
}
|
|
39
45
|
}
|
|
40
46
|
|
|
@@ -93,11 +99,25 @@
|
|
|
93
99
|
.account {
|
|
94
100
|
margin-left: 10px;
|
|
95
101
|
|
|
96
|
-
.avatar {
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
102
|
+
.avatar-v {
|
|
103
|
+
position: relative;
|
|
104
|
+
|
|
105
|
+
.avatar {
|
|
106
|
+
width: 25px;
|
|
107
|
+
height: 25px;
|
|
108
|
+
margin-right: 10px;
|
|
109
|
+
border-radius: 50%;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
.pla-icon {
|
|
113
|
+
position: absolute;
|
|
114
|
+
right: -5px;
|
|
115
|
+
bottom: 1px;
|
|
116
|
+
width: 12px;
|
|
117
|
+
height: 12px;
|
|
118
|
+
margin-right: 10px;
|
|
119
|
+
border-radius: 50%;
|
|
120
|
+
}
|
|
101
121
|
|
|
102
122
|
img {
|
|
103
123
|
width: 100%;
|
|
@@ -117,18 +137,42 @@
|
|
|
117
137
|
content: '';
|
|
118
138
|
}
|
|
119
139
|
|
|
140
|
+
&.p-state-1 {
|
|
141
|
+
// 处理中
|
|
142
|
+
color: rgb(var(--primary-6));
|
|
143
|
+
}
|
|
144
|
+
|
|
120
145
|
&.p-state-2 {
|
|
121
146
|
// 成功
|
|
122
147
|
color: #4caf50;
|
|
123
148
|
}
|
|
124
149
|
|
|
150
|
+
&.p-state-3,
|
|
151
|
+
&.p-state-4 {
|
|
152
|
+
// 审核
|
|
153
|
+
color: #ff9800;
|
|
154
|
+
}
|
|
155
|
+
|
|
125
156
|
&.m-state-0 {
|
|
126
157
|
// 成功
|
|
127
158
|
color: #4caf50;
|
|
128
159
|
}
|
|
129
160
|
|
|
130
|
-
&.m-state
|
|
131
|
-
|
|
161
|
+
&.m-state--1,
|
|
162
|
+
&.m-state-1,
|
|
163
|
+
&.m-state-2,
|
|
164
|
+
&.m-state-3,
|
|
165
|
+
&.m-state-4,
|
|
166
|
+
&.m-state-5,
|
|
167
|
+
&.m-state-6,
|
|
168
|
+
&.m-state-7,
|
|
169
|
+
&.m-state-8,
|
|
170
|
+
&.m-state-9,
|
|
171
|
+
&.m-state-10,
|
|
172
|
+
&.m-state-11,
|
|
173
|
+
&.m-state-12,
|
|
174
|
+
&.m-state-13 {
|
|
175
|
+
// 异常
|
|
132
176
|
color: #ff9800;
|
|
133
177
|
}
|
|
134
178
|
}
|
|
@@ -968,6 +968,11 @@
|
|
|
968
968
|
color: white;
|
|
969
969
|
font-size: 30px;
|
|
970
970
|
}
|
|
971
|
+
.matrix-records-item-view .cover-view .no-img.weixin {
|
|
972
|
+
font-size: 20px;
|
|
973
|
+
background: #89be89;
|
|
974
|
+
border-radius: 6px;
|
|
975
|
+
}
|
|
971
976
|
.matrix-records-item-view .info-view {
|
|
972
977
|
display: flex;
|
|
973
978
|
flex: 1;
|
|
@@ -1019,13 +1024,25 @@
|
|
|
1019
1024
|
.matrix-records-item-view .info-view .abttrite-v .left .account {
|
|
1020
1025
|
margin-left: 10px;
|
|
1021
1026
|
}
|
|
1022
|
-
.matrix-records-item-view .info-view .abttrite-v .left .account .avatar {
|
|
1027
|
+
.matrix-records-item-view .info-view .abttrite-v .left .account .avatar-v {
|
|
1028
|
+
position: relative;
|
|
1029
|
+
}
|
|
1030
|
+
.matrix-records-item-view .info-view .abttrite-v .left .account .avatar-v .avatar {
|
|
1023
1031
|
width: 25px;
|
|
1024
1032
|
height: 25px;
|
|
1025
1033
|
margin-right: 10px;
|
|
1026
1034
|
border-radius: 50%;
|
|
1027
1035
|
}
|
|
1028
|
-
.matrix-records-item-view .info-view .abttrite-v .left .account .avatar
|
|
1036
|
+
.matrix-records-item-view .info-view .abttrite-v .left .account .avatar-v .pla-icon {
|
|
1037
|
+
position: absolute;
|
|
1038
|
+
right: -5px;
|
|
1039
|
+
bottom: 1px;
|
|
1040
|
+
width: 12px;
|
|
1041
|
+
height: 12px;
|
|
1042
|
+
margin-right: 10px;
|
|
1043
|
+
border-radius: 50%;
|
|
1044
|
+
}
|
|
1045
|
+
.matrix-records-item-view .info-view .abttrite-v .left .account .avatar-v img {
|
|
1029
1046
|
width: 100%;
|
|
1030
1047
|
height: 100%;
|
|
1031
1048
|
}
|
|
@@ -1038,13 +1055,33 @@
|
|
|
1038
1055
|
border-radius: 50%;
|
|
1039
1056
|
content: '';
|
|
1040
1057
|
}
|
|
1058
|
+
.matrix-records-item-view .info-view .abttrite-v .left .state.p-state-1 {
|
|
1059
|
+
color: rgb(var(--primary-6));
|
|
1060
|
+
}
|
|
1041
1061
|
.matrix-records-item-view .info-view .abttrite-v .left .state.p-state-2 {
|
|
1042
1062
|
color: #4caf50;
|
|
1043
1063
|
}
|
|
1064
|
+
.matrix-records-item-view .info-view .abttrite-v .left .state.p-state-3,
|
|
1065
|
+
.matrix-records-item-view .info-view .abttrite-v .left .state.p-state-4 {
|
|
1066
|
+
color: #ff9800;
|
|
1067
|
+
}
|
|
1044
1068
|
.matrix-records-item-view .info-view .abttrite-v .left .state.m-state-0 {
|
|
1045
1069
|
color: #4caf50;
|
|
1046
1070
|
}
|
|
1047
|
-
.matrix-records-item-view .info-view .abttrite-v .left .state.m-state
|
|
1071
|
+
.matrix-records-item-view .info-view .abttrite-v .left .state.m-state--1,
|
|
1072
|
+
.matrix-records-item-view .info-view .abttrite-v .left .state.m-state-1,
|
|
1073
|
+
.matrix-records-item-view .info-view .abttrite-v .left .state.m-state-2,
|
|
1074
|
+
.matrix-records-item-view .info-view .abttrite-v .left .state.m-state-3,
|
|
1075
|
+
.matrix-records-item-view .info-view .abttrite-v .left .state.m-state-4,
|
|
1076
|
+
.matrix-records-item-view .info-view .abttrite-v .left .state.m-state-5,
|
|
1077
|
+
.matrix-records-item-view .info-view .abttrite-v .left .state.m-state-6,
|
|
1078
|
+
.matrix-records-item-view .info-view .abttrite-v .left .state.m-state-7,
|
|
1079
|
+
.matrix-records-item-view .info-view .abttrite-v .left .state.m-state-8,
|
|
1080
|
+
.matrix-records-item-view .info-view .abttrite-v .left .state.m-state-9,
|
|
1081
|
+
.matrix-records-item-view .info-view .abttrite-v .left .state.m-state-10,
|
|
1082
|
+
.matrix-records-item-view .info-view .abttrite-v .left .state.m-state-11,
|
|
1083
|
+
.matrix-records-item-view .info-view .abttrite-v .left .state.m-state-12,
|
|
1084
|
+
.matrix-records-item-view .info-view .abttrite-v .left .state.m-state-13 {
|
|
1048
1085
|
color: #ff9800;
|
|
1049
1086
|
}
|
|
1050
1087
|
.matrix-records-item-view .info-view .abttrite-v .right {
|
package/lib/index.css
CHANGED
|
@@ -2991,6 +2991,11 @@
|
|
|
2991
2991
|
color: white;
|
|
2992
2992
|
font-size: 30px;
|
|
2993
2993
|
}
|
|
2994
|
+
.matrix-records-item-view .cover-view .no-img.weixin {
|
|
2995
|
+
font-size: 20px;
|
|
2996
|
+
background: #89be89;
|
|
2997
|
+
border-radius: 6px;
|
|
2998
|
+
}
|
|
2994
2999
|
.matrix-records-item-view .info-view {
|
|
2995
3000
|
display: flex;
|
|
2996
3001
|
flex: 1;
|
|
@@ -3042,13 +3047,25 @@
|
|
|
3042
3047
|
.matrix-records-item-view .info-view .abttrite-v .left .account {
|
|
3043
3048
|
margin-left: 10px;
|
|
3044
3049
|
}
|
|
3045
|
-
.matrix-records-item-view .info-view .abttrite-v .left .account .avatar {
|
|
3050
|
+
.matrix-records-item-view .info-view .abttrite-v .left .account .avatar-v {
|
|
3051
|
+
position: relative;
|
|
3052
|
+
}
|
|
3053
|
+
.matrix-records-item-view .info-view .abttrite-v .left .account .avatar-v .avatar {
|
|
3046
3054
|
width: 25px;
|
|
3047
3055
|
height: 25px;
|
|
3048
3056
|
margin-right: 10px;
|
|
3049
3057
|
border-radius: 50%;
|
|
3050
3058
|
}
|
|
3051
|
-
.matrix-records-item-view .info-view .abttrite-v .left .account .avatar
|
|
3059
|
+
.matrix-records-item-view .info-view .abttrite-v .left .account .avatar-v .pla-icon {
|
|
3060
|
+
position: absolute;
|
|
3061
|
+
right: -5px;
|
|
3062
|
+
bottom: 1px;
|
|
3063
|
+
width: 12px;
|
|
3064
|
+
height: 12px;
|
|
3065
|
+
margin-right: 10px;
|
|
3066
|
+
border-radius: 50%;
|
|
3067
|
+
}
|
|
3068
|
+
.matrix-records-item-view .info-view .abttrite-v .left .account .avatar-v img {
|
|
3052
3069
|
width: 100%;
|
|
3053
3070
|
height: 100%;
|
|
3054
3071
|
}
|
|
@@ -3061,13 +3078,33 @@
|
|
|
3061
3078
|
border-radius: 50%;
|
|
3062
3079
|
content: '';
|
|
3063
3080
|
}
|
|
3081
|
+
.matrix-records-item-view .info-view .abttrite-v .left .state.p-state-1 {
|
|
3082
|
+
color: rgb(var(--primary-6));
|
|
3083
|
+
}
|
|
3064
3084
|
.matrix-records-item-view .info-view .abttrite-v .left .state.p-state-2 {
|
|
3065
3085
|
color: #4caf50;
|
|
3066
3086
|
}
|
|
3087
|
+
.matrix-records-item-view .info-view .abttrite-v .left .state.p-state-3,
|
|
3088
|
+
.matrix-records-item-view .info-view .abttrite-v .left .state.p-state-4 {
|
|
3089
|
+
color: #ff9800;
|
|
3090
|
+
}
|
|
3067
3091
|
.matrix-records-item-view .info-view .abttrite-v .left .state.m-state-0 {
|
|
3068
3092
|
color: #4caf50;
|
|
3069
3093
|
}
|
|
3070
|
-
.matrix-records-item-view .info-view .abttrite-v .left .state.m-state
|
|
3094
|
+
.matrix-records-item-view .info-view .abttrite-v .left .state.m-state--1,
|
|
3095
|
+
.matrix-records-item-view .info-view .abttrite-v .left .state.m-state-1,
|
|
3096
|
+
.matrix-records-item-view .info-view .abttrite-v .left .state.m-state-2,
|
|
3097
|
+
.matrix-records-item-view .info-view .abttrite-v .left .state.m-state-3,
|
|
3098
|
+
.matrix-records-item-view .info-view .abttrite-v .left .state.m-state-4,
|
|
3099
|
+
.matrix-records-item-view .info-view .abttrite-v .left .state.m-state-5,
|
|
3100
|
+
.matrix-records-item-view .info-view .abttrite-v .left .state.m-state-6,
|
|
3101
|
+
.matrix-records-item-view .info-view .abttrite-v .left .state.m-state-7,
|
|
3102
|
+
.matrix-records-item-view .info-view .abttrite-v .left .state.m-state-8,
|
|
3103
|
+
.matrix-records-item-view .info-view .abttrite-v .left .state.m-state-9,
|
|
3104
|
+
.matrix-records-item-view .info-view .abttrite-v .left .state.m-state-10,
|
|
3105
|
+
.matrix-records-item-view .info-view .abttrite-v .left .state.m-state-11,
|
|
3106
|
+
.matrix-records-item-view .info-view .abttrite-v .left .state.m-state-12,
|
|
3107
|
+
.matrix-records-item-view .info-view .abttrite-v .left .state.m-state-13 {
|
|
3071
3108
|
color: #ff9800;
|
|
3072
3109
|
}
|
|
3073
3110
|
.matrix-records-item-view .info-view .abttrite-v .right {
|