@dckj-npm/dc-material 0.1.127 → 0.1.129

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 (339) hide show
  1. package/README.md +17 -17
  2. package/build/index.js +8 -8
  3. package/build/lowcode/assets-daily.json +13 -13
  4. package/build/lowcode/assets-dev.json +2 -2
  5. package/build/lowcode/assets-prod.json +13 -13
  6. package/build/lowcode/index.js +1 -1
  7. package/build/lowcode/meta.design.js +1 -1
  8. package/build/lowcode/meta.js +1 -1
  9. package/build/lowcode/preview.js +10 -10
  10. package/build/lowcode/render/default/view.css +1 -1
  11. package/build/lowcode/render/default/view.js +9 -9
  12. package/build/lowcode/view.css +1 -1
  13. package/build/lowcode/view.js +9 -9
  14. package/dist/BizComps.css +1 -1
  15. package/dist/BizComps.js +5 -5
  16. package/dist/BizComps.js.map +1 -1
  17. package/es/components/bottom-navigation/index.scss +24 -24
  18. package/es/components/button/index.js +2 -2
  19. package/es/components/button/index.scss +16 -16
  20. package/es/components/carousel/carousel.scss +32 -32
  21. package/es/components/colorful-button/index.scss +5 -5
  22. package/es/components/colorful-input/index.scss +5 -5
  23. package/es/components/goods-card-list/goods-card-list-common.scss +118 -118
  24. package/es/components/goods-card-list/goods-card-list.scss +112 -112
  25. package/es/components/grid-nav/index.scss +41 -41
  26. package/es/components/integral-task/index.js +2 -2
  27. package/es/components/integral-task/index.scss +35 -35
  28. package/es/components/menu-list/index.js +2 -2
  29. package/es/components/menu-list/index.scss +16 -16
  30. package/es/components/menu-list/menu-list-item.scss +49 -49
  31. package/es/components/message-list/index.js +2 -2
  32. package/es/components/message-list/index.scss +22 -22
  33. package/es/components/message-list/message-list-item.js +2 -2
  34. package/es/components/message-list/message-list-item.scss +60 -60
  35. package/es/components/notice-bar/components/ScrollSwitcher.js +45 -0
  36. package/es/components/notice-bar/components/ScrollSwitcher.scss +17 -0
  37. package/es/components/notice-bar/index.scss +42 -59
  38. package/es/components/notice-bar/notice-bar-item.js +2 -5
  39. package/es/components/notice-bar/notice-bar-item.scss +26 -26
  40. package/es/components/notice-bar/notice-bar.js +51 -15
  41. package/es/components/position/index.scss +27 -27
  42. package/es/components/position/position-list.js +3 -2
  43. package/es/components/radio-group/index.js +2 -2
  44. package/es/components/radio-group/index.scss +40 -40
  45. package/es/components/rich-text/index.js +2 -2
  46. package/es/components/rich-text/index.scss +19 -19
  47. package/es/components/search-bar/index.scss +13 -14
  48. package/es/components/swiper/index.scss +12 -33
  49. package/es/components/swiper/swiper.js +16 -59
  50. package/es/components/tab/index.js +2 -2
  51. package/es/components/tab/index.scss +39 -39
  52. package/es/components/tab-container/index.scss +47 -47
  53. package/es/components/tag/index.js +2 -2
  54. package/es/components/tag/index.scss +24 -24
  55. package/es/components/teletext-list/index.js +2 -2
  56. package/es/components/teletext-list/index.scss +19 -19
  57. package/es/components/teletext-list/teletext-list-item.js +2 -2
  58. package/es/components/teletext-list/teletext-list-item.scss +55 -57
  59. package/es/components/teletext-list/teletext-list.js +2 -2
  60. package/es/components/title/index.js +2 -2
  61. package/es/components/title/title-1.scss +25 -25
  62. package/es/components/title/title-2.scss +22 -22
  63. package/es/index.js +0 -4
  64. package/es/index.scss +5 -5
  65. package/es/utils/children-node-handle.js +7 -7
  66. package/es/utils/time-util.js +3 -3
  67. package/es/variables.scss +3 -3
  68. package/lib/components/bottom-navigation/index.scss +24 -24
  69. package/lib/components/button/index.js +2 -2
  70. package/lib/components/button/index.scss +16 -16
  71. package/lib/components/carousel/carousel.scss +32 -32
  72. package/lib/components/colorful-button/index.scss +5 -5
  73. package/lib/components/colorful-input/index.scss +5 -5
  74. package/lib/components/goods-card-list/goods-card-list-common.scss +118 -118
  75. package/lib/components/goods-card-list/goods-card-list.scss +112 -112
  76. package/lib/components/grid-nav/index.scss +41 -41
  77. package/lib/components/integral-task/index.js +2 -2
  78. package/lib/components/integral-task/index.scss +35 -35
  79. package/lib/components/menu-list/index.js +2 -2
  80. package/lib/components/menu-list/index.scss +16 -16
  81. package/lib/components/menu-list/menu-list-item.scss +49 -49
  82. package/lib/components/message-list/index.js +2 -2
  83. package/lib/components/message-list/index.scss +22 -22
  84. package/lib/components/message-list/message-list-item.js +2 -2
  85. package/lib/components/message-list/message-list-item.scss +60 -60
  86. package/lib/components/notice-bar/components/ScrollSwitcher.js +52 -0
  87. package/lib/components/notice-bar/components/ScrollSwitcher.scss +17 -0
  88. package/lib/components/notice-bar/index.scss +42 -59
  89. package/lib/components/notice-bar/notice-bar-item.js +2 -5
  90. package/lib/components/notice-bar/notice-bar-item.scss +26 -26
  91. package/lib/components/notice-bar/notice-bar.js +53 -15
  92. package/lib/components/position/index.scss +27 -27
  93. package/lib/components/position/position-list.js +3 -2
  94. package/lib/components/radio-group/index.scss +40 -40
  95. package/lib/components/rich-text/index.scss +19 -19
  96. package/lib/components/search-bar/index.scss +13 -14
  97. package/lib/components/swiper/index.scss +12 -33
  98. package/lib/components/swiper/swiper.js +19 -60
  99. package/lib/components/tab/index.js +2 -2
  100. package/lib/components/tab/index.scss +39 -39
  101. package/lib/components/tab-container/index.scss +47 -47
  102. package/lib/components/tag/index.js +2 -2
  103. package/lib/components/tag/index.scss +24 -24
  104. package/lib/components/teletext-list/index.scss +19 -19
  105. package/lib/components/teletext-list/teletext-list-item.js +2 -2
  106. package/lib/components/teletext-list/teletext-list-item.scss +55 -57
  107. package/lib/components/teletext-list/teletext-list.js +2 -2
  108. package/lib/components/title/title-1.scss +25 -25
  109. package/lib/components/title/title-2.scss +22 -22
  110. package/lib/index.js +1 -5
  111. package/lib/index.scss +5 -5
  112. package/lib/utils/children-node-handle.js +7 -7
  113. package/lib/utils/time-util.js +3 -3
  114. package/lib/variables.scss +3 -3
  115. package/lowcode/button2/meta.ts +76 -76
  116. package/lowcode/custom-radio-group/meta.ts +312 -312
  117. package/lowcode/custom-radio-group-item/meta.ts +230 -230
  118. package/lowcode/d-c-form/meta.ts +62 -0
  119. package/lowcode/d-c-slider/meta.design.ts +174 -174
  120. package/lowcode/d-c-slider/meta.ts +343 -343
  121. package/lowcode/d-c-slider/snippets.ts +68 -68
  122. package/lowcode/goods-card-list/meta.ts +270 -270
  123. package/lowcode/goods-card-list-common/meta.ts +270 -270
  124. package/lowcode/grid-nav/meta.ts +227 -227
  125. package/lowcode/integral-task/meta.ts +212 -212
  126. package/lowcode/menu-list/meta.ts +154 -154
  127. package/lowcode/message-list/meta.ts +209 -209
  128. package/lowcode/navigation/meta.ts +177 -177
  129. package/lowcode/notice-bar/meta.ts +230 -230
  130. package/lowcode/position/meta.ts +162 -162
  131. package/lowcode/rich-text/meta.ts +72 -72
  132. package/lowcode/search-bar/meta.ts +57 -57
  133. package/lowcode/stream-list/meta.ts +209 -156
  134. package/lowcode/swiper/meta.ts +236 -236
  135. package/lowcode/tab-container/meta.ts +71 -71
  136. package/lowcode/tab-container/props.ts +194 -194
  137. package/lowcode/tab-container-item/meta.ts +195 -195
  138. package/lowcode/tab-message/meta.ts +105 -105
  139. package/lowcode/tag-c/meta.ts +76 -76
  140. package/lowcode/teletext-list/meta.ts +332 -332
  141. package/lowcode/title1/meta.ts +60 -60
  142. package/lowcode/title2/meta.ts +94 -94
  143. package/lowcode_es/button2/meta.d.ts +22 -22
  144. package/lowcode_es/custom-radio-group/meta.d.ts +22 -22
  145. package/lowcode_es/custom-radio-group-item/meta.d.ts +23 -23
  146. package/lowcode_es/d-c-form/meta.d.ts +22 -0
  147. package/lowcode_es/d-c-form/meta.js +64 -0
  148. package/lowcode_es/d-c-slider/meta.d.ts +150 -150
  149. package/lowcode_es/d-c-slider/meta.design.d.ts +101 -101
  150. package/lowcode_es/d-c-slider/snippets.d.ts +36 -36
  151. package/lowcode_es/goods-card-list/meta.d.ts +22 -22
  152. package/lowcode_es/goods-card-list-common/meta.d.ts +22 -22
  153. package/lowcode_es/grid-nav/meta.d.ts +22 -22
  154. package/lowcode_es/integral-task/meta.d.ts +22 -22
  155. package/lowcode_es/menu-list/meta.d.ts +22 -22
  156. package/lowcode_es/message-list/meta.d.ts +22 -22
  157. package/lowcode_es/meta.js +27 -26
  158. package/lowcode_es/navigation/meta.d.ts +22 -22
  159. package/lowcode_es/notice-bar/meta.d.ts +22 -22
  160. package/lowcode_es/position/meta.d.ts +22 -22
  161. package/lowcode_es/rich-text/meta.d.ts +22 -22
  162. package/lowcode_es/search-bar/meta.d.ts +22 -22
  163. package/lowcode_es/stream-list/meta.d.ts +22 -22
  164. package/lowcode_es/stream-list/meta.js +54 -3
  165. package/lowcode_es/swiper/meta.d.ts +22 -22
  166. package/lowcode_es/tab-container/meta.d.ts +22 -22
  167. package/lowcode_es/tab-container/props.d.ts +90 -90
  168. package/lowcode_es/tab-container-item/meta.d.ts +22 -22
  169. package/lowcode_es/tab-message/meta.d.ts +22 -22
  170. package/lowcode_es/tag-c/meta.d.ts +22 -22
  171. package/lowcode_es/teletext-list/meta.d.ts +22 -22
  172. package/lowcode_es/title1/meta.d.ts +22 -22
  173. package/lowcode_es/title2/meta.d.ts +22 -22
  174. package/lowcode_es/view.js +3 -3
  175. package/lowcode_lib/button2/meta.d.ts +22 -22
  176. package/lowcode_lib/custom-radio-group/meta.d.ts +22 -22
  177. package/lowcode_lib/custom-radio-group-item/meta.d.ts +23 -23
  178. package/lowcode_lib/d-c-form/meta.d.ts +22 -0
  179. package/lowcode_lib/d-c-form/meta.js +69 -0
  180. package/lowcode_lib/d-c-slider/meta.d.ts +150 -150
  181. package/lowcode_lib/d-c-slider/meta.design.d.ts +101 -101
  182. package/lowcode_lib/d-c-slider/snippets.d.ts +36 -36
  183. package/lowcode_lib/goods-card-list/meta.d.ts +22 -22
  184. package/lowcode_lib/goods-card-list-common/meta.d.ts +22 -22
  185. package/lowcode_lib/grid-nav/meta.d.ts +22 -22
  186. package/lowcode_lib/integral-task/meta.d.ts +22 -22
  187. package/lowcode_lib/menu-list/meta.d.ts +22 -22
  188. package/lowcode_lib/message-list/meta.d.ts +22 -22
  189. package/lowcode_lib/meta.js +27 -26
  190. package/lowcode_lib/navigation/meta.d.ts +22 -22
  191. package/lowcode_lib/notice-bar/meta.d.ts +22 -22
  192. package/lowcode_lib/position/meta.d.ts +22 -22
  193. package/lowcode_lib/rich-text/meta.d.ts +22 -22
  194. package/lowcode_lib/search-bar/meta.d.ts +22 -22
  195. package/lowcode_lib/stream-list/meta.d.ts +22 -22
  196. package/lowcode_lib/stream-list/meta.js +54 -3
  197. package/lowcode_lib/swiper/meta.d.ts +22 -22
  198. package/lowcode_lib/tab-container/meta.d.ts +22 -22
  199. package/lowcode_lib/tab-container/props.d.ts +90 -90
  200. package/lowcode_lib/tab-container-item/meta.d.ts +22 -22
  201. package/lowcode_lib/tab-message/meta.d.ts +22 -22
  202. package/lowcode_lib/tag-c/meta.d.ts +22 -22
  203. package/lowcode_lib/teletext-list/meta.d.ts +22 -22
  204. package/lowcode_lib/title1/meta.d.ts +22 -22
  205. package/lowcode_lib/title2/meta.d.ts +22 -22
  206. package/lowcode_lib/view.js +2 -2
  207. package/package.json +3 -3
  208. package/es/components/bottom-navigation/bottom-navigation.d.ts +0 -15
  209. package/es/components/bottom-navigation/index.d.ts +0 -3
  210. package/es/components/button/button.d.ts +0 -14
  211. package/es/components/button/index.d.ts +0 -6
  212. package/es/components/carousel/carousel.d.ts +0 -14
  213. package/es/components/colorful-button/colorful-button.d.ts +0 -12
  214. package/es/components/colorful-button/index.d.ts +0 -3
  215. package/es/components/colorful-input/colorful-input.d.ts +0 -8
  216. package/es/components/colorful-input/index.d.ts +0 -3
  217. package/es/components/goods-card-list/goods-card-list-common.d.ts +0 -5
  218. package/es/components/goods-card-list/goods-card-list.d.ts +0 -5
  219. package/es/components/goods-card-list/index.d.ts +0 -4
  220. package/es/components/goods-card-list/types.d.ts +0 -45
  221. package/es/components/grid-nav/grid-nav.d.ts +0 -13
  222. package/es/components/grid-nav/index.d.ts +0 -3
  223. package/es/components/integral-task/index.d.ts +0 -6
  224. package/es/components/integral-task/integral-task.d.ts +0 -40
  225. package/es/components/menu-list/index.d.ts +0 -6
  226. package/es/components/menu-list/menu-list-item.d.ts +0 -5
  227. package/es/components/menu-list/menu-list.d.ts +0 -5
  228. package/es/components/menu-list/types.d.ts +0 -23
  229. package/es/components/message-list/index.d.ts +0 -6
  230. package/es/components/message-list/message-list-item.d.ts +0 -33
  231. package/es/components/message-list/message-list.d.ts +0 -28
  232. package/es/components/notice-bar/index.d.ts +0 -3
  233. package/es/components/notice-bar/notice-bar-item.d.ts +0 -18
  234. package/es/components/notice-bar/notice-bar.d.ts +0 -37
  235. package/es/components/position/entity.d.ts +0 -5
  236. package/es/components/position/index.d.ts +0 -3
  237. package/es/components/position/position-left.d.ts +0 -9
  238. package/es/components/position/position-list.d.ts +0 -11
  239. package/es/components/position/position.d.ts +0 -8
  240. package/es/components/radio-group/index.d.ts +0 -8
  241. package/es/components/radio-group/radio-group-item.d.ts +0 -48
  242. package/es/components/radio-group/radio-group.d.ts +0 -52
  243. package/es/components/rich-text/index.d.ts +0 -6
  244. package/es/components/rich-text/rich-text.d.ts +0 -14
  245. package/es/components/search-bar/index.d.ts +0 -3
  246. package/es/components/search-bar/search-bar.d.ts +0 -7
  247. package/es/components/stream-list/index.d.ts +0 -6
  248. package/es/components/stream-list/index.js +0 -6
  249. package/es/components/stream-list/index.scss +0 -26
  250. package/es/components/stream-list/stream-list.d.ts +0 -46
  251. package/es/components/stream-list/stream-list.js +0 -167
  252. package/es/components/swiper/index.d.ts +0 -3
  253. package/es/components/swiper/swiper.d.ts +0 -26
  254. package/es/components/tab/index.d.ts +0 -6
  255. package/es/components/tab/tab.d.ts +0 -27
  256. package/es/components/tab-container/index.d.ts +0 -3
  257. package/es/components/tab-container/tab-container.d.ts +0 -10
  258. package/es/components/tab-container-item/index.d.ts +0 -3
  259. package/es/components/tab-container-item/tab-container-item.d.ts +0 -11
  260. package/es/components/tag/index.d.ts +0 -6
  261. package/es/components/tag/tag.d.ts +0 -14
  262. package/es/components/teletext-list/index.d.ts +0 -6
  263. package/es/components/teletext-list/teletext-list-item.d.ts +0 -33
  264. package/es/components/teletext-list/teletext-list.d.ts +0 -52
  265. package/es/components/title/index.d.ts +0 -8
  266. package/es/components/title/title-1.d.ts +0 -10
  267. package/es/components/title/title-2.d.ts +0 -18
  268. package/es/index.d.ts +0 -44
  269. package/es/utils/children-node-handle.d.ts +0 -9
  270. package/es/utils/component-wrapper.d.ts +0 -9
  271. package/es/utils/debounce.d.ts +0 -1
  272. package/es/utils/time-util.d.ts +0 -5
  273. package/es/variables.d.ts +0 -2
  274. package/lib/components/bottom-navigation/bottom-navigation.d.ts +0 -15
  275. package/lib/components/bottom-navigation/index.d.ts +0 -3
  276. package/lib/components/button/button.d.ts +0 -14
  277. package/lib/components/button/index.d.ts +0 -6
  278. package/lib/components/carousel/carousel.d.ts +0 -14
  279. package/lib/components/colorful-button/colorful-button.d.ts +0 -12
  280. package/lib/components/colorful-button/index.d.ts +0 -3
  281. package/lib/components/colorful-input/colorful-input.d.ts +0 -8
  282. package/lib/components/colorful-input/index.d.ts +0 -3
  283. package/lib/components/goods-card-list/goods-card-list-common.d.ts +0 -5
  284. package/lib/components/goods-card-list/goods-card-list.d.ts +0 -5
  285. package/lib/components/goods-card-list/index.d.ts +0 -4
  286. package/lib/components/goods-card-list/types.d.ts +0 -45
  287. package/lib/components/grid-nav/grid-nav.d.ts +0 -13
  288. package/lib/components/grid-nav/index.d.ts +0 -3
  289. package/lib/components/integral-task/index.d.ts +0 -6
  290. package/lib/components/integral-task/integral-task.d.ts +0 -40
  291. package/lib/components/menu-list/index.d.ts +0 -6
  292. package/lib/components/menu-list/menu-list-item.d.ts +0 -5
  293. package/lib/components/menu-list/menu-list.d.ts +0 -5
  294. package/lib/components/menu-list/types.d.ts +0 -23
  295. package/lib/components/message-list/index.d.ts +0 -6
  296. package/lib/components/message-list/message-list-item.d.ts +0 -33
  297. package/lib/components/message-list/message-list.d.ts +0 -28
  298. package/lib/components/notice-bar/index.d.ts +0 -3
  299. package/lib/components/notice-bar/notice-bar-item.d.ts +0 -18
  300. package/lib/components/notice-bar/notice-bar.d.ts +0 -37
  301. package/lib/components/position/entity.d.ts +0 -5
  302. package/lib/components/position/index.d.ts +0 -3
  303. package/lib/components/position/position-left.d.ts +0 -9
  304. package/lib/components/position/position-list.d.ts +0 -11
  305. package/lib/components/position/position.d.ts +0 -8
  306. package/lib/components/radio-group/index.d.ts +0 -8
  307. package/lib/components/radio-group/radio-group-item.d.ts +0 -48
  308. package/lib/components/radio-group/radio-group.d.ts +0 -52
  309. package/lib/components/rich-text/index.d.ts +0 -6
  310. package/lib/components/rich-text/rich-text.d.ts +0 -14
  311. package/lib/components/search-bar/index.d.ts +0 -3
  312. package/lib/components/search-bar/search-bar.d.ts +0 -7
  313. package/lib/components/stream-list/index.d.ts +0 -6
  314. package/lib/components/stream-list/index.js +0 -6
  315. package/lib/components/stream-list/index.scss +0 -26
  316. package/lib/components/stream-list/stream-list.d.ts +0 -46
  317. package/lib/components/stream-list/stream-list.js +0 -174
  318. package/lib/components/swiper/index.d.ts +0 -3
  319. package/lib/components/swiper/swiper.d.ts +0 -26
  320. package/lib/components/tab/index.d.ts +0 -6
  321. package/lib/components/tab/tab.d.ts +0 -27
  322. package/lib/components/tab-container/index.d.ts +0 -3
  323. package/lib/components/tab-container/tab-container.d.ts +0 -10
  324. package/lib/components/tab-container-item/index.d.ts +0 -3
  325. package/lib/components/tab-container-item/tab-container-item.d.ts +0 -11
  326. package/lib/components/tag/index.d.ts +0 -6
  327. package/lib/components/tag/tag.d.ts +0 -14
  328. package/lib/components/teletext-list/index.d.ts +0 -6
  329. package/lib/components/teletext-list/teletext-list-item.d.ts +0 -33
  330. package/lib/components/teletext-list/teletext-list.d.ts +0 -52
  331. package/lib/components/title/index.d.ts +0 -8
  332. package/lib/components/title/title-1.d.ts +0 -10
  333. package/lib/components/title/title-2.d.ts +0 -18
  334. package/lib/index.d.ts +0 -44
  335. package/lib/utils/children-node-handle.d.ts +0 -9
  336. package/lib/utils/component-wrapper.d.ts +0 -9
  337. package/lib/utils/debounce.d.ts +0 -1
  338. package/lib/utils/time-util.d.ts +0 -5
  339. package/lib/variables.d.ts +0 -2
