@cmstops/pro-compo 0.1.20 → 0.1.22
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 +182 -3
- package/dist/index.min.css +1 -1
- package/es/baseFilter/component.js +187 -0
- package/es/baseFilter/index.d.ts +2 -0
- package/es/baseFilter/index.js +7 -0
- package/es/baseFilter/style/css.js +1 -0
- package/es/baseFilter/style/index.css +9 -0
- package/es/baseFilter/style/index.d.ts +1 -0
- package/es/baseFilter/style/index.js +1 -0
- package/es/baseFilter/style/index.less +10 -0
- package/es/contentDetailList/components/Content/DocItem/index.js +1 -1
- package/es/contentDetailList/components/Content/DocMpItem/index.d.ts +0 -0
- package/es/contentDetailList/components/Content/DocMpItem/index.js +117 -0
- package/es/contentDetailList/components/Content/KongoNavItem/index.js +2 -2
- package/es/contentDetailList/components/Content/MaccountItem/index.js +1 -1
- package/es/contentDetailList/components/Content/index.js +43 -0
- package/es/contentDetailList/components/DocTags/index.d.ts +0 -0
- package/es/contentDetailList/components/{Content/KongoNavItem/DocTags → DocTags}/index.js +9 -4
- package/es/contentDetailList/style/ComoItem.less +1 -1
- package/es/contentDetailList/style/DocItem.less +1 -1
- package/es/contentDetailList/style/DocMpItem.less +136 -0
- package/es/contentDetailList/style/LiveItem.less +1 -1
- package/es/contentDetailList/style/index.css +118 -3
- package/es/contentDetailList/style/index.less +1 -0
- package/es/contentModal/component.js +0 -1
- package/es/contentModal/components/ViewAllColumn/index.js +1 -0
- package/es/editMetaInfo/component.d.ts +0 -0
- package/es/editMetaInfo/component.js +87 -0
- package/es/editMetaInfo/components/metaInfoForm.d.ts +0 -0
- package/es/editMetaInfo/components/metaInfoForm.js +621 -0
- package/es/editMetaInfo/index.d.ts +2 -0
- package/es/editMetaInfo/index.js +7 -0
- package/es/editMetaInfo/script/api.d.ts +6 -0
- package/es/editMetaInfo/script/api.js +17 -0
- package/es/editMetaInfo/script/restaurants.d.ts +4 -0
- package/es/editMetaInfo/script/restaurants.js +127 -0
- package/es/editMetaInfo/style/css.js +1 -0
- package/es/editMetaInfo/style/index.css +20 -0
- package/es/editMetaInfo/style/index.d.ts +1 -0
- package/es/editMetaInfo/style/index.js +1 -0
- package/es/editMetaInfo/style/index.less +30 -0
- package/es/hooks/dialogVisible.d.ts +8 -0
- package/es/hooks/dialogVisible.js +19 -0
- package/es/index.css +182 -3
- package/es/index.d.ts +2 -0
- package/es/index.js +2 -0
- package/es/index.less +2 -0
- package/es/selectThumb/component.js +3 -1
- package/es/selectThumb/components/colorPalette.js +32 -26
- package/es/selectThumb/components/colorPicker.d.ts +0 -0
- package/es/selectThumb/components/colorPicker.js +54 -0
- package/es/selectThumb/style/colorPalette.less +31 -0
- package/es/selectThumb/style/index.css +35 -0
- package/es/selectThumb/style/index.less +7 -0
- package/es/typeIcons/component.js +5 -2
- package/es/utils/index.d.ts +1 -0
- package/es/utils/index.js +16 -1
- package/es/utils/typeMap.d.ts +17 -13
- package/es/utils/typeMap.js +18 -2
- package/lib/baseFilter/component.js +188 -0
- package/lib/baseFilter/index.js +8 -0
- package/lib/baseFilter/style/css.js +2 -0
- package/lib/baseFilter/style/index.css +9 -0
- package/lib/baseFilter/style/index.js +2 -0
- package/lib/baseFilter/style/index.less +10 -0
- package/lib/contentDetailList/components/Content/DocItem/index.js +1 -1
- package/lib/contentDetailList/components/Content/DocMpItem/index.js +118 -0
- package/lib/contentDetailList/components/Content/KongoNavItem/index.js +2 -2
- package/lib/contentDetailList/components/Content/MaccountItem/index.js +1 -1
- package/lib/contentDetailList/components/Content/index.js +43 -0
- package/lib/contentDetailList/components/{Content/KongoNavItem/DocTags → DocTags}/index.js +9 -4
- package/lib/contentDetailList/style/ComoItem.less +1 -1
- package/lib/contentDetailList/style/DocItem.less +1 -1
- package/lib/contentDetailList/style/DocMpItem.less +136 -0
- package/lib/contentDetailList/style/LiveItem.less +1 -1
- package/lib/contentDetailList/style/index.css +118 -3
- package/lib/contentDetailList/style/index.less +1 -0
- package/lib/contentModal/component.js +0 -1
- package/lib/contentModal/components/ViewAllColumn/index.js +1 -0
- package/lib/editMetaInfo/component.js +88 -0
- package/lib/editMetaInfo/components/metaInfoForm.js +622 -0
- package/lib/editMetaInfo/index.js +8 -0
- package/lib/editMetaInfo/script/api.js +20 -0
- package/lib/editMetaInfo/script/restaurants.js +128 -0
- package/lib/editMetaInfo/style/css.js +2 -0
- package/lib/editMetaInfo/style/index.css +20 -0
- package/lib/editMetaInfo/style/index.js +2 -0
- package/lib/editMetaInfo/style/index.less +30 -0
- package/lib/hooks/dialogVisible.js +20 -0
- package/lib/index.css +182 -3
- package/lib/index.js +4 -0
- package/lib/index.less +2 -0
- package/lib/selectThumb/component.js +3 -1
- package/lib/selectThumb/components/colorPalette.js +32 -26
- package/lib/selectThumb/components/colorPicker.js +55 -0
- package/lib/selectThumb/style/colorPalette.less +31 -0
- package/lib/selectThumb/style/index.css +35 -0
- package/lib/selectThumb/style/index.less +7 -0
- package/lib/typeIcons/component.js +4 -1
- package/lib/utils/index.js +16 -0
- package/lib/utils/typeMap.js +19 -1
- package/package.json +9 -9
- /package/es/{contentDetailList/components/Content/KongoNavItem/DocTags/index.d.ts → baseFilter/component.d.ts} +0 -0
|
@@ -80,6 +80,35 @@
|
|
|
80
80
|
.select-thumb-container .thumb-card-container .img-v:hover .mask {
|
|
81
81
|
display: flex;
|
|
82
82
|
}
|
|
83
|
+
.select-thumb-container .color-radio-group {
|
|
84
|
+
overflow: hidden;
|
|
85
|
+
}
|
|
86
|
+
.select-thumb-container .color-radio-group .arco-radio-button {
|
|
87
|
+
width: 32px;
|
|
88
|
+
height: 32px;
|
|
89
|
+
padding: 0;
|
|
90
|
+
font-size: 0 !important;
|
|
91
|
+
overflow: hidden !important;
|
|
92
|
+
background: transparent !important;
|
|
93
|
+
border-width: 0 !important;
|
|
94
|
+
box-shadow: none !important;
|
|
95
|
+
position: relative;
|
|
96
|
+
}
|
|
97
|
+
.select-thumb-container .color-radio-group .arco-radio-button.arco-radio-checked::after {
|
|
98
|
+
box-sizing: content-box;
|
|
99
|
+
content: '';
|
|
100
|
+
border: 2px solid #fff;
|
|
101
|
+
border-left: 0;
|
|
102
|
+
border-top: 0;
|
|
103
|
+
height: 11px;
|
|
104
|
+
left: 12px;
|
|
105
|
+
position: absolute;
|
|
106
|
+
top: 7px;
|
|
107
|
+
transform: rotate(45deg) scaleY(1);
|
|
108
|
+
width: 5px;
|
|
109
|
+
transition: transform 0.15s ease-in 0.05s;
|
|
110
|
+
transform-origin: center;
|
|
111
|
+
}
|
|
83
112
|
.select-thumb-container .title {
|
|
84
113
|
font-size: 14px;
|
|
85
114
|
color: #4e5969;
|
|
@@ -103,3 +132,9 @@
|
|
|
103
132
|
color: red;
|
|
104
133
|
margin-right: 2px !important;
|
|
105
134
|
}
|
|
135
|
+
.select-thumb-container .color-picker-input {
|
|
136
|
+
width: 32px;
|
|
137
|
+
height: 32px;
|
|
138
|
+
border: none;
|
|
139
|
+
padding: 0px 2px;
|
|
140
|
+
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
.select-thumb-container {
|
|
2
|
+
@radio-button-size: 32px;
|
|
2
3
|
@import './card.less';
|
|
3
4
|
@import './colorPalette.less';
|
|
4
5
|
.title {
|
|
@@ -24,4 +25,10 @@
|
|
|
24
25
|
color: red;
|
|
25
26
|
margin-right: 2px !important;
|
|
26
27
|
}
|
|
28
|
+
.color-picker-input {
|
|
29
|
+
width: @radio-button-size;
|
|
30
|
+
height: @radio-button-size;
|
|
31
|
+
border: none;
|
|
32
|
+
padding: 0px 2px;
|
|
33
|
+
}
|
|
27
34
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent, openBlock, createElementBlock, createCommentVNode, createBlock, unref, Fragment, createVNode } from "vue";
|
|
2
|
-
import { IconXinwen, IconShipin, IconYinyue, IconTuji, IconXiaoshipin, IconZhuanti, IconYinpinji, IconShipinji, IconH5, IconZhibo, IconTupian, IconGaojian } from "@arco-iconbox/vue-cmstop-icons";
|
|
2
|
+
import { IconXinwen, IconShipin, IconYinyue, IconTuji, IconXiaoshipin, IconZhuanti, IconYinpinji, IconShipinji, IconH5, IconZhibo, IconTupian, IconGongzhonghao, IconGaojian } from "@arco-iconbox/vue-cmstop-icons";
|
|
3
3
|
const _hoisted_1 = { class: "type-icons-container" };
|
|
4
4
|
const _sfc_main = defineComponent({
|
|
5
5
|
...{ name: "typeIcons" },
|
|
@@ -46,8 +46,11 @@ const _sfc_main = defineComponent({
|
|
|
46
46
|
createCommentVNode("------------------------------- \u7D20\u6750\u7C7B\u578B --------------------------------------"),
|
|
47
47
|
createCommentVNode(" \u56FE\u7247 "),
|
|
48
48
|
createVNode(unref(IconTupian))
|
|
49
|
-
], 2112)) : (openBlock(), createElementBlock(Fragment, { key: 11 }, [
|
|
49
|
+
], 2112)) : props.type === "mpdoc" ? (openBlock(), createElementBlock(Fragment, { key: 11 }, [
|
|
50
50
|
createCommentVNode("------------------------------- \u5176\u4ED6\u7C7B\u578B --------------------------------------"),
|
|
51
|
+
createCommentVNode(" \u516C\u4F17\u53F7\u7A3F\u4EF6 "),
|
|
52
|
+
createVNode(unref(IconGongzhonghao))
|
|
53
|
+
], 2112)) : (openBlock(), createElementBlock(Fragment, { key: 12 }, [
|
|
51
54
|
createCommentVNode(" \u5FAE\u4FE1\u7A3F\u4EF6 "),
|
|
52
55
|
createCommentVNode(" <icon-weixingaojian /> "),
|
|
53
56
|
createCommentVNode(" \u8F6E\u535A\u56FE\u96C6 "),
|
package/es/utils/index.d.ts
CHANGED
|
@@ -10,3 +10,4 @@ export declare const to: <T, U = Error>(promise: Promise<T>, errorExt?: any) =>
|
|
|
10
10
|
export declare function replaceSuffix(str: string, insert: string): string;
|
|
11
11
|
export declare const noCoverText: (item: any) => any;
|
|
12
12
|
export declare const timeFormat: (value: any) => string;
|
|
13
|
+
export declare const validateForm: (formRef: any) => Promise<unknown>;
|
package/es/utils/index.js
CHANGED
|
@@ -45,4 +45,19 @@ const timeFormat = (value) => {
|
|
|
45
45
|
const date = new Date(value);
|
|
46
46
|
return `${date.getFullYear()}-${date.getMonth() + 1}-${date.getDate()} ${date.getHours() < 10 ? `0${date.getHours()}` : date.getHours()}:${date.getMinutes() < 10 ? `0${date.getMinutes()}` : date.getMinutes()}`;
|
|
47
47
|
};
|
|
48
|
-
|
|
48
|
+
const validateForm = (formRef) => {
|
|
49
|
+
return new Promise((resolve, reject) => {
|
|
50
|
+
try {
|
|
51
|
+
formRef.value.validate((valid) => {
|
|
52
|
+
if (valid) {
|
|
53
|
+
resolve(false);
|
|
54
|
+
} else {
|
|
55
|
+
resolve(true);
|
|
56
|
+
}
|
|
57
|
+
});
|
|
58
|
+
} catch (error) {
|
|
59
|
+
resolve(false);
|
|
60
|
+
}
|
|
61
|
+
});
|
|
62
|
+
};
|
|
63
|
+
export { dateYYYYDDMMHHmm, generateUUID, noCoverText, replaceSuffix, timeFormat, to, validateForm };
|
package/es/utils/typeMap.d.ts
CHANGED
|
@@ -44,6 +44,7 @@ export declare const catalogMap: {
|
|
|
44
44
|
mpList: string;
|
|
45
45
|
mpAccount: string;
|
|
46
46
|
mpTopic: string;
|
|
47
|
+
mpContent: string;
|
|
47
48
|
};
|
|
48
49
|
export declare const target_type_map: {
|
|
49
50
|
3: string;
|
|
@@ -54,6 +55,10 @@ export declare const target_type_map: {
|
|
|
54
55
|
8: string;
|
|
55
56
|
9: string;
|
|
56
57
|
10: string;
|
|
58
|
+
13: string;
|
|
59
|
+
14: string;
|
|
60
|
+
15: string;
|
|
61
|
+
16: string;
|
|
57
62
|
};
|
|
58
63
|
export declare const key_target_type_map: {
|
|
59
64
|
3: string;
|
|
@@ -66,6 +71,9 @@ export declare const key_target_type_map: {
|
|
|
66
71
|
11: string;
|
|
67
72
|
12: string;
|
|
68
73
|
13: string;
|
|
74
|
+
14: string;
|
|
75
|
+
15: string;
|
|
76
|
+
16: string;
|
|
69
77
|
};
|
|
70
78
|
export declare const approveFlowStatusMap: {
|
|
71
79
|
1: string;
|
|
@@ -92,6 +100,9 @@ export declare const compoColumnsWithKeyMap: {
|
|
|
92
100
|
tv: string;
|
|
93
101
|
mp_account: string;
|
|
94
102
|
column: string;
|
|
103
|
+
image: string;
|
|
104
|
+
timeline: string;
|
|
105
|
+
rank: string;
|
|
95
106
|
};
|
|
96
107
|
export declare const compoColumnsMap: () => any;
|
|
97
108
|
export declare const contentList_list_type_map: {
|
|
@@ -111,19 +122,12 @@ export declare const contentList_relation_type_map: {
|
|
|
111
122
|
4: string;
|
|
112
123
|
10: string;
|
|
113
124
|
};
|
|
114
|
-
export declare const contentList_layout_map:
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
timeline: string;
|
|
121
|
-
lbs: string;
|
|
122
|
-
};
|
|
123
|
-
export declare const mp_type_map: {
|
|
124
|
-
1: string;
|
|
125
|
-
2: string;
|
|
126
|
-
};
|
|
125
|
+
export declare const contentList_layout_map: any;
|
|
126
|
+
export declare const mp_type_map: any;
|
|
127
|
+
export declare const mpTypeOptions: () => {
|
|
128
|
+
value: string;
|
|
129
|
+
label: any;
|
|
130
|
+
}[];
|
|
127
131
|
export declare const kongo_source_map: {
|
|
128
132
|
app: string;
|
|
129
133
|
url: string;
|
package/es/utils/typeMap.js
CHANGED
|
@@ -20,7 +20,10 @@ const componentsColumns = {
|
|
|
20
20
|
tv: { value: "tv", label: "\u7535\u89C6\u7EC4\u4EF6", simple: true },
|
|
21
21
|
mp_account: { value: "mp_account", label: "\u516C\u4F17\u53F7\u7EC4\u4EF6" },
|
|
22
22
|
column: { value: "column", label: "\u5206\u680F\u7EC4\u4EF6" },
|
|
23
|
-
kongo: { value: "kongo", label: "\u529F\u80FD\u5BFC\u822A\u7EC4\u4EF6" }
|
|
23
|
+
kongo: { value: "kongo", label: "\u529F\u80FD\u5BFC\u822A\u7EC4\u4EF6" },
|
|
24
|
+
picture: { value: "picture", label: "\u56FE\u7247\u7EC4\u4EF6", simple: true },
|
|
25
|
+
timeline: { value: "timeline", label: "\u65F6\u95F4\u94FE\u7EC4\u4EF6" },
|
|
26
|
+
rank: { value: "rank", label: "\u699C\u5355\u7EC4\u4EF6" }
|
|
24
27
|
};
|
|
25
28
|
const compoColumnsMap = () => {
|
|
26
29
|
const obj = {};
|
|
@@ -56,6 +59,19 @@ const contentList_layout_map = {
|
|
|
56
59
|
timeline: "\u65F6\u95F4\u94FE",
|
|
57
60
|
lbs: "LBS\u9891\u9053"
|
|
58
61
|
};
|
|
62
|
+
const mp_type_map = {
|
|
63
|
+
1: "\u4E2A\u4EBA\u53F7",
|
|
64
|
+
2: "\u7EC4\u7EC7\u53F7"
|
|
65
|
+
};
|
|
66
|
+
const mpTypeOptions = () => {
|
|
67
|
+
const arr = Object.keys(mp_type_map).map((key) => {
|
|
68
|
+
return {
|
|
69
|
+
value: key,
|
|
70
|
+
label: mp_type_map[key]
|
|
71
|
+
};
|
|
72
|
+
});
|
|
73
|
+
return [{ value: "", label: "\u5168\u90E8" }, ...arr];
|
|
74
|
+
};
|
|
59
75
|
const kongo_source_map = {
|
|
60
76
|
app: "\u5E94\u7528",
|
|
61
77
|
url: "\u94FE\u63A5",
|
|
@@ -84,4 +100,4 @@ const calcApprovingDependent = (data) => {
|
|
|
84
100
|
}
|
|
85
101
|
return alias;
|
|
86
102
|
};
|
|
87
|
-
export { approveFlowStatusMap, calcApprovingDependent, calcApprovingUser, compoColumnsMap, componentsColumns, contentList_layout_map, contentList_list_type_map, contentList_relation_type_map, kongo_source_map };
|
|
103
|
+
export { approveFlowStatusMap, calcApprovingDependent, calcApprovingUser, compoColumnsMap, componentsColumns, contentList_layout_map, contentList_list_type_map, contentList_relation_type_map, kongo_source_map, mpTypeOptions, mp_type_map };
|
|
@@ -0,0 +1,188 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var vue = require("vue");
|
|
3
|
+
var webVue = require("@arco-design/web-vue");
|
|
4
|
+
var doc = require("../utils/doc.js");
|
|
5
|
+
var typeMap = require("../utils/typeMap.js");
|
|
6
|
+
var config = require("../config.js");
|
|
7
|
+
const _hoisted_1 = { class: "base-filter-container" };
|
|
8
|
+
const _hoisted_2 = { class: "left" };
|
|
9
|
+
const _hoisted_3 = {
|
|
10
|
+
key: 0,
|
|
11
|
+
class: "form-ul"
|
|
12
|
+
};
|
|
13
|
+
const _hoisted_4 = { class: "right" };
|
|
14
|
+
const _sfc_main = vue.defineComponent({
|
|
15
|
+
...{ name: "baseFilter" },
|
|
16
|
+
__name: "component",
|
|
17
|
+
props: {
|
|
18
|
+
BASE_API: {},
|
|
19
|
+
columns: {},
|
|
20
|
+
formatQuery: { type: Boolean }
|
|
21
|
+
},
|
|
22
|
+
emits: ["search"],
|
|
23
|
+
setup(__props, { emit }) {
|
|
24
|
+
const props = __props;
|
|
25
|
+
props.BASE_API || config.DEFAULT_BASE_API;
|
|
26
|
+
const render = vue.ref(false);
|
|
27
|
+
const form = vue.ref({});
|
|
28
|
+
const columnsKeys = vue.computed(() => props.columns.map((column) => column.key));
|
|
29
|
+
const columnsMap = vue.computed(() => {
|
|
30
|
+
return props.columns.reduce((map, column) => {
|
|
31
|
+
map[column.key] = column;
|
|
32
|
+
return map;
|
|
33
|
+
}, {});
|
|
34
|
+
});
|
|
35
|
+
const formKeys = vue.computed(() => Object.keys(form.value));
|
|
36
|
+
const hasKey = (key) => formKeys.value.includes(key);
|
|
37
|
+
const styleWidth = (item) => {
|
|
38
|
+
if (item.range) {
|
|
39
|
+
return item.width ? item.width : "260px";
|
|
40
|
+
}
|
|
41
|
+
return item.width ? item.width : "150px";
|
|
42
|
+
};
|
|
43
|
+
const renderForm = () => {
|
|
44
|
+
const _form = {};
|
|
45
|
+
const rangeTemp = {};
|
|
46
|
+
props.columns.forEach((column) => {
|
|
47
|
+
if (column.range) {
|
|
48
|
+
if (!rangeTemp[column.range]) {
|
|
49
|
+
rangeTemp[column.range] = { range: [] };
|
|
50
|
+
}
|
|
51
|
+
if (column.width) {
|
|
52
|
+
rangeTemp[column.range].width = column.width;
|
|
53
|
+
}
|
|
54
|
+
rangeTemp[column.range][column.key] = column.defaultValue || "";
|
|
55
|
+
_form[column.range] = rangeTemp[column.range];
|
|
56
|
+
} else {
|
|
57
|
+
_form[column.key] = column.defaultValue || "";
|
|
58
|
+
}
|
|
59
|
+
});
|
|
60
|
+
render.value = true;
|
|
61
|
+
form.value = _form;
|
|
62
|
+
console.log("_form", _form);
|
|
63
|
+
};
|
|
64
|
+
const formMatte = (_form) => {
|
|
65
|
+
Object.keys(_form).forEach((key) => {
|
|
66
|
+
var _a, _b;
|
|
67
|
+
if (((_b = (_a = _form[key]) == null ? void 0 : _a.range) == null ? void 0 : _b.length) > 0) {
|
|
68
|
+
Object.keys(_form[key]).forEach((k, index) => {
|
|
69
|
+
if (k !== "range" && k !== "width") {
|
|
70
|
+
_form[k] = Math.floor(_form[key].range[index - 1] / 1e3);
|
|
71
|
+
}
|
|
72
|
+
});
|
|
73
|
+
}
|
|
74
|
+
});
|
|
75
|
+
const _parmas = { ..._form };
|
|
76
|
+
Object.keys(_parmas).forEach((key) => {
|
|
77
|
+
var _a, _b;
|
|
78
|
+
if (((_b = (_a = _parmas[key]) == null ? void 0 : _a.range) == null ? void 0 : _b.length) > 0) {
|
|
79
|
+
delete _parmas[key];
|
|
80
|
+
}
|
|
81
|
+
});
|
|
82
|
+
Object.keys(_parmas).forEach((key) => {
|
|
83
|
+
if (_parmas[key] === columnsMap.value[key].defaultValue) {
|
|
84
|
+
delete _parmas[key];
|
|
85
|
+
}
|
|
86
|
+
});
|
|
87
|
+
if (props.formatQuery) {
|
|
88
|
+
const _parmasStr = Object.keys(_parmas).map((key) => {
|
|
89
|
+
return `${key}=${_parmas[key]}`;
|
|
90
|
+
}).join("&");
|
|
91
|
+
return _parmasStr;
|
|
92
|
+
}
|
|
93
|
+
return _parmas;
|
|
94
|
+
};
|
|
95
|
+
const _mpTypeOptions = typeMap.mpTypeOptions();
|
|
96
|
+
vue.watch(
|
|
97
|
+
() => columnsKeys.value,
|
|
98
|
+
(keys) => {
|
|
99
|
+
renderForm();
|
|
100
|
+
},
|
|
101
|
+
{ immediate: true }
|
|
102
|
+
);
|
|
103
|
+
vue.watch(
|
|
104
|
+
() => form.value,
|
|
105
|
+
() => {
|
|
106
|
+
emit("search", formMatte(vue.toRaw(form.value)));
|
|
107
|
+
},
|
|
108
|
+
{ deep: true }
|
|
109
|
+
);
|
|
110
|
+
const seriesOptions = doc.typeOptions();
|
|
111
|
+
return (_ctx, _cache) => {
|
|
112
|
+
var _a, _b, _c, _d;
|
|
113
|
+
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1, [
|
|
114
|
+
vue.createElementVNode("div", _hoisted_2, [
|
|
115
|
+
render.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3, [
|
|
116
|
+
hasKey("word") ? (vue.openBlock(), vue.createBlock(vue.unref(webVue.InputSearch), {
|
|
117
|
+
key: 0,
|
|
118
|
+
modelValue: form.value.word,
|
|
119
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => form.value.word = $event),
|
|
120
|
+
style: vue.normalizeStyle({ width: styleWidth(columnsMap.value.word) }),
|
|
121
|
+
"allow-clear": "",
|
|
122
|
+
size: "medium",
|
|
123
|
+
placeholder: `\u8BF7\u8F93\u5165${(_a = columnsMap.value.word) == null ? void 0 : _a.label}`
|
|
124
|
+
}, null, 8, ["modelValue", "style", "placeholder"])) : vue.createCommentVNode("v-if", true),
|
|
125
|
+
hasKey("series") ? (vue.openBlock(), vue.createBlock(vue.unref(webVue.Select), {
|
|
126
|
+
key: 1,
|
|
127
|
+
modelValue: form.value.series,
|
|
128
|
+
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => form.value.series = $event),
|
|
129
|
+
style: vue.normalizeStyle({ width: styleWidth(columnsMap.value.series) }),
|
|
130
|
+
placeholder: `\u8BF7\u9009\u62E9${(_b = columnsMap.value.series) == null ? void 0 : _b.label}`
|
|
131
|
+
}, {
|
|
132
|
+
default: vue.withCtx(() => [
|
|
133
|
+
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(vue.unref(seriesOptions), (opt) => {
|
|
134
|
+
return vue.openBlock(), vue.createBlock(vue.unref(webVue.Option), {
|
|
135
|
+
key: opt.value,
|
|
136
|
+
label: opt.label,
|
|
137
|
+
value: opt.value
|
|
138
|
+
}, null, 8, ["label", "value"]);
|
|
139
|
+
}), 128))
|
|
140
|
+
]),
|
|
141
|
+
_: 1
|
|
142
|
+
}, 8, ["modelValue", "style", "placeholder"])) : vue.createCommentVNode("v-if", true),
|
|
143
|
+
hasKey("pub_time") ? (vue.openBlock(), vue.createBlock(vue.unref(webVue.RangePicker), {
|
|
144
|
+
key: 2,
|
|
145
|
+
modelValue: form.value.pub_time.range,
|
|
146
|
+
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => form.value.pub_time.range = $event),
|
|
147
|
+
style: vue.normalizeStyle({ width: styleWidth(form.value.pub_time) }),
|
|
148
|
+
"value-format": "timestamp",
|
|
149
|
+
onClick: _cache[3] || (_cache[3] = vue.withModifiers(() => {
|
|
150
|
+
}, ["stop"]))
|
|
151
|
+
}, null, 8, ["modelValue", "style"])) : vue.createCommentVNode("v-if", true),
|
|
152
|
+
hasKey("mp_name") ? (vue.openBlock(), vue.createBlock(vue.unref(webVue.InputSearch), {
|
|
153
|
+
key: 3,
|
|
154
|
+
modelValue: form.value.mp_name,
|
|
155
|
+
"onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => form.value.mp_name = $event),
|
|
156
|
+
style: vue.normalizeStyle({ width: styleWidth(columnsMap.value.mp_name) }),
|
|
157
|
+
"allow-clear": "",
|
|
158
|
+
size: "medium",
|
|
159
|
+
placeholder: `\u8BF7\u8F93\u5165${(_c = columnsMap.value.mp_name) == null ? void 0 : _c.label}`
|
|
160
|
+
}, null, 8, ["modelValue", "style", "placeholder"])) : vue.createCommentVNode("v-if", true),
|
|
161
|
+
hasKey("mp_type") ? (vue.openBlock(), vue.createBlock(vue.unref(webVue.Select), {
|
|
162
|
+
key: 4,
|
|
163
|
+
modelValue: form.value.mp_type,
|
|
164
|
+
"onUpdate:modelValue": _cache[5] || (_cache[5] = ($event) => form.value.mp_type = $event),
|
|
165
|
+
style: vue.normalizeStyle([{ width: styleWidth(columnsMap.value.mp_type) }, { "width": "150px" }]),
|
|
166
|
+
placeholder: `\u8BF7\u9009\u62E9${(_d = columnsMap.value.mp_type) == null ? void 0 : _d.label}`
|
|
167
|
+
}, {
|
|
168
|
+
default: vue.withCtx(() => [
|
|
169
|
+
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(vue.unref(_mpTypeOptions), (opt) => {
|
|
170
|
+
return vue.openBlock(), vue.createBlock(vue.unref(webVue.Option), {
|
|
171
|
+
key: opt.value,
|
|
172
|
+
label: opt.label,
|
|
173
|
+
value: opt.value
|
|
174
|
+
}, null, 8, ["label", "value"]);
|
|
175
|
+
}), 128))
|
|
176
|
+
]),
|
|
177
|
+
_: 1
|
|
178
|
+
}, 8, ["modelValue", "style", "placeholder"])) : vue.createCommentVNode("v-if", true)
|
|
179
|
+
])) : vue.createCommentVNode("v-if", true)
|
|
180
|
+
]),
|
|
181
|
+
vue.createElementVNode("div", _hoisted_4, [
|
|
182
|
+
vue.renderSlot(_ctx.$slots, "right")
|
|
183
|
+
])
|
|
184
|
+
]);
|
|
185
|
+
};
|
|
186
|
+
}
|
|
187
|
+
});
|
|
188
|
+
module.exports = _sfc_main;
|
|
@@ -4,7 +4,7 @@ var webVue = require("@arco-design/web-vue");
|
|
|
4
4
|
var index = require("../../../../utils/index.js");
|
|
5
5
|
var doc = require("../../../../utils/doc.js");
|
|
6
6
|
var component = require("../../../../typeIcons/component.js");
|
|
7
|
-
var index$1 = require("
|
|
7
|
+
var index$1 = require("../../DocTags/index.js");
|
|
8
8
|
var index$2 = require("./ApprovalStateMap/index.js");
|
|
9
9
|
const _hoisted_1 = { class: "cover-view" };
|
|
10
10
|
const _hoisted_2 = {
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var vue = require("vue");
|
|
3
|
+
var webVue = require("@arco-design/web-vue");
|
|
4
|
+
var component = require("../../../../typeIcons/component.js");
|
|
5
|
+
var index$1 = require("../../DocTags/index.js");
|
|
6
|
+
var index = require("../../../../utils/index.js");
|
|
7
|
+
const _hoisted_1 = { class: "cover-view" };
|
|
8
|
+
const _hoisted_2 = {
|
|
9
|
+
key: 1,
|
|
10
|
+
class: "no-img"
|
|
11
|
+
};
|
|
12
|
+
const _hoisted_3 = { class: "batch-select" };
|
|
13
|
+
const _hoisted_4 = { class: "info-view" };
|
|
14
|
+
const _hoisted_5 = { class: "abttrite-v" };
|
|
15
|
+
const _hoisted_6 = { class: "left" };
|
|
16
|
+
const _hoisted_7 = { class: "tags" };
|
|
17
|
+
const _hoisted_8 = { class: "abttr" };
|
|
18
|
+
const _hoisted_9 = { class: "abttr time" };
|
|
19
|
+
const _hoisted_10 = { class: "right" };
|
|
20
|
+
const _sfc_main = vue.defineComponent({
|
|
21
|
+
__name: "index",
|
|
22
|
+
props: {
|
|
23
|
+
item: {},
|
|
24
|
+
abttrites: {}
|
|
25
|
+
},
|
|
26
|
+
emits: ["clickTitle"],
|
|
27
|
+
setup(__props, { emit }) {
|
|
28
|
+
const props = __props;
|
|
29
|
+
const hide = vue.computed(() => {
|
|
30
|
+
const { hide: hide2 } = props.item;
|
|
31
|
+
return hide2 === 7 || hide2 === 6;
|
|
32
|
+
});
|
|
33
|
+
const thumb = vue.computed(() => {
|
|
34
|
+
if (!props.item)
|
|
35
|
+
return null;
|
|
36
|
+
if (props.item.preview_url) {
|
|
37
|
+
return props.item.preview_url;
|
|
38
|
+
}
|
|
39
|
+
if (props.item.style) {
|
|
40
|
+
let { style } = props.item;
|
|
41
|
+
if (typeof style === "string") {
|
|
42
|
+
style = JSON.parse(style);
|
|
43
|
+
return style.data && style.data[0] && style.data[0].thumb;
|
|
44
|
+
}
|
|
45
|
+
return style.data && style.data[0] && style.data[0].thumb;
|
|
46
|
+
}
|
|
47
|
+
return props.item.cover && props.item.cover.data && props.item.cover.data[0] && props.item.cover.data[0].thumb;
|
|
48
|
+
});
|
|
49
|
+
const clickTitle = () => {
|
|
50
|
+
emit("clickTitle", props.item);
|
|
51
|
+
};
|
|
52
|
+
return (_ctx, _cache) => {
|
|
53
|
+
return vue.openBlock(), vue.createElementBlock("div", {
|
|
54
|
+
class: vue.normalizeClass(["medialist-mpdoc-item-view", { "gray-for-state-hide": hide.value }])
|
|
55
|
+
}, [
|
|
56
|
+
vue.createElementVNode("div", _hoisted_1, [
|
|
57
|
+
thumb.value ? (vue.openBlock(), vue.createBlock(vue.unref(webVue.Image), {
|
|
58
|
+
key: 0,
|
|
59
|
+
src: thumb.value,
|
|
60
|
+
class: "image",
|
|
61
|
+
fit: "cover"
|
|
62
|
+
}, null, 8, ["src"])) : (vue.openBlock(), vue.createElementBlock("span", _hoisted_2, vue.toDisplayString(vue.unref(index.noCoverText)(_ctx.item)), 1)),
|
|
63
|
+
vue.createElementVNode("div", _hoisted_3, [
|
|
64
|
+
vue.renderSlot(_ctx.$slots, "batch", { row: _ctx.item })
|
|
65
|
+
])
|
|
66
|
+
]),
|
|
67
|
+
vue.createElementVNode("div", _hoisted_4, [
|
|
68
|
+
vue.createElementVNode("div", {
|
|
69
|
+
class: "title",
|
|
70
|
+
onClick: clickTitle
|
|
71
|
+
}, [
|
|
72
|
+
vue.renderSlot(_ctx.$slots, "index"),
|
|
73
|
+
vue.createTextVNode(vue.toDisplayString(_ctx.item.alias || _ctx.item.title), 1)
|
|
74
|
+
]),
|
|
75
|
+
vue.createElementVNode("div", _hoisted_5, [
|
|
76
|
+
vue.createElementVNode("div", _hoisted_6, [
|
|
77
|
+
vue.createVNode(component, {
|
|
78
|
+
class: "icon",
|
|
79
|
+
doc: true,
|
|
80
|
+
type: _ctx.item.series
|
|
81
|
+
}, null, 8, ["type"]),
|
|
82
|
+
vue.createElementVNode("span", _hoisted_7, [
|
|
83
|
+
vue.createVNode(index$1, { item: _ctx.item }, null, 8, ["item"]),
|
|
84
|
+
vue.renderSlot(_ctx.$slots, "tip")
|
|
85
|
+
]),
|
|
86
|
+
vue.createElementVNode("span", _hoisted_8, [
|
|
87
|
+
vue.createVNode(vue.unref(webVue.Tooltip), {
|
|
88
|
+
position: "top",
|
|
89
|
+
content: `\u6240\u5C5E\u516C\u4F17\u53F7: ${_ctx.item.account_name || _ctx.item.mp_user_name}`
|
|
90
|
+
}, {
|
|
91
|
+
default: vue.withCtx(() => [
|
|
92
|
+
vue.createElementVNode("span", null, vue.toDisplayString(_ctx.item.account_name || _ctx.item.mp_user_name), 1)
|
|
93
|
+
]),
|
|
94
|
+
_: 1
|
|
95
|
+
}, 8, ["content"])
|
|
96
|
+
]),
|
|
97
|
+
vue.createElementVNode("span", _hoisted_9, [
|
|
98
|
+
vue.createVNode(vue.unref(webVue.Tooltip), {
|
|
99
|
+
position: "top",
|
|
100
|
+
content: `\u53D1\u5E03\u65F6\u95F4: ${vue.unref(index.timeFormat)(_ctx.item.pub_time)}`
|
|
101
|
+
}, {
|
|
102
|
+
default: vue.withCtx(() => [
|
|
103
|
+
vue.createElementVNode("span", null, vue.toDisplayString(vue.unref(index.timeFormat)(_ctx.item.pub_time)), 1)
|
|
104
|
+
]),
|
|
105
|
+
_: 1
|
|
106
|
+
}, 8, ["content"])
|
|
107
|
+
])
|
|
108
|
+
]),
|
|
109
|
+
vue.createElementVNode("div", _hoisted_10, [
|
|
110
|
+
vue.renderSlot(_ctx.$slots, "option", { row: _ctx.item })
|
|
111
|
+
])
|
|
112
|
+
])
|
|
113
|
+
])
|
|
114
|
+
], 2);
|
|
115
|
+
};
|
|
116
|
+
}
|
|
117
|
+
});
|
|
118
|
+
module.exports = _sfc_main;
|
|
@@ -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$1 = require("
|
|
5
|
+
var index$1 = require("../../DocTags/index.js");
|
|
6
6
|
var index = require("../../../../utils/index.js");
|
|
7
7
|
const _hoisted_1 = { class: "cover-view" };
|
|
8
8
|
const _hoisted_2 = {
|
|
@@ -41,7 +41,7 @@ const _sfc_main = vue.defineComponent({
|
|
|
41
41
|
return res.data[0].thumb;
|
|
42
42
|
});
|
|
43
43
|
const showValue = vue.computed(() => {
|
|
44
|
-
if (!props.payload)
|
|
44
|
+
if (!props.item.payload)
|
|
45
45
|
return "";
|
|
46
46
|
if (props.item.series === "category_list")
|
|
47
47
|
return props.payload.rootAlias;
|
|
@@ -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("../../DocTags/index.js");
|
|
6
6
|
var user = require("./temp/user.js");
|
|
7
7
|
const _hoisted_1 = { class: "cover-view" };
|
|
8
8
|
const _hoisted_2 = { class: "info-view" };
|
|
@@ -7,6 +7,7 @@ var index = require("./DocItem/index.js");
|
|
|
7
7
|
var index$5 = require("./KongoNavItem/index.js");
|
|
8
8
|
var index$4 = require("./LiveItem/index.js");
|
|
9
9
|
var index$3 = require("./MaccountItem/index.js");
|
|
10
|
+
var index$6 = require("./DocMpItem/index.js");
|
|
10
11
|
const _hoisted_1 = { class: "index" };
|
|
11
12
|
const _hoisted_2 = {
|
|
12
13
|
key: 0,
|
|
@@ -75,6 +76,17 @@ const _hoisted_27 = {
|
|
|
75
76
|
};
|
|
76
77
|
const _hoisted_28 = { class: "doc-fixed-icon" };
|
|
77
78
|
const _hoisted_29 = { class: "doc-fixed-num" };
|
|
79
|
+
const _hoisted_30 = { class: "index" };
|
|
80
|
+
const _hoisted_31 = {
|
|
81
|
+
key: 0,
|
|
82
|
+
class: "add_new"
|
|
83
|
+
};
|
|
84
|
+
const _hoisted_32 = {
|
|
85
|
+
key: 1,
|
|
86
|
+
class: "fix_position"
|
|
87
|
+
};
|
|
88
|
+
const _hoisted_33 = { class: "doc-fixed-icon" };
|
|
89
|
+
const _hoisted_34 = { class: "doc-fixed-num" };
|
|
78
90
|
const _sfc_main = vue.defineComponent({
|
|
79
91
|
__name: "index",
|
|
80
92
|
props: {
|
|
@@ -277,6 +289,37 @@ const _sfc_main = vue.defineComponent({
|
|
|
277
289
|
]),
|
|
278
290
|
_: 3
|
|
279
291
|
}, 8, ["item"]))
|
|
292
|
+
], 2112)) : _ctx.item.catalog === "mp_content" ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 6 }, [
|
|
293
|
+
vue.createCommentVNode(" \u7A3F\u4EF6\uFF08\u516C\u4F17\u53F7\u7A3F\u4EF6\uFF09 "),
|
|
294
|
+
(vue.openBlock(), vue.createBlock(index$6, {
|
|
295
|
+
key: `doc-mp-${_ctx.item.post_id}`,
|
|
296
|
+
abttrites: _ctx.abttrites,
|
|
297
|
+
item: { ..._ctx.item, index: _ctx.index },
|
|
298
|
+
onClickTitle: clickTitle
|
|
299
|
+
}, {
|
|
300
|
+
index: vue.withCtx(() => [
|
|
301
|
+
vue.createElementVNode("span", _hoisted_30, vue.toDisplayString(_ctx.index + 1), 1)
|
|
302
|
+
]),
|
|
303
|
+
tip: vue.withCtx(() => [
|
|
304
|
+
vue.createCommentVNode(" \u5148\u6DFB\u52A0\u6587\u4EF6\u8D44\u6E90\uFF0C\u672A\u53D1\u5E03 "),
|
|
305
|
+
_ctx.item._status ? (vue.openBlock(), vue.createElementBlock("i", _hoisted_31, [
|
|
306
|
+
vue.createVNode(vue.unref(icon.IconPenFill), { size: "16" })
|
|
307
|
+
])) : vue.createCommentVNode("v-if", true),
|
|
308
|
+
_ctx.item.fix_position ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_32, [
|
|
309
|
+
vue.createElementVNode("i", _hoisted_33, [
|
|
310
|
+
vue.createVNode(vue.unref(icon.IconPushpin), { size: "16" })
|
|
311
|
+
]),
|
|
312
|
+
vue.createElementVNode("span", _hoisted_34, vue.toDisplayString(_ctx.item.fix_position), 1)
|
|
313
|
+
])) : vue.createCommentVNode("v-if", true)
|
|
314
|
+
]),
|
|
315
|
+
option: vue.withCtx(() => [
|
|
316
|
+
vue.renderSlot(_ctx.$slots, "option", {
|
|
317
|
+
row: _ctx.item,
|
|
318
|
+
index: _ctx.index
|
|
319
|
+
})
|
|
320
|
+
]),
|
|
321
|
+
_: 3
|
|
322
|
+
}, 8, ["abttrites", "item"]))
|
|
280
323
|
], 2112)) : vue.createCommentVNode("v-if", true)
|
|
281
324
|
], 2112);
|
|
282
325
|
};
|