@cmstops/pro-compo 0.1.2 → 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 (170) hide show
  1. package/dist/index.css +141 -5
  2. package/dist/index.min.css +1 -1
  3. package/es/appCenter/component.js +3 -2
  4. package/es/appCenter/script/routeMap.d.ts +1 -1
  5. package/es/appCenter/style/index.css +1 -1
  6. package/es/appCenter/style/index.less +1 -1
  7. package/es/config.d.ts +2 -0
  8. package/es/config.js +3 -0
  9. package/es/contentModal/component.d.ts +0 -0
  10. package/es/contentModal/component.js +175 -0
  11. package/es/contentModal/components/CompoList/CompoFilter/index.d.ts +0 -0
  12. package/es/contentModal/components/CompoList/CompoFilter/index.js +103 -0
  13. package/es/contentModal/components/CompoList/index.d.ts +0 -0
  14. package/es/contentModal/components/CompoList/index.js +234 -0
  15. package/es/contentModal/components/ViewAllColumn/MediaFilter/index.d.ts +0 -0
  16. package/es/contentModal/components/ViewAllColumn/MediaFilter/index.js +44 -0
  17. package/es/contentModal/components/ViewAllColumn/columnTree/index.d.ts +0 -0
  18. package/es/contentModal/components/ViewAllColumn/columnTree/index.js +101 -0
  19. package/es/contentModal/components/ViewAllColumn/index.d.ts +0 -0
  20. package/es/contentModal/components/ViewAllColumn/index.js +277 -0
  21. package/es/contentModal/components/storeBox/index.d.ts +0 -0
  22. package/es/contentModal/components/storeBox/index.js +107 -0
  23. package/es/contentModal/index.d.ts +2 -0
  24. package/es/contentModal/index.js +7 -0
  25. package/es/contentModal/script/api.d.ts +10 -0
  26. package/es/contentModal/script/api.js +45 -0
  27. package/es/contentModal/style/MediaFilter.less +8 -0
  28. package/es/contentModal/style/ViewAllColumn.less +33 -0
  29. package/es/contentModal/style/columnTree.less +9 -0
  30. package/es/contentModal/style/css.js +5 -0
  31. package/es/contentModal/style/index.css +13 -0
  32. package/es/contentModal/style/index.d.ts +5 -0
  33. package/es/contentModal/style/index.js +5 -0
  34. package/es/contentModal/style/index.less +16 -0
  35. package/es/contentModal/style/storeBox.less +45 -0
  36. package/es/hooks/batch.d.ts +8 -0
  37. package/es/hooks/batch.js +26 -0
  38. package/es/hooks/user.d.ts +11 -0
  39. package/es/hooks/user.js +46 -0
  40. package/es/index.css +141 -5
  41. package/es/index.d.ts +6 -1
  42. package/es/index.js +6 -1
  43. package/es/index.less +6 -1
  44. package/es/messageBox/component.d.ts +0 -0
  45. package/es/messageBox/component.js +146 -0
  46. package/es/messageBox/index.d.ts +2 -0
  47. package/es/messageBox/index.js +7 -0
  48. package/es/messageBox/list.d.ts +0 -0
  49. package/es/messageBox/list.js +116 -0
  50. package/es/messageBox/script/api.d.ts +6 -0
  51. package/es/messageBox/script/api.js +16 -0
  52. package/es/messageBox/style/index.css +64 -0
  53. package/es/messageBox/style/index.less +71 -0
  54. package/es/resourceModal/component.d.ts +0 -0
  55. package/es/resourceModal/component.js +14 -0
  56. package/es/resourceModal/index.d.ts +2 -0
  57. package/es/resourceModal/index.js +7 -0
  58. package/es/resourceModal/style/css.js +1 -0
  59. package/es/resourceModal/style/index.d.ts +1 -0
  60. package/es/resourceModal/style/index.js +1 -0
  61. package/es/style.css +5 -0
  62. package/es/typeIcons/component.d.ts +0 -0
  63. package/es/typeIcons/component.js +62 -0
  64. package/es/typeIcons/index.d.ts +2 -0
  65. package/es/typeIcons/index.js +7 -0
  66. package/es/typeIcons/style/css.js +1 -0
  67. package/es/typeIcons/style/index.css +5 -0
  68. package/es/typeIcons/style/index.d.ts +1 -0
  69. package/es/typeIcons/style/index.js +1 -0
  70. package/es/typeIcons/style/index.less +5 -0
  71. package/es/uploadStep/component.d.ts +0 -0
  72. package/es/uploadStep/component.js +14 -0
  73. package/es/uploadStep/index.d.ts +2 -0
  74. package/es/uploadStep/index.js +7 -0
  75. package/es/uploadStep/style/css.js +1 -0
  76. package/es/uploadStep/style/index.d.ts +1 -0
  77. package/es/uploadStep/style/index.js +1 -0
  78. package/es/userAvater/component.d.ts +0 -0
  79. package/es/userAvater/component.js +167 -0
  80. package/es/userAvater/index.d.ts +2 -0
  81. package/es/userAvater/index.js +7 -0
  82. package/es/userAvater/script/api.d.ts +8 -0
  83. package/es/userAvater/script/api.js +32 -0
  84. package/es/userAvater/style/css.js +1 -0
  85. package/es/userAvater/style/index.css +50 -0
  86. package/es/userAvater/style/index.d.ts +1 -0
  87. package/es/userAvater/style/index.js +1 -0
  88. package/es/userAvater/style/index.less +54 -0
  89. package/es/utils/index.d.ts +1 -0
  90. package/es/utils/index.js +7 -0
  91. package/es/utils/request.js +1 -1
  92. package/es/utils/typeMap.d.ts +116 -0
  93. package/es/utils/typeMap.js +22 -0
  94. package/lib/appCenter/component.js +3 -2
  95. package/lib/appCenter/style/index.css +1 -1
  96. package/lib/appCenter/style/index.less +1 -1
  97. package/lib/config.js +6 -0
  98. package/lib/contentModal/component.js +176 -0
  99. package/lib/contentModal/components/CompoList/CompoFilter/index.js +104 -0
  100. package/lib/contentModal/components/CompoList/index.js +235 -0
  101. package/lib/contentModal/components/ViewAllColumn/MediaFilter/index.js +45 -0
  102. package/lib/contentModal/components/ViewAllColumn/columnTree/index.js +102 -0
  103. package/lib/contentModal/components/ViewAllColumn/index.js +278 -0
  104. package/lib/contentModal/components/storeBox/index.js +108 -0
  105. package/lib/contentModal/index.js +8 -0
  106. package/lib/contentModal/script/api.js +52 -0
  107. package/lib/contentModal/style/MediaFilter.less +8 -0
  108. package/lib/contentModal/style/ViewAllColumn.less +33 -0
  109. package/lib/contentModal/style/columnTree.less +9 -0
  110. package/lib/contentModal/style/css.js +6 -0
  111. package/lib/contentModal/style/index.css +13 -0
  112. package/lib/contentModal/style/index.js +6 -0
  113. package/lib/contentModal/style/index.less +16 -0
  114. package/lib/contentModal/style/storeBox.less +45 -0
  115. package/lib/hooks/batch.js +27 -0
  116. package/lib/hooks/user.js +49 -0
  117. package/lib/index.css +141 -5
  118. package/lib/index.js +14 -4
  119. package/lib/index.less +6 -1
  120. package/lib/messageBox/component.js +147 -0
  121. package/lib/messageBox/index.js +8 -0
  122. package/lib/messageBox/list.js +117 -0
  123. package/lib/messageBox/script/api.js +19 -0
  124. package/lib/messageBox/style/index.css +64 -0
  125. package/lib/messageBox/style/index.less +71 -0
  126. package/lib/resourceModal/component.js +15 -0
  127. package/lib/resourceModal/index.js +8 -0
  128. package/lib/resourceModal/style/css.js +2 -0
  129. package/lib/resourceModal/style/index.css +4 -0
  130. package/lib/resourceModal/style/index.js +2 -0
  131. package/lib/resourceModal/style/index.less +4 -0
  132. package/lib/typeIcons/component.js +63 -0
  133. package/lib/{button → typeIcons}/index.js +2 -2
  134. package/lib/typeIcons/style/css.js +2 -0
  135. package/lib/typeIcons/style/index.css +5 -0
  136. package/lib/typeIcons/style/index.js +2 -0
  137. package/lib/typeIcons/style/index.less +5 -0
  138. package/lib/uploadStep/component.js +15 -0
  139. package/lib/uploadStep/index.js +8 -0
  140. package/lib/uploadStep/style/css.js +2 -0
  141. package/lib/uploadStep/style/index.css +4 -0
  142. package/lib/uploadStep/style/index.js +2 -0
  143. package/lib/uploadStep/style/index.less +4 -0
  144. package/lib/userAvater/component.js +168 -0
  145. package/lib/userAvater/index.js +8 -0
  146. package/lib/userAvater/script/api.js +37 -0
  147. package/lib/userAvater/style/css.js +2 -0
  148. package/lib/userAvater/style/index.css +50 -0
  149. package/lib/userAvater/style/index.js +2 -0
  150. package/lib/userAvater/style/index.less +54 -0
  151. package/lib/utils/index.js +13 -0
  152. package/lib/utils/request.js +1 -1
  153. package/lib/utils/typeMap.js +25 -0
  154. package/package.json +4 -2
  155. package/es/_virtual/plugin-vue_export-helper.js +0 -7
  156. package/es/button/component.d.ts +0 -24
  157. package/es/button/component.js +0 -43
  158. package/es/button/index.d.ts +0 -103
  159. package/es/button/index.js +0 -7
  160. package/lib/_virtual/plugin-vue_export-helper.js +0 -8
  161. package/lib/button/component.js +0 -44
  162. /package/es/{button → messageBox}/style/css.js +0 -0
  163. /package/es/{button → messageBox}/style/index.d.ts +0 -0
  164. /package/es/{button → messageBox}/style/index.js +0 -0
  165. /package/es/{button → resourceModal}/style/index.css +0 -0
  166. /package/es/{button → resourceModal}/style/index.less +0 -0
  167. /package/{lib/button → es/uploadStep}/style/index.css +0 -0
  168. /package/{lib/button → es/uploadStep}/style/index.less +0 -0
  169. /package/lib/{button → messageBox}/style/css.js +0 -0
  170. /package/lib/{button → messageBox}/style/index.js +0 -0