@@ -1,26 +1,26 @@
1
- .notice-bar__panel__item {
2
- width: calc(100vw - 110px);
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 - 110px);
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,7 +1,7 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
2
  import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
3
3
  var _excluded = ["dataList", "onClick", "icon", "children"];
4
- import React from 'react';
4
+ import React, { useRef, useState, useEffect } from 'react';
5
5
  import "./index.scss";
6
6
  import NoticeBarItem from "./notice-bar-item";
7
7
  var NoticeBar = function NoticeBar(_ref) {
@@ -12,13 +12,45 @@ var NoticeBar = function NoticeBar(_ref) {
12
12
  children = _ref.children,
13
13
  otherProps = _objectWithoutPropertiesLoose(_ref, _excluded);
14
14
  var _otherProps = otherProps || {};
15
- var stickyItems = (dataList || []).filter(function (item) {
16
- return (item === null || item === void 0 ? void 0 : item.isTop) === 1;
15
+ // const stickyItems = (dataList || []).filter((item) => item?.isTop === 1)
16
+ // const loopItems = (dataList || []).filter((item) => item?.isTop === 0)
17
+
18
+ var _useState = useState(true),
19
+ play = _useState[0],
20
+ setPlay = _useState[1];
21
+ var _useState2 = useState([]),
22
+ loopItems = _useState2[0],
23
+ setLoopItems = _useState2[1];
24
+ var intervalId = useRef(null);
25
+ useEffect(function () {
26
+ var stickyItems = dataList.filter(function (item) {
27
+ return item.isTop === 1;
28
+ });
29
+ setLoopItems(dataList.filter(function (item) {
30
+ return item.isTop === 1;
31
+ }));
32
+ var startPlay = function startPlay() {
33
+ if (play) {
34
+ setLoopItems(function (prev) {
35
+ var newItems = [].concat(prev);
36
+ newItems.push(newItems[0]);
37
+ newItems.shift();
38
+ return newItems;
39
+ });
40
+ setPlay(false);
41
+ }
42
+ };
43
+ intervalId.current = setInterval(startPlay, 2000);
44
+ return function () {
45
+ clearInterval(intervalId.current);
46
+ };
47
+ }, [dataList, play]);
48
+ var isScroll = function isScroll(index) {
49
+ return index === 0;
50
+ };
51
+ var stickyItems = dataList.filter(function (item) {
52
+ return item.isTop === 1;
17
53
  });
18
- var loopItems = (dataList || []).filter(function (item) {
19
- return (item === null || item === void 0 ? void 0 : item.isTop) === 0;
20
- });
21
- var loopItemsData = console.log('loopItemsData');
22
54
  return /*#__PURE__*/React.createElement("div", _extends({
23
55
  className: "notice-bar__panel"
24
56
  }, _otherProps), /*#__PURE__*/React.createElement("img", {
@@ -33,15 +65,19 @@ var NoticeBar = function NoticeBar(_ref) {
33
65
  onClick: onClick,
34
66
  children: children
35
67
  }, item));
36
- }) : /*#__PURE__*/React.createElement("div", null), /*#__PURE__*/React.createElement("div", {
37
- className: "notice-bar__panel__item-loop"
38
- }, /*#__PURE__*/React.createElement("div", null, loopItems.length > 0 ? loopItems.map(function (item, index) {
39
- return /*#__PURE__*/React.createElement(NoticeBarItem, _extends({
68
+ }) : /*#__PURE__*/React.createElement("div", null), loopItems.length > 0 ? /*#__PURE__*/React.createElement("div", {
69
+ className: "notice-bar__panel-loop"
70
+ }, loopItems.map(function (item, index) {
71
+ return /*#__PURE__*/React.createElement(NoticeBarItem, {
40
72
  key: index,
41
- onClick: onClick,
42
- children: children
43
- }, item));
44
- }) : /*#__PURE__*/React.createElement("div", null, "No items to display")))));
73
+ className: "notice-bar__panel-loop__item " + (isScroll(index) && play ? 'toUp' : ''),
74
+ content: item.content,
75
+ releaseTime: item.releaseTime,
76
+ isTop: item.isTop,
77
+ tag: item.tag,
78
+ onClick: onClick
79
+ });
80
+ })) : /*#__PURE__*/React.createElement("div", null, "\u6682\u65E0\u6570\u636E")));
45
81
  };
