@cmstops/pro-compo 0.1.3 → 0.1.4

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 (132) hide show
  1. package/dist/index.css +26 -4
  2. package/dist/index.min.css +1 -1
  3. package/es/appCenter/component.js +2 -1
  4. package/es/config.d.ts +2 -0
  5. package/es/config.js +3 -0
  6. package/es/contentModal/component.d.ts +0 -0
  7. package/es/contentModal/component.js +175 -0
  8. package/es/contentModal/components/CompoList/CompoFilter/index.d.ts +0 -0
  9. package/es/contentModal/components/CompoList/CompoFilter/index.js +103 -0
  10. package/es/contentModal/components/CompoList/index.d.ts +0 -0
  11. package/es/contentModal/components/CompoList/index.js +234 -0
  12. package/es/contentModal/components/ViewAllColumn/MediaFilter/index.d.ts +0 -0
  13. package/es/contentModal/components/ViewAllColumn/MediaFilter/index.js +44 -0
  14. package/es/contentModal/components/ViewAllColumn/columnTree/index.d.ts +0 -0
  15. package/es/contentModal/components/ViewAllColumn/columnTree/index.js +101 -0
  16. package/es/contentModal/components/ViewAllColumn/index.d.ts +0 -0
  17. package/es/contentModal/components/ViewAllColumn/index.js +277 -0
  18. package/es/contentModal/components/storeBox/index.d.ts +0 -0
  19. package/es/contentModal/components/storeBox/index.js +107 -0
  20. package/es/contentModal/index.d.ts +2 -0
  21. package/es/contentModal/index.js +7 -0
  22. package/es/contentModal/script/api.d.ts +10 -0
  23. package/es/contentModal/script/api.js +45 -0
  24. package/es/contentModal/style/MediaFilter.less +8 -0
  25. package/es/contentModal/style/ViewAllColumn.less +33 -0
  26. package/es/contentModal/style/columnTree.less +9 -0
  27. package/es/contentModal/style/css.js +5 -0
  28. package/es/contentModal/style/index.css +13 -0
  29. package/es/contentModal/style/index.d.ts +5 -0
  30. package/es/contentModal/style/index.js +5 -0
  31. package/es/contentModal/style/index.less +16 -0
  32. package/es/contentModal/style/storeBox.less +45 -0
  33. package/es/hooks/batch.d.ts +8 -0
  34. package/es/hooks/batch.js +26 -0
  35. package/es/hooks/user.d.ts +11 -0
  36. package/es/hooks/user.js +46 -0
  37. package/es/index.css +26 -4
  38. package/es/index.d.ts +4 -1
  39. package/es/index.js +4 -1
  40. package/es/index.less +4 -1
  41. package/es/messageBox/component.js +2 -1
  42. package/es/messageBox/list.js +4 -4
  43. package/es/resourceModal/component.d.ts +0 -0
  44. package/es/resourceModal/component.js +14 -0
  45. package/es/resourceModal/index.d.ts +2 -0
  46. package/es/resourceModal/index.js +7 -0
  47. package/es/style.css +5 -0
  48. package/es/typeIcons/component.d.ts +0 -0
  49. package/es/typeIcons/component.js +62 -0
  50. package/es/typeIcons/index.d.ts +2 -0
  51. package/es/typeIcons/index.js +7 -0
  52. package/es/typeIcons/style/css.js +1 -0
  53. package/es/typeIcons/style/index.css +5 -0
  54. package/es/typeIcons/style/index.d.ts +1 -0
  55. package/es/typeIcons/style/index.js +1 -0
  56. package/es/typeIcons/style/index.less +5 -0
  57. package/es/uploadStep/component.d.ts +0 -0
  58. package/es/uploadStep/component.js +14 -0
  59. package/es/uploadStep/index.d.ts +2 -0
  60. package/es/uploadStep/index.js +7 -0
  61. package/es/uploadStep/style/css.js +1 -0
  62. package/es/uploadStep/style/index.d.ts +1 -0
  63. package/es/uploadStep/style/index.js +1 -0
  64. package/es/userAvater/component.js +3 -3
  65. package/es/utils/index.d.ts +1 -0
  66. package/es/utils/index.js +7 -0
  67. package/es/utils/request.js +3 -4
  68. package/es/utils/typeMap.d.ts +116 -0
  69. package/es/utils/typeMap.js +22 -0
  70. package/lib/appCenter/component.js +2 -1
  71. package/lib/config.js +6 -0
  72. package/lib/contentModal/component.js +176 -0
  73. package/lib/contentModal/components/CompoList/CompoFilter/index.js +104 -0
  74. package/lib/contentModal/components/CompoList/index.js +235 -0
  75. package/lib/contentModal/components/ViewAllColumn/MediaFilter/index.js +45 -0
  76. package/lib/contentModal/components/ViewAllColumn/columnTree/index.js +102 -0
  77. package/lib/contentModal/components/ViewAllColumn/index.js +278 -0
  78. package/lib/contentModal/components/storeBox/index.js +108 -0
  79. package/lib/contentModal/index.js +8 -0
  80. package/lib/contentModal/script/api.js +52 -0
  81. package/lib/contentModal/style/MediaFilter.less +8 -0
  82. package/lib/contentModal/style/ViewAllColumn.less +33 -0
  83. package/lib/contentModal/style/columnTree.less +9 -0
  84. package/lib/contentModal/style/css.js +6 -0
  85. package/lib/contentModal/style/index.css +13 -0
  86. package/lib/contentModal/style/index.js +6 -0
  87. package/lib/contentModal/style/index.less +16 -0
  88. package/lib/contentModal/style/storeBox.less +45 -0
  89. package/lib/hooks/batch.js +27 -0
  90. package/lib/hooks/user.js +49 -0
  91. package/lib/index.css +26 -4
  92. package/lib/index.js +14 -8
  93. package/lib/index.less +4 -1
  94. package/lib/messageBox/component.js +2 -1
  95. package/lib/messageBox/list.js +4 -4
  96. package/lib/resourceModal/component.js +15 -0
  97. package/lib/resourceModal/index.js +8 -0
  98. package/lib/resourceModal/style/index.css +4 -0
  99. package/lib/resourceModal/style/index.less +4 -0
  100. package/lib/typeIcons/component.js +63 -0
  101. package/lib/{button → typeIcons}/index.js +2 -2
  102. package/lib/typeIcons/style/css.js +2 -0
  103. package/lib/typeIcons/style/index.css +5 -0
  104. package/lib/typeIcons/style/index.js +2 -0
  105. package/lib/typeIcons/style/index.less +5 -0
  106. package/lib/uploadStep/component.js +15 -0
  107. package/lib/uploadStep/index.js +8 -0
  108. package/lib/uploadStep/style/css.js +2 -0
  109. package/lib/uploadStep/style/index.css +4 -0
  110. package/lib/uploadStep/style/index.js +2 -0
  111. package/lib/uploadStep/style/index.less +4 -0
  112. package/lib/userAvater/component.js +3 -3
  113. package/lib/utils/index.js +13 -0
  114. package/lib/utils/request.js +3 -4
  115. package/lib/utils/typeMap.js +25 -0
  116. package/package.json +4 -2
  117. package/es/_virtual/plugin-vue_export-helper.js +0 -7
  118. package/es/button/component.d.ts +0 -24
  119. package/es/button/component.js +0 -43
  120. package/es/button/index.d.ts +0 -103
  121. package/es/button/index.js +0 -7
  122. package/lib/_virtual/plugin-vue_export-helper.js +0 -8
  123. package/lib/button/component.js +0 -44
  124. /package/es/{button → resourceModal}/style/css.js +0 -0
  125. /package/es/{button → resourceModal}/style/index.css +0 -0
  126. /package/es/{button → resourceModal}/style/index.d.ts +0 -0
  127. /package/es/{button → resourceModal}/style/index.js +0 -0
  128. /package/es/{button → resourceModal}/style/index.less +0 -0
  129. /package/{lib/button → es/uploadStep}/style/index.css +0 -0
  130. /package/{lib/button → es/uploadStep}/style/index.less +0 -0
  131. /package/lib/{button → resourceModal}/style/css.js +0 -0
  132. /package/lib/{button → resourceModal}/style/index.js +0 -0
