@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.
Files changed (103) hide show
  1. package/dist/index.css +182 -3
  2. package/dist/index.min.css +1 -1
  3. package/es/baseFilter/component.js +187 -0
  4. package/es/baseFilter/index.d.ts +2 -0
  5. package/es/baseFilter/index.js +7 -0
  6. package/es/baseFilter/style/css.js +1 -0
  7. package/es/baseFilter/style/index.css +9 -0
  8. package/es/baseFilter/style/index.d.ts +1 -0
  9. package/es/baseFilter/style/index.js +1 -0
  10. package/es/baseFilter/style/index.less +10 -0
  11. package/es/contentDetailList/components/Content/DocItem/index.js +1 -1
  12. package/es/contentDetailList/components/Content/DocMpItem/index.d.ts +0 -0
  13. package/es/contentDetailList/components/Content/DocMpItem/index.js +117 -0
  14. package/es/contentDetailList/components/Content/KongoNavItem/index.js +2 -2
  15. package/es/contentDetailList/components/Content/MaccountItem/index.js +1 -1
  16. package/es/contentDetailList/components/Content/index.js +43 -0
  17. package/es/contentDetailList/components/DocTags/index.d.ts +0 -0
  18. package/es/contentDetailList/components/{Content/KongoNavItem/DocTags → DocTags}/index.js +9 -4
  19. package/es/contentDetailList/style/ComoItem.less +1 -1
  20. package/es/contentDetailList/style/DocItem.less +1 -1
  21. package/es/contentDetailList/style/DocMpItem.less +136 -0
  22. package/es/contentDetailList/style/LiveItem.less +1 -1
  23. package/es/contentDetailList/style/index.css +118 -3
  24. package/es/contentDetailList/style/index.less +1 -0
  25. package/es/contentModal/component.js +0 -1
  26. package/es/contentModal/components/ViewAllColumn/index.js +1 -0
  27. package/es/editMetaInfo/component.d.ts +0 -0
  28. package/es/editMetaInfo/component.js +87 -0
  29. package/es/editMetaInfo/components/metaInfoForm.d.ts +0 -0
  30. package/es/editMetaInfo/components/metaInfoForm.js +621 -0
  31. package/es/editMetaInfo/index.d.ts +2 -0
  32. package/es/editMetaInfo/index.js +7 -0
  33. package/es/editMetaInfo/script/api.d.ts +6 -0
  34. package/es/editMetaInfo/script/api.js +17 -0
  35. package/es/editMetaInfo/script/restaurants.d.ts +4 -0
  36. package/es/editMetaInfo/script/restaurants.js +127 -0
  37. package/es/editMetaInfo/style/css.js +1 -0
  38. package/es/editMetaInfo/style/index.css +20 -0
  39. package/es/editMetaInfo/style/index.d.ts +1 -0
  40. package/es/editMetaInfo/style/index.js +1 -0
  41. package/es/editMetaInfo/style/index.less +30 -0
  42. package/es/hooks/dialogVisible.d.ts +8 -0
  43. package/es/hooks/dialogVisible.js +19 -0
  44. package/es/index.css +182 -3
  45. package/es/index.d.ts +2 -0
  46. package/es/index.js +2 -0
  47. package/es/index.less +2 -0
  48. package/es/selectThumb/component.js +3 -1
  49. package/es/selectThumb/components/colorPalette.js +32 -26
  50. package/es/selectThumb/components/colorPicker.d.ts +0 -0
  51. package/es/selectThumb/components/colorPicker.js +54 -0
  52. package/es/selectThumb/style/colorPalette.less +31 -0
  53. package/es/selectThumb/style/index.css +35 -0
  54. package/es/selectThumb/style/index.less +7 -0
  55. package/es/typeIcons/component.js +5 -2
  56. package/es/utils/index.d.ts +1 -0
  57. package/es/utils/index.js +16 -1
  58. package/es/utils/typeMap.d.ts +17 -13
  59. package/es/utils/typeMap.js +18 -2
  60. package/lib/baseFilter/component.js +188 -0
  61. package/lib/baseFilter/index.js +8 -0
  62. package/lib/baseFilter/style/css.js +2 -0
  63. package/lib/baseFilter/style/index.css +9 -0
  64. package/lib/baseFilter/style/index.js +2 -0
  65. package/lib/baseFilter/style/index.less +10 -0
  66. package/lib/contentDetailList/components/Content/DocItem/index.js +1 -1
  67. package/lib/contentDetailList/components/Content/DocMpItem/index.js +118 -0
  68. package/lib/contentDetailList/components/Content/KongoNavItem/index.js +2 -2
  69. package/lib/contentDetailList/components/Content/MaccountItem/index.js +1 -1
  70. package/lib/contentDetailList/components/Content/index.js +43 -0
  71. package/lib/contentDetailList/components/{Content/KongoNavItem/DocTags → DocTags}/index.js +9 -4
  72. package/lib/contentDetailList/style/ComoItem.less +1 -1
  73. package/lib/contentDetailList/style/DocItem.less +1 -1
  74. package/lib/contentDetailList/style/DocMpItem.less +136 -0
  75. package/lib/contentDetailList/style/LiveItem.less +1 -1
  76. package/lib/contentDetailList/style/index.css +118 -3
  77. package/lib/contentDetailList/style/index.less +1 -0
  78. package/lib/contentModal/component.js +0 -1
  79. package/lib/contentModal/components/ViewAllColumn/index.js +1 -0
  80. package/lib/editMetaInfo/component.js +88 -0
  81. package/lib/editMetaInfo/components/metaInfoForm.js +622 -0
  82. package/lib/editMetaInfo/index.js +8 -0
  83. package/lib/editMetaInfo/script/api.js +20 -0
  84. package/lib/editMetaInfo/script/restaurants.js +128 -0
  85. package/lib/editMetaInfo/style/css.js +2 -0
  86. package/lib/editMetaInfo/style/index.css +20 -0
  87. package/lib/editMetaInfo/style/index.js +2 -0
  88. package/lib/editMetaInfo/style/index.less +30 -0
  89. package/lib/hooks/dialogVisible.js +20 -0
  90. package/lib/index.css +182 -3
  91. package/lib/index.js +4 -0
  92. package/lib/index.less +2 -0
  93. package/lib/selectThumb/component.js +3 -1
  94. package/lib/selectThumb/components/colorPalette.js +32 -26
  95. package/lib/selectThumb/components/colorPicker.js +55 -0
  96. package/lib/selectThumb/style/colorPalette.less +31 -0
  97. package/lib/selectThumb/style/index.css +35 -0
  98. package/lib/selectThumb/style/index.less +7 -0
  99. package/lib/typeIcons/component.js +4 -1
  100. package/lib/utils/index.js +16 -0
  101. package/lib/utils/typeMap.js +19 -1
  102. package/package.json +9 -9
  103. /package/es/{contentDetailList/components/Content/KongoNavItem/DocTags/index.d.ts → baseFilter/component.d.ts} +0 -0
