@cmstops/pro-compo 0.1.27 → 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 (83) hide show
  1. package/dist/index.css +72 -55
  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 +1 -1
  6. package/es/contentDetailList/components/Content/MaccountItem/index.js +1 -1
  7. package/es/contentDetailList/style/index.css +0 -48
  8. package/es/contentDetailList/style/index.less +0 -1
  9. package/es/contentModal/component.js +165 -5
  10. package/es/contentModal/components/CompoList/index.js +13 -6
  11. package/es/contentModal/components/ContentList/MediaFilter/index.js +112 -0
  12. package/es/contentModal/components/ContentList/index.d.ts +0 -0
  13. package/es/contentModal/components/ContentList/index.js +269 -0
  14. package/es/contentModal/components/LiveList/MediaFilter/index.d.ts +0 -0
  15. package/es/contentModal/components/LiveList/MediaFilter/index.js +74 -0
  16. package/es/contentModal/components/LiveList/index.d.ts +0 -0
  17. package/es/contentModal/components/LiveList/index.js +227 -0
  18. package/es/contentModal/components/MpAccountList/MpAccountFilter/index.d.ts +0 -0
  19. package/es/contentModal/components/MpAccountList/MpAccountFilter/index.js +62 -0
  20. package/es/contentModal/components/MpAccountList/index.d.ts +0 -0
  21. package/es/contentModal/components/MpAccountList/index.js +222 -0
  22. package/es/contentModal/components/MpContentList/MediaFilter/index.d.ts +0 -0
  23. package/es/contentModal/components/MpContentList/MediaFilter/index.js +85 -0
  24. package/es/contentModal/components/MpContentList/index.d.ts +0 -0
  25. package/es/contentModal/components/MpContentList/index.js +214 -0
  26. package/es/contentModal/components/ViewAllColumn/MediaFilter/index.js +176 -12
  27. package/es/contentModal/components/ViewAllColumn/index.js +33 -14
  28. package/es/contentModal/images/user.js +2 -0
  29. package/es/contentModal/script/api.d.ts +3 -0
  30. package/es/contentModal/script/api.js +22 -1
  31. package/es/contentModal/style/ViewAllColumn.less +51 -31
  32. package/es/contentModal/style/index.css +21 -7
  33. package/es/dataTags/component.d.ts +0 -0
  34. package/es/{contentDetailList/components/DocTags/index.js → dataTags/component.js} +9 -7
  35. package/es/dataTags/index.d.ts +2 -0
  36. package/es/dataTags/index.js +7 -0
  37. package/es/dataTags/style/css.js +1 -0
  38. package/es/dataTags/style/index.css +51 -0
  39. package/es/dataTags/style/index.d.ts +1 -0
  40. package/es/dataTags/style/index.js +1 -0
  41. package/{lib/contentDetailList/style/DocTags.less → es/dataTags/style/index.less} +12 -8
  42. package/es/emptyData/component.js +5 -5
  43. package/es/index.css +72 -55
  44. package/es/index.d.ts +1 -0
  45. package/es/index.js +1 -0
  46. package/es/index.less +1 -0
  47. package/es/utils/typeMap.d.ts +6 -15
  48. package/es/utils/typeMap.js +21 -1
  49. package/lib/contentDetailList/components/Content/DocItem/index.js +4 -4
  50. package/lib/contentDetailList/components/Content/DocMpItem/index.js +2 -2
  51. package/lib/contentDetailList/components/Content/KongoNavItem/index.js +2 -2
  52. package/lib/contentDetailList/components/Content/MaccountItem/index.js +2 -2
  53. package/lib/contentDetailList/style/index.css +0 -48
  54. package/lib/contentDetailList/style/index.less +0 -1
  55. package/lib/contentModal/component.js +165 -5
  56. package/lib/contentModal/components/CompoList/index.js +15 -8
  57. package/lib/contentModal/components/ContentList/MediaFilter/index.js +113 -0
  58. package/lib/contentModal/components/ContentList/index.js +270 -0
  59. package/lib/contentModal/components/LiveList/MediaFilter/index.js +75 -0
  60. package/lib/contentModal/components/LiveList/index.js +228 -0
  61. package/lib/contentModal/components/MpAccountList/MpAccountFilter/index.js +63 -0
  62. package/lib/contentModal/components/MpAccountList/index.js +223 -0
  63. package/lib/contentModal/components/MpContentList/MediaFilter/index.js +86 -0
  64. package/lib/contentModal/components/MpContentList/index.js +215 -0
  65. package/lib/contentModal/components/ViewAllColumn/MediaFilter/index.js +175 -11
  66. package/lib/contentModal/components/ViewAllColumn/index.js +33 -14
  67. package/lib/contentModal/images/user.js +3 -0
  68. package/lib/contentModal/script/api.js +24 -0
  69. package/lib/contentModal/style/ViewAllColumn.less +51 -31
  70. package/lib/contentModal/style/index.css +21 -7
  71. package/lib/{contentDetailList/components/DocTags/index.js → dataTags/component.js} +9 -7
  72. package/lib/dataTags/index.js +8 -0
  73. package/lib/dataTags/style/css.js +2 -0
  74. package/lib/dataTags/style/index.css +51 -0
  75. package/lib/dataTags/style/index.js +2 -0
  76. package/{es/contentDetailList/style/DocTags.less → lib/dataTags/style/index.less} +12 -8
  77. package/lib/emptyData/component.js +4 -4
  78. package/lib/index.css +72 -55
  79. package/lib/index.js +2 -0
  80. package/lib/index.less +1 -0
  81. package/lib/utils/typeMap.js +22 -0
  82. package/package.json +1 -1
  83. /package/es/{contentDetailList/components/DocTags → contentModal/components/ContentList/MediaFilter}/index.d.ts +0 -0