@@ -0,0 +1,146 @@
1
+ import { defineComponent, useSlots, ref, onMounted, resolveDirective, openBlock, createElementBlock, createVNode, unref, withCtx, createElementVNode, withDirectives, createBlock, createTextVNode, renderSlot } from "vue";
2
+ import { Popover, Tabs, TabPane, Badge } from "@arco-design/web-vue";
3
+ import _sfc_main$1 from "./list.js";
4
+ import { setAllMsgRead, getNoticeList } from "./script/api.js";
5
+ import { DEFAULT_BASE_API } from "../config.js";
6
+ const _hoisted_1 = { class: "message-boxs-container" };
7
+ const _hoisted_2 = {
8
+ key: 1,
9
+ class: "reference-btn"
10
+ };
11
+ const _hoisted_3 = { class: "message-boxs-popover" };
12
+ const _sfc_main = defineComponent({
13
+ ...{ name: "messageBox" },
14
+ __name: "component",
15
+ props: {
16
+ BASE_API: {}
17
+ },
18
+ setup(__props) {
19
+ const props = __props;
20
+ const BASE_API = props.BASE_API || DEFAULT_BASE_API;
21
+ const slotTest = !!useSlots().reference;
22
+ const readMessagesCount = ref(0);
23
+ const unreadMessagesCount = ref(0);
24
+ const isLoadingMore = ref(false);
25
+ const unreadMessages = ref([]);
26
+ const readMessages = ref([]);
27
+ const isNoMore = ref(false);
28
+ const page = ref({ limit: 20, offset: 0 });
29
+ const handlePopupVisibleChange = (visible) => {
30
+ if (!visible) {
31
+ setAllMsgToRead();
32
+ }
33
+ };
34
+ const setAllMsgToRead = async () => {
35
+ try {
36
+ const res = await setAllMsgRead(BASE_API);
37
+ if (res.code === 0) {
38
+ setData();
39
+ }
40
+ } catch (error) {
41
+ console.log(error);
42
+ }
43
+ };
44
+ const setData = async () => {
45
+ isLoadingMore.value = true;
46
+ const res = await getNoticeList(BASE_API, {}).catch(() => {
47
+ isLoadingMore.value = false;
48
+ });
49
+ if ((res == null ? void 0 : res.code) === 0 && (res == null ? void 0 : res.message)) {
50
+ const data = res.message;
51
+ if (data.notice_state) {
52
+ unreadMessages.value = data.notice_state[0] && data.notice_state[0].notices || [];
53
+ readMessages.value = data.notice_state[1] && data.notice_state[1].notices || [];
54
+ }
55
+ readMessagesCount.value = data.readed || 0;
56
+ unreadMessagesCount.value = data.unread || 0;
57
+ isLoadingMore.value = false;
58
+ }
59
+ };
60
+ const loadMore = async () => {
61
+ if (unreadMessages.value.length !== 0)
62
+ return;
63
+ isLoadingMore.value = true;
64
+ try {
65
+ page.value.offset = readMessages.value.length;
66
+ const res = await getNoticeList(BASE_API, {
67
+ state: 1,
68
+ ...page.value
69
+ }).catch(() => {
70
+ isLoadingMore.value = false;
71
+ });
72
+ if (res.code === 0 && res.message) {
73
+ const { notice_state } = res.message;
74
+ notice_state[1].notices.length < page.value.limit && (isNoMore.value = true);
75
+ readMessages.value = readMessages.value.concat(
76
+ notice_state[1] && notice_state[1].notices || []
77
+ );
78
+ }
79
+ isLoadingMore.value = false;
80
+ } catch (error) {
81
+ }
82
+ };
83
+ onMounted(() => {
84
+ setData();
85
+ });
86
+ return (_ctx, _cache) => {
87
+ const _directive_loading = resolveDirective("loading");
88
+ return openBlock(), createElementBlock("div", _hoisted_1, [
89
+ createVNode(unref(Popover), {
90
+ trigger: "hover",
91
+ position: "bottom",
92
+ "arrow-style": { display: "none" },
93
+ "content-style": { padding: 0, minWidth: "400px" },
94
+ "popup-visible-change": handlePopupVisibleChange
95
+ }, {
96
+ content: withCtx(() => [
97
+ createElementVNode("div", _hoisted_3, [
98
+ createVNode(unref(Tabs), null, {
99
+ default: withCtx(() => [
100
+ withDirectives((openBlock(), createBlock(unref(TabPane), { key: "1" }, {
101
+ title: withCtx(() => [
102
+ createTextVNode("\u6D88\u606F")
103
+ ]),
104
+ default: withCtx(() => [
105
+ unreadMessages.value.length === 0 ? (openBlock(), createBlock(_sfc_main$1, {
106
+ key: 0,
107
+ list: readMessages.value,
108
+ "onUpdate:list": _cache[0] || (_cache[0] = ($event) => readMessages.value = $event),
109
+ "list-type": "unread",
110
+ "is-loading-more": isLoadingMore.value,
111
+ "is-no-more": isNoMore.value,
112
+ onLoadMoreMsg: loadMore
113
+ }, null, 8, ["list", "is-loading-more", "is-no-more"])) : (openBlock(), createBlock(_sfc_main$1, {
114
+ key: 1,
115
+ list: unreadMessages.value,
116
+ "onUpdate:list": _cache[1] || (_cache[1] = ($event) => unreadMessages.value = $event),
117
+ "list-type": "unread",
118
+ "is-loading-more": isLoadingMore.value,
119
+ "is-no-more": isNoMore.value,
120
+ onLoadMoreMsg: loadMore
121
+ }, null, 8, ["list", "is-loading-more", "is-no-more"]))
122
+ ]),
123
+ _: 1
124
+ })), [
125
+ [_directive_loading, isLoadingMore.value]
126
+ ])
127
+ ]),
128
+ _: 1
129
+ })
130
+ ])
131
+ ]),
132
+ default: withCtx(() => [
133
+ createVNode(unref(Badge), { count: unreadMessagesCount.value }, {
134
+ default: withCtx(() => [
135
+ slotTest ? renderSlot(_ctx.$slots, "reference", { key: 0 }) : (openBlock(), createElementBlock("button", _hoisted_2, "\u6D88\u606F\u5217\u8868"))
136
+ ]),
137
+ _: 3
138
+ }, 8, ["count"])
139
+ ]),
140
+ _: 3
141
+ })
142
+ ]);
143
+ };
144
+ }
145
+ });
146
+ export { _sfc_main as default };
@@ -0,0 +1,2 @@
1
+ declare const messageBox: any;
2
+ export default messageBox;
@@ -0,0 +1,7 @@
1
+ import _sfc_main from "./component.js";
2
+ const messageBox = Object.assign(_sfc_main, {
3
+ install: (app) => {
4
+ app.component(_sfc_main.name, _sfc_main);
5
+ }
6
+ });
7
+ export { messageBox as default };
File without changes
@@ -0,0 +1,116 @@
1
+ import { defineComponent, computed, ref, openBlock, createElementBlock, Fragment, createVNode, unref, createCommentVNode, withCtx, renderList, createElementVNode, toDisplayString, createTextVNode, withModifiers } from "vue";
2
+ import { Empty, Scrollbar } from "@arco-design/web-vue";
3
+ import { IconRight } from "@arco-design/web-vue/es/icon";
4
+ const _hoisted_1 = {
5
+ key: 0,
6
+ class: "empty-list"
7
+ };
8
+ const _hoisted_2 = {
9
+ key: 0,
10
+ class: "message-list"
11
+ };
12
+ const _hoisted_3 = {
13
+ key: 0,
14
+ class: "message-body"
15
+ };
16
+ const _hoisted_4 = { class: "media-message-content" };
17
+ const _hoisted_5 = { class: "message-content" };
18
+ const _hoisted_6 = { class: "title" };
19
+ const _hoisted_7 = { key: 0 };
20
+ const _hoisted_8 = { class: "time" };
21
+ const _hoisted_9 = ["onClick"];
22
+ const _hoisted_10 = { class: "message-media-title" };
23
+ const _hoisted_11 = { class: "message-media-title-hover" };
24
+ const _hoisted_12 = { class: "action" };
25
+ const _sfc_main = defineComponent({
26
+ __name: "list",
27
+ props: {
28
+ listType: {},
29
+ list: {},
30
+ isLoadingMore: { type: Boolean },
31
+ isNorMore: { type: Boolean }
32
+ },
33
+ emits: ["loadMoreMsg"],
34
+ setup(__props, { emit: emits }) {
35
+ const props = __props;
36
+ const isEmptyList = computed(() => {
37
+ if (props.list.length === 0) {
38
+ return true;
39
+ }
40
+ return false;
41
+ });
42
+ const listData = computed(() => {
43
+ return props.list;
44
+ });
45
+ const approvalStateMapText = ref({
46
+ approval_msg: { label: "\u63D0\u4EA4\u4E86\u4E00\u9879\u5185\u5BB9\uFF0C\u5F85\u60A8\u5BA1\u6838", show_user_alias: true },
47
+ approval_cc_msg: { label: "\u63D0\u4EA4\u4E86\u4E00\u9879\u5185\u5BB9\uFF0C\u6284\u9001\u7ED9\u60A8" },
48
+ approval_pass: { label: "\u60A8\u63D0\u4EA4\u4E86\u4E00\u9879\u5185\u5BB9\u5DF2\u5BA1\u6838\u901A\u8FC7" },
49
+ approval_fail: { label: "\u60A8\u63D0\u4EA4\u4E86\u4E00\u9879\u5185\u5BB9\u5BA1\u6838\u88AB\u9A73\u56DE" },
50
+ approval_retrial: { label: "\u60A8\u63D0\u4EA4\u4E86\u4E00\u9879\u5185\u5BB9\u5BA1\u6838\u88AB\u9A73\u56DE\u91CD\u5BA1" }
51
+ });
52
+ const openApprovalDetail = (msg) => {
53
+ console.log(msg);
54
+ };
55
+ const handleScroll = (e) => {
56
+ e && e.stopPropagation();
57
+ if (e.target) {
58
+ const { scrollTop, scrollHeight, clientHeight } = e.target;
59
+ if (scrollTop + clientHeight >= scrollHeight) {
60
+ if (props.isLoadingMore === false && !props.isNorMore) {
61
+ emits("loadMoreMsg", props.listType);
62
+ }
63
+ }
64
+ }
65
+ };
66
+ return (_ctx, _cache) => {
67
+ return openBlock(), createElementBlock(Fragment, null, [
68
+ isEmptyList.value === true ? (openBlock(), createElementBlock("div", _hoisted_1, [
69
+ createVNode(unref(Empty))
70
+ ])) : createCommentVNode("v-if", true),
71
+ createVNode(unref(Scrollbar), {
72
+ class: "msg-scroll-bar",
73
+ onScroll: handleScroll
74
+ }, {
75
+ default: withCtx(() => [
76
+ listData.value.length > 0 ? (openBlock(), createElementBlock("ul", _hoisted_2, [
77
+ (openBlock(true), createElementBlock(Fragment, null, renderList(listData.value, (item) => {
78
+ return openBlock(), createElementBlock("li", {
79
+ key: "list_" + item.msg.nid,
80
+ class: "message-item"
81
+ }, [
82
+ createCommentVNode(" \u901A\u77E5\u5185\u5BB9 "),
83
+ item.msg ? (openBlock(), createElementBlock("div", _hoisted_3, [
84
+ createElementVNode("div", _hoisted_4, [
85
+ createElementVNode("div", _hoisted_5, [
86
+ createElementVNode("span", _hoisted_6, [
87
+ approvalStateMapText.value[item.msg.t].show_user_alias ? (openBlock(), createElementBlock("span", _hoisted_7, toDisplayString(item.msg.alias), 1)) : createCommentVNode("v-if", true),
88
+ createTextVNode(" " + toDisplayString(approvalStateMapText.value[item.msg.t].label), 1)
89
+ ]),
90
+ createElementVNode("span", _hoisted_8, toDisplayString(item.msg.time), 1)
91
+ ]),
92
+ createElementVNode("div", {
93
+ class: "message-info",
94
+ onClick: withModifiers(($event) => openApprovalDetail(item.msg), ["stop"])
95
+ }, [
96
+ createElementVNode("div", _hoisted_10, [
97
+ createCommentVNode(' <FileTypeIcons\n class="icon"\n :file-type="item.msg.catalog"\n :doc-type="item.msg.series"\n ></FileTypeIcons> '),
98
+ createElementVNode("span", _hoisted_11, toDisplayString(item.msg.title), 1)
99
+ ]),
100
+ createElementVNode("div", _hoisted_12, [
101
+ createVNode(unref(IconRight))
102
+ ])
103
+ ], 8, _hoisted_9)
104
+ ])
105
+ ])) : createCommentVNode("v-if", true)
106
+ ]);
107
+ }), 128))
108
+ ])) : createCommentVNode("v-if", true)
109
+ ]),
110
+ _: 1
111
+ })
112
+ ], 64);
113
+ };
114
+ }
115
+ });
116
+ export { _sfc_main as default };
@@ -0,0 +1,6 @@
1
+ interface Params {
2
+ [key: string]: any;
3
+ }
4
+ export declare function getNoticeList(BASE_API: string, params?: Params): import("axios").AxiosPromise<any>;
5
+ export declare function setAllMsgRead(BASE_API: string, params?: Params): import("axios").AxiosPromise<any>;
6
+ export {};
@@ -0,0 +1,16 @@
1
+ import request from "../../utils/request.js";
2
+ function getNoticeList(BASE_API, params) {
3
+ return request(BASE_API, {
4
+ url: "/poplar/v2/notice",
5
+ method: "post",
6
+ data: params
7
+ });
8
+ }
9
+ function setAllMsgRead(BASE_API, params) {
10
+ return request(BASE_API, {
11
+ url: "/poplar/v2/notice/readed",
12
+ method: "post",
13
+ data: params
14
+ });
15
+ }
16
+ export { getNoticeList, setAllMsgRead };
@@ -0,0 +1,64 @@
1
+ .reference-btn {
2
+ border: none;
3
+ padding: 12px 16px;
4
+ border-radius: 4px;
5
+ color: #5f5f5f;
6
+ }
7
+ .message-boxs-popover {
8
+ width: 435px;
9
+ position: relative;
10
+ }
11
+ .message-boxs-popover .arco-tabs-content {
12
+ padding-top: 0;
13
+ }
14
+ .message-boxs-popover .msg-scroll-bar {
15
+ height: 80vh;
16
+ overflow-y: auto;
17
+ display: block;
18
+ }
19
+ .message-boxs-popover .message-list {
20
+ margin: 0;
21
+ padding: 0;
22
+ list-style: none;
23
+ }
24
+ .message-boxs-popover .message-item {
25
+ padding: 16px;
26
+ padding-bottom: 0px;
27
+ }
28
+ .message-boxs-popover .message-item:last-child .message-body {
29
+ border-bottom: none;
30
+ }
31
+ .message-boxs-popover .message-item .message-body {
32
+ border-bottom: 1px solid rgba(0, 0, 0, 0.05);
33
+ padding-bottom: 16px;
34
+ }
35
+ .message-boxs-popover .message-item .message-body .media-message-content {
36
+ width: 100%;
37
+ }
38
+ .message-boxs-popover .message-item .message-body .media-message-content .message-content {
39
+ display: flex;
40
+ align-items: center;
41
+ justify-content: space-between;
42
+ font-size: 12px;
43
+ color: #4e5969;
44
+ margin-bottom: 18px;
45
+ }
46
+ .message-boxs-popover .message-item .message-body .media-message-content .message-info {
47
+ display: flex;
48
+ align-items: center;
49
+ justify-content: space-between;
50
+ color: #1d2129;
51
+ font-size: 14px;
52
+ line-height: 14px;
53
+ }
54
+ .message-boxs-popover .message-item .message-body .media-message-content .message-info .message-media-title {
55
+ overflow: hidden;
56
+ text-overflow: ellipsis;
57
+ white-space: nowrap;
58
+ }
59
+ .message-boxs-popover .message-item .message-body .media-message-content .message-info .message-media-title .icon {
60
+ margin-right: 4px;
61
+ }
62
+ .message-boxs-popover .message-item .message-body .media-message-content .message-info .message-media-title:hover {
63
+ text-decoration: underline;
64
+ }
@@ -0,0 +1,71 @@
1
+ .reference-btn {
2
+ border: none;
3
+ padding: 12px 16px;
4
+ border-radius: 4px;
5
+ color: #5f5f5f;
6
+ }
7
+
8
+ .message-boxs-popover {
9
+ width: 435px;
10
+ position: relative;
11
+ // padding: 10px;
12
+
13
+ .arco-tabs-content {
14
+ padding-top: 0;
15
+ }
16
+
17
+ .msg-scroll-bar {
18
+ height: 80vh;
19
+ overflow-y: auto;
20
+ display: block;
21
+ }
22
+
23
+ .message-list {
24
+ margin: 0;
25
+ padding: 0;
26
+ list-style: none;
27
+ }
28
+
29
+ .message-item {
30
+ padding: 16px;
31
+ padding-bottom: 0px;
32
+ &:last-child .message-body {
33
+ border-bottom: none;
34
+ }
35
+ .message-body {
36
+ border-bottom: 1px solid rgba(0,0,0,.05);
37
+ padding-bottom: 16px;
38
+
39
+ .media-message-content {
40
+ width: 100%;
41
+ .message-content {
42
+ display: flex;
43
+ align-items: center;
44
+ justify-content: space-between;
45
+ font-size: 12px;
46
+ color: #4e5969;
47
+ margin-bottom: 18px;
48
+ }
49
+ .message-info {
50
+ display: flex;
51
+ align-items: center;
52
+ justify-content: space-between;
53
+ color: #1d2129;
54
+ font-size: 14px;
55
+ line-height: 14px;
56
+ .message-media-title {
57
+ overflow: hidden;
58
+ text-overflow: ellipsis;
59
+ white-space: nowrap;
60
+ .icon {
61
+ margin-right: 4px;
62
+ }
63
+ &:hover {
64
+ text-decoration: underline;
65
+ }
66
+ }
67
+ }
68
+ }
69
+ }
70
+ }
71
+ }
File without changes
@@ -0,0 +1,14 @@
1
+ import { defineComponent, openBlock, createElementBlock } from "vue";
2
+ const _sfc_main = defineComponent({
3
+ ...{ name: "resourceModal" },
4
+ __name: "component",
5
+ props: {
6
+ BASE_API: {}
7
+ },
8
+ setup(__props) {
9
+ return (_ctx, _cache) => {
10
+ return openBlock(), createElementBlock("div", null, "resourceModal");
11
+ };
12
+ }
13
+ });
14
+ export { _sfc_main as default };
@@ -0,0 +1,2 @@
1
+ declare const resourceModal: any;
2
+ export default resourceModal;
@@ -0,0 +1,7 @@
1
+ import _sfc_main from "./component.js";
2
+ const resourceModal = Object.assign(_sfc_main, {
3
+ install: (app) => {
4
+ app.component(_sfc_main.name, _sfc_main);
5
+ }
6
+ });
7
+ export { resourceModal as default };
@@ -0,0 +1 @@
1
+ import "./index.css";
@@ -0,0 +1 @@
1
+ import './index.less';
@@ -0,0 +1 @@
1
+ import "./index.less";
package/es/style.css ADDED
@@ -0,0 +1,5 @@
1
+ .type-icons-container {
2
+ display: inline-block;
3
+ vertical-align: middle;
4
+ font-size: 18px;
5
+ }
File without changes
@@ -0,0 +1,62 @@
1
+ import { defineComponent, openBlock, createElementBlock, createCommentVNode, createBlock, unref, Fragment, createVNode } from "vue";
2
+ import { IconXinwen, IconShipin, IconYinyue, IconTuji, IconXiaoshipin, IconZhuanti, IconYinpinji, IconShipinji, IconH5, IconZhibo, IconTupian, IconGaojian } from "@arco-iconbox/vue-cmstop-icons";
3
+ const _hoisted_1 = { class: "type-icons-container" };
4
+ const _sfc_main = defineComponent({
5
+ ...{ name: "typeIcons" },
6
+ __name: "component",
7
+ props: {
8
+ type: {},
9
+ doc: { type: Boolean },
10
+ resource: { type: Boolean }
11
+ },
12
+ setup(__props) {
13
+ const props = __props;
14
+ return (_ctx, _cache) => {
15
+ return openBlock(), createElementBlock("div", _hoisted_1, [
16
+ createCommentVNode("------------------------------- \u7A3F\u4EF6\u7C7B\u578B --------------------------------------"),
17
+ createCommentVNode(" \u65B0\u95FB "),
18
+ props.doc && props.type === "imagetext" ? (openBlock(), createBlock(unref(IconXinwen), { key: 0 })) : props.doc && props.type === "video" ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
19
+ createCommentVNode(" \u89C6\u9891 "),
20
+ createVNode(unref(IconShipin))
21
+ ], 2112)) : props.doc && props.type === "audio" ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [
22
+ createCommentVNode(" \u97F3\u9891 "),
23
+ createVNode(unref(IconYinyue))
24
+ ], 2112)) : props.doc && props.type === "atlas" ? (openBlock(), createElementBlock(Fragment, { key: 3 }, [
25
+ createCommentVNode(" \u56FE\u96C6 "),
26
+ createVNode(unref(IconTuji))
27
+ ], 2112)) : props.doc && props.type === "svideo" ? (openBlock(), createElementBlock(Fragment, { key: 4 }, [
28
+ createCommentVNode(" \u5C0F\u89C6\u9891 "),
29
+ createVNode(unref(IconXiaoshipin))
30
+ ], 2112)) : props.doc && props.type === "special_v3" ? (openBlock(), createElementBlock(Fragment, { key: 5 }, [
31
+ createCommentVNode(" \u4E13\u9898 "),
32
+ createVNode(unref(IconZhuanti))
33
+ ], 2112)) : props.doc && props.type === "audio_album" ? (openBlock(), createElementBlock(Fragment, { key: 6 }, [
34
+ createCommentVNode(" \u97F3\u9891\u96C6 "),
35
+ createVNode(unref(IconYinpinji))
36
+ ], 2112)) : props.doc && props.type === "video_album" ? (openBlock(), createElementBlock(Fragment, { key: 7 }, [
37
+ createCommentVNode(" \u89C6\u9891\u96C6 "),
38
+ createVNode(unref(IconShipinji))
39
+ ], 2112)) : props.doc && props.type === "h5" ? (openBlock(), createElementBlock(Fragment, { key: 8 }, [
40
+ createCommentVNode(" h5 "),
41
+ createVNode(unref(IconH5))
42
+ ], 2112)) : props.doc && props.type === "live" ? (openBlock(), createElementBlock(Fragment, { key: 9 }, [
43
+ createCommentVNode(" \u76F4\u64AD "),
44
+ createVNode(unref(IconZhibo))
45
+ ], 2112)) : props.resource && props.type === "image" ? (openBlock(), createElementBlock(Fragment, { key: 10 }, [
46
+ createCommentVNode("------------------------------- \u7D20\u6750\u7C7B\u578B --------------------------------------"),
47
+ createCommentVNode(" \u56FE\u7247 "),
48
+ createVNode(unref(IconTupian))
49
+ ], 2112)) : (openBlock(), createElementBlock(Fragment, { key: 11 }, [
50
+ createCommentVNode("------------------------------- \u5176\u4ED6\u7C7B\u578B --------------------------------------"),
51
+ createCommentVNode(" \u5FAE\u4FE1\u7A3F\u4EF6 "),
52
+ createCommentVNode(" <icon-weixingaojian /> "),
53
+ createCommentVNode(" \u8F6E\u535A\u56FE\u96C6 "),
54
+ createCommentVNode(" <icon-lunbotuji /> "),
55
+ createCommentVNode(" \u7A3F\u4EF6 "),
56
+ createVNode(unref(IconGaojian))
57
+ ], 2112))
58
+ ]);
59
+ };
60
+ }
61
+ });
62
+ export { _sfc_main as default };
@@ -0,0 +1,2 @@
1
+ declare const typeIcons: any;
2
+ export default typeIcons;
@@ -0,0 +1,7 @@
1
+ import _sfc_main from "./component.js";
2
+ const typeIcons = Object.assign(_sfc_main, {
3
+ install: (app) => {
4
+ app.component(_sfc_main.name, _sfc_main);
5
+ }
6
+ });
7
+ export { typeIcons as default };
@@ -0,0 +1 @@
1
+ import "./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 @@
1
+ import './index.less';
@@ -0,0 +1 @@
1
+ import "./index.less";
@@ -0,0 +1,5 @@
1
+ .type-icons-container {
2
+ display: inline-block;
3
+ vertical-align: middle;
4
+ font-size: 18px;
5
+ }
File without changes
@@ -0,0 +1,14 @@
1
+ import { defineComponent, openBlock, createElementBlock } from "vue";
2
+ const _sfc_main = defineComponent({
3
+ ...{ name: "uploadStep" },
4
+ __name: "component",
5
+ props: {
6
+ BASE_API: {}
7
+ },
8
+ setup(__props) {
9
+ return (_ctx, _cache) => {
10
+ return openBlock(), createElementBlock("div", null, "uploadStep");
11
+ };
12
+ }
13
+ });
14
+ export { _sfc_main as default };
@@ -0,0 +1,2 @@
1
+ declare const uploadStep: any;
2
+ export default uploadStep;
@@ -0,0 +1,7 @@
1
+ import _sfc_main from "./component.js";
2
+ const uploadStep = Object.assign(_sfc_main, {
3
+ install: (app) => {
4
+ app.component(_sfc_main.name, _sfc_main);
5
+ }
6
+ });
7
+ export { uploadStep as default };
@@ -0,0 +1 @@
1
+ import "./index.css";
@@ -0,0 +1 @@
1
+ import './index.less';
@@ -0,0 +1 @@
1
+ import "./index.less";
File without changes