package/lib/index.css CHANGED
@@ -1,7 +1,3 @@
1
- .tooltip-button {
2
- height: auto;
3
- padding: 20px;
4
- }
5
1
  .reference-btn {
6
2
  border: none;
7
3
  padding: 12px 16px;
@@ -206,3 +202,29 @@
206
202
  align-items: center;
207
203
  justify-content: center;
208
204
  }
205
+ .type-icons-container {
206
+ display: inline-block;
207
+ vertical-align: middle;
208
+ font-size: 18px;
209
+ }
210
+ .tooltip-button {
211
+ height: auto;
212
+ padding: 20px;
213
+ }
214
+ .add-content-modal-wrapper .arco-modal-header {
215
+ border-bottom: none;
216
+ }
217
+ .add-content-modal-body {
218
+ padding: 0;
219
+ height: 70vh;
220
+ }
221
+ .add-content-modal-body .content-tabs {
222
+ height: 100%;
223
+ }
224
+ .add-content-modal-body .arco-tabs-content {
225
+ padding-top: 0;
226
+ }
227
+ .tooltip-button {
228
+ height: auto;
229
+ padding: 20px;
230
+ }
package/lib/index.js CHANGED
@@ -1,12 +1,18 @@
1
1
  "use strict";
2
2
  Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
