@dckj-npm/dc-material 0.1.34 → 0.1.35

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 (300) hide show
  1. package/README.md +17 -17
  2. package/build/index.js +8 -8
  3. package/dist/BizComps.css +1 -1
  4. package/dist/BizComps.js +5 -5
  5. package/dist/BizComps.js.map +1 -1
  6. package/es/components/bottom-navigation/bottom-navigation.d.ts +15 -15
  7. package/es/components/bottom-navigation/index.d.ts +3 -3
  8. package/es/components/bottom-navigation/index.scss +24 -24
  9. package/es/components/button/button.d.ts +14 -14
  10. package/es/components/button/index.d.ts +6 -6
  11. package/es/components/button/index.js +2 -2
  12. package/es/components/button/index.scss +16 -16
  13. package/es/components/carousel/carousel.d.ts +14 -14
  14. package/es/components/carousel/carousel.scss +32 -32
  15. package/es/components/colorful-button/colorful-button.d.ts +12 -12
  16. package/es/components/colorful-button/index.d.ts +3 -3
  17. package/es/components/colorful-button/index.scss +5 -5
  18. package/es/components/colorful-input/colorful-input.d.ts +8 -8
  19. package/es/components/colorful-input/index.d.ts +3 -3
  20. package/es/components/colorful-input/index.scss +5 -5
  21. package/es/components/goods-card-list/goods-card-list.d.ts +5 -5
  22. package/es/components/goods-card-list/goods-card-list.scss +112 -112
  23. package/es/components/goods-card-list/index.d.ts +3 -3
  24. package/es/components/goods-card-list/types.d.ts +45 -45
  25. package/es/components/grid-nav/grid-nav.d.ts +13 -13
  26. package/es/components/grid-nav/index.d.ts +3 -3
  27. package/es/components/grid-nav/index.scss +37 -37
  28. package/es/components/integral-task/index.d.ts +6 -6
  29. package/es/components/integral-task/index.js +2 -2
  30. package/es/components/integral-task/index.scss +35 -35
  31. package/es/components/integral-task/integral-task.d.ts +40 -40
  32. package/es/components/menu-list/index.d.ts +6 -6
  33. package/es/components/menu-list/index.js +2 -2
  34. package/es/components/menu-list/index.scss +16 -16
  35. package/es/components/menu-list/menu-list-item.d.ts +5 -5
  36. package/es/components/menu-list/menu-list-item.scss +49 -49
  37. package/es/components/menu-list/menu-list.d.ts +5 -5
  38. package/es/components/menu-list/types.d.ts +23 -23
  39. package/es/components/message-list/index.d.ts +6 -6
  40. package/es/components/message-list/index.js +2 -2
  41. package/es/components/message-list/index.scss +22 -22
  42. package/es/components/message-list/message-list-item.d.ts +29 -29
  43. package/es/components/message-list/message-list-item.js +2 -2
  44. package/es/components/message-list/message-list-item.scss +50 -49
  45. package/es/components/message-list/message-list.d.ts +32 -32
  46. package/es/components/notice-bar/index.d.ts +3 -3
  47. package/es/components/notice-bar/index.scss +29 -29
  48. package/es/components/notice-bar/notice-bar-item.d.ts +18 -18
  49. package/es/components/notice-bar/notice-bar-item.js +2 -2
  50. package/es/components/notice-bar/notice-bar-item.scss +26 -26
  51. package/es/components/notice-bar/notice-bar.d.ts +37 -37
  52. package/es/components/notice-bar/notice-bar.js +2 -2
  53. package/es/components/position/entity.d.ts +5 -5
  54. package/es/components/position/index.d.ts +3 -3
  55. package/es/components/position/index.scss +27 -27
  56. package/es/components/position/position-left.d.ts +9 -9
  57. package/es/components/position/position-list.d.ts +12 -12
  58. package/es/components/position/position.d.ts +8 -8
  59. package/es/components/radio-group/index.d.ts +8 -8
  60. package/es/components/radio-group/index.js +2 -2
  61. package/es/components/radio-group/index.scss +40 -40
  62. package/es/components/radio-group/radio-group-item.d.ts +48 -48
  63. package/es/components/radio-group/radio-group.d.ts +52 -52
  64. package/es/components/search-bar/index.d.ts +3 -3
  65. package/es/components/search-bar/index.scss +13 -13
  66. package/es/components/search-bar/search-bar.d.ts +7 -7
  67. package/es/components/swiper/index.d.ts +3 -3
  68. package/es/components/swiper/index.scss +12 -12
  69. package/es/components/swiper/swiper.d.ts +47 -47
  70. package/es/components/tab/index.d.ts +6 -6
  71. package/es/components/tab/index.js +2 -2
  72. package/es/components/tab/index.scss +23 -23
  73. package/es/components/tab/tab.d.ts +23 -23
  74. package/es/components/tab-container/index.d.ts +3 -3
  75. package/es/components/tab-container/index.scss +47 -47
  76. package/es/components/tab-container/tab-container.d.ts +10 -10
  77. package/es/components/tab-container-item/index.d.ts +3 -3
  78. package/es/components/tab-container-item/tab-container-item.d.ts +9 -9
  79. package/es/components/tag/index.d.ts +6 -6
  80. package/es/components/tag/index.js +2 -2
  81. package/es/components/tag/index.scss +24 -24
  82. package/es/components/tag/tag.d.ts +14 -14
  83. package/es/components/teletext-list/index.d.ts +6 -6
  84. package/es/components/teletext-list/index.js +2 -2
  85. package/es/components/teletext-list/index.scss +19 -19
  86. package/es/components/teletext-list/teletext-list-item.d.ts +42 -42
  87. package/es/components/teletext-list/teletext-list-item.js +2 -2
  88. package/es/components/teletext-list/teletext-list-item.scss +55 -55
  89. package/es/components/teletext-list/teletext-list.d.ts +61 -61
  90. package/es/components/teletext-list/teletext-list.js +2 -2
  91. package/es/components/title/index.d.ts +8 -8
  92. package/es/components/title/index.js +2 -2
  93. package/es/components/title/title-1.d.ts +10 -10
  94. package/es/components/title/title-1.scss +25 -25
  95. package/es/components/title/title-2.d.ts +18 -18
  96. package/es/components/title/title-2.scss +22 -22
  97. package/es/index.d.ts +40 -40
  98. package/es/index.scss +5 -5
  99. package/es/utils/children-node-handle.d.ts +9 -9
  100. package/es/utils/children-node-handle.js +7 -7
  101. package/es/utils/component-wrapper.d.ts +9 -9
  102. package/es/utils/debounce.d.ts +1 -1
  103. package/es/variables.d.ts +2 -2
  104. package/es/variables.scss +3 -3
  105. package/lib/components/bottom-navigation/bottom-navigation.d.ts +15 -15
  106. package/lib/components/bottom-navigation/index.d.ts +3 -3
  107. package/lib/components/bottom-navigation/index.scss +24 -24
  108. package/lib/components/button/button.d.ts +14 -14
  109. package/lib/components/button/index.d.ts +6 -6
  110. package/lib/components/button/index.js +2 -2
  111. package/lib/components/button/index.scss +16 -16
  112. package/lib/components/carousel/carousel.d.ts +14 -14
  113. package/lib/components/carousel/carousel.scss +32 -32
  114. package/lib/components/colorful-button/colorful-button.d.ts +12 -12
  115. package/lib/components/colorful-button/index.d.ts +3 -3
  116. package/lib/components/colorful-button/index.scss +5 -5
  117. package/lib/components/colorful-input/colorful-input.d.ts +8 -8
  118. package/lib/components/colorful-input/index.d.ts +3 -3
  119. package/lib/components/colorful-input/index.scss +5 -5
  120. package/lib/components/goods-card-list/goods-card-list.d.ts +5 -5
  121. package/lib/components/goods-card-list/goods-card-list.scss +112 -112
  122. package/lib/components/goods-card-list/index.d.ts +3 -3
  123. package/lib/components/goods-card-list/types.d.ts +45 -45
  124. package/lib/components/grid-nav/grid-nav.d.ts +13 -13
  125. package/lib/components/grid-nav/index.d.ts +3 -3
  126. package/lib/components/grid-nav/index.scss +37 -37
  127. package/lib/components/integral-task/index.d.ts +6 -6
  128. package/lib/components/integral-task/index.js +2 -2
  129. package/lib/components/integral-task/index.scss +35 -35
  130. package/lib/components/integral-task/integral-task.d.ts +40 -40
  131. package/lib/components/menu-list/index.d.ts +6 -6
  132. package/lib/components/menu-list/index.js +2 -2
  133. package/lib/components/menu-list/index.scss +16 -16
  134. package/lib/components/menu-list/menu-list-item.d.ts +5 -5
  135. package/lib/components/menu-list/menu-list-item.scss +49 -49
  136. package/lib/components/menu-list/menu-list.d.ts +5 -5
  137. package/lib/components/menu-list/types.d.ts +23 -23
  138. package/lib/components/message-list/index.d.ts +6 -6
  139. package/lib/components/message-list/index.js +2 -2
  140. package/lib/components/message-list/index.scss +22 -22
  141. package/lib/components/message-list/message-list-item.d.ts +29 -29
  142. package/lib/components/message-list/message-list-item.js +2 -2
  143. package/lib/components/message-list/message-list-item.scss +50 -49
  144. package/lib/components/message-list/message-list.d.ts +32 -32
  145. package/lib/components/notice-bar/index.d.ts +3 -3
  146. package/lib/components/notice-bar/index.scss +29 -29
  147. package/lib/components/notice-bar/notice-bar-item.d.ts +18 -18
  148. package/lib/components/notice-bar/notice-bar-item.js +2 -2
  149. package/lib/components/notice-bar/notice-bar-item.scss +26 -26
  150. package/lib/components/notice-bar/notice-bar.d.ts +37 -37
  151. package/lib/components/notice-bar/notice-bar.js +2 -2
  152. package/lib/components/position/entity.d.ts +5 -5
  153. package/lib/components/position/index.d.ts +3 -3
  154. package/lib/components/position/index.scss +27 -27
  155. package/lib/components/position/position-left.d.ts +9 -9
  156. package/lib/components/position/position-list.d.ts +12 -12
  157. package/lib/components/position/position.d.ts +8 -8
  158. package/lib/components/radio-group/index.d.ts +8 -8
  159. package/lib/components/radio-group/index.scss +40 -40
  160. package/lib/components/radio-group/radio-group-item.d.ts +48 -48
  161. package/lib/components/radio-group/radio-group.d.ts +52 -52
  162. package/lib/components/search-bar/index.d.ts +3 -3
  163. package/lib/components/search-bar/index.scss +13 -13
  164. package/lib/components/search-bar/search-bar.d.ts +7 -7
  165. package/lib/components/swiper/index.d.ts +3 -3
  166. package/lib/components/swiper/index.scss +12 -12
  167. package/lib/components/swiper/swiper.d.ts +47 -47
  168. package/lib/components/tab/index.d.ts +6 -6
  169. package/lib/components/tab/index.js +2 -2
  170. package/lib/components/tab/index.scss +23 -23
  171. package/lib/components/tab/tab.d.ts +23 -23
  172. package/lib/components/tab-container/index.d.ts +3 -3
  173. package/lib/components/tab-container/index.scss +47 -47
  174. package/lib/components/tab-container/tab-container.d.ts +10 -10
  175. package/lib/components/tab-container-item/index.d.ts +3 -3
  176. package/lib/components/tab-container-item/tab-container-item.d.ts +9 -9
  177. package/lib/components/tag/index.d.ts +6 -6
  178. package/lib/components/tag/index.js +2 -2
  179. package/lib/components/tag/index.scss +24 -24
  180. package/lib/components/tag/tag.d.ts +14 -14
  181. package/lib/components/teletext-list/index.d.ts +6 -6
  182. package/lib/components/teletext-list/index.scss +19 -19
  183. package/lib/components/teletext-list/teletext-list-item.d.ts +42 -42
  184. package/lib/components/teletext-list/teletext-list-item.js +2 -2
  185. package/lib/components/teletext-list/teletext-list-item.scss +55 -55
  186. package/lib/components/teletext-list/teletext-list.d.ts +61 -61
  187. package/lib/components/teletext-list/teletext-list.js +2 -2
  188. package/lib/components/title/index.d.ts +8 -8
  189. package/lib/components/title/title-1.d.ts +10 -10
  190. package/lib/components/title/title-1.scss +25 -25
  191. package/lib/components/title/title-2.d.ts +18 -18
  192. package/lib/components/title/title-2.scss +22 -22
  193. package/lib/index.d.ts +40 -40
  194. package/lib/index.scss +5 -5
  195. package/lib/utils/children-node-handle.d.ts +9 -9
  196. package/lib/utils/children-node-handle.js +7 -7
  197. package/lib/utils/component-wrapper.d.ts +9 -9
  198. package/lib/utils/debounce.d.ts +1 -1
  199. package/lib/variables.d.ts +2 -2
  200. package/lib/variables.scss +3 -3
  201. package/lowcode/button2/meta.ts +75 -75
  202. package/lowcode/custom-radio-group/meta.ts +310 -310
  203. package/lowcode/custom-radio-group-item/meta.ts +229 -229
  204. package/lowcode/d-c-slider/meta.design.ts +173 -173
  205. package/lowcode/d-c-slider/meta.ts +342 -342
  206. package/lowcode/d-c-slider/snippets.ts +68 -68
  207. package/lowcode/goods-card-list/meta.ts +268 -268
  208. package/lowcode/grid-nav/meta.ts +212 -212
  209. package/lowcode/integral-task/meta.ts +211 -211
  210. package/lowcode/menu-list/meta.ts +147 -147
  211. package/lowcode/message-list/meta.ts +202 -200
  212. package/lowcode/navigation/meta.ts +173 -173
  213. package/lowcode/notice-bar/meta.ts +229 -223
  214. package/lowcode/position/meta.ts +161 -161
  215. package/lowcode/search-bar/meta.ts +54 -54
  216. package/lowcode/swiper/meta.ts +237 -237
  217. package/lowcode/tab-container/meta.ts +69 -69
  218. package/lowcode/tab-container/props.ts +194 -194
  219. package/lowcode/tab-container-item/meta.ts +195 -195
  220. package/lowcode/tab-message/meta.ts +101 -101
  221. package/lowcode/tag-c/meta.ts +75 -75
  222. package/lowcode/teletext-list/meta.ts +329 -329
  223. package/lowcode/title1/meta.ts +59 -59
  224. package/lowcode/title2/meta.ts +93 -93
  225. package/lowcode_es/button2/meta.d.ts +22 -22
  226. package/lowcode_es/d-c-slider/meta.d.ts +148 -148
  227. package/lowcode_es/d-c-slider/meta.design.d.ts +100 -100
  228. package/lowcode_es/d-c-slider/snippets.d.ts +36 -36
  229. package/lowcode_es/grid-nav/meta.d.ts +22 -22
  230. package/lowcode_es/integral-task/meta.d.ts +22 -22
  231. package/lowcode_es/menu-list/meta.d.ts +22 -22
  232. package/lowcode_es/message-list/meta.d.ts +22 -22
  233. package/lowcode_es/message-list/meta.js +7 -0
  234. package/lowcode_es/meta.js +19 -22
  235. package/lowcode_es/navigation/meta.d.ts +22 -22
  236. package/lowcode_es/notice-bar/meta.d.ts +22 -22
  237. package/lowcode_es/position/meta.d.ts +22 -22
  238. package/lowcode_es/search-bar/meta.d.ts +22 -22
  239. package/lowcode_es/swiper/meta.d.ts +22 -22
  240. package/lowcode_es/tab-container/meta.d.ts +22 -22
  241. package/lowcode_es/tab-container/props.d.ts +90 -90
  242. package/lowcode_es/tab-container-item/meta.d.ts +22 -22
  243. package/lowcode_es/tab-message/meta.d.ts +22 -22
  244. package/lowcode_es/tag-c/meta.d.ts +22 -22
  245. package/lowcode_es/teletext-list/meta.d.ts +22 -22
  246. package/lowcode_es/title1/meta.d.ts +22 -22
  247. package/lowcode_es/title2/meta.d.ts +22 -22
  248. package/lowcode_es/view.js +3 -3
  249. package/lowcode_lib/button2/meta.d.ts +22 -22
  250. package/lowcode_lib/d-c-slider/meta.d.ts +148 -148
  251. package/lowcode_lib/d-c-slider/meta.design.d.ts +100 -100
  252. package/lowcode_lib/d-c-slider/snippets.d.ts +36 -36
  253. package/lowcode_lib/grid-nav/meta.d.ts +22 -22
  254. package/lowcode_lib/integral-task/meta.d.ts +22 -22
  255. package/lowcode_lib/menu-list/meta.d.ts +22 -22
  256. package/lowcode_lib/message-list/meta.d.ts +22 -22
  257. package/lowcode_lib/message-list/meta.js +7 -0
  258. package/lowcode_lib/meta.js +19 -22
  259. package/lowcode_lib/navigation/meta.d.ts +22 -22
  260. package/lowcode_lib/notice-bar/meta.d.ts +22 -22
  261. package/lowcode_lib/position/meta.d.ts +22 -22
  262. package/lowcode_lib/search-bar/meta.d.ts +22 -22
  263. package/lowcode_lib/swiper/meta.d.ts +22 -22
  264. package/lowcode_lib/tab-container/meta.d.ts +22 -22
  265. package/lowcode_lib/tab-container/props.d.ts +90 -90
  266. package/lowcode_lib/tab-container-item/meta.d.ts +22 -22
  267. package/lowcode_lib/tab-message/meta.d.ts +22 -22
  268. package/lowcode_lib/tag-c/meta.d.ts +22 -22
  269. package/lowcode_lib/teletext-list/meta.d.ts +22 -22
  270. package/lowcode_lib/title1/meta.d.ts +22 -22
  271. package/lowcode_lib/title2/meta.d.ts +22 -22
  272. package/lowcode_lib/view.js +2 -2
  273. package/package.json +3 -3
  274. package/build/lowcode/assets-daily.json +0 -71
  275. package/build/lowcode/assets-dev.json +0 -71
  276. package/build/lowcode/assets-prod.json +0 -71
  277. package/build/lowcode/designer.html +0 -302
  278. package/build/lowcode/index.html +0 -304
  279. package/build/lowcode/index.js +0 -1
  280. package/build/lowcode/meta.design.js +0 -1
  281. package/build/lowcode/meta.js +0 -1
  282. package/build/lowcode/preview.css +0 -1
  283. package/build/lowcode/preview.html +0 -33
  284. package/build/lowcode/preview.js +0 -308
  285. package/build/lowcode/render/default/view.css +0 -1
  286. package/build/lowcode/render/default/view.js +0 -295
  287. package/build/lowcode/view.css +0 -1
  288. package/build/lowcode/view.js +0 -295
  289. package/lowcode_es/custom-radio-group/meta.d.ts +0 -22
  290. package/lowcode_es/custom-radio-group/meta.js +0 -294
  291. package/lowcode_es/custom-radio-group-item/meta.d.ts +0 -23
  292. package/lowcode_es/custom-radio-group-item/meta.js +0 -205
  293. package/lowcode_es/goods-card-list/meta.d.ts +0 -22
  294. package/lowcode_es/goods-card-list/meta.js +0 -250
  295. package/lowcode_lib/custom-radio-group/meta.d.ts +0 -22
  296. package/lowcode_lib/custom-radio-group/meta.js +0 -299
  297. package/lowcode_lib/custom-radio-group-item/meta.d.ts +0 -23
  298. package/lowcode_lib/custom-radio-group-item/meta.js +0 -210
  299. package/lowcode_lib/goods-card-list/meta.d.ts +0 -22
  300. package/lowcode_lib/goods-card-list/meta.js +0 -255