@@ -0,0 +1,187 @@
1
+ import { defineComponent, ref, computed, watch, toRaw, openBlock, createElementBlock, createElementVNode, createBlock, unref, normalizeStyle, createCommentVNode, withCtx, Fragment, renderList, withModifiers, renderSlot } from "vue";
2
+ import { InputSearch, Select, Option, RangePicker } from "@arco-design/web-vue";
3
+ import { typeOptions } from "../utils/doc.js";
4
+ import { mpTypeOptions } from "../utils/typeMap.js";
5
+ import { DEFAULT_BASE_API } from "../config.js";
6
+ const _hoisted_1 = { class: "base-filter-container" };
7
+ const _hoisted_2 = { class: "left" };
8
+ const _hoisted_3 = {
9
+ key: 0,
10
+ class: "form-ul"
11
+ };
12
+ const _hoisted_4 = { class: "right" };
13
+ const _sfc_main = defineComponent({
14
+ ...{ name: "baseFilter" },
15
+ __name: "component",
16
+ props: {
17
+ BASE_API: {},
18
+ columns: {},
19
+ formatQuery: { type: Boolean }
20
+ },
21
+ emits: ["search"],
22
+ setup(__props, { emit }) {
23
+ const props = __props;
24
+ props.BASE_API || DEFAULT_BASE_API;
25
+ const render = ref(false);
26
+ const form = ref({});
27
+ const columnsKeys = computed(() => props.columns.map((column) => column.key));
28
+ const columnsMap = computed(() => {
29
+ return props.columns.reduce((map, column) => {
30
+ map[column.key] = column;
31
+ return map;
32
+ }, {});
33
+ });
34
+ const formKeys = computed(() => Object.keys(form.value));
35
+ const hasKey = (key) => formKeys.value.includes(key);
36
+ const styleWidth = (item) => {
37
+ if (item.range) {
38
+ return item.width ? item.width : "260px";
39
+ }
40
+ return item.width ? item.width : "150px";
41
+ };
42
+ const renderForm = () => {
43
+ const _form = {};
44
+ const rangeTemp = {};
45
+ props.columns.forEach((column) => {
46
+ if (column.range) {
47
+ if (!rangeTemp[column.range]) {
48
+ rangeTemp[column.range] = { range: [] };
49
+ }
50
+ if (column.width) {
51
+ rangeTemp[column.range].width = column.width;
52
+ }
53
+ rangeTemp[column.range][column.key] = column.defaultValue || "";
54
+ _form[column.range] = rangeTemp[column.range];
55
+ } else {
56
+ _form[column.key] = column.defaultValue || "";
57
+ }
58
+ });
59
+ render.value = true;
60
+ form.value = _form;
61
+ console.log("_form", _form);
62
+ };
63
+ const formMatte = (_form) => {
64
+ Object.keys(_form).forEach((key) => {
65
+ var _a, _b;
66
+ if (((_b = (_a = _form[key]) == null ? void 0 : _a.range) == null ? void 0 : _b.length) > 0) {
67
+ Object.keys(_form[key]).forEach((k, index) => {
68
+ if (k !== "range" && k !== "width") {
69
+ _form[k] = Math.floor(_form[key].range[index - 1] / 1e3);
70
+ }
71
+ });
72
+ }
73
+ });
74
+ const _parmas = { ..._form };
75
+ Object.keys(_parmas).forEach((key) => {
76
+ var _a, _b;
77
+ if (((_b = (_a = _parmas[key]) == null ? void 0 : _a.range) == null ? void 0 : _b.length) > 0) {
78
+ delete _parmas[key];
79
+ }
80
+ });
81
+ Object.keys(_parmas).forEach((key) => {
82
+ if (_parmas[key] === columnsMap.value[key].defaultValue) {
83
+ delete _parmas[key];
84
+ }
85
+ });
86
+ if (props.formatQuery) {
87
+ const _parmasStr = Object.keys(_parmas).map((key) => {
88
+ return `${key}=${_parmas[key]}`;
89
+ }).join("&");
90
+ return _parmasStr;
91
+ }
92
+ return _parmas;
93
+ };
94
+ const _mpTypeOptions = mpTypeOptions();
95
+ watch(
96
+ () => columnsKeys.value,
97
+ (keys) => {
98
+ renderForm();
99
+ },
100
+ { immediate: true }
101
+ );
102
+ watch(
103
+ () => form.value,
104
+ () => {
105
+ emit("search", formMatte(toRaw(form.value)));
106
+ },
107
+ { deep: true }
108
+ );
109
+ const seriesOptions = typeOptions();
110
+ return (_ctx, _cache) => {
111
+ var _a, _b, _c, _d;
112
+ return openBlock(), createElementBlock("div", _hoisted_1, [
113
+ createElementVNode("div", _hoisted_2, [
114
+ render.value ? (openBlock(), createElementBlock("div", _hoisted_3, [
115
+ hasKey("word") ? (openBlock(), createBlock(unref(InputSearch), {
116
+ key: 0,
117
+ modelValue: form.value.word,
118
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => form.value.word = $event),
119
+ style: normalizeStyle({ width: styleWidth(columnsMap.value.word) }),
120
+ "allow-clear": "",
121
+ size: "medium",
122
+ placeholder: `\u8BF7\u8F93\u5165${(_a = columnsMap.value.word) == null ? void 0 : _a.label}`
123
+ }, null, 8, ["modelValue", "style", "placeholder"])) : createCommentVNode("v-if", true),
124
+ hasKey("series") ? (openBlock(), createBlock(unref(Select), {
125
+ key: 1,
126
+ modelValue: form.value.series,
127
+ "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => form.value.series = $event),
128
+ style: normalizeStyle({ width: styleWidth(columnsMap.value.series) }),
129
+ placeholder: `\u8BF7\u9009\u62E9${(_b = columnsMap.value.series) == null ? void 0 : _b.label}`
130
+ }, {
131
+ default: withCtx(() => [
132
+ (openBlock(true), createElementBlock(Fragment, null, renderList(unref(seriesOptions), (opt) => {
133
+ return openBlock(), createBlock(unref(Option), {
134
+ key: opt.value,
135
+ label: opt.label,
136
+ value: opt.value
137
+ }, null, 8, ["label", "value"]);
138
+ }), 128))
139
+ ]),
140
+ _: 1
141
+ }, 8, ["modelValue", "style", "placeholder"])) : createCommentVNode("v-if", true),
142
+ hasKey("pub_time") ? (openBlock(), createBlock(unref(RangePicker), {
143
+ key: 2,
144
+ modelValue: form.value.pub_time.range,
145
+ "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => form.value.pub_time.range = $event),
146
+ style: normalizeStyle({ width: styleWidth(form.value.pub_time) }),
147
+ "value-format": "timestamp",
148
+ onClick: _cache[3] || (_cache[3] = withModifiers(() => {
149
+ }, ["stop"]))
150
+ }, null, 8, ["modelValue", "style"])) : createCommentVNode("v-if", true),
151
+ hasKey("mp_name") ? (openBlock(), createBlock(unref(InputSearch), {
152
+ key: 3,
153
+ modelValue: form.value.mp_name,
154
+ "onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => form.value.mp_name = $event),
155
+ style: normalizeStyle({ width: styleWidth(columnsMap.value.mp_name) }),
156
+ "allow-clear": "",
157
+ size: "medium",
158
+ placeholder: `\u8BF7\u8F93\u5165${(_c = columnsMap.value.mp_name) == null ? void 0 : _c.label}`
159
+ }, null, 8, ["modelValue", "style", "placeholder"])) : createCommentVNode("v-if", true),
160
+ hasKey("mp_type") ? (openBlock(), createBlock(unref(Select), {
161
+ key: 4,
162
+ modelValue: form.value.mp_type,
163
+ "onUpdate:modelValue": _cache[5] || (_cache[5] = ($event) => form.value.mp_type = $event),
164
+ style: normalizeStyle([{ width: styleWidth(columnsMap.value.mp_type) }, { "width": "150px" }]),
165
+ placeholder: `\u8BF7\u9009\u62E9${(_d = columnsMap.value.mp_type) == null ? void 0 : _d.label}`
166
+ }, {
167
+ default: withCtx(() => [
168
+ (openBlock(true), createElementBlock(Fragment, null, renderList(unref(_mpTypeOptions), (opt) => {
169
+ return openBlock(), createBlock(unref(Option), {
170
+ key: opt.value,
171
+ label: opt.label,
172
+ value: opt.value
173
+ }, null, 8, ["label", "value"]);
174
+ }), 128))
175
+ ]),
176
+ _: 1
177
+ }, 8, ["modelValue", "style", "placeholder"])) : createCommentVNode("v-if", true)
178
+ ])) : createCommentVNode("v-if", true)
179
+ ]),
180
+ createElementVNode("div", _hoisted_4, [
181
+ renderSlot(_ctx.$slots, "right")
182
+ ])
183
+ ]);
184
+ };
185
+ }
186
+ });
187
+ export { _sfc_main as default };
@@ -0,0 +1,2 @@
1
+ declare const baseFilter: any;
2
+ export default baseFilter;
@@ -0,0 +1,7 @@
1
+ import _sfc_main from "./component.js";
2
+ const baseFilter = Object.assign(_sfc_main, {
3
+ install: (app) => {
4
+ app.component(_sfc_main.name, _sfc_main);
5
+ }
6
+ });
7
+ export { baseFilter as default };
@@ -0,0 +1 @@
1
+ import "./index.css";
@@ -0,0 +1,9 @@
1
+ .base-filter-container {
2
+ display: flex;
3
+ align-items: center;
4
+ justify-content: space-between;
5
+ }
6
+ .base-filter-container .left {
7
+ display: flex;
8
+ align-items: center;
9
+ }
@@ -0,0 +1 @@
1
+ import './index.less';
@@ -0,0 +1 @@
1
+ import "./index.less";
@@ -0,0 +1,10 @@
1
+ .base-filter-container {
2
+ display: flex;
3
+ align-items: center;
4
+ justify-content: space-between;
5
+ .left {
6
+ display: flex;
7
+ align-items: center;
8
+ }
9
+ .right {}
10
+ }
@@ -3,7 +3,7 @@ import { Image, Tooltip, Popover, Button } from "@arco-design/web-vue";
3
3
  import { noCoverText, timeFormat } from "../../../../utils/index.js";