46
82
  NoticeBar.displayName = 'NoticeBar';
47
83
  export default NoticeBar;
@@ -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
+ }
@@ -3,6 +3,7 @@ import "./index.scss";
3
3
  var ContentList = function navigationList(_ref) {
4
4
  var open = _ref.open,
5
5
  itemArray = _ref.itemArray,
6
+ currentLocation = _ref.currentLocation,
6
7
  setIsOpen = _ref.setIsOpen,
7
8
  setCurrent = _ref.setCurrent;
8
9
  var changeHandle = function changeHandle(position) {
@@ -17,13 +18,13 @@ var ContentList = function navigationList(_ref) {
17
18
  style: {
18
19
  display: open ? 'block' : 'none'
19
20
  }
20
- }, itemArray ? itemArray.map(function (item) {
21
+ }, itemArray.map(function (item) {
21
22
  return /*#__PURE__*/React.createElement("div", {
22
23
  onClick: function onClick() {
23
24
  return changeHandle(item);
24
25
  },
25
26
  className: "location-list-item"
26
27
  }, item.address);
27
- }) : /*#__PURE__*/React.createElement("div", null, "\u6682\u65E0\u6570\u636E"));
28
+ }));
28
29
  };
29
30
  export default ContentList;
@@ -1,5 +1,5 @@
1
- /**
2
- * 单选按钮组
1
+ /**
2
+ * 单选按钮组
3
3
  */
