@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,41 +1,41 @@
1
- /* write style here */
2
- .grid-navigation {
3
- //padding: 10px;
4
- width: 100%;
5
- display: grid;
6
- grid-template-columns: repeat(4, 1fr);
7
- //gap: 14px 38px; /* 宫格之间的间距 */
8
- grid-row-gap: 14px;
9
- margin: 0;
10
- //padding: 0 18px
11
- // grid-template-columns: repeat(60px, minmax(1fr));
12
- }
13
-
14
- .grid-item {
15
- display: flex;
16
- flex-direction: column;
17
- align-items: center;
18
- text-align: center;
19
- text-decoration: none;
20
- color: #333;
21
- position: relative;
22
-
23
- img {
24
- width: 48px;
25
- height: 51px;
26
- margin-bottom: 3px;
27
- }
28
-
29
- span {
30
- font-size: 13px;
31
- color: #222222;
32
- // overflow: hidden;
33
- // text-overflow: ellipsis;
34
- // white-space: nowrap;
35
- // max-width: 60px;
36
- }
37
-
38
- &:hover {
39
- color: #007bff;
40
- }
41
- }
1
+ /* write style here */
2
+ .grid-navigation {
3
+ //padding: 10px;
4
+ width: 100%;
5
+ display: grid;
6
+ grid-template-columns: repeat(4, 1fr);
7
+ //gap: 14px 38px; /* 宫格之间的间距 */
8
+ grid-row-gap: 14px;
9
+ margin: 0;
10
+ //padding: 0 18px
11
+ // grid-template-columns: repeat(60px, minmax(1fr));
12
+ }
13
+
14
+ .grid-item {
15
+ display: flex;
16
+ flex-direction: column;
17
+ align-items: center;
18
+ text-align: center;
19
+ text-decoration: none;
20
+ color: #333;
21
+ position: relative;
22
+
23
+ img {
24
+ width: 48px;
25
+ height: 51px;
26
+ margin-bottom: 3px;
27
+ }
28
+
29
+ span {
30
+ font-size: 13px;
31
+ color: #222222;
32
+ // overflow: hidden;
33
+ // text-overflow: ellipsis;
34
+ // white-space: nowrap;
35
+ // max-width: 60px;
36
+ }
37
+
38
+ &:hover {
39
+ color: #007bff;
40
+ }
41
+ }
@@ -1,5 +1,5 @@
1
- /**
2
- * 标签tag
1
+ /**
2
+ * 标签tag
3
3
  */
4
4
  import IntegralTask from "./integral-task";
5
5
  export default IntegralTask;
@@ -1,35 +1,35 @@
1
- .integral-task__container {
2
- padding: 0 12px;
3
- &__item {
4
- display: flex;
5
- justify-content: space-between;
6
- align-items: center;
7
- &__left {
8
- display: flex;
9
- align-items: center;
10
- &__img {
11
- width: 53px;
12
- height: 53px;
13
- margin-right: 9px;
14
- }
15
- &__content {
16
- &__title {
17
- font-size: 15px;
18
- color: #333333;
19
- }
20
- &__integral {
21
- display: flex;
22
- align-items: center;
23
- &--icon {
24
- width: 15px;
25
- height: 15px;
26
- }
27
- &--number {
28
- font-size: 12px;
29
- color: #EA6A3D;
30
- }
31
- }
32
- }
33
- }
34
- }
35
- }
1
+ .integral-task__container {
2
+ padding: 0 12px;
3
+ &__item {
4
+ display: flex;
5
+ justify-content: space-between;
6
+ align-items: center;
7
+ &__left {
8
+ display: flex;
9
+ align-items: center;
10
+ &__img {
11
+ width: 53px;
12
+ height: 53px;
13
+ margin-right: 9px;
14
+ }
15
+ &__content {
16
+ &__title {
17
+ font-size: 15px;
18
+ color: #333333;
19
+ }
20
+ &__integral {
21
+ display: flex;
22
+ align-items: center;
23
+ &--icon {
24
+ width: 15px;
25
+ height: 15px;
26
+ }
27
+ &--number {
28
+ font-size: 12px;
29
+ color: #EA6A3D;
30
+ }
31
+ }
32
+ }
33
+ }
34
+ }
35
+ }
@@ -1,5 +1,5 @@
1
- /**
2
- * 菜单列表
1
+ /**
2
+ * 菜单列表
3
3
  */