4
4
  import { approvalItem, docStateMap } from "../../../../utils/doc.js";
5
5
  import _sfc_main$1 from "../../../../typeIcons/component.js";
6
- import _sfc_main$2 from "../KongoNavItem/DocTags/index.js";
6
+ import _sfc_main$2 from "../../DocTags/index.js";
7
7
  import _sfc_main$3 from "./ApprovalStateMap/index.js";
8
8
  const _hoisted_1 = { class: "cover-view" };
9
9
  const _hoisted_2 = {
@@ -0,0 +1,117 @@
1
+ import { defineComponent, computed, openBlock, createElementBlock, normalizeClass, createElementVNode, createBlock, unref, toDisplayString, renderSlot, createTextVNode, createVNode, withCtx } from "vue";
2
+ import { Image, Tooltip } from "@arco-design/web-vue";
3
+ import _sfc_main$1 from "../../../../typeIcons/component.js";
4
+ import _sfc_main$2 from "../../DocTags/index.js";
5
+ import { noCoverText, timeFormat } from "../../../../utils/index.js";
6
+ const _hoisted_1 = { class: "cover-view" };
7
+ const _hoisted_2 = {
8
+ key: 1,
9
+ class: "no-img"
10
+ };
11
+ const _hoisted_3 = { class: "batch-select" };
12
+ const _hoisted_4 = { class: "info-view" };
13
+ const _hoisted_5 = { class: "abttrite-v" };
14
+ const _hoisted_6 = { class: "left" };
15
+ const _hoisted_7 = { class: "tags" };
16
+ const _hoisted_8 = { class: "abttr" };
17
+ const _hoisted_9 = { class: "abttr time" };
18
+ const _hoisted_10 = { class: "right" };
19
+ const _sfc_main = defineComponent({
20
+ __name: "index",
21
+ props: {
22
+ item: {},
23
+ abttrites: {}
24
+ },
25
+ emits: ["clickTitle"],
26
+ setup(__props, { emit }) {
27
+ const props = __props;
28
+ const hide = computed(() => {
29
+ const { hide: hide2 } = props.item;
30
+ return hide2 === 7 || hide2 === 6;
31
+ });
32
+ const thumb = computed(() => {
33
+ if (!props.item)
34
+ return null;
35
+ if (props.item.preview_url) {
36
+ return props.item.preview_url;
37
+ }
38
+ if (props.item.style) {
39
+ let { style } = props.item;
40
+ if (typeof style === "string") {
41
+ style = JSON.parse(style);
42
+ return style.data && style.data[0] && style.data[0].thumb;
43
+ }
44
+ return style.data && style.data[0] && style.data[0].thumb;
45
+ }
46
+ return props.item.cover && props.item.cover.data && props.item.cover.data[0] && props.item.cover.data[0].thumb;
47
+ });
48
+ const clickTitle = () => {
49
+ emit("clickTitle", props.item);
50
+ };
51
+ return (_ctx, _cache) => {
52
+ return openBlock(), createElementBlock("div", {
53
+ class: normalizeClass(["medialist-mpdoc-item-view", { "gray-for-state-hide": hide.value }])
54
+ }, [
55
+ createElementVNode("div", _hoisted_1, [
56
+ thumb.value ? (openBlock(), createBlock(unref(Image), {
57
+ key: 0,
58
+ src: thumb.value,
59
+ class: "image",
60
+ fit: "cover"
61
+ }, null, 8, ["src"])) : (openBlock(), createElementBlock("span", _hoisted_2, toDisplayString(unref(noCoverText)(_ctx.item)), 1)),
62
+ createElementVNode("div", _hoisted_3, [
63
+ renderSlot(_ctx.$slots, "batch", { row: _ctx.item })
64
+ ])
65
+ ]),
66
+ createElementVNode("div", _hoisted_4, [
67
+ createElementVNode("div", {
68
+ class: "title",
69
+ onClick: clickTitle
70
+ }, [
71
+ renderSlot(_ctx.$slots, "index"),
72
+ createTextVNode(toDisplayString(_ctx.item.alias || _ctx.item.title), 1)
73
+ ]),
74
+ createElementVNode("div", _hoisted_5, [
75
+ createElementVNode("div", _hoisted_6, [
76
+ createVNode(_sfc_main$1, {
77
+ class: "icon",
78
+ doc: true,
79
+ type: _ctx.item.series
80
+ }, null, 8, ["type"]),
81
+ createElementVNode("span", _hoisted_7, [
82
+ createVNode(_sfc_main$2, { item: _ctx.item }, null, 8, ["item"]),
83
+ renderSlot(_ctx.$slots, "tip")
84
+ ]),
85
+ createElementVNode("span", _hoisted_8, [
86
+ createVNode(unref(Tooltip), {
87
+ position: "top",
88
+ content: `\u6240\u5C5E\u516C\u4F17\u53F7: ${_ctx.item.account_name || _ctx.item.mp_user_name}`
89
+ }, {
90
+ default: withCtx(() => [
91
+ createElementVNode("span", null, toDisplayString(_ctx.item.account_name || _ctx.item.mp_user_name), 1)
92
+ ]),
93
+ _: 1
94
+ }, 8, ["content"])
95
+ ]),
96
+ createElementVNode("span", _hoisted_9, [
97
+ createVNode(unref(Tooltip), {
98
+ position: "top",
99
+ content: `\u53D1\u5E03\u65F6\u95F4: ${unref(timeFormat)(_ctx.item.pub_time)}`
100
+ }, {
101
+ default: withCtx(() => [
102
+ createElementVNode("span", null, toDisplayString(unref(timeFormat)(_ctx.item.pub_time)), 1)
103
+ ]),
104
+ _: 1
105
+ }, 8, ["content"])
106
+ ])
107
+ ]),
108
+ createElementVNode("div", _hoisted_10, [
109
+ renderSlot(_ctx.$slots, "option", { row: _ctx.item })
110
+ ])
111
+ ])
112
+ ])
113
+ ], 2);
114
+ };
115
+ }
116
+ });
117
+ export { _sfc_main as default };
@@ -1,7 +1,7 @@
1
1
  import { defineComponent, computed, openBlock, createElementBlock, normalizeClass, createElementVNode, createBlock, unref, toDisplayString, renderSlot, createVNode, withCtx } from "vue";
2
2
  import { Image, Tooltip } from "@arco-design/web-vue";
3
3
  import _sfc_main$1 from "../../../../typeIcons/component.js";
4
- import _sfc_main$2 from "./DocTags/index.js";
4
+ import _sfc_main$2 from "../../DocTags/index.js";
5
5
  import { noCoverText, timeFormat } from "../../../../utils/index.js";
6
6
  const _hoisted_1 = { class: "cover-view" };
7
7
  const _hoisted_2 = {
@@ -40,7 +40,7 @@ const _sfc_main = defineComponent({
40
40
  return res.data[0].thumb;
41
41
  });
42
42
  const showValue = computed(() => {
43
- if (!props.payload)
43
+ if (!props.item.payload)
44
44
  return "";
45
45
  if (props.item.series === "category_list")
46
46
  return props.payload.rootAlias;
@@ -1,7 +1,7 @@
1
1
  import { defineComponent, computed, openBlock, createElementBlock, normalizeClass, createElementVNode, createVNode, unref, renderSlot, createTextVNode, toDisplayString, Fragment, renderList, withCtx } from "vue";
2
2
  import { Image, Tooltip } from "@arco-design/web-vue";
3
3
  import _sfc_main$1 from "../../../../typeIcons/component.js";
4
- import _sfc_main$2 from "../KongoNavItem/DocTags/index.js";
4
+ import _sfc_main$2 from "../../DocTags/index.js";
5
5
  import defaultAvatar from "./temp/user.js";
6
6
  const _hoisted_1 = { class: "cover-view" };
7
7
  const _hoisted_2 = { class: "info-view" };
@@ -6,6 +6,7 @@ import _sfc_main$1 from "./DocItem/index.js";
6
6
  import _sfc_main$6 from "./KongoNavItem/index.js";
7
7
  import _sfc_main$5 from "./LiveItem/index.js";
8
8
  import _sfc_main$4 from "./MaccountItem/index.js";
9
+ import _sfc_main$7 from "./DocMpItem/index.js";
9
10
  const _hoisted_1 = { class: "index" };
10
11
  const _hoisted_2 = {
11
12
  key: 0,
@@ -74,6 +75,17 @@ const _hoisted_27 = {
74
75
  };
75
76
  const _hoisted_28 = { class: "doc-fixed-icon" };
76
77
  const _hoisted_29 = { class: "doc-fixed-num" };
78
+ const _hoisted_30 = { class: "index" };
79
+ const _hoisted_31 = {
80
+ key: 0,
81
+ class: "add_new"
82
+ };
83
+ const _hoisted_32 = {
84
+ key: 1,
85
+ class: "fix_position"
86
+ };
87
+ const _hoisted_33 = { class: "doc-fixed-icon" };
88
+ const _hoisted_34 = { class: "doc-fixed-num" };
77
89
  const _sfc_main = defineComponent({
78
90
  __name: "index",
79
91
  props: {
@@ -276,6 +288,37 @@ const _sfc_main = defineComponent({
276
288
  ]),
277
289
  _: 3
278
290
  }, 8, ["item"]))
291
+ ], 2112)) : _ctx.item.catalog === "mp_content" ? (openBlock(), createElementBlock(Fragment, { key: 6 }, [
292
+ createCommentVNode(" \u7A3F\u4EF6\uFF08\u516C\u4F17\u53F7\u7A3F\u4EF6\uFF09 "),
293
+ (openBlock(), createBlock(_sfc_main$7, {
294
+ key: `doc-mp-${_ctx.item.post_id}`,
295
+ abttrites: _ctx.abttrites,
296
+ item: { ..._ctx.item, index: _ctx.index },
297
+ onClickTitle: clickTitle
298
+ }, {
299
+ index: withCtx(() => [
300
+ createElementVNode("span", _hoisted_30, toDisplayString(_ctx.index + 1), 1)
301
+ ]),
302
+ tip: withCtx(() => [
303
+ createCommentVNode(" \u5148\u6DFB\u52A0\u6587\u4EF6\u8D44\u6E90\uFF0C\u672A\u53D1\u5E03 "),
304
+ _ctx.item._status ? (openBlock(), createElementBlock("i", _hoisted_31, [
305
+ createVNode(unref(IconPenFill), { size: "16" })
306
+ ])) : createCommentVNode("v-if", true),
307
+ _ctx.item.fix_position ? (openBlock(), createElementBlock("span", _hoisted_32, [
308
+ createElementVNode("i", _hoisted_33, [
309
+ createVNode(unref(IconPushpin), { size: "16" })
310
+ ]),
311
+ createElementVNode("span", _hoisted_34, toDisplayString(_ctx.item.fix_position), 1)
312
+ ])) : createCommentVNode("v-if", true)
313
+ ]),
314
+ option: withCtx(() => [
315
+ renderSlot(_ctx.$slots, "option", {
316
+ row: _ctx.item,
317
+ index: _ctx.index
318
+ })
319
+ ]),
320
+ _: 3
321
+ }, 8, ["abttrites", "item"]))
279
322
  ], 2112)) : createCommentVNode("v-if", true)
280
323
  ], 2112);