4
4
 
5
5
  import RadioGroup from "./radio-group";
@@ -1,40 +1,40 @@
1
- @import '../../variables.scss';
2
-
3
- .radio-group__panel {
4
- display: flex;
5
- gap: 12px;
6
- width: 100%;
7
-
8
- .radio-group-item__button {
9
- flex: 0 0 auto;
10
- transition-property: all;
11
- transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
12
- transition-duration: 250ms;
13
- font-size: 12px;
14
- padding: 5px 11px;
15
- border-radius: 25rem;
16
- }
17
-
18
- .radio-group-item__text {
19
- flex: 0 0 auto;
20
- transition-property: all;
21
- transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
22
- transition-duration: 250ms;
23
- font-size: 12px;
24
- padding: 5px 0;
25
-
26
- .radio-group-item__text__line {
27
- width: 100%;
28
- height: 1px;
29
- right: 0;
30
- left: 0;
31
- bottom: 0;
32
- position: absolute;
33
- }
34
-
35
- }
36
-
37
-
38
- }
39
-
40
-
1
+ @import '../../variables.scss';
2
+
3
+ .radio-group__panel {
4
+ display: flex;
5
+ gap: 12px;
6
+ width: 100%;
7
+
8
+ .radio-group-item__button {
9
+ flex: 0 0 auto;
10
+ transition-property: all;
11
+ transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
12
+ transition-duration: 250ms;
13
+ font-size: 12px;
14
+ padding: 5px 11px;
15
+ border-radius: 25rem;
16
+ }
17
+
18
+ .radio-group-item__text {
19
+ flex: 0 0 auto;
20
+ transition-property: all;
21
+ transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
22
+ transition-duration: 250ms;
23
+ font-size: 12px;
24
+ padding: 5px 0;
25
+
26
+ .radio-group-item__text__line {
27
+ width: 100%;
28
+ height: 1px;
29
+ right: 0;
30
+ left: 0;
31
+ bottom: 0;
32
+ position: absolute;
33
+ }
34
+
35
+ }
36
+
37
+
38
+ }
39
+
40
+
@@ -1,5 +1,5 @@
1
- /**
2
- * 富文本
1
+ /**
2
+ * 富文本
3
3
  */