@@ -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;
@@ -1,19 +1,20 @@
1
1
  "use strict";
2
2
  var vue = require("vue");
3
3
  var webVue = require("@arco-design/web-vue");
4
- var typeMap = require("../../../utils/typeMap.js");
5
- var doc = require("../../../utils/doc.js");
6
- var component = require("../../../typeIcons/component.js");
4
+ var typeMap = require("../utils/typeMap.js");
5
+ var doc = require("../utils/doc.js");
6
+ var component = require("../typeIcons/component.js");
7
7
  const _hoisted_1 = { class: "doc-tags-container" };
8
8
  const _hoisted_2 = { class: "doc-tags-thumb-ul" };
9
9
  const _hoisted_3 = ["src"];
10
10
  const _hoisted_4 = { key: 0 };
11
11
  const _hoisted_5 = { key: 1 };
12
12
  const _sfc_main = vue.defineComponent({
13
- __name: "index",
13
+ ...{ name: "dataTags" },
14
+ __name: "component",
14
15
  props: {
15
16
  item: {},
16
- popverThumb: { type: Boolean },
17
+ popverThumb: { type: Boolean, default: true },
17
18
  disabled: { type: Boolean }
18
19
  },
19
20
  setup(__props) {
@@ -56,6 +57,7 @@ const _sfc_main = vue.defineComponent({
56
57
  _ctx.popverThumb && thumbList.value.length ? (vue.openBlock(), vue.createBlock(vue.unref(webVue.Popover), {
57
58
  key: 0,
58
59
  "content-class": "doc-tags-thumb-popver",
60
+ "arrow-class": "doc-tags-popver-arrow",
59
61
  duration: 500,
60
62
  position: "top",
61
63
  class: "no-margin",
@@ -76,8 +78,8 @@ const _sfc_main = vue.defineComponent({
76
78
  ]),
77
79
  default: vue.withCtx(() => [
78
80
  vue.createVNode(vue.unref(webVue.Tag), {
79
- class: vue.normalizeClass({ disabled: _ctx.disabled }),
80
- size: "small"
81
+ size: "small",
82
+ class: vue.normalizeClass([{ disabled: _ctx.disabled }, "thumb"])
81
83
  }, {
82
84
  default: vue.withCtx(() => [
83
85
  vue.createTextVNode(vue.toDisplayString(thumbType.value), 1)
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ var component = require("./component.js");
3
+ const dataTags = Object.assign(component, {
4
+ install: (app) => {
5
+ app.component(component.name, component);
6
+ }
7
+ });
8
+ module.exports = dataTags;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ require("./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,2 @@
1
+ "use strict";
2
+ require("./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 {
@@ -85,7 +85,7 @@ const _sfc_main = vue.defineComponent({
85
85
  },
86
86
  setup(__props) {
87
87
  const props = __props;
88
- let dynamicComponent = null;
88
+ const dynamicComponent = vue.ref(null);
89
89
  const tipMap = vue.ref({
90
90
  add: "\u6DFB\u52A0\u5185\u5BB9",
91
91
  acount: "\u6682\u65E0\u8D26\u53F7",
@@ -103,17 +103,17 @@ const _sfc_main = vue.defineComponent({
103
103
  });
104
104
  const loadComponent = async (componentName) => {
105
105
  const component = await __variableDynamicImportRuntime0__(`./svg/${componentName}.vue`);
106
- dynamicComponent = component.default;
106
+ dynamicComponent.value = component.default;
107
107
  };
108
108
  vue.onMounted(() => {
109
109
  loadComponent(props.type);
110
110
  });
111
111
  return (_ctx, _cache) => {
112
- return vue.unref(dynamicComponent) ? (vue.openBlock(), vue.createElementBlock("div", {
112
+ return dynamicComponent.value ? (vue.openBlock(), vue.createElementBlock("div", {
113
113
  key: 0,
114
114
  class: vue.normalizeClass(["empty-data-container", { small: _ctx.size === "small" }])
115
115
  }, [
116
- (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(vue.unref(dynamicComponent)))),
116
+ (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(dynamicComponent.value))),
117
117
  !_ctx.noTip ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1, vue.toDisplayString(_ctx.customTip ? _ctx.customTip : tipMap.value[_ctx.type]), 1)) : vue.createCommentVNode("v-if", true),
118
118
  vue.createElementVNode("div", _hoisted_2, [
119
119
  vue.renderSlot(_ctx.$slots, "extra")
package/lib/index.css CHANGED
@@ -392,29 +392,43 @@
392
392
  .view-all-column-container .content-table-view {
393
393
  height: calc(100% - 110px);
394
394
  }
395
- .view-all-column-container .content-table-view .title-span {
396
- width: 100%;
395
+ .view-all-column-container .content-table-view .title-span,
396
+ .view-all-column-container .content-table-view .mp_title-span {
397
397
  display: block;
398
- text-overflow: ellipsis;
398
+ width: 100%;
399
399
  overflow: hidden;
400
400
  white-space: nowrap;
401
+ text-overflow: ellipsis;
401
402
  }
402
- .view-all-column-container .content-table-view .title-span .icon {
403
+ .view-all-column-container .content-table-view .title-span .icon,
404
+ .view-all-column-container .content-table-view .mp_title-span .icon {
405
+ display: inline-block;
403
406
  width: 20px;
404
407
  height: 25px;
405
408
  margin-right: 8px;
406
409
  padding-left: 0;
407
410
  font-size: 18px;
411
+ text-align: center;
408
412
  vertical-align: middle;
413
+ }
414
+ .view-all-column-container .content-table-view .mp_title-span {
415
+ margin-left: 10px;
416
+ }
417
+ .view-all-column-container .content-table-view .user-avatar {
409
418
  display: inline-block;
410
- text-align: center;
419
+ width: 25px;
420
+ height: 25px;
421
+ margin-right: 12px;
422
+ vertical-align: middle;
423
+ border-radius: 50%;
424
+ cursor: pointer;
411
425
  }
412
426
  .view-all-column-container .bottom-view {
413
- height: 60px;
414
- margin: 0px 15px;
415
427
  display: flex;
416
428
  align-items: center;
417
429
  justify-content: space-between;
430
+ height: 60px;
431
+ margin: 0 15px;
418
432
  }
419
433
  .view-all-column-container .bottom-view .left {
420
434
  display: flex;
@@ -2093,54 +2107,6 @@
2093
2107
  .medialist-kongo-item-view .info-view .abttrite-v .right {
2094
2108
  margin-right: 20px;
2095
2109
  }
2096
- .no-margin span {
2097
- margin-right: 0 !important;
2098
- }
2099
- .doc-tags-container .arco-tag {
2100
- font-weight: 600;
2101
- border: none;
2102
- margin-right: 5px;
2103
- }
2104
- .doc-tags-container .yuanchuang {
2105
- color: #4886ff;
2106
- background: #edf3ff;
2107
- }
2108
- .doc-tags-container .star {
2109
- color: #4a8457;
2110
- background: #e6f8ea;
2111
- }
2112
- .doc-tags-container .waring {
2113
- color: #ff7d00;
2114
- background: #fff2e6;
2115
- }
2116
- .doc-tags-container .thumb {
2117
- color: #86909c;
2118
- background: #f3f4f5;
2119
- }
2120
- .doc-tags-container .disabled {
2121
- color: #bababa !important;
2122
- background: #ecebeb !important;
2123
- }
2124
- .doc-tags-thumb-popver {
2125
- min-width: unset;
2126
- padding: 0;
2127
- overflow: hidden;
2128
- line-height: unset;
2129
- border: none;
2130
- border-radius: 8px;
2131
- }
2132
- .doc-tags-thumb-popver .popper__arrow {
2133
- display: none;
2134
- }
2135
- .doc-tags-thumb-popver .doc-tags-thumb-ul {
2136
- height: 110px;
2137
- }
2138
- .doc-tags-thumb-popver .doc-tags-thumb-ul img {
2139
- height: 100%;
2140
- }
2141
- .doc-tags-thumb-popver .doc-tags-thumb-ul img + img {
2142
- margin-left: 2px;
2143
- }
2144
2110
  .medialist-ilive-item-view {
2145
2111
  display: flex;
2146
2112
  padding: 10px;
@@ -2956,3 +2922,54 @@
2956
2922
  .base-filter-container .left .filter-item-view.value .arco-icon-hover {
2957
2923
  color: rgb(var(--primary-6));
2958
2924
  }
2925
+ .doc-tags-container .arco-tag {
2926
+ font-weight: 600;
2927
+ border: none;
2928
+ margin-right: 5px;
2929
+ }
2930
+ .doc-tags-container .yuanchuang {
2931
+ color: #4886ff;
2932
+ background: #edf3ff;
2933
+ }
2934
+ .doc-tags-container .star {
2935
+ color: #4a8457;
2936
+ background: #e6f8ea;
2937
+ }
2938
+ .doc-tags-container .waring {
2939
+ color: #ff7d00;
2940
+ background: #fff2e6;
2941
+ }
2942
+ .doc-tags-container .thumb {
2943
+ color: #86909c;
2944
+ background: #f3f4f5;
2945
+ }
2946
+ .doc-tags-container .disabled {
2947
+ color: #bababa !important;
2948
+ background: #ecebeb !important;
2949
+ }
2950
+ .doc-tags-popver-arrow {
2951
+ display: none;
2952
+ }
2953
+ .no-margin span {
2954
+ margin-right: 0 !important;
2955
+ }
2956
+ .doc-tags-thumb-popver {
2957
+ min-width: unset;
2958
+ padding: 0;
2959
+ overflow: hidden;
2960
+ line-height: unset;
2961
+ border: none;
2962
+ border-radius: 8px;
2963
+ }
2964
+ .doc-tags-thumb-popver .arco-popover-content {
2965
+ margin-top: 0;
2966
+ }
2967
+ .doc-tags-thumb-popver .doc-tags-thumb-ul {
2968
+ height: 110px;
2969
+ }
2970
+ .doc-tags-thumb-popver .doc-tags-thumb-ul img {
2971
+ height: 100%;
2972
+ }
2973
+ .doc-tags-thumb-popver .doc-tags-thumb-ul img + img {
2974
+ margin-left: 2px;
2975
+ }
package/lib/index.js CHANGED
@@ -20,6 +20,7 @@ var index$f = require("./userDirector/index.js");
20
20
  var index$g = require("./selectThumb/index.js");
21
21
  var index$h = require("./editMetaInfo/index.js");
22
22
  var index$i = require("./baseFilter/index.js");
23
+ var index$j = require("./dataTags/index.js");
23
24
  exports["default"] = components;
24
25
  exports.appCenter = index;
25
26
  exports.messageBox = index$1;
@@ -40,3 +41,4 @@ exports.userDirector = index$f;
40
41
  exports.selectThumb = index$g;
41
42
  exports.editMetaInfo = index$h;
42
43
  exports.baseFilter = index$i;
44
+ exports.dataTags = index$j;
package/lib/index.less CHANGED
@@ -18,3 +18,4 @@
18
18
  @import './selectThumb/style/index.less';
19
19
  @import './editMetaInfo/style/index.less';
20
20
  @import './baseFilter/style/index.less';
21
+ @import './dataTags/style/index.less';
@@ -1,5 +1,20 @@
1
1
  "use strict";
2
2
  Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
3
+ const key_target_type_map = {
4
+ 3: "doc",
5
+ 4: "column",
6
+ 5: "link",
7
+ 6: "contentList",
8
+ 7: "group",
9
+ 8: "mpGroup",
10
+ 9: "app",
11
+ 11: "topic",
12
+ 12: "topic",
13
+ 13: "ilive",
14
+ 14: "mp_account",
15
+ 15: "kongo",
16
+ 16: "mp_content"
17
+ };
3
18
  const approveFlowStatusMap = {
4
19
  1: "\u5BA1\u6838\u4E2D",
5
20
  2: "\u5DF2\u62D2\u7EDD",
@@ -102,6 +117,11 @@ const calcApprovingDependent = (data) => {
102
117
  }
103
118
  return alias;
104
119
  };
120
+ const ilive_type_map = {
121
+ 1: "\u73B0\u573A\u76F4\u64AD",
122
+ 2: "\u56FE\u6587\u76F4\u64AD",
123
+ 3: "\u6162\u76F4\u64AD"
124
+ };
105
125
  exports.approveFlowStatusMap = approveFlowStatusMap;
106
126
  exports.calcApprovingDependent = calcApprovingDependent;
107
127
  exports.calcApprovingUser = calcApprovingUser;
@@ -110,6 +130,8 @@ exports.componentsColumns = componentsColumns;
110
130
  exports.contentList_layout_map = contentList_layout_map;
111
131
  exports.contentList_list_type_map = contentList_list_type_map;
112
132
  exports.contentList_relation_type_map = contentList_relation_type_map;
133
+ exports.ilive_type_map = ilive_type_map;
134
+ exports.key_target_type_map = key_target_type_map;
113
135
  exports.kongo_source_map = kongo_source_map;
114
136
  exports.mpTypeOptions = mpTypeOptions;
115
137
  exports.mp_type_map = mp_type_map;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cmstops/pro-compo",
3
- "version": "0.1.27",
3
+ "version": "0.1.29",
4
4
  "description": "",
5
5
  "keywords": [
6
6
  "vue",