3
3
  var components = require("./components.js");
4
- var index = require("./button/index.js");
5
- var index$1 = require("./appCenter/index.js");
6
- var index$2 = require("./messageBox/index.js");
7
- var index$3 = require("./userAvater/index.js");
4
+ var index = require("./appCenter/index.js");
5
+ var index$1 = require("./messageBox/index.js");
6
+ var index$2 = require("./userAvater/index.js");
7
+ var index$3 = require("./typeIcons/index.js");
8
+ var index$4 = require("./uploadStep/index.js");
9
+ var index$5 = require("./contentModal/index.js");
10
+ var index$6 = require("./resourceModal/index.js");
8
11
  exports["default"] = components;
9
- exports.button = index;
10
- exports.appCenter = index$1;
11
- exports.messageBox = index$2;
12
- exports.userAvater = index$3;
12
+ exports.appCenter = index;
13
+ exports.messageBox = index$1;
14
+ exports.userAvater = index$2;
15
+ exports.typeIcons = index$3;
16
+ exports.uploadStep = index$4;
17
+ exports.contentModal = index$5;
18
+ exports.resourceModal = index$6;
package/lib/index.less CHANGED
@@ -1,5 +1,8 @@
1
1
  @import './style/index.less';
2
- @import './button/style/index.less';
3
2
  @import './appCenter/style/index.less';
4
3
  @import './messageBox/style/index.less';
5
4
  @import './userAvater/style/index.less';
5
+ @import './typeIcons/style/index.less';
6
+ @import './uploadStep/style/index.less';
7
+ @import './contentModal/style/index.less';
8
+ @import './resourceModal/style/index.less';
@@ -3,6 +3,7 @@ var vue = require("vue");
3
3
  var webVue = require("@arco-design/web-vue");
4
4
  var list = require("./list.js");
5
5
  var api = require("./script/api.js");
6
+ var config = require("../config.js");
6
7
  const _hoisted_1 = { class: "message-boxs-container" };