4
4
 
5
5
  import RichText from "./rich-text";
@@ -1,19 +1,19 @@
1
- .rich-text {
2
- width: 100%;
3
- display: flex;
4
- flex-direction: column;
5
- padding: 0; /* 添加内边距 */
6
- margin: 0; /* 去除外边距 */
7
- word-break: break-word; /* 处理长单词换行 */
8
- overflow-wrap: break-word; /* 支持长单词换行 */
9
- overflow: hidden; /* 隐藏超出部分 */
10
- }
11
- p {
12
- padding: 0;
13
- margin: 0 0 20px 0 !important;
14
- }
15
- img {
16
- max-width: 100%;
17
- height: auto; /* 保持纵横比 */
18
- object-fit: contain; /* 确保图片保持在容器内 */
19
- }
1
+ .rich-text {
2
+ width: 100%;
3
+ display: flex;
4
+ flex-direction: column;
5
+ padding: 0; /* 添加内边距 */
6
+ margin: 0; /* 去除外边距 */
7
+ word-break: break-word; /* 处理长单词换行 */
8
+ overflow-wrap: break-word; /* 支持长单词换行 */
9
+ overflow: hidden; /* 隐藏超出部分 */
10
+ }
11
+ p {
12
+ padding: 0;
13
+ margin: 0 0 20px 0 !important;
14
+ }
15
+ img {
16
+ max-width: 100%;
17
+ height: auto; /* 保持纵横比 */
18
+ object-fit: contain; /* 确保图片保持在容器内 */
19
+ }
@@ -1,14 +1,13 @@
1
- .search-bar-box {
2
- //width: 260px;
3
- height: 35px;
4
- margin: 0;
5
- flex: 1;
6
- .next-input {
7
- width: 100%;
8
- border-radius: 34px;
9
- height: 35px;
10
- & input {
11
- height: 100%;
12
- }
13
- }
14
- }
1
+ .search-bar-box {
2
+ width: 260px;
3
+ height: 35px;
4
+ margin: 0;
5
+ .next-input {
6
+ width: 260px;
7
+ border-radius: 34px;
8
+ height: 35px;
9
+ & input {
10
+ height: 100%;
11
+ }
12
+ }
13
+ }
@@ -1,33 +1,12 @@
1
- .carousel {
2
- position: relative;
3
- overflow: hidden;
4
- width: 100%;
5
- margin: 0;
6
- }
7
- .carousel__wrapper {
8
- display: flex;
9
- }
10
- .carousel__slide {
11
- min-width: 100%;
12
- transition: transform ease-in-out;
13
- }
14
- .carousel__slide img {
15
- width: 100%;
16
- height: auto;
17
- }
18
- .carousel__button {
19
- position: absolute;
20
- top: 50%;
21
- transform: translateY(-50%);
22
- background: rgba(0, 0, 0, 0.5);
23
- color: white;
24
- border: none;
25
- padding: 10px;
26
- cursor: pointer;
27
- }
28
- .carousel__button--prev {
29
- left: 10px;
30
- }
31
- .carousel__button--next {
32
- right: 10px;
33
- }
1
+ /* write style here */
2
+ .swiper__container {
3
+ margin: 0;
4
+ &__sliede {
5
+ position: relative;
6
+ height: 100%;
7
+ }
8
+ }
9
+ .img{
10
+ width: 100%;
11
+ height: 100%;
12
+ }
@@ -1,77 +1,34 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
- import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
3
- var _excluded = ["speed", "autoplay", "loop", "picUrls", "height"];
4
2
  import * as React from 'react';