@@ -1,29 +1,29 @@
1
- import React from 'react';
2
- import './message-list-item.scss';
3
- /**
4
- * 数据
5
- */
6
- export interface DataProps {
7
- /**
8
- * 标题
9
- */
10
- title?: string;
11
- /**
12
- * 图片地址
13
- */
14
- image?: string;
15
- /**
16
- * 说明
17
- */
18
- description?: string;
19
- /**
20
- * 发布时间
21
- */
22
- gmtCreate?: string;
23
- /**
24
- * 点击事件
25
- */
26
- onClick?: (e: any) => void;
27
- }
28
- declare const MessageListItem: React.FC<DataProps>;
29
- export default MessageListItem;
1
+ import React from 'react';
2
+ import './message-list-item.scss';
3
+ /**
4
+ * 数据
5
+ */
6
+ export interface DataProps {
7
+ /**
8
+ * 标题
9
+ */
10
+ title?: string;
11
+ /**
12
+ * 图片地址
13
+ */
14
+ image?: string;
15
+ /**
16
+ * 说明
17
+ */
18
+ description?: string;
19
+ /**
20
+ * 发布时间
21
+ */
22
+ gmtCreate?: string;
23
+ /**
24
+ * 点击事件
25
+ */
26
+ onClick?: (e: any) => void;
27
+ }
28
+ declare const MessageListItem: React.FC<DataProps>;
29
+ export default MessageListItem;
@@ -5,8 +5,8 @@ import React from 'react';
5
5
  import "./message-list-item.scss";