7
8
  const _hoisted_2 = {
8
9
  key: 1,
@@ -17,7 +18,7 @@ const _sfc_main = vue.defineComponent({
17
18
  },
18
19
  setup(__props) {
19
20
  const props = __props;
20
- const BASE_API = props.BASE_API || "https://site.cmstop.xyz";
21
+ const BASE_API = props.BASE_API || config.DEFAULT_BASE_API;
21
22
  const slotTest = !!vue.useSlots().reference;
22
23
  const readMessagesCount = vue.ref(0);
23
24
  const unreadMessagesCount = vue.ref(0);
@@ -53,10 +53,10 @@ const _sfc_main = vue.defineComponent({
53
53
  const openApprovalDetail = (msg) => {
54
54
  console.log(msg);
55
55
  };
56
- const handleScroll = (event) => {
57
- event && event.stopPropagation();
58
- if (event.target) {
59
- const { scrollTop, scrollHeight, clientHeight } = event.target;
56
+ const handleScroll = (e) => {
57
+ e && e.stopPropagation();
58
+ if (e.target) {
59
+ const { scrollTop, scrollHeight, clientHeight } = e.target;
60
60
  if (scrollTop + clientHeight >= scrollHeight) {
61
61
  if (props.isLoadingMore === false && !props.isNorMore) {
62
62
  emits("loadMoreMsg", props.listType);
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ var vue = require("vue");
3
+ const _sfc_main = vue.defineComponent({
4
+ ...{ name: "resourceModal" },
5
+ __name: "component",
6
+ props: {
7
+ BASE_API: {}
8
+ },
9
+ setup(__props) {
10
+ return (_ctx, _cache) => {
11
+ return vue.openBlock(), vue.createElementBlock("div", null, "resourceModal");
12
+ };
13
+ }
14
+ });
15
+ module.exports = _sfc_main;
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ var component = require("./component.js");
3
+ const resourceModal = Object.assign(component, {
4
+ install: (app) => {
5
+ app.component(component.name, component);
6
+ }
7
+ });
8
+ module.exports = resourceModal;
@@ -0,0 +1,4 @@
1
+ .tooltip-button {
2
+ height: auto;
3
+ padding: 20px;
4
+ }
@@ -0,0 +1,4 @@
1
+ .tooltip-button {
2
+ height: auto;
3
+ padding: 20px;
4
+ }
@@ -0,0 +1,63 @@
1
+ "use strict";
2
+ var vue = require("vue");
3
+ var vueCmstopIcons = require("@arco-iconbox/vue-cmstop-icons");
4
+ const _hoisted_1 = { class: "type-icons-container" };
5
+ const _sfc_main = vue.defineComponent({
6
+ ...{ name: "typeIcons" },
7
+ __name: "component",
8
+ props: {
9
+ type: {},
10
+ doc: { type: Boolean },
11
+ resource: { type: Boolean }
12
+ },
13
+ setup(__props) {
14
+ const props = __props;
15
+ return (_ctx, _cache) => {
16
+ return vue.openBlock(), vue.createElementBlock("div", _hoisted_1, [
17
+ vue.createCommentVNode("------------------------------- \u7A3F\u4EF6\u7C7B\u578B --------------------------------------"),
18
+ vue.createCommentVNode(" \u65B0\u95FB "),
19
+ props.doc && props.type === "imagetext" ? (vue.openBlock(), vue.createBlock(vue.unref(vueCmstopIcons.IconXinwen), { key: 0 })) : props.doc && props.type === "video" ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 1 }, [
20
+ vue.createCommentVNode(" \u89C6\u9891 "),
21
+ vue.createVNode(vue.unref(vueCmstopIcons.IconShipin))
22
+ ], 2112)) : props.doc && props.type === "audio" ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 2 }, [
23
+ vue.createCommentVNode(" \u97F3\u9891 "),
24
+ vue.createVNode(vue.unref(vueCmstopIcons.IconYinyue))
25
+ ], 2112)) : props.doc && props.type === "atlas" ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 3 }, [
26
+ vue.createCommentVNode(" \u56FE\u96C6 "),
27
+ vue.createVNode(vue.unref(vueCmstopIcons.IconTuji))
28
+ ], 2112)) : props.doc && props.type === "svideo" ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 4 }, [
29
+ vue.createCommentVNode(" \u5C0F\u89C6\u9891 "),
30
+ vue.createVNode(vue.unref(vueCmstopIcons.IconXiaoshipin))
31
+ ], 2112)) : props.doc && props.type === "special_v3" ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 5 }, [
32
+ vue.createCommentVNode(" \u4E13\u9898 "),
33
+ vue.createVNode(vue.unref(vueCmstopIcons.IconZhuanti))
34
+ ], 2112)) : props.doc && props.type === "audio_album" ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 6 }, [
35
+ vue.createCommentVNode(" \u97F3\u9891\u96C6 "),
36
+ vue.createVNode(vue.unref(vueCmstopIcons.IconYinpinji))
37
+ ], 2112)) : props.doc && props.type === "video_album" ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 7 }, [
38
+ vue.createCommentVNode(" \u89C6\u9891\u96C6 "),
39
+ vue.createVNode(vue.unref(vueCmstopIcons.IconShipinji))
40
+ ], 2112)) : props.doc && props.type === "h5" ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 8 }, [
41
+ vue.createCommentVNode(" h5 "),
42
+ vue.createVNode(vue.unref(vueCmstopIcons.IconH5))
43
+ ], 2112)) : props.doc && props.type === "live" ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 9 }, [
44
+ vue.createCommentVNode(" \u76F4\u64AD "),
45
+ vue.createVNode(vue.unref(vueCmstopIcons.IconZhibo))
46
+ ], 2112)) : props.resource && props.type === "image" ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 10 }, [
47
+ vue.createCommentVNode("------------------------------- \u7D20\u6750\u7C7B\u578B --------------------------------------"),
48
+ vue.createCommentVNode(" \u56FE\u7247 "),
49
+ vue.createVNode(vue.unref(vueCmstopIcons.IconTupian))
50
+ ], 2112)) : (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 11 }, [
51
+ vue.createCommentVNode("------------------------------- \u5176\u4ED6\u7C7B\u578B --------------------------------------"),
52
+ vue.createCommentVNode(" \u5FAE\u4FE1\u7A3F\u4EF6 "),
53
+ vue.createCommentVNode(" <icon-weixingaojian /> "),
54
+ vue.createCommentVNode(" \u8F6E\u535A\u56FE\u96C6 "),
55
+ vue.createCommentVNode(" <icon-lunbotuji /> "),
56
+ vue.createCommentVNode(" \u7A3F\u4EF6 "),
57
+ vue.createVNode(vue.unref(vueCmstopIcons.IconGaojian))
58
+ ], 2112))
59
+ ]);
60
+ };
61
+ }
62
+ });
63
+ module.exports = _sfc_main;
@@ -1,8 +1,8 @@
1
1
  "use strict";