5
- import { useEffect, useRef, useState } from 'react';
3
+ import { Image } from '@alilc/lowcode-materials';
4
+ import { Swiper, SwiperSlide } from 'swiper/react';
5
+ import SwiperCore, { Autoplay } from 'swiper/core'; // 引入核心插件和自动播放组件
6
+ SwiperCore.use([Autoplay]); // 使用插件,插件名放入[]中,这一行是重点
6
7
  import "./index.scss";
7
- var DCSlider = function DCSlider(_ref) {
8
- var _ref$speed = _ref.speed,
9
- speed = _ref$speed === void 0 ? 500 : _ref$speed,
10
- autoplay = _ref.autoplay,
11
- loop = _ref.loop,
12
- _ref$picUrls = _ref.picUrls,
13
- picUrls = _ref$picUrls === void 0 ? [] : _ref$picUrls,
14
- height = _ref.height,
15
- otherProps = _objectWithoutPropertiesLoose(_ref, _excluded);
16
- var _useState = useState(0),
17
- currentIndex = _useState[0],
18
- setCurrentIndex = _useState[1];
19
- var autoplayRef = useRef(null);
20
- var nextSlide = function nextSlide() {
21
- if (currentIndex < picUrls.length - 1) {
22
- setCurrentIndex(currentIndex + 1);
23
- } else if (loop) {
24
- setCurrentIndex(0);
25
- }
26
- };
27
- var startAutoplay = function startAutoplay() {
28
- if (autoplay && !autoplayRef.current) {
29
- autoplayRef.current = setInterval(nextSlide, speed);
30
- }
31
- };
32
- var stopAutoplay = function stopAutoplay() {
33
- if (autoplayRef.current) {
34
- clearInterval(autoplayRef.current);
35
- autoplayRef.current = null;
36
- }
37
- };
38
- useEffect(function () {
39
- if (autoplay) {
40
- startAutoplay();
41
- }
42
- return function () {
43
- stopAutoplay();
44
- };
45
- }, [autoplay, speed, loop, picUrls]);
46
- return /*#__PURE__*/React.createElement("div", _extends({
47
- className: "carousel",
48
- onMouseEnter: stopAutoplay,
49
- onMouseLeave: startAutoplay,
8
+ import 'swiper/swiper.min.css';
9
+ var DCSlider = function DCSlider(props) {
10
+ var height = props.height;
11
+ return /*#__PURE__*/React.createElement(Swiper, _extends({}, props, {
12
+ className: "swiper__container",
50
13
  style: {
51
14
  height: height ? height + "px" : '100%'
52
15
  }
53
- }, otherProps), /*#__PURE__*/React.createElement("div", {
54
- className: "carousel__wrapper",
55
- style: {
56
- transform: "translateX(-" + currentIndex * 100 + "%)",
57
- transitionDuration: speed + "ms"
58
- }
59
- }, picUrls.map(function (url, index) {
60
- return /*#__PURE__*/React.createElement("div", {
61
- key: index,
62
- className: "carousel__slide",
16
+ }), props.picUrls && props.picUrls.length > 0 ? props.picUrls.map(function (url, index) {
17
+ return /*#__PURE__*/React.createElement(SwiperSlide, {
18
+ className: "swiper__container__sliede",
63
19
  style: {
64
20
  width: '100%',
65
21
  height: height ? height + "px" : '100%'
66
22
  }
67
- }, /*#__PURE__*/React.createElement("img", {
23
+ }, /*#__PURE__*/React.createElement(Image, {
68
24
  src: url,
69
- alt: "Slide " + index,
25
+ alt: "Slide",
26
+ key: index,
70
27
  style: {
71
28
  width: '100%',
72
29
  height: height ? height + "px" : '100%'
73
30
  }
74
31
  }));
75
- })));
32
+ }) : /*#__PURE__*/React.createElement("div", null, "\u56FE\u7247\u4E3A\u7A7A"));
76
33
  };
77
34
  export default DCSlider;
@@ -1,5 +1,5 @@
1
- /**
2
- * 标签tag
1
+ /**
2
+ * 标签tag
3
3
  */
4
4
  import Tab from "./tab";
5
5
  export default Tab;
@@ -1,39 +1,39 @@
1
- .tabs__container {
2
- display: inline-block;
3
- padding: 5px 17px;
4
- border-radius: 19px;
5
- background-color: #FFFFFF;
6
- color: #666666;
7
- font-size: 15px;
8
- cursor: pointer;
9
- margin-right: 6px;
10
- letter-spacing: 2px;
11
- position: relative;
12
- &--selected {
13
- background-color: #ED794A;
14
- color: #FFFFFF;
15
- }
16
- &--small {
17
- padding: 5px 16px;
18
- border-radius: 19px;
19
- }
20
- &--large {
21
- padding: 14px 30px;
22
- border-radius: 28px;
23
- }
24
- .badge {
25
- display: flex;
26
- padding: 2px 4px;
27
- border-radius: 8px;
28
- background-color: #F44341; // 红色背景
29
- color: white; // 字体颜色
30
- // text-align: center;
31
- letter-spacing: 0;
32
- justify-content: center;
33
- line-height: normal; // 垂直居中
34
- font-size: 10px; // 根据需要调整字体大小
35
- position: absolute; // 绝对定位
36
- top: 0; // 根据需要调整位置
37
- right: 3px; // 根据需要调整位置
38
- }
39
- }
1
+ .tabs__container {
2
+ display: inline-block;
3
+ padding: 5px 17px;
4
+ border-radius: 19px;
5
+ background-color: #FFFFFF;
6
+ color: #666666;
7
+ font-size: 15px;
8
+ cursor: pointer;
9
+ margin-right: 6px;
10
+ letter-spacing: 2px;
11
+ position: relative;
12
+ &--selected {
13
+ background-color: #ED794A;
14
+ color: #FFFFFF;
15
+ }
16
+ &--small {
17
+ padding: 5px 16px;
18
+ border-radius: 19px;
19
+ }
20
+ &--large {
21
+ padding: 14px 30px;
22
+ border-radius: 28px;
23
+ }
24
+ .badge {
25
+ display: flex;
26
+ padding: 2px 4px;
27
+ border-radius: 8px;
28
+ background-color: #F44341; // 红色背景
29
+ color: white; // 字体颜色
30
+ // text-align: center;
31
+ letter-spacing: 0;
32
+ justify-content: center;
33
+ line-height: normal; // 垂直居中
34
+ font-size: 10px; // 根据需要调整字体大小
35
+ position: absolute; // 绝对定位
36
+ top: 0; // 根据需要调整位置
37
+ right: 3px; // 根据需要调整位置
38
+ }
39
+ }