281
324
  };
@@ -1,7 +1,8 @@
1
1
  import { defineComponent, ref, computed, openBlock, createElementBlock, Fragment, createCommentVNode, createElementVNode, createBlock, unref, withCtx, renderList, createVNode, normalizeClass, createTextVNode, toDisplayString } from "vue";
2
2
  import { Popover, Tag, Tooltip } from "@arco-design/web-vue";
3
- import { kongo_source_map, contentList_list_type_map } from "../../../../../utils/typeMap.js";
4
- import { docThumbMap } from "../../../../../utils/doc.js";
3
+ import { kongo_source_map, contentList_list_type_map } from "../../../utils/typeMap.js";
4
+ import { docThumbMap } from "../../../utils/doc.js";
5
+ import _sfc_main$1 from "../../../typeIcons/component.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"];
@@ -142,7 +143,7 @@ const _sfc_main = defineComponent({
142
143
  })) : createCommentVNode("v-if", true),
143
144
  _ctx.item.sensitives ? (openBlock(), createBlock(unref(Tooltip), {
144
145
  key: 4,
145
- content: _ctx.item.sensitives,
146
+ content: `\u5305\u542B\u654F\u611F\u8BCD\uFF1A${_ctx.item.sensitives}`,
146
147
  position: "top"
147
148
  }, {
148
149
  default: withCtx(() => [
@@ -174,7 +175,11 @@ const _sfc_main = defineComponent({
174
175
  createTextVNode(toDisplayString(unref(contentList_list_type_map)[_ctx.item.mp_type]), 1)
175
176
  ]),
176
177
  _: 1
177
- })) : (openBlock(), createElementBlock(Fragment, { key: 3 }, [
178
+ })) : _ctx.item.catalog === "mp_content" ? (openBlock(), createBlock(_sfc_main$1, {
179
+ key: 3,
180
+ class: "icon",
181
+ type: "mpdoc"
182
+ })) : (openBlock(), createElementBlock(Fragment, { key: 4 }, [
178
183
  _ctx.item.list_type ? (openBlock(), createElementBlock("span", _hoisted_4, toDisplayString(unref(contentList_list_type_map)[_ctx.item.list_type]), 1)) : (openBlock(), createElementBlock("span", _hoisted_5, "--"))
179
184
  ], 64))
180
185
  ])
