@cmstops/pro-compo 0.1.26 → 0.1.29

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 (97) hide show
  1. package/dist/index.css +100 -65
  2. package/dist/index.min.css +1 -1
  3. package/es/contentDetailList/components/Content/DocItem/index.js +1 -1
  4. package/es/contentDetailList/components/Content/DocMpItem/index.js +1 -1
  5. package/es/contentDetailList/components/Content/KongoNavItem/index.js +3 -3
  6. package/es/contentDetailList/components/Content/MaccountItem/index.js +30 -23
  7. package/es/contentDetailList/style/ComoItem.less +4 -0
  8. package/es/contentDetailList/style/ContentListItem.less +4 -0
  9. package/es/contentDetailList/style/DocItem.less +4 -6
  10. package/es/contentDetailList/style/DocMpItem.less +4 -6
  11. package/es/contentDetailList/style/KongoNavItem.less +4 -0
  12. package/es/contentDetailList/style/LiveItem.less +4 -0
  13. package/es/contentDetailList/style/MaccountItem.less +4 -0
  14. package/es/contentDetailList/style/index.css +28 -58
  15. package/es/contentDetailList/style/index.less +0 -1
  16. package/es/contentModal/component.js +165 -5
  17. package/es/contentModal/components/CompoList/index.js +13 -6
  18. package/es/contentModal/components/ContentList/MediaFilter/index.js +112 -0
  19. package/es/contentModal/components/ContentList/index.d.ts +0 -0
  20. package/es/contentModal/components/ContentList/index.js +269 -0
  21. package/es/contentModal/components/LiveList/MediaFilter/index.d.ts +0 -0
  22. package/es/contentModal/components/LiveList/MediaFilter/index.js +74 -0
  23. package/es/contentModal/components/LiveList/index.d.ts +0 -0
  24. package/es/contentModal/components/LiveList/index.js +227 -0
  25. package/es/contentModal/components/MpAccountList/MpAccountFilter/index.d.ts +0 -0
  26. package/es/contentModal/components/MpAccountList/MpAccountFilter/index.js +62 -0
  27. package/es/contentModal/components/MpAccountList/index.d.ts +0 -0
  28. package/es/contentModal/components/MpAccountList/index.js +222 -0
  29. package/es/contentModal/components/MpContentList/MediaFilter/index.d.ts +0 -0
  30. package/es/contentModal/components/MpContentList/MediaFilter/index.js +85 -0
  31. package/es/contentModal/components/MpContentList/index.d.ts +0 -0
  32. package/es/contentModal/components/MpContentList/index.js +214 -0
  33. package/es/contentModal/components/ViewAllColumn/MediaFilter/index.js +176 -12
  34. package/es/contentModal/components/ViewAllColumn/index.js +33 -14
  35. package/es/contentModal/images/user.js +2 -0
  36. package/es/contentModal/script/api.d.ts +3 -0
  37. package/es/contentModal/script/api.js +22 -1
  38. package/es/contentModal/style/ViewAllColumn.less +51 -31
  39. package/es/contentModal/style/index.css +21 -7
  40. package/es/dataTags/component.d.ts +0 -0
  41. package/es/{contentDetailList/components/DocTags/index.js → dataTags/component.js} +10 -8
  42. package/es/dataTags/index.d.ts +2 -0
  43. package/es/dataTags/index.js +7 -0
  44. package/es/dataTags/style/css.js +1 -0
  45. package/es/dataTags/style/index.css +51 -0
  46. package/es/dataTags/style/index.d.ts +1 -0
  47. package/es/dataTags/style/index.js +1 -0
  48. package/{lib/contentDetailList/style/DocTags.less → es/dataTags/style/index.less} +12 -8
  49. package/es/emptyData/component.js +5 -5
  50. package/es/index.css +100 -65
  51. package/es/index.d.ts +1 -0
  52. package/es/index.js +1 -0
  53. package/es/index.less +1 -0
  54. package/es/utils/typeMap.d.ts +6 -15
  55. package/es/utils/typeMap.js +21 -1
  56. package/lib/contentDetailList/components/Content/DocItem/index.js +4 -4
  57. package/lib/contentDetailList/components/Content/DocMpItem/index.js +2 -2
  58. package/lib/contentDetailList/components/Content/KongoNavItem/index.js +4 -4
  59. package/lib/contentDetailList/components/Content/MaccountItem/index.js +30 -23
  60. package/lib/contentDetailList/style/ComoItem.less +4 -0
  61. package/lib/contentDetailList/style/ContentListItem.less +4 -0
  62. package/lib/contentDetailList/style/DocItem.less +4 -6
  63. package/lib/contentDetailList/style/DocMpItem.less +4 -6
  64. package/lib/contentDetailList/style/KongoNavItem.less +4 -0
  65. package/lib/contentDetailList/style/LiveItem.less +4 -0
  66. package/lib/contentDetailList/style/MaccountItem.less +4 -0
  67. package/lib/contentDetailList/style/index.css +28 -58
  68. package/lib/contentDetailList/style/index.less +0 -1
  69. package/lib/contentModal/component.js +165 -5
  70. package/lib/contentModal/components/CompoList/index.js +15 -8
  71. package/lib/contentModal/components/ContentList/MediaFilter/index.js +113 -0
  72. package/lib/contentModal/components/ContentList/index.js +270 -0
  73. package/lib/contentModal/components/LiveList/MediaFilter/index.js +75 -0
  74. package/lib/contentModal/components/LiveList/index.js +228 -0
  75. package/lib/contentModal/components/MpAccountList/MpAccountFilter/index.js +63 -0
  76. package/lib/contentModal/components/MpAccountList/index.js +223 -0
  77. package/lib/contentModal/components/MpContentList/MediaFilter/index.js +86 -0
  78. package/lib/contentModal/components/MpContentList/index.js +215 -0
  79. package/lib/contentModal/components/ViewAllColumn/MediaFilter/index.js +175 -11
  80. package/lib/contentModal/components/ViewAllColumn/index.js +33 -14
  81. package/lib/contentModal/images/user.js +3 -0
  82. package/lib/contentModal/script/api.js +24 -0
  83. package/lib/contentModal/style/ViewAllColumn.less +51 -31
  84. package/lib/contentModal/style/index.css +21 -7
  85. package/lib/{contentDetailList/components/DocTags/index.js → dataTags/component.js} +10 -8
  86. package/lib/dataTags/index.js +8 -0
  87. package/lib/dataTags/style/css.js +2 -0
  88. package/lib/dataTags/style/index.css +51 -0
  89. package/lib/dataTags/style/index.js +2 -0
  90. package/{es/contentDetailList/style/DocTags.less → lib/dataTags/style/index.less} +12 -8
  91. package/lib/emptyData/component.js +4 -4
  92. package/lib/index.css +100 -65
  93. package/lib/index.js +2 -0
  94. package/lib/index.less +1 -0
  95. package/lib/utils/typeMap.js +22 -0
  96. package/package.json +1 -1
  97. /package/es/{contentDetailList/components/DocTags → contentModal/components/ContentList/MediaFilter}/index.d.ts +0 -0