2
2
  var component = require("./component.js");
3
- const button = Object.assign(component, {
3
+ const typeIcons = Object.assign(component, {
4
4
  install: (app) => {
5
5
  app.component(component.name, component);
6
6
  }
7
7
  });
8
- module.exports = button;
8
+ module.exports = typeIcons;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ require("./index.css");
@@ -0,0 +1,5 @@
1
+ .type-icons-container {
2
+ display: inline-block;
3
+ vertical-align: middle;
4
+ font-size: 18px;
5
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ require("./index.less");
@@ -0,0 +1,5 @@
1
+ .type-icons-container {
2
+ display: inline-block;
3
+ vertical-align: middle;
4
+ font-size: 18px;
5
+ }
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ var vue = require("vue");
3
+ const _sfc_main = vue.defineComponent({
4
+ ...{ name: "uploadStep" },
5
+ __name: "component",
6
+ props: {
7
+ BASE_API: {}
8
+ },
9
+ setup(__props) {
10
+ return (_ctx, _cache) => {
11
+ return vue.openBlock(), vue.createElementBlock("div", null, "uploadStep");
12
+ };
13
+ }
14
+ });
15
+ module.exports = _sfc_main;
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ var component = require("./component.js");
3
+ const uploadStep = Object.assign(component, {
4
+ install: (app) => {
5
+ app.component(component.name, component);
6
+ }
7
+ });
8
+ module.exports = uploadStep;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ require("./index.css");
@@ -0,0 +1,4 @@
1
+ .tooltip-button {
2
+ height: auto;
3
+ padding: 20px;
4
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ require("./index.less");
@@ -0,0 +1,4 @@
1
+ .tooltip-button {
2
+ height: auto;
3
+ padding: 20px;
4
+ }
@@ -2,6 +2,7 @@
2
2
  var vue = require("vue");
3
3
  var webVue = require("@arco-design/web-vue");
4
4
  var icon = require("@arco-design/web-vue/es/icon");
5
+ var config = require("../config.js");
5
6
  var api = require("./script/api.js");
6
7
  const _hoisted_1 = { class: "user-avater-container" };
7
8
  const _hoisted_2 = ["src"];
@@ -27,8 +28,8 @@ const _sfc_main = vue.defineComponent({
27
28
  },
28
29
  setup(__props) {
29
30
  const props = __props;
30
- const BASE_API = props.BASE_API || "https://site.cmstop.xyz";
31
- const BASE_ACCOUNT_HOST = props.BASE_ACCOUNT_HOST || "https://account.cmstop.xyz";
31
+ const BASE_API = props.BASE_API || config.DEFAULT_BASE_API;
32
+ const BASE_ACCOUNT_HOST = props.BASE_ACCOUNT_HOST || config.DEFAULT_BASE_ACCOUNT_HOST;
32
33
  const slotTest = !!vue.useSlots().reference;
33
34
  const userInfo = vue.ref(null);
34
35
  const loadUserInfo = async () => {
@@ -134,7 +135,6 @@ const _sfc_main = vue.defineComponent({
134
135
  }),
135
136
  vue.createElementVNode("div", _hoisted_11, [
136
137
  vue.createVNode(vue.unref(webVue.Button), {
137
- long: "",
138
138
  type: "text",
139
139
  onClick: _cache[1] || (_cache[1] = ($event) => loginOut())
140
140
  }, {
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
3
+ var dayjs = require("dayjs");
4
+ function _interopDefaultLegacy(e) {
5
+ return e && typeof e === "object" && "default" in e ? e : { "default": e };
6
+ }
7
+ var dayjs__default = /* @__PURE__ */ _interopDefaultLegacy(dayjs);
8
+ const dateYYYYDDMMHHmm = (date) => {
9
+ if (!date)
10
+ return "--";
11
+ return dayjs__default["default"](date).format("YYYY-DD-MM HH:mm");
12
+ };
13
+ exports.dateYYYYDDMMHHmm = dateYYYYDDMMHHmm;
@@ -14,7 +14,7 @@ function request(BASE_API, options) {
14
14
  service.interceptors.request.use(
15
15
  (config) => {
16
16
  if (auth.getToken()) {
17
- config.headers["Authorization"] = `Bearer ${auth.getToken()}`;
17
+ config.headers.Authorization = `Bearer ${auth.getToken()}`;
18
18
  }
19
19
  return config;
20
20
  },
@@ -28,12 +28,11 @@ function request(BASE_API, options) {
28
28
  const res = response.data;
29
29
  if (res.code !== 0) {
30
30
  return Promise.reject(new Error(res.message || "Error"));
31
- } else {
32
- return res;
33
31
  }
32
+ return res;
34
33
  },
35
34
  (error) => {
36
- console.log("err" + error);
35
+ console.log(`err${error}`);
37
36
  return Promise.reject(error);
38
37
  }
39
38
  );
@@ -0,0 +1,25 @@
1
+ "use strict";
2
+ Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
3
+ const componentsColumns = {
4
+ banner: { value: "banner", label: "\u8F6E\u64AD\u7EC4\u4EF6" },
5
+ top: { value: "top", label: "\u7F6E\u9876\u7EC4\u4EF6" },
6
+ horizon_slide: { value: "horizon_slide", label: "\u6A2A\u6ED1\u7EC4\u4EF6" },
7
+ svideo: { value: "svideo", label: "\u5C0F\u89C6\u9891\u7EC4\u4EF6" },
8
+ special: { value: "special", label: "\u4E13\u9898/\u5408\u96C6\u7EC4\u4EF6" },
9
+ news_letter: { value: "news_letter", label: "\u5FEB\u8BAF\u7EC4\u4EF6" },
10
+ focus: { value: "focus", label: "\u70ED\u70B9\u7EC4\u4EF6" },
11
+ radio: { value: "radio", label: "\u5E7F\u64AD\u7EC4\u4EF6", simple: true },
12
+ tv: { value: "tv", label: "\u7535\u89C6\u7EC4\u4EF6", simple: true },
13
+ mp_account: { value: "mp_account", label: "\u516C\u4F17\u53F7\u7EC4\u4EF6" },
14
+ column: { value: "column", label: "\u5206\u680F\u7EC4\u4EF6" }
15
+ };
16
+ const compoColumnsMap = () => {
17
+ const obj = {};
18
+ Object.keys(componentsColumns).map((key) => {
19
+ obj[key] = componentsColumns[key].label.replace("\u7EC4\u4EF6", "");
20
+ return key;
21
+ });
22
+ return obj;
23
+ };
24
+ exports.compoColumnsMap = compoColumnsMap;
25
+ exports.componentsColumns = componentsColumns;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cmstops/pro-compo",
3
- "version": "0.1.3",
3
+ "version": "0.1.4",
4
4
  "description": "",
5
5
  "keywords": [
6
6
  "vue",
@@ -47,13 +47,14 @@
47
47
  "vue": "^3.2.0"
48
48
  },
49
49
  "devDependencies": {
50
- "@cmstops/arco-vue-scripts": "^0.2.9",
51
50
  "@arco-design/web-vue": "~2",
51
+ "@arco-iconbox/vue-cmstop-icons": "^0.0.4",
52
52
  "@babel/core": "^7.14.6",
53
53
  "@babel/plugin-proposal-class-properties": "^7.14.5",
54
54
  "@babel/plugin-syntax-dynamic-import": "^7.8.3",
55
55
  "@babel/preset-env": "^7.14.7",
56
56
  "@babel/preset-typescript": "^7.14.5",
57
+ "@cmstops/arco-vue-scripts": "^0.2.9",
57
58
  "@commitlint/cli": "^11.0.0",
58
59
  "@commitlint/config-conventional": "^12.0.1",
59
60
  "@storybook/addon-actions": "^6.3.0",
@@ -68,6 +69,7 @@
68
69
  "@vue/babel-plugin-jsx": "^1.0.6",
69
70
  "@vue/test-utils": "^2.0.0-beta.14",
70
71
  "babel-loader": "^8.2.2",
72
+ "dayjs": "^1.11.9",
71
73
  "eslint": "^7.21.0",
72
74
  "eslint-config-airbnb-base": "^14.2.1",
73
75
  "eslint-config-prettier": "^8.3.0",
@@ -1,7 +0,0 @@
1
- var _export_sfc = (sfc, props) => {
2
- for (const [key, val] of props) {
3
- sfc[key] = val;
4
- }
5
- return sfc;
6
- };
7
- export { _export_sfc as default };
@@ -1,24 +0,0 @@
1
- declare const _default: import("vue").DefineComponent<{
2
- /**
3
- * @zh 提示文字
4
- * @en Prompt text
5
- */
6
- tip: StringConstructor;
7
- /**
8
- * @zh 按钮组件的Props
9
- * @en The props of button component
10
- */
11
- buttonProps: ObjectConstructor;
12
- }, unknown, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
13
- /**
14
- * @zh 提示文字
15
- * @en Prompt text
16
- */
17
- tip: StringConstructor;
18
- /**
19
- * @zh 按钮组件的Props
20
- * @en The props of button component
21
- */
22
- buttonProps: ObjectConstructor;
23
- }>>, {}, {}>;
24
- export default _default;
@@ -1,43 +0,0 @@
1
- import { defineComponent, resolveComponent, openBlock, createBlock, withCtx, createVNode, mergeProps, renderSlot } from "vue";
2
- import { Button, Tooltip } from "@arco-design/web-vue";
3
- import _export_sfc from "../_virtual/plugin-vue_export-helper.js";
4
- const _sfc_main = defineComponent({
5
- name: "button",
6
- components: {
7
- Button,
8
- Tooltip
9
- },
10
- props: {
11
- tip: String,
12
- buttonProps: Object
13
- }
14
- });
15
- function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
16
- const _component_Button = resolveComponent("Button");
17
- const _component_Tooltip = resolveComponent("Tooltip");
18
- return _ctx.tip ? (openBlock(), createBlock(_component_Tooltip, {
19
- key: 0,
20
- content: _ctx.tip,
21
- position: "bottom"
22
- }, {
23
- default: withCtx(() => [
24
- createVNode(_component_Button, mergeProps({ class: "tooltip-button" }, _ctx.buttonProps), {
25
- default: withCtx(() => [
26
- renderSlot(_ctx.$slots, "default")
27
- ]),
28
- _: 3
29
- }, 16)
30
- ]),
31
- _: 3
32
- }, 8, ["content"])) : (openBlock(), createBlock(_component_Button, mergeProps({
33
- key: 1,
34
- class: "tooltip-button"
35
- }, _ctx.buttonProps), {
36
- default: withCtx(() => [
37
- renderSlot(_ctx.$slots, "default")
38
- ]),
39
- _: 3
40
- }, 16));
41
- }
42
- var _button = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
43
- export { _button as default };
@@ -1,103 +0,0 @@
1
- import type { App } from 'vue';
2
- declare const button: {
3
- new (...args: any[]): {
4
- $: import("vue").ComponentInternalInstance;
5
- $data: {};
6
- $props: {
7
- readonly tip?: string | undefined;
8
- readonly buttonProps?: Record<string, any> | undefined;
9
- key?: string | number | symbol | undefined;
10
- ref?: import("vue").VNodeRef | undefined;
11
- ref_for?: boolean | undefined;
12
- ref_key?: string | undefined;
13
- onVnodeBeforeMount?: ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
14
- [key: string]: any;
15
- }>) => void) | ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
16
- [key: string]: any;
17
- }>) => void)[] | undefined;
18
- onVnodeMounted?: ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
19
- [key: string]: any;
20
- }>) => void) | ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
21
- [key: string]: any;
22
- }>) => void)[] | undefined;
23
- onVnodeBeforeUpdate?: ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
24
- [key: string]: any;
25
- }>, oldVNode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
26
- [key: string]: any;
27
- }>) => void) | ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
28
- [key: string]: any;
29
- }>, oldVNode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
30
- [key: string]: any;
31
- }>) => void)[] | undefined;
32
- onVnodeUpdated?: ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
33
- [key: string]: any;
34
- }>, oldVNode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
35
- [key: string]: any;
36
- }>) => void) | ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
37
- [key: string]: any;
38
- }>, oldVNode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
39
- [key: string]: any;
40
- }>) => void)[] | undefined;
41
- onVnodeBeforeUnmount?: ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
42
- [key: string]: any;
43
- }>) => void) | ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
44
- [key: string]: any;
45
- }>) => void)[] | undefined;
46
- onVnodeUnmounted?: ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
47
- [key: string]: any;
48
- }>) => void) | ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
49
- [key: string]: any;
50
- }>) => void)[] | undefined;
51
- class?: unknown;
52
- style?: unknown;
53
- };
54
- $attrs: {
55
- [x: string]: unknown;
56
- };
57
- $refs: {
58
- [x: string]: unknown;
59
- };
60
- $slots: Readonly<{
61
- [name: string]: import("vue").Slot<any> | undefined;
62
- }>;
63
- $root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}> | null;
64
- $parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}> | null;
65
- $emit: (event: string, ...args: any[]) => void;
66
- $el: any;
67
- $options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
68
- tip: StringConstructor;
69
- buttonProps: ObjectConstructor;
70
- }>>, unknown, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {}, {}, string, {}> & {
71
- beforeCreate?: ((() => void) | (() => void)[]) | undefined;
72
- created?: ((() => void) | (() => void)[]) | undefined;
73
- beforeMount?: ((() => void) | (() => void)[]) | undefined;
74
- mounted?: ((() => void) | (() => void)[]) | undefined;
75
- beforeUpdate?: ((() => void) | (() => void)[]) | undefined;
76
- updated?: ((() => void) | (() => void)[]) | undefined;
77
- activated?: ((() => void) | (() => void)[]) | undefined;
78
- deactivated?: ((() => void) | (() => void)[]) | undefined;
79
- beforeDestroy?: ((() => void) | (() => void)[]) | undefined;
80
- beforeUnmount?: ((() => void) | (() => void)[]) | undefined;
81
- destroyed?: ((() => void) | (() => void)[]) | undefined;
82
- unmounted?: ((() => void) | (() => void)[]) | undefined;
83
- renderTracked?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
84
- renderTriggered?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
85
- errorCaptured?: (((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}> | null, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}> | null, info: string) => boolean | void)[]) | undefined;
86
- };
87
- $forceUpdate: () => void;
88
- $nextTick: typeof import("vue").nextTick;
89
- $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (args_0: R, args_1: R) => any : (...args: any) => any, options?: import("vue").WatchOptions<boolean> | undefined): import("vue").WatchStopHandle;
90
- } & Readonly<import("vue").ExtractPropTypes<{
91
- tip: StringConstructor;
92
- buttonProps: ObjectConstructor;
93
- }>> & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties & {};
94
- __isFragment?: undefined;
95
- __isTeleport?: undefined;
96
- __isSuspense?: undefined;
97
- } & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
98
- tip: StringConstructor;
99
- buttonProps: ObjectConstructor;
100
- }>>, unknown, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {}, {}, string, {}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & {
101
- install: (app: App) => void;
102
- };
103
- export default button;
@@ -1,7 +0,0 @@
1
- import _button from "./component.js";
2
- const button = Object.assign(_button, {
3
- install: (app) => {
4
- app.component(_button.name, _button);
5
- }
6
- });
7
- export { button as default };
@@ -1,8 +0,0 @@
1
- "use strict";
2
- var _export_sfc = (sfc, props) => {
3
- for (const [key, val] of props) {
4
- sfc[key] = val;
5
- }
6
- return sfc;
7
- };
8
- module.exports = _export_sfc;