4
4
 
5
5
  import MenuList from "./menu-list";
@@ -1,16 +1,16 @@
1
- @import '../../variables.scss';
2
-
3
- .menu-list__panel {
4
- border-radius: 10px;
5
- background-color: white;
6
-
7
- .menu-list__panel__item-list {
8
- display: flex;
9
- flex-direction: column;
10
- gap: 2px;
11
- padding: 1px 22px;
12
- }
13
-
14
- }
15
-
16
-
1
+ @import '../../variables.scss';
2
+
3
+ .menu-list__panel {
4
+ border-radius: 10px;
5
+ background-color: white;
6
+
7
+ .menu-list__panel__item-list {
8
+ display: flex;
9
+ flex-direction: column;
10
+ gap: 2px;
11
+ padding: 1px 22px;
12
+ }
13
+
14
+ }
15
+
16
+
@@ -1,49 +1,49 @@
1
- @import '../../variables.scss';
2
-
3
- .menu-list__panel__item {
4
- display: flex;
5
- gap: 7px;
6
- justify-content: space-between;
7
- align-items: center;
8
- height: 45px;
9
-
10
- border-bottom: 1px solid rgba(0, 0, 0, 0.1);
11
-
12
- &:last-child {
13
- border-bottom: none;
14
- }
15
-
16
- .menu-list__panel__item_icon {
17
- height: 100%;
18
- display: flex;
19
- align-items: center;
20
-
21
- & > img {
22
- height: 15px;
23
- }
24
- }
25
-
26
- .menu-list__panel__item_title {
27
- font-size: 15px;
28
- color: #666666;
29
- font-weight: 500;
30
- margin-right: auto;
31
- }
32
-
33
- .menu-list__panel__item_right {
34
- height: 100%;
35
- display: flex;
36
- align-items: center;
37
-
38
- & > svg {
39
- height: 16px;
40
- font-size: 12px;
41
- color: #666666;
42
- font-weight: 500;
43
- }
44
-
45
-
46
- }
47
-
48
-
49
- }
1
+ @import '../../variables.scss';
2
+
3
+ .menu-list__panel__item {
4
+ display: flex;
5
+ gap: 7px;
6
+ justify-content: space-between;
7
+ align-items: center;
8
+ height: 45px;
9
+
10
+ border-bottom: 1px solid rgba(0, 0, 0, 0.1);
11
+
12
+ &:last-child {
13
+ border-bottom: none;
14
+ }
15
+
16
+ .menu-list__panel__item_icon {
17
+ height: 100%;
18
+ display: flex;
19
+ align-items: center;
20
+
21
+ & > img {
22
+ height: 15px;
23
+ }
24
+ }
25
+
26
+ .menu-list__panel__item_title {
27
+ font-size: 15px;
28
+ color: #666666;
29
+ font-weight: 500;
30
+ margin-right: auto;
31
+ }
32
+
33
+ .menu-list__panel__item_right {
34
+ height: 100%;
35
+ display: flex;
36
+ align-items: center;
37
+
38
+ & > svg {
39
+ height: 16px;
40
+ font-size: 12px;
41
+ color: #666666;
42
+ font-weight: 500;
43
+ }
44
+
45
+
46
+ }
47
+
48
+
49
+ }
@@ -1,5 +1,5 @@
1
- /**
2
- * 消息列表
1
+ /**
2
+ * 消息列表
3
3
  */
4
4
 
5
5
  import MessageList from "./message-list";