@@ -1,4 +1,6 @@
1
- import { defineComponent, ref, watch, openBlock, createElementBlock, createVNode } from "vue";
1
+ import { defineComponent, ref, computed, watch, openBlock, createElementBlock, createVNode, unref, withCtx, Fragment, renderList, createBlock, withDirectives, createTextVNode, vShow } from "vue";
2
+ import { Space, Select, Option, Input, Button } from "@arco-design/web-vue";
3
+ import { docSeries, docThumbMap } from "../../../../utils/doc.js";
2
4
  import _sfc_main$1 from "../columnTree/index.js";
3
5
  const _hoisted_1 = { class: "media-filter-container" };
4
6
  const _sfc_main = defineComponent({
@@ -6,16 +8,102 @@ const _sfc_main = defineComponent({
6
8
  __name: "index",
7
9
  props: {
8
10
  group_id: {},
9
- tree: {},
10
- series: {},
11
- banner: {},
11
+ tree: { default: () => [] },
12
+ series: { default: "all" },
13
+ banner: { default: "all" },
12
14
  height: {},
13
15
  userInfo: {}
14
16
  },
15
- emits: ["update:group_id"],
17
+ emits: ["update:group_id", "search"],
16
18
  setup(__props, { emit }) {
17
19
  const props = __props;
18
20
  const column_id = ref(0);
21
+ const filter = ref({
22
+ keywords: "",
23
+ type: "",
24
+ cover_type: "",
25
+ banner: "",
26
+ sort: -1,
27
+ order: "create_time"
28
+ });
29
+ const bannerOptions = [
30
+ {
31
+ value: "",
32
+ key: "all",
33
+ label: "\u5168\u90E8\u8F6E\u64AD\u7C7B\u578B"
34
+ },
35
+ {
36
+ value: "0",
37
+ label: "\u65E0\u72EC\u7ACB\u8F6E\u64AD"
38
+ },
39
+ {
40
+ value: "1",
41
+ label: "\u6709\u72EC\u7ACB\u8F6E\u64AD"
42
+ }
43
+ ];
44
+ const typeOptions = computed(() => {
45
+ const arr = Object.keys(docSeries).map((key) => {
46
+ return {
47
+ value: key,
48
+ label: docSeries[key].replace("\u7A3F\u4EF6", "")
49
+ };
50
+ });
51
+ const filterArr = arr.filter((item) => {
52
+ if (props.series === "all") {
53
+ return true;
54
+ }
55
+ return props.series.split(",").includes(item.value);
56
+ });
57
+ return [{ value: "", label: "\u5168\u90E8\u7A3F\u4EF6\u7C7B\u578B" }, ...filterArr];
58
+ });
59
+ const thumbOptions = computed(() => {
60
+ const arr = Object.keys(docThumbMap()).map((key) => {
61
+ return {
62
+ value: key,
63
+ label: docThumbMap()[key]
64
+ };
65
+ });
66
+ return [{ value: "", label: "\u5168\u90E8\u5C01\u9762\u7C7B\u578B" }, ...arr];
67
+ });
68
+ const showReset = computed(() => {
69
+ let { banner } = filter.value;
70
+ if (props.banner !== "all") {
71
+ banner = "";
72
+ }
73
+ let series = filter.value.type;
74
+ if (props.series !== "all") {
75
+ series = "";
76
+ }
77
+ return filter.value.keywords || series || filter.value.cover_type || banner;
78
+ });
79
+ const reset = () => {
80
+ filter.value = {
81
+ keywords: "",
82
+ cover_type: "",
83
+ sort: -1,
84
+ order: "create_time"
85
+ };
86
+ if (props.banner !== "all") {
87
+ filter.value.banner = props.banner;
88
+ } else {
89
+ filter.value.banner = "";
90
+ }
91
+ if (props.series !== "all") {
92
+ filter.value.type = props.series;
93
+ } else {
94
+ filter.value.type = "";
95
+ }
96
+ };
97
+ const handleSearch = () => {
98
+ emit("search", filter.value);
99
+ };
100
+ watch(
101
+ () => filter.value,
102
+ (val) => {
103
+ handleSearch();
104
+ },
105
+ { deep: true }
106
+ );
19
107
  watch(
20
108
  () => props.group_id,
21
109
  (val) => {
@@ -30,13 +118,89 @@ const _sfc_main = defineComponent({
30
118
  );
31
119
  return (_ctx, _cache) => {
32
120
  return openBlock(), createElementBlock("div", _hoisted_1, [
33
- createVNode(_sfc_main$1, {
34
- column_id: column_id.value,
35
- "onUpdate:column_id": _cache[0] || (_cache[0] = ($event) => column_id.value = $event),
36
- height: props.height,
37
- tree: props.tree,
38
- "user-info": props.userInfo
39
- }, null, 8, ["column_id", "height", "tree", "user-info"])
121
+ createVNode(unref(Space), { size: "large" }, {
122
+ default: withCtx(() => [
123
+ createVNode(_sfc_main$1, {
124
+ column_id: column_id.value,
125
+ "onUpdate:column_id": _cache[0] || (_cache[0] = ($event) => column_id.value = $event),
126
+ height: props.height,
127
+ tree: props.tree,
128
+ "user-info": props.userInfo
129
+ }, null, 8, ["column_id", "height", "tree", "user-info"]),
130
+ createVNode(unref(Select), {
131
+ modelValue: filter.value.type,
132
+ "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => filter.value.type = $event),
133
+ class: "filter-item",
134
+ placeholder: "\u7C7B\u578B"
135
+ }, {
136
+ default: withCtx(() => [
137
+ (openBlock(true), createElementBlock(Fragment, null, renderList(typeOptions.value, (item) => {
138
+ return openBlock(), createBlock(unref(Option), {
139
+ key: item.value,
140
+ label: item.label,
141
+ value: item.value
142
+ }, null, 8, ["label", "value"]);
143
+ }), 128))
144
+ ]),
145
+ _: 1
146
+ }, 8, ["modelValue"]),
147
+ createVNode(unref(Select), {
148
+ modelValue: filter.value.cover_type,
149
+ "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => filter.value.cover_type = $event),
150
+ class: "filter-item",
151
+ placeholder: "\u5C01\u9762"
152
+ }, {
153
+ default: withCtx(() => [
154
+ (openBlock(true), createElementBlock(Fragment, null, renderList(thumbOptions.value, (item) => {
155
+ return openBlock(), createBlock(unref(Option), {
156
+ key: item.value,
157
+ label: item.label,
158
+ value: item.value
159
+ }, null, 8, ["label", "value"]);
160
+ }), 128))
161
+ ]),
162
+ _: 1
163
+ }, 8, ["modelValue"]),
164
+ createVNode(unref(Select), {
165
+ modelValue: filter.value.banner,
166
+ "onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => filter.value.banner = $event),
167
+ class: "filter-item",
168
+ placeholder: "\u72EC\u7ACB\u8F6E\u64AD"
169
+ }, {
170
+ default: withCtx(() => [
171
+ (openBlock(), createElementBlock(Fragment, null, renderList(bannerOptions, (item) => {
172
+ return createVNode(unref(Option), {
173
+ key: item.value,
174
+ label: item.label,
175
+ value: item.value
176
+ }, null, 8, ["label", "value"]);
177
+ }), 64))
178
+ ]),
179
+ _: 1
180
+ }, 8, ["modelValue"]),
181
+ createVNode(unref(Input), {
182
+ modelValue: filter.value.keywords,
183
+ "onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => filter.value.keywords = $event),
184
+ class: "filter-item",
185
+ "allow-clear": "",
186
+ placeholder: "\u8BF7\u8F93\u5165\u5185\u5BB9\u6807\u9898",
187
+ onPressEnter: handleSearch
188
+ }, null, 8, ["modelValue"]),
189
+ withDirectives(createVNode(unref(Button), {
190
+ type: "text",
191
+ size: "small",
192
+ onClick: reset
193
+ }, {
194
+ default: withCtx(() => [
195
+ createTextVNode("\u91CD\u7F6E")
196
+ ]),
197
+ _: 1
198
+ }, 512), [
199
+ [vShow, showReset.value]
200
+ ])
201
+ ]),
202
+ _: 1
203
+ })
40
204
  ]);
41
205
  };
42
206
  }
@@ -2,7 +2,9 @@ import { defineComponent, ref, computed, watch, onMounted, openBlock, createElem
2
2
  import { Table, Checkbox, Pagination, Message } from "@arco-design/web-vue";
3
3
  import _sfc_main$2 from "../../../typeIcons/component.js";
4
4
  import _sfc_main$1 from "./MediaFilter/index.js";
5
+ import _sfc_main$3 from "../../../dataTags/component.js";
5
6
  import useTableBatch from "../../../hooks/batch.js";
7
+ import { timeFormat } from "../../../utils/index.js";
6
8
  import { getCategoryMediaNew, checkCommitFulfillment, getCategoryCategoriesTree } from "../../script/api.js";
7
9
  const _hoisted_1 = { class: "view-all-column-container" };
8
10
  const _hoisted_2 = { class: "content-table-view" };
@@ -27,6 +29,15 @@ const _sfc_main = defineComponent({
27
29
  const props = __props;
28
30
  const _maxSelect = props.maxSelect || 100;
29
31
  const selectedData = ref([]);
32
+ const categoryCascaderData = ref([]);
33
+ const listMinHeight = ref(0);
34
+ const mediaFileData = ref([]);
35
+ const filter = ref(null);
36
+ const page = ref({
37
+ index: 1,
38
+ size: 30,
39
+ total: 0
40
+ });
30
41
  const tempSelectedData = computed(() => {
31
42
  return props.defaultSelectedData || [];
32
43
  });
@@ -37,7 +48,9 @@ const _sfc_main = defineComponent({
37
48
  }
38
49
  );
39
50
  const importantBanner = computed(() => {
40
- return props.banner !== "all";
51
+ if (!props.banner || props.banner === "all")
52
+ return false;
53
+ return !!props.banner;
41
54
  });
42
55
  const {
43
56
  isItemChecked,
@@ -90,10 +103,23 @@ const _sfc_main = defineComponent({
90
103
  emit("change", selectedData.value);
91
104
  };
92
105
  const group_id = ref(0);
93
- const categoryCascaderData = ref([]);
94
- const listMinHeight = ref(0);
95
106
  const scrollPercent = { y: "100%" };
96
- const search = () => {
107
+ const search = (_filter) => {
108
+ _filter = { ..._filter };
109
+ const where = [];
110
+ _filter.keywords && where.push(`kw:${_filter.keywords}`);
111
+ _filter.type && where.push(`series:${_filter.type}`);
112
+ _filter.state && where.push(`state:${_filter.state}`);
113
+ _filter.cover_type && where.push(`cover_type:${_filter.cover_type}`);
114
+ _filter.banner && where.push(`banner:${_filter.banner}`);
115
+ if (_filter.publish_date && Array.isArray(_filter.publish_date) && _filter.publish_date.length > 0) {
116
+ where.push(`publish_from:${_filter.publish_date[0] / 1e3}`);
117
+ where.push(`publish_to:${_filter.publish_date[1] / 1e3}`);
118
+ }
119
+ _filter.where = where;
120
+ filter.value = { ..._filter };
121
+ page.value.index = 1;
122
+ loadData();
97
123
  };
98
124
  const pageChangeHandle = (index) => {
99
125
  page.value.index = index;
@@ -123,11 +149,6 @@ const _sfc_main = defineComponent({
123
149
  categoryCascaderData.value = arr;
124
150
  }
125
151
  };
126
- const page = ref({
127
- index: 1,
128
- size: 30,
129
- total: 0
130
- });
131
152
  const columns = [
132
153
  {
133
154
  title: "\u6807\u9898",
@@ -150,8 +171,6 @@ const _sfc_main = defineComponent({
150
171
  slotName: "pub_time"
151
172
  }
152
173
  ];
153
- const mediaFileData = ref([]);
154
- const filter = ref(null);
155
174
  const importantSeries = computed(() => {
156
175
  return props.series !== "all";
157
176
  });
@@ -191,7 +210,7 @@ const _sfc_main = defineComponent({
191
210
  v.catalog = "doc";
192
211
  v.target_id = v.id;
193
212
  v.target_type = 3;
194
- v.pub_time = v.created_at;
213
+ v.pub_time = v.pub_time || v.created_at;
195
214
  v.update_time = v.updated_at;
196
215
  v.pub_user_alias = v.author_alias;
197
216
  return v;
@@ -246,13 +265,13 @@ const _sfc_main = defineComponent({
246
265
  ])
247
266
  ]),
248
267
  series: withCtx(({ record }) => [
249
- createElementVNode("span", null, toDisplayString(record.series), 1)
268
+ createVNode(_sfc_main$3, { item: record }, null, 8, ["item"])
250
269
  ]),
251
270
  duty_editor: withCtx(({ record }) => [
252
271
  createElementVNode("span", null, toDisplayString(record.duty_editor || "--"), 1)
253
272
  ]),
254
273
  pub_time: withCtx(({ record }) => [
255
- createElementVNode("span", null, toDisplayString(record.pub_time), 1)
274
+ createElementVNode("span", null, toDisplayString(unref(timeFormat)(record.pub_time)), 1)
256
275
  ]),
257
276
  _: 1
258
277
  }, 8, ["data", "onCellMouseEnter", "onCellMouseLeave"])
@@ -0,0 +1,2 @@
1
+ var _imports_0 = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAJAAAACQCAMAAADQmBKKAAABFFBMVEUAAADDw8Pp6enCwsLDw8PDw8PDw8PJycnb29vDw8PDw8PDw8PDw8PCwsLExMTExMTExMTExMTGxsbGxsbz8/PDw8PGxsbR0dHJycnExMTw8PDz8/PCwsLy8vLCwsLCwsLCwsLz8/PCwsLCwsLCwsLCwsLz8/PExMTFxcXFxcX09PT29vby8vLz8/P09PTz8/Pw8PDz8/Py8vLy8vLz8/Pz8/Pz8/P////z8/PLy8vz8/Pq6urCwsLY2NilpaXy8vLQ0NDW1tbT09PNzc3KysrDw8PHx8fV1dXFxcXAwMC9vb2oqKi6urqtra24uLi/v7+vr6+qqqrn5+e0tLSysrLv7+/g4ODj4+O2trbs7Oza2trd3d1iEndDAAAAPHRSTlMA0QTrrN6IFwf69tnEs3FrTUQqH9HAJBoOSUT349vOybmuqJOGem1XQTAsHuy3iHZN48nGw6iTBuvrV1cx68UsAAAHaklEQVR42uzX626bMBgGYBg5H5dEXTepaqse1PUeXlsmgTSBkASFH7n/K5lIN3nrMJ8P6fZjey4Avdgvn433379lNhnfN24HfjPodoOmP7ht3I8nM++veB7d+T1U6vl3o2fvT5qOGwEIQWM89f6IaesKmq5a756pPbqGketR23s/k2EXxrrDifc+Pt7A0s1H7+w+PPlw4D99OPPq9OGof85Vmg1xBsNzTczOYw9n0XvseGfwtQ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6Bgb5ZV2LaDjuRZgU+gpzsWch1UmTuyAD4MqOsTHzR1OAcVPqAQnGcIyF/BMMDJYh35Q2ONcIkYfOY3sg8RrhTbipZfsrg2QUYiUdh8mdFla7PDufgtUIK/n/IE5EjtwZHeFSUAAAAASUVORK5CYII=";
2
+ export { _imports_0 as default };
@@ -7,4 +7,7 @@ export declare function getCategoryMediaNew(BASE_API: string, params?: Params):
7
7
  export declare function checkCommitFulfillment(BASE_API: string, params?: Params): Promise<boolean>;
8
8
  export declare function searchMlists(BASE_API: string, params?: Params): import("axios").AxiosPromise<any>;
9
9
  export declare function getCategorylistsGroups(BASE_API: string, params?: Params): Promise<import("axios").AxiosResponse<any>>;
10
+ export declare function searchMpaccount(BASE_API: string, params?: Params): import("axios").AxiosPromise<any>;
11
+ export declare function getBroadcastList(BASE_API: string, params?: Params): import("axios").AxiosPromise<any>;
12
+ export declare function getMpContentList(BASE_API: string, params?: Params): import("axios").AxiosPromise<any>;
10
13
  export {};
@@ -42,4 +42,25 @@ async function getCategorylistsGroups(BASE_API, params) {
42
42
  params
43
43
  });
44
44
  }
45
- export { checkCommitFulfillment, getCategoryCategoriesTree, getCategoryMediaNew, getCategoryPath, getCategorylistsGroups, searchMlists };
45
+ function searchMpaccount(BASE_API, params) {
46
+ return request(BASE_API, {
47
+ url: `/poplar/v3/poppy/mp_account/search`,
48
+ method: "get",
49
+ params
50
+ });
51
+ }
52
+ function getBroadcastList(BASE_API, params) {
53
+ return request(BASE_API, {
54
+ url: "/poplar/v3/ilives",
55
+ method: "get",
56
+ params
57
+ });
58
+ }
59
+ function getMpContentList(BASE_API, params) {
60
+ return request(BASE_API, {
61
+ url: "/poplar/v3/mp/media/list",
62
+ method: "get",
63
+ params
64
+ });
65
+ }
66
+ export { checkCommitFulfillment, getBroadcastList, getCategoryCategoriesTree, getCategoryMediaNew, getCategoryPath, getCategorylistsGroups, getMpContentList, searchMlists, searchMpaccount };
@@ -1,34 +1,54 @@
1
1
  .view-all-column-container {
2
- height: 100%;
3
- .content-table-view {
4
- height: calc(100% - 110px);
5
- .title-span {
6
- width: 100%;
7
- display: block;
8
- text-overflow: ellipsis;
9
- overflow: hidden;
10
- white-space: nowrap;
11
- .icon {
12
- width: 20px;
13
- height: 25px;
14
- margin-right: 8px;
15
- padding-left: 0;
16
- font-size: 18px;
17
- vertical-align: middle;
18
- display: inline-block;
19
- text-align: center;
20
- }
21
- }
2
+ height: 100%;
3
+
4
+ .content-table-view {
5
+ height: calc(100% - 110px);
6
+
7
+ .title-span,
8
+ .mp_title-span {
9
+ display: block;
10
+ width: 100%;
11
+ overflow: hidden;
12
+ white-space: nowrap;
13
+ text-overflow: ellipsis;
14
+
15
+ .icon {
16
+ display: inline-block;
17
+ width: 20px;
18
+ height: 25px;
19
+ margin-right: 8px;
20
+ padding-left: 0;
21
+ font-size: 18px;
22
+ text-align: center;
23
+ vertical-align: middle;
24
+ }
22
25
  }
23
- .bottom-view {
24
- height: 60px;
25
- margin: 0px 15px;
26
- display: flex;
27
- align-items: center;
28
- justify-content: space-between;
29
- .left {
30
- display: flex;
31
- align-items: center;
32
- }
26
+
27
+ .mp_title-span {
28
+ margin-left: 10px;
33
29
  }
34
- }
30
+
31
+ .user-avatar {
32
+ display: inline-block;
33
+ width: 25px;
34
+ height: 25px;
35
+ margin-right: 12px;
36
+ vertical-align: middle;
37
+ border-radius: 50%;
38
+ cursor: pointer;
39
+ }
40
+ }
41
+
42
+ .bottom-view {
43
+ display: flex;
44
+ align-items: center;
45
+ justify-content: space-between;
46
+ height: 60px;
47
+ margin: 0 15px;
48
+
49
+ .left {
50
+ display: flex;
51
+ align-items: center;
52
+ }
53
+ }
54
+ }
@@ -65,29 +65,43 @@
65
65
  .view-all-column-container .content-table-view {
66
66
  height: calc(100% - 110px);
67
67
  }
68
- .view-all-column-container .content-table-view .title-span {
69
- width: 100%;
68
+ .view-all-column-container .content-table-view .title-span,
69
+ .view-all-column-container .content-table-view .mp_title-span {
70
70
  display: block;
71
- text-overflow: ellipsis;
71
+ width: 100%;
72
72
  overflow: hidden;
73
73
  white-space: nowrap;
74
+ text-overflow: ellipsis;
74
75
  }
75
- .view-all-column-container .content-table-view .title-span .icon {
76
+ .view-all-column-container .content-table-view .title-span .icon,
77
+ .view-all-column-container .content-table-view .mp_title-span .icon {
78
+ display: inline-block;
76
79
  width: 20px;
77
80
  height: 25px;
78
81
  margin-right: 8px;
79
82
  padding-left: 0;
80
83
  font-size: 18px;
84
+ text-align: center;
81
85
  vertical-align: middle;
86
+ }
87
+ .view-all-column-container .content-table-view .mp_title-span {
88
+ margin-left: 10px;
89
+ }
90
+ .view-all-column-container .content-table-view .user-avatar {
82
91
  display: inline-block;
83
- text-align: center;
92
+ width: 25px;
93
+ height: 25px;
94
+ margin-right: 12px;
95
+ vertical-align: middle;
96
+ border-radius: 50%;
97
+ cursor: pointer;
84
98
  }
85
99
  .view-all-column-container .bottom-view {
86
- height: 60px;
87
- margin: 0px 15px;
88
100
  display: flex;
89
101
  align-items: center;
90
102
  justify-content: space-between;
103
+ height: 60px;
104
+ margin: 0 15px;
91
105
  }
92
106
  .view-all-column-container .bottom-view .left {
93
107
  display: flex;
File without changes
@@ -1,18 +1,19 @@
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";
5
- import _sfc_main$1 from "../../../typeIcons/component.js";
3
+ import { kongo_source_map, mp_type_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";
6
6
  const _hoisted_1 = { class: "doc-tags-container" };
7
7
  const _hoisted_2 = { class: "doc-tags-thumb-ul" };
8
8
  const _hoisted_3 = ["src"];
9
9
  const _hoisted_4 = { key: 0 };
10
10
  const _hoisted_5 = { key: 1 };
11
11
  const _sfc_main = defineComponent({
12
- __name: "index",
12
+ ...{ name: "dataTags" },
13
+ __name: "component",
13
14
  props: {
14
15
  item: {},
15
- popverThumb: { type: Boolean },
16
+ popverThumb: { type: Boolean, default: true },
16
17
  disabled: { type: Boolean }
17
18
  },
18
19
  setup(__props) {
@@ -55,6 +56,7 @@ const _sfc_main = defineComponent({
55
56
  _ctx.popverThumb && thumbList.value.length ? (openBlock(), createBlock(unref(Popover), {
56
57
  key: 0,
57
58
  "content-class": "doc-tags-thumb-popver",
59
+ "arrow-class": "doc-tags-popver-arrow",
58
60
  duration: 500,
59
61
  position: "top",
60
62
  class: "no-margin",
@@ -75,8 +77,8 @@ const _sfc_main = defineComponent({
75
77
  ]),
76
78
  default: withCtx(() => [
77
79
  createVNode(unref(Tag), {
78
- class: normalizeClass({ disabled: _ctx.disabled }),
79
- size: "small"
80
+ size: "small",
81
+ class: normalizeClass([{ disabled: _ctx.disabled }, "thumb"])
80
82
  }, {
81
83
  default: withCtx(() => [
82
84
  createTextVNode(toDisplayString(thumbType.value), 1)
@@ -172,7 +174,7 @@ const _sfc_main = defineComponent({
172
174
  size: "small"
173
175
  }, {
174
176
  default: withCtx(() => [
175
- createTextVNode(toDisplayString(unref(contentList_list_type_map)[_ctx.item.mp_type]), 1)
177
+ createTextVNode(toDisplayString(unref(mp_type_map)[_ctx.item.mp_type]), 1)
176
178
  ]),
177
179
  _: 1
178
180
  })) : _ctx.item.catalog === "mp_content" ? (openBlock(), createBlock(_sfc_main$1, {
@@ -0,0 +1,2 @@
1
+ declare const dataTags: any;
2
+ export default dataTags;
@@ -0,0 +1,7 @@
1
+ import _sfc_main from "./component.js";
2
+ const dataTags = Object.assign(_sfc_main, {
3
+ install: (app) => {
4
+ app.component(_sfc_main.name, _sfc_main);
5
+ }
6
+ });
7
+ export { dataTags as default };
@@ -0,0 +1 @@
1
+ import "./index.css";
@@ -0,0 +1,51 @@
1
+ .doc-tags-container .arco-tag {
2
+ font-weight: 600;
3
+ border: none;
4
+ margin-right: 5px;
5
+ }
6
+ .doc-tags-container .yuanchuang {
7
+ color: #4886ff;
8
+ background: #edf3ff;
9
+ }
10
+ .doc-tags-container .star {
11
+ color: #4a8457;
12
+ background: #e6f8ea;
13
+ }
14
+ .doc-tags-container .waring {
15
+ color: #ff7d00;
16
+ background: #fff2e6;
17
+ }
18
+ .doc-tags-container .thumb {
19
+ color: #86909c;
20
+ background: #f3f4f5;
21
+ }
22
+ .doc-tags-container .disabled {
23
+ color: #bababa !important;
24
+ background: #ecebeb !important;
25
+ }
26
+ .doc-tags-popver-arrow {
27
+ display: none;
28
+ }
29
+ .no-margin span {
30
+ margin-right: 0 !important;
31
+ }
32
+ .doc-tags-thumb-popver {
33
+ min-width: unset;
34
+ padding: 0;
35
+ overflow: hidden;
36
+ line-height: unset;
37
+ border: none;
38
+ border-radius: 8px;
39
+ }
40
+ .doc-tags-thumb-popver .arco-popover-content {
41
+ margin-top: 0;
42
+ }
43
+ .doc-tags-thumb-popver .doc-tags-thumb-ul {
44
+ height: 110px;
45
+ }
46
+ .doc-tags-thumb-popver .doc-tags-thumb-ul img {
47
+ height: 100%;
48
+ }
49
+ .doc-tags-thumb-popver .doc-tags-thumb-ul img + img {
50
+ margin-left: 2px;
51
+ }
@@ -0,0 +1 @@
1
+ import './index.less';
@@ -0,0 +1 @@
1
+ import "./index.less";
@@ -1,9 +1,3 @@
1
- .no-margin {
2
- span {
3
- margin-right: 0 !important;
4
- }
5
- }
6
-
7
1
  .doc-tags-container {
8
2
  .arco-tag {
9
3
  font-weight: 600;
@@ -37,6 +31,16 @@
37
31
  }
38
32
  }
39
33
 
34
+ .doc-tags-popver-arrow {
35
+ display: none;
36
+ }
37
+
38
+ .no-margin {
39
+ span {
40
+ margin-right: 0 !important;
41
+ }
42
+ }
43
+
40
44
  .doc-tags-thumb-popver {
41
45
  min-width: unset;
42
46
  padding: 0;
@@ -45,8 +49,8 @@
45
49
  border: none;
46
50
  border-radius: 8px;
47
51
 
48
- .popper__arrow {
49
- display: none;
52
+ .arco-popover-content {
53
+ margin-top: 0;
50
54
  }
51
55
 
52
56
  .doc-tags-thumb-ul {