@@ -81,7 +81,7 @@
81
81
  &.tags {
82
82
  display: flex;
83
83
  align-items: center;
84
- width: 175px;
84
+ width: 190px;
85
85
  }
86
86
  }
87
87
  }
@@ -95,7 +95,7 @@
95
95
 
96
96
  .tags {
97
97
  display: inline-block;
98
- width: 160px;
98
+ width: 190px;
99
99
  }
100
100
 
101
101
  .abttr {
@@ -0,0 +1,136 @@
1
+ .medialist-mpdoc-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
+
25
+ .batch-select {
26
+ position: absolute;
27
+ top: 3px;
28
+ left: 5px;
29
+ }
30
+
31
+ .arco-image-img {
32
+ width: 100%;
33
+ height: 100%;
34
+ border-radius: 4px;
35
+ }
36
+
37
+ .no-img {
38
+ display: flex;
39
+ align-items: center;
40
+ justify-content: center;
41
+ width: 100%;
42
+ height: 100%;
43
+ color: white;
44
+ font-size: 30px;
45
+ }
46
+ }
47
+
48
+ .info-view {
49
+ display: flex;
50
+ flex: 1;
51
+ flex-direction: column;
52
+ justify-content: space-between;
53
+ padding: 2px 0;
54
+
55
+ .title {
56
+ width: calc(100% - 50px);
57
+ display: flex;
58
+ align-items: center;
59
+ margin-bottom: 10px;
60
+ overflow: hidden;
61
+ color: #1d2129;
62
+ font-size: 14px;
63
+ font-style: normal;
64
+ font-weight: 400;
65
+ line-height: 22px;
66
+ cursor: pointer;
67
+ -webkit-line-clamp: 2;
68
+ -webkit-box-orient: vertical;
69
+
70
+ &:hover {
71
+ color: #4886ff;
72
+ text-decoration: underline;
73
+
74
+ .index {
75
+ text-decoration: unset;
76
+ }
77
+ }
78
+ }
79
+
80
+ .abttrite-v {
81
+ display: flex;
82
+ align-items: center;
83
+ justify-content: space-between;
84
+
85
+ .left {
86
+ display: flex;
87
+ flex: 1;
88
+ align-items: center;
89
+ color: #4e5969;
90
+ font-size: 12px;
91
+
92
+ .icon {
93
+ margin-right: 8px;
94
+ }
95
+
96
+ .tags {
97
+ display: inline-block;
98
+ width: 190px;
99
+ }
100
+
101
+ .abttr {
102
+ display: inline-block;
103
+ width: 20%;
104
+ margin-right: 10px;
105
+ overflow: hidden;
106
+ white-space: nowrap;
107
+ text-overflow: ellipsis;
108
+ cursor: pointer;
109
+
110
+ &.btn {
111
+ padding: 0;
112
+ text-align: left;
113
+
114
+ &:hover,
115
+ &:active {
116
+ background: transparent;
117
+ }
118
+ }
119
+
120
+ .btn {
121
+ padding: 0;
122
+ text-align: left;
123
+ }
124
+
125
+ &.time {
126
+ width: 30%;
127
+ }
128
+ }
129
+ }
130
+
131
+ .right {
132
+ margin-right: 20px;
133
+ }
134
+ }
135
+ }
136
+ }
@@ -85,7 +85,7 @@
85
85
  &.tags {
86
86
  display: flex;
87
87
  align-items: center;
88
- width: 160px;
88
+ width: 190px;
89
89
  }
90
90
 
91
91
  &.type {