6
6
  import { convertChildren } from "../../utils/children-node-handle";
7
7
 
8
- /**
9
- * 数据
8
+ /**
9
+ * 数据
10
10
  */
11
11
 
12
12
  var MessageListItem = function MessageListItem(_ref) {
@@ -1,49 +1,50 @@
1
- @import '../../variables.scss';
2
-
3
- .message-list__panel__item {
4
- display: flex;
5
- gap: 5px;
6
- padding-bottom: 10px;
7
- justify-content: flex-start;
8
-
9
- border-bottom: 1px solid rgba(0, 0, 0, 0.1);
10
-
11
- &_image {
12
- width: 90px;
13
- height: 71px;
14
- border-radius: 5px;
15
- flex: 0 0 auto;
16
- overflow: hidden;
17
-
18
- & > img {
19
- width: 100%;
20
- height: 100%;
21
- object-fit: cover;
22
- }
23
-
24
- }
25
-
26
- &__text {
27
- display: flex;
28
- flex-direction: column;
29
- gap: 3px;
30
-
31
- &__title {
32
- font-size: 15px;
33
- font-weight: 500;
34
- color: #000000;
35
- }
36
-
37
- &__description {
38
- -webkit-line-clamp: 1;
39
- overflow: hidden;
40
- color: #686868;
41
- -webkit-box-orient: vertical;
42
- display: -webkit-box;
43
- font-size: 12px;
44
- text-overflow: ellipsis;
45
- }
46
-
47
- }
48
-
49
- }
1
+ @import '../../variables.scss';
2
+
3
+ .message-list__panel__item {
4
+ display: flex;
5
+ gap: 5px;
6
+ padding-bottom: 15px;
7
+ justify-content: flex-start;
8
+
9
+ border-bottom: 0.5px solid #eeeeee;
10
+
11
+ &_image {
12
+ width: 90px;
13
+ height: 71px;
14
+ border-radius: 5px;
15
+ flex: 0 0 auto;
16
+ overflow: hidden;
17
+
18
+ & > img {
19
+ width: 100%;
20
+ height: 100%;
21
+ object-fit: cover;
22
+ }
23
+
24
+ }
25
+
26
+ &__text {
27
+ display: flex;
28
+ flex-direction: column;
29
+ gap: 3px;
30
+ padding-top: 5px;
31
+
32
+ &__title {
33
+ font-size: 15px;
34
+ font-weight: 500;
35
+ color: #000000;
36
+ }
37
+
38
+ &__description {
39
+ -webkit-line-clamp: 1;
40
+ overflow: hidden;
41
+ color: #686868;
42
+ -webkit-box-orient: vertical;
43
+ display: -webkit-box;
44
+ font-size: 12px;
45
+ text-overflow: ellipsis;
46
+ }
47
+
48
+ }
49
+
50
+ }
@@ -1,32 +1,32 @@
1
- import React from 'react';
2
- import './index.scss';
3
- import { DataProps } from './message-list-item';
4
- export interface MessageListProps {
5
- /**
6
- * 全部的数据
7
- */
8
- dataList?: DataProps[];
9
- /**
10
- * 已读的数据
11
- */
12
- readDataList?: DataProps[];
13
- /**
14
- * 未读的数据
15
- */
16
- unReadDataList?: DataProps[];
17
- /**
18
- * 点击事件
19
- * @param e
20
- */
21
- onClick?: (e: any) => void;
22
- /**
23
- * 子节点
24
- */
25
- children: React.ReactChild;
26
- /**
27
- * 图片
28
- */
29
- images: string[];
30
- }
31
- declare const MessageList: React.FC<MessageListProps>;
32
- export default MessageList;
1
+ import React from 'react';
2
+ import './index.scss';
3
+ import { DataProps } from './message-list-item';
4
+ export interface MessageListProps {
5
+ /**
6
+ * 全部的数据
7
+ */
8
+ dataList?: DataProps[];
9
+ /**
10
+ * 已读的数据
11
+ */
12
+ readDataList?: DataProps[];
13
+ /**
14
+ * 未读的数据
15
+ */
16
+ unReadDataList?: DataProps[];
17
+ /**
18
+ * 点击事件
19
+ * @param e
20
+ */
21
+ onClick?: (e: any) => void;
22
+ /**
23
+ * 子节点
24
+ */
25
+ children: React.ReactChild;
26
+ /**
27
+ * 图片
28
+ */
29
+ images: string[];
30
+ }
31
+ declare const MessageList: React.FC<MessageListProps>;
32
+ export default MessageList;
@@ -1,3 +1,3 @@
1
- import NoticeBar from './notice-bar';
2
- export type { NoticeBarProps } from './notice-bar';
3
- export default NoticeBar;
1
+ import NoticeBar from './notice-bar';
2
+ export type { NoticeBarProps } from './notice-bar';
3
+ export default NoticeBar;
@@ -1,29 +1,29 @@
1
- .notice-bar__panel {
2
- width: 100%;
3
- display: flex;
4
- align-items: center;
5
- height: 70px;
6
- box-shadow: 0px 2px 6px 0px rgba(0,0,0,0.07);
7
- margin: 0;
8
- padding: 0 10px;
9
- border-radius: 12px;
10
- box-sizing: border-box;
11
- .notice-bar__panel__item-img {
12
- width: 46px;
13
- margin-right: 7px;
14
-
15
- }
16
- .notice-bar__panel__item-list {
17
- width: calc(100% - 53px);
18
- display: flex;
19
- flex-direction: column;
20
- align-items: start;
21
- justify-content: start;
22
- border-left: 1px solid #f1f1f1;
23
- padding-left: 10px;
24
- // .notice-bar__panel__item-loop {
25
- // width: 100% !important;
26
- // padding-left: 10px;
27
- // }
28
- }
29
- }
1
+ .notice-bar__panel {
2
+ width: 100%;
3
+ display: flex;
4
+ align-items: center;
5
+ height: 70px;
6
+ box-shadow: 0px 2px 6px 0px rgba(0,0,0,0.07);
7
+ margin: 0;
8
+ padding: 0 10px;
9
+ border-radius: 12px;
10
+ box-sizing: border-box;
11
+ .notice-bar__panel__item-img {
12
+ width: 46px;
13
+ margin-right: 7px;
14
+
15
+ }
16
+ .notice-bar__panel__item-list {
17
+ width: calc(100% - 53px);
18
+ display: flex;
19
+ flex-direction: column;
20
+ align-items: start;
21
+ justify-content: start;
22
+ border-left: 1px solid #f1f1f1;
23
+ padding-left: 10px;
24
+ // .notice-bar__panel__item-loop {
25
+ // width: 100% !important;
26
+ // padding-left: 10px;
27
+ // }
28
+ }
29
+ }
@@ -1,18 +1,18 @@
1
- import React from 'react';
2
- import './notice-bar-item.scss';
3
- interface NoticeBarItemProps {
4
- /**
5
- * 内容
6
- */
7
- content?: string;
8
- /**
9
- * 发布时间
10
- */
11
- releaseTime?: string;
12
- /**
13
- * 是否置顶
14
- */
15
- isTop?: boolean;
16
- }
17
- declare const NoticeBarItem: React.FC<NoticeBarItemProps>;
18
- export default NoticeBarItem;
1
+ import React from 'react';
2
+ import './notice-bar-item.scss';
3
+ interface NoticeBarItemProps {
4
+ /**
5
+ * 内容
6
+ */
7
+ content?: string;
8
+ /**
9
+ * 发布时间
10
+ */
11
+ releaseTime?: string;
12
+ /**
13
+ * 是否置顶
14
+ */
15
+ isTop?: number;
16
+ }
17
+ declare const NoticeBarItem: React.FC<NoticeBarItemProps>;
18
+ export default NoticeBarItem;
@@ -15,8 +15,8 @@ var NoticeBarItem = function NoticeBarItem(_ref) {
15
15
  className: "notice-bar__panel__item"
16
16
  }, _otherProps), /*#__PURE__*/React.createElement("div", {
17
17
  className: "notice-bar__panel__item-left"
18
- }, convertChildren(children, isTop ? 'teletext-tagc-1' : 'teletext-tagc-2', {
19
- name: isTop ? '置顶' : '最新'
18
+ }, convertChildren(children, isTop === 0 ? 'teletext-tagc-1' : 'teletext-tagc-2', {
19
+ name: isTop === 0 ? '置顶' : '最新'
20
20
  }), /*#__PURE__*/React.createElement("div", {
21
21
  className: "notice-bar__panal__item__content"
22
22
  }, content)), /*#__PURE__*/React.createElement("div", {
@@ -1,26 +1,26 @@
1
- .notice-bar__panel__item {
2
- width: calc(100vw - 90px);
3
- display: flex;
4
- align-items: center;
5
- justify-content: space-between;
6
- margin-bottom: 5px;
7
- .notice-bar__panel__item-left {
8
- display: flex;
9
- align-items: center;
10
- .notice-bar__panal__item__content{
11
- color: #676767;
12
- font-size: 12px;
13
- width: 160px;
14
- overflow: hidden;
15
- text-overflow: ellipsis;
16
- white-space: nowrap;
17
- margin-left: 4px;
18
- }
19
- }
20
- .notice-bar__panel__item-releaseTime {
21
- color: #676767;
22
- font-size: 11px;
23
- opacity: 0.5;
24
- }
25
-
26
- }
1
+ .notice-bar__panel__item {
2
+ width: calc(100vw - 104px);
3
+ display: flex;
4
+ align-items: center;
5
+ justify-content: space-between;
6
+ margin-bottom: 5px;
7
+ .notice-bar__panel__item-left {
8
+ display: flex;
9
+ align-items: center;
10
+ .notice-bar__panal__item__content{
11
+ color: #676767;
12
+ font-size: 12px;
13
+ width: 160px;
14
+ overflow: hidden;
15
+ text-overflow: ellipsis;
16
+ white-space: nowrap;
17
+ margin-left: 4px;
18
+ }
19
+ }
20
+ .notice-bar__panel__item-releaseTime {
21
+ color: #676767;
22
+ font-size: 11px;
23
+ opacity: 0.5;
24
+ }
25
+
26
+ }
@@ -1,37 +1,37 @@
1
- import React from 'react';
2
- import './index.scss';
3
- interface DataProps {
4
- /**
5
- * 内容
6
- */
7
- content?: string;
8
- /**
9
- * 发布时间
10
- */
11
- releaseTime?: string;
12
- /**
13
- * 是否置顶
14
- */
15
- isTop?: boolean;
16
- }
17
- export interface NoticeBarProps {
18
- /**
19
- * 数据
20
- */
21
- dataList?: DataProps[];
22
- /**
23
- * 点击事件
24
- * @param e
25
- */
26
- onClick?: (e: any) => void;
27
- /**
28
- * 子节点
29
- */
30
- children: React.ReactChild;
31
- /**
32
- * 左侧图标
33
- */
34
- icon: string;
35
- }
36
- declare const NoticeBar: React.FC<NoticeBarProps>;
37
- export default NoticeBar;
1
+ import React from 'react';
2
+ import './index.scss';
3
+ interface DataProps {
4
+ /**
5
+ * 内容
6
+ */
7
+ content?: string;
8
+ /**
9
+ * 发布时间
10
+ */
11
+ releaseTime?: string;
12
+ /**
13
+ * 是否置顶
14
+ */
15
+ isTop?: number;
16
+ }
17
+ export interface NoticeBarProps {
18
+ /**
19
+ * 数据
20
+ */
21
+ dataList?: DataProps[];
22
+ /**
23
+ * 点击事件
24
+ * @param e
25
+ */
26
+ onClick?: (e: any) => void;
27
+ /**
28
+ * 子节点
29
+ */
30
+ children: React.ReactChild;
31
+ /**
32
+ * 左侧图标
33
+ */
34
+ icon: string;
35
+ }
36
+ declare const NoticeBar: React.FC<NoticeBarProps>;
37
+ export default NoticeBar;
@@ -14,10 +14,10 @@ var NoticeBar = function NoticeBar(_ref) {
14
14
  otherProps = _objectWithoutPropertiesLoose(_ref, _excluded);
15
15
  var _otherProps = otherProps || {};
16
16
  var stickyItems = (dataList || []).filter(function (item) {
17
- return (item === null || item === void 0 ? void 0 : item.isTop) === true;
17
+ return (item === null || item === void 0 ? void 0 : item.isTop) === 0;
18
18
  });
19
19
  var loopItems = (dataList || []).filter(function (item) {
20
- return (item === null || item === void 0 ? void 0 : item.isTop) === false;
20
+ return (item === null || item === void 0 ? void 0 : item.isTop) === 1;
21
21
  });
22
22
  return /*#__PURE__*/React.createElement("div", _extends({
23
23
  className: "notice-bar__panel"
@@ -1,5 +1,5 @@
1
- export interface Location {
2
- lat: string;
3
- lng: string;
4
- address: string;
5
- }
1
+ export interface Location {
2
+ lat: string;
3
+ lng: string;
4
+ address: string;
5
+ }
@@ -1,3 +1,3 @@
1
- import Position from './position';
2
- export type { LocationProps } from './position';
3
- export default Position;
1
+ import Position from './position';
2
+ export type { LocationProps } from './position';
3
+ export default Position;
@@ -1,27 +1,27 @@
1
- .location {
2
- display: flex;
3
- cursor: pointer;
4
- color: #414141;
5
- font-size: 13.5px;
6
- &-address {
7
- margin-right: 7px;
8
- }
9
- &-icon {
10
- display: flex;
11
- align-items: center;
12
- }
13
- }
14
- .location-list {
15
- position: fixed;
16
- top: 0;
17
- left: 0;
18
- width: 100vw;
19
- height: 100vh;
20
- background-color: #fff;
21
- padding: 10px 15px;
22
- z-index: 999;
23
- &-item {
24
- padding: 10px 0;
25
- border-bottom: solid 1px #eee;
26
- }
27
- }
1
+ .location {
2
+ display: flex;
3
+ cursor: pointer;
4
+ color: #414141;
5
+ font-size: 13.5px;
6
+ &-address {
7
+ margin-right: 7px;
8
+ }
9
+ &-icon {
10
+ display: flex;
11
+ align-items: center;
12
+ }
13
+ }
14
+ .location-list {
15
+ position: fixed;
16
+ top: 0;
17
+ left: 0;
18
+ width: 100vw;
19
+ height: 100vh;
20
+ background-color: #fff;
21
+ padding: 10px 15px;
22
+ z-index: 999;
23
+ &-item {
24
+ padding: 10px 0;
25
+ border-bottom: solid 1px #eee;
26
+ }
27
+ }
@@ -1,9 +1,9 @@
1
- import * as React from 'react';
2
- import './index.scss';
3
- import { Location } from "./entity";
4
- export interface LocationProps {
5
- currentLocation: Location;
6
- clickHandle: () => void;
7
- }
8
- declare const NavigationLeft: React.FC<LocationProps>;
9
- export default NavigationLeft;
1
+ import * as React from 'react';
2
+ import './index.scss';
3
+ import { Location } from "./entity";
4
+ export interface LocationProps {
5
+ currentLocation: Location;
6
+ clickHandle: () => void;
7
+ }
8
+ declare const NavigationLeft: React.FC<LocationProps>;
9
+ export default NavigationLeft;
@@ -1,12 +1,12 @@
1
- import * as React from 'react';
2
- import './index.scss';
3
- import { Location } from "./position";
4
- interface LocationProps {
5
- itemArray: Location[];
6
- currentLocation: Location;
7
- open: boolean;
8
- setIsOpen: () => void;
9
- setCurrent: (data: Location) => void;
10
- }
11
- declare const ContentList: React.FC<LocationProps>;
12
- export default ContentList;
1
+ import * as React from 'react';
2
+ import './index.scss';
3
+ import { Location } from "./position";
4
+ interface LocationProps {
5
+ itemArray: Location[];
6
+ currentLocation: Location;
7
+ open: boolean;
8
+ setIsOpen: () => void;
9
+ setCurrent: (data: Location) => void;
10
+ }
11
+ declare const ContentList: React.FC<LocationProps>;
12
+ export default ContentList;
@@ -1,8 +1,8 @@
1
- import * as React from 'react';
2
- import { Location } from "./entity";
3
- export interface LocationProps {
4
- itemArray: Location[];
5
- defaultLocation: Location;
6
- }
7
- declare const Navigation: React.FC<LocationProps>;
8
- export default Navigation;
1
+ import * as React from 'react';
2
+ import { Location } from "./entity";
3
+ export interface LocationProps {
4
+ itemArray: Location[];
5
+ defaultLocation: Location;
6
+ }
7
+ declare const Navigation: React.FC<LocationProps>;
8
+ export default Navigation;
@@ -1,8 +1,8 @@
1
- /**
2
- * 单选按钮组
3
- */
4
- import RadioGroup from './radio-group';
5
- import RadioGroupItem from './radio-group-item';
6
- export type { RadioGroupProps } from './radio-group';
7
- export type { RadioGroupItemProps } from './radio-group-item';
8
- export { RadioGroup as CustomRadioGroup, RadioGroupItem as CustomRadioGroupItem, };
1
+ /**
2
+ * 单选按钮组
3
+ */
4
+ import RadioGroup from './radio-group';
5
+ import RadioGroupItem from './radio-group-item';
6
+ export type { RadioGroupProps } from './radio-group';
7
+ export type { RadioGroupItemProps } from './radio-group-item';
8
+ export { RadioGroup as CustomRadioGroup, RadioGroupItem as CustomRadioGroupItem, };
@@ -1,5 +1,5 @@
1
- /**
2
- * 单选按钮组
1
+ /**
2
+ * 单选按钮组
3
3
  */
4
4
 
5
5
  import RadioGroup from "./radio-group";