@@ -1,22 +1,22 @@
1
- @import '../../variables.scss';
2
-
3
- .message-list__panel {
4
- display: flex;
5
- flex-direction: column;
6
- margin: 0;
7
- &__tab{
8
- margin-bottom: 20px;
9
- }
10
-
11
- &__item-list {
12
- display: flex;
13
- flex-direction: column;
14
- gap: 10px;
15
- div:last-child {
16
- border-bottom: none;
17
- }
18
- }
19
-
20
- }
21
-
22
-
1
+ @import '../../variables.scss';
2
+
3
+ .message-list__panel {
4
+ display: flex;
5
+ flex-direction: column;
6
+ margin: 0;
7
+ &__tab{
8
+ margin-bottom: 20px;
9
+ }
10
+
11
+ &__item-list {
12
+ display: flex;
13
+ flex-direction: column;
14
+ gap: 10px;
15
+ div:last-child {
16
+ border-bottom: none;
17
+ }
18
+ }
19
+
20
+ }
21
+
22
+
@@ -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,60 +1,60 @@
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
- border-bottom: 1px solid #eeeeee;
9
- position: relative;
10
- &_image {
11
- width: 90px;
12
- height: 71px;
13
- border-radius: 5px;
14
- flex: 0 0 auto;
15
- overflow: hidden;
16
- position: relative;
17
-
18
- & > img {
19
- width: 100%;
20
- height: 100%;
21
- object-fit: cover;
22
- }
23
- }
24
- .badge {
25
- display: inline-block;
26
- width: 7px; // 根据需要设置的大小
27
- height: 7px;
28
- border-radius: 50%;
29
- background-color: #F44341; // 红色背景
30
- position: absolute; // 绝对定位
31
- top: 5px; // 根据需要调整位置
32
- left: 38px; // 根据需要调整位置
33
- }
34
-
35
- &__text {
36
- display: flex;
37
- flex-direction: column;
38
- gap: 3px;
39
- padding-top: 4px;
40
-
41
- &__title {
42
- font-size: 15px;
43
- font-weight: 600;
44
- color: #000000;
45
- }
46
-
47
- &__description {
48
- -webkit-line-clamp: 1;
49
- overflow: hidden;
50
- color: #686868;
51
- -webkit-box-orient: vertical;
52
- display: -webkit-box;
53
- font-size: 12px;
54
- text-overflow: ellipsis;
55
- }
56
-
57
- }
58
-
59
-
60
- }
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
+ border-bottom: 1px solid #eeeeee;
9
+ position: relative;
10
+ &_image {
11
+ width: 90px;
12
+ height: 71px;
13
+ border-radius: 5px;
14
+ flex: 0 0 auto;
15
+ overflow: hidden;
16
+ position: relative;
17
+
18
+ & > img {
19
+ width: 100%;
20
+ height: 100%;
21
+ object-fit: cover;
22
+ }
23
+ }
24
+ .badge {
25
+ display: inline-block;
26
+ width: 7px; // 根据需要设置的大小
27
+ height: 7px;
28
+ border-radius: 50%;
29
+ background-color: #F44341; // 红色背景
30
+ position: absolute; // 绝对定位
31
+ top: 5px; // 根据需要调整位置
32
+ left: 38px; // 根据需要调整位置
33
+ }
34
+
35
+ &__text {
36
+ display: flex;
37
+ flex-direction: column;
38
+ gap: 3px;
39
+ padding-top: 4px;
40
+
41
+ &__title {
42
+ font-size: 15px;
43
+ font-weight: 600;
44
+ color: #000000;
45
+ }
46
+
47
+ &__description {
48
+ -webkit-line-clamp: 1;
49
+ overflow: hidden;
50
+ color: #686868;
51
+ -webkit-box-orient: vertical;
52
+ display: -webkit-box;
53
+ font-size: 12px;
54
+ text-overflow: ellipsis;
55
+ }
56
+
57
+ }
58
+
59
+
60
+ }
@@ -0,0 +1,45 @@
1
+ import React, { useState, useEffect } from 'react';
2
+ import "./ScrollSwitcher.scss"; // 导入样式
3
+
4
+ var ScrollSwitcher = function ScrollSwitcher(_ref) {
5
+ var children = _ref.children,
6
+ _ref$height = _ref.height,
7
+ height = _ref$height === void 0 ? '20px' : _ref$height,
8
+ _ref$interval = _ref.interval,
9
+ interval = _ref$interval === void 0 ? 3000 : _ref$interval;
10
+ var _useState = useState(0),
11
+ currentIndex = _useState[0],
12
+ setCurrentIndex = _useState[1];
13
+ var childrenCount = React.Children.count(children);
14
+ useEffect(function () {
15
+ var timer = setInterval(function () {
16
+ setCurrentIndex(function (prevIndex) {
17
+ return (prevIndex + 1) % React.Children.count(children);
18
+ });
19
+ }, interval);
20
+ return function () {
21
+ return clearInterval(timer);
22
+ }; // 清理定时器
23
+ }, [children, interval]);
24
+ return /*#__PURE__*/React.createElement("div", {
25
+ className: "scroll-switcher",
26
+ style: {
27
+ height: height
28
+ }
29
+ }, /*#__PURE__*/React.createElement("div", {
30
+ className: "scroll-switcher-content",
31
+ style: {
32
+ transform: "translateY(-" + currentIndex * 100 + "%)",
33
+ transition: 'transform 0.5s ease'
34
+ }
35
+ }, React.Children.map(children, function (child, index) {
36
+ return /*#__PURE__*/React.createElement("div", {
37
+ className: "scroll-item",
38
+ key: index
39
+ }, child);
40
+ }), /*#__PURE__*/React.createElement("div", {
41
+ className: "scroll-item",
42
+ key: childrenCount
43
+ }, children)));
44
+ };
45
+ export default ScrollSwitcher;
@@ -0,0 +1,17 @@
1
+ .scroll-switcher {
2
+ overflow: hidden; /* 隐藏溢出内容 */
3
+ position: relative; /* 使子元素绝对定位 */
4
+ }
5
+
6
+ .scroll-switcher-content {
7
+ display: flex; /* 使用 flexbox 使子元素竖直排列 */
8
+ flex-direction: column; /* 子元素垂直排列 */
9
+ }
10
+
11
+ .scroll-item {
12
+ height: 100%; /* 使每个子项占满容器的高度 */
13
+ display: flex;
14
+ align-items: center; /* 垂直居中对齐 */
15
+ justify-content: center; /* 水平居中对齐 */
16
+ }
17
+
@@ -1,59 +1,42 @@
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
- position: relative;
25
- overflow: hidden;
26
-
27
- .notice-bar__panel__item-loop {
28
- width: 100%;
29
- position: relative;
30
- overflow: hidden; // 确保超出部分不显示
31
- height: 20px; // 设置合适的高度
32
- }
33
-
34
- .notice-bar__panel__item-loop > div {
35
- position: absolute; // 绝对定位
36
- width: 100%;
37
- height: 20px;
38
- animation: scrollUp 4s linear infinite; // 动画持续时间和类型
39
- }
40
-
41
- @keyframes scrollUp {
42
- 0% {
43
- transform: translateY(100%); // 从底部开始
44
- }
45
- 100% {
46
- transform: translateY(-200%); // 滚动到顶部
47
- }
48
- }
49
-
50
-
51
- }
52
-
53
-
54
- }
55
- //动画
56
- .anim {
57
- transition: all 0.5s;
58
- margin-top: -24px;
59
- }
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-loop {
25
+ width: 100%;
26
+ overflow: hidden;
27
+ list-style: none;
28
+ text-align: center;
29
+ height: 20px;
30
+ color: #111111;
31
+ padding: 0;
32
+ .notice-bar__panel-loop__item {
33
+ text-align: left;
34
+ height: 20px;
35
+ }
36
+ .toUp {
37
+ margin-top: -25px; //向上移
38
+ transition: all 0.5s;
39
+ }
40
+ }
41
+ }
42
+ }
@@ -13,15 +13,12 @@ var NoticeBarItem = function NoticeBarItem(_ref) {
13
13
  otherProps = _objectWithoutPropertiesLoose(_ref, _excluded);
14
14
  var _otherProps = otherProps || {};
15
15
  releaseTime = formatTime(releaseTime);
16
- console.log(convertChildren(children, isTop === 1 ? 'teletext-tagc-1' : 'teletext-tagc-2', {
17
- name: isTop === 1 ? '置顶' : '最新'
18
- }));
19
16
  return /*#__PURE__*/React.createElement("div", _extends({
20
17
  className: "notice-bar__panel__item"
21
18
  }, _otherProps), /*#__PURE__*/React.createElement("div", {
22
19
  className: "notice-bar__panel__item-left"
23
- }, convertChildren(children, isTop === 1 ? 'teletext-tagc-1' : 'teletext-tagc-2', {
24
- name: isTop === 1 ? '置顶' : '最新'
20
+ }, convertChildren(children, isTop === 0 ? 'teletext-tagc-1' : 'teletext-tagc-2', {
21
+ name: isTop === 0 ? '置顶' : '最新'
25
22
  }), /*#__PURE__*/React.createElement("div", {
26
23
  className: "notice-bar__panal__item__content"
27
24
  }, content)), /*#__PURE__*/React.createElement("div", {