@dckj-npm/dc-material 0.1.327 → 0.1.329

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 (393) hide show
  1. package/build/lowcode/assets-daily.json +13 -13
  2. package/build/lowcode/assets-dev.json +2 -2
  3. package/build/lowcode/assets-prod.json +13 -13
  4. package/build/lowcode/meta.design.js +1 -1
  5. package/build/lowcode/meta.js +1 -1
  6. package/build/lowcode/render/default/view.css +1 -1
  7. package/build/lowcode/render/default/view.js +1 -1
  8. package/build/lowcode/view.css +1 -1
  9. package/build/lowcode/view.js +1 -1
  10. package/lowcode_es/meta.js +1 -1
  11. package/lowcode_lib/meta.js +1 -1
  12. package/package.json +2 -2
  13. package/build/index.css +0 -2
  14. package/build/index.html +0 -1
  15. package/build/index.js +0 -53
  16. package/es/assets/icon/grid-nav/right.png +0 -0
  17. package/es/assets/icon/integral-task/icon1.png +0 -0
  18. package/es/assets/icon/navigation/index-selected.png +0 -0
  19. package/es/assets/icon/navigation/index.png +0 -0
  20. package/es/assets/icon/navigation/message-selected.png +0 -0
  21. package/es/assets/icon/navigation/message.png +0 -0
  22. package/es/assets/icon/navigation/mine-selected.png +0 -0
  23. package/es/assets/icon/navigation/mine.png +0 -0
  24. package/es/assets/icon/navigation/present-selected.png +0 -0
  25. package/es/assets/icon/navigation/present.png +0 -0
  26. package/es/assets/icon/notice-bar/notice.png +0 -0
  27. package/es/assets/icon/position/arror.png +0 -0
  28. package/es/assets/icon/position/img.png +0 -0
  29. package/es/assets/icon/position/location.png +0 -0
  30. package/es/assets/icon/search/delete.png +0 -0
  31. package/es/assets/icon/search/search.png +0 -0
  32. package/es/assets/icon/teletext-list/arr.png +0 -0
  33. package/es/components/bottom-navigation/bottom-navigation.d.ts +0 -15
  34. package/es/components/bottom-navigation/bottom-navigation.js +0 -53
  35. package/es/components/bottom-navigation/index.d.ts +0 -3
  36. package/es/components/bottom-navigation/index.js +0 -2
  37. package/es/components/bottom-navigation/index.scss +0 -24
  38. package/es/components/button/button.d.ts +0 -14
  39. package/es/components/button/button.js +0 -14
  40. package/es/components/button/index.d.ts +0 -6
  41. package/es/components/button/index.js +0 -5
  42. package/es/components/button/index.scss +0 -16
  43. package/es/components/carousel/carousel.d.ts +0 -14
  44. package/es/components/carousel/carousel.js +0 -75
  45. package/es/components/carousel/carousel.scss +0 -32
  46. package/es/components/colorful-button/colorful-button.d.ts +0 -12
  47. package/es/components/colorful-button/colorful-button.js +0 -25
  48. package/es/components/colorful-button/index.d.ts +0 -3
  49. package/es/components/colorful-button/index.js +0 -2
  50. package/es/components/colorful-button/index.scss +0 -5
  51. package/es/components/colorful-input/colorful-input.d.ts +0 -8
  52. package/es/components/colorful-input/colorful-input.js +0 -19
  53. package/es/components/colorful-input/index.d.ts +0 -3
  54. package/es/components/colorful-input/index.js +0 -2
  55. package/es/components/colorful-input/index.scss +0 -5
  56. package/es/components/form/form-item.d.ts +0 -42
  57. package/es/components/form/form-item.js +0 -79
  58. package/es/components/form/form-item.scss +0 -20
  59. package/es/components/form/form.d.ts +0 -57
  60. package/es/components/form/form.js +0 -46
  61. package/es/components/form/index.d.ts +0 -6
  62. package/es/components/form/index.js +0 -6
  63. package/es/components/form/index.scss +0 -22
  64. package/es/components/form/next-wrapper.d.ts +0 -54
  65. package/es/components/form/next-wrapper.js +0 -43
  66. package/es/components/goods-card-list/goods-card-list-common.d.ts +0 -5
  67. package/es/components/goods-card-list/goods-card-list-common.js +0 -60
  68. package/es/components/goods-card-list/goods-card-list-common.scss +0 -118
  69. package/es/components/goods-card-list/goods-card-list.d.ts +0 -5
  70. package/es/components/goods-card-list/goods-card-list.js +0 -156
  71. package/es/components/goods-card-list/goods-card-list.scss +0 -112
  72. package/es/components/goods-card-list/index.d.ts +0 -4
  73. package/es/components/goods-card-list/index.js +0 -3
  74. package/es/components/goods-card-list/types.d.ts +0 -45
  75. package/es/components/goods-card-list/types.js +0 -1
  76. package/es/components/grid-nav/grid-nav.d.ts +0 -13
  77. package/es/components/grid-nav/grid-nav.js +0 -102
  78. package/es/components/grid-nav/index.d.ts +0 -3
  79. package/es/components/grid-nav/index.js +0 -2
  80. package/es/components/grid-nav/index.scss +0 -50
  81. package/es/components/integral-task/index.d.ts +0 -6
  82. package/es/components/integral-task/index.js +0 -5
  83. package/es/components/integral-task/index.scss +0 -35
  84. package/es/components/integral-task/integral-task.d.ts +0 -40
  85. package/es/components/integral-task/integral-task.js +0 -54
  86. package/es/components/menu-list/index.d.ts +0 -6
  87. package/es/components/menu-list/index.js +0 -6
  88. package/es/components/menu-list/index.scss +0 -16
  89. package/es/components/menu-list/menu-list-item.d.ts +0 -5
  90. package/es/components/menu-list/menu-list-item.js +0 -32
  91. package/es/components/menu-list/menu-list-item.scss +0 -49
  92. package/es/components/menu-list/menu-list.d.ts +0 -5
  93. package/es/components/menu-list/menu-list.js +0 -25
  94. package/es/components/menu-list/types.d.ts +0 -23
  95. package/es/components/menu-list/types.js +0 -1
  96. package/es/components/message-list/index.d.ts +0 -6
  97. package/es/components/message-list/index.js +0 -6
  98. package/es/components/message-list/index.scss +0 -22
  99. package/es/components/message-list/message-list-item.d.ts +0 -33
  100. package/es/components/message-list/message-list-item.js +0 -41
  101. package/es/components/message-list/message-list-item.scss +0 -60
  102. package/es/components/message-list/message-list.d.ts +0 -28
  103. package/es/components/message-list/message-list.js +0 -53
  104. package/es/components/notice-bar/index.d.ts +0 -3
  105. package/es/components/notice-bar/index.js +0 -2
  106. package/es/components/notice-bar/index.scss +0 -84
  107. package/es/components/notice-bar/notice-bar-item.d.ts +0 -18
  108. package/es/components/notice-bar/notice-bar-item.js +0 -30
  109. package/es/components/notice-bar/notice-bar-item.scss +0 -26
  110. package/es/components/notice-bar/notice-bar.d.ts +0 -46
  111. package/es/components/notice-bar/notice-bar.js +0 -57
  112. package/es/components/position/entity.d.ts +0 -5
  113. package/es/components/position/entity.js +0 -1
  114. package/es/components/position/index.d.ts +0 -3
  115. package/es/components/position/index.js +0 -2
  116. package/es/components/position/index.scss +0 -27
  117. package/es/components/position/position-left.d.ts +0 -9
  118. package/es/components/position/position-left.js +0 -28
  119. package/es/components/position/position-list.d.ts +0 -11
  120. package/es/components/position/position-list.js +0 -29
  121. package/es/components/position/position.d.ts +0 -8
  122. package/es/components/position/position.js +0 -48
  123. package/es/components/radio-group/index.d.ts +0 -8
  124. package/es/components/radio-group/index.js +0 -7
  125. package/es/components/radio-group/index.scss +0 -40
  126. package/es/components/radio-group/radio-group-item.d.ts +0 -48
  127. package/es/components/radio-group/radio-group-item.js +0 -74
  128. package/es/components/radio-group/radio-group.d.ts +0 -52
  129. package/es/components/radio-group/radio-group.js +0 -80
  130. package/es/components/rich-text/index.d.ts +0 -6
  131. package/es/components/rich-text/index.js +0 -6
  132. package/es/components/rich-text/index.scss +0 -19
  133. package/es/components/rich-text/rich-text.d.ts +0 -14
  134. package/es/components/rich-text/rich-text.js +0 -37
  135. package/es/components/search-bar/index.d.ts +0 -3
  136. package/es/components/search-bar/index.js +0 -2
  137. package/es/components/search-bar/index.scss +0 -39
  138. package/es/components/search-bar/search-bar.d.ts +0 -10
  139. package/es/components/search-bar/search-bar.js +0 -73
  140. package/es/components/stream-list/index.d.ts +0 -6
  141. package/es/components/stream-list/index.js +0 -6
  142. package/es/components/stream-list/index.scss +0 -26
  143. package/es/components/stream-list/stream-list.d.ts +0 -54
  144. package/es/components/stream-list/stream-list.js +0 -159
  145. package/es/components/swiper/index.d.ts +0 -3
  146. package/es/components/swiper/index.js +0 -2
  147. package/es/components/swiper/index.scss +0 -33
  148. package/es/components/swiper/swiper.d.ts +0 -26
  149. package/es/components/swiper/swiper.js +0 -77
  150. package/es/components/tab/index.d.ts +0 -6
  151. package/es/components/tab/index.js +0 -5
  152. package/es/components/tab/index.scss +0 -39
  153. package/es/components/tab/tab.d.ts +0 -27
  154. package/es/components/tab/tab.js +0 -50
  155. package/es/components/tab-container/index.d.ts +0 -3
  156. package/es/components/tab-container/index.js +0 -2
  157. package/es/components/tab-container/index.scss +0 -48
  158. package/es/components/tab-container/tab-container.d.ts +0 -10
  159. package/es/components/tab-container/tab-container.js +0 -26
  160. package/es/components/tab-container-item/index.d.ts +0 -3
  161. package/es/components/tab-container-item/index.js +0 -2
  162. package/es/components/tab-container-item/index.scss +0 -0
  163. package/es/components/tab-container-item/tab-container-item.d.ts +0 -11
  164. package/es/components/tab-container-item/tab-container-item.js +0 -19
  165. package/es/components/tag/index.d.ts +0 -6
  166. package/es/components/tag/index.js +0 -5
  167. package/es/components/tag/index.scss +0 -24
  168. package/es/components/tag/tag.d.ts +0 -14
  169. package/es/components/tag/tag.js +0 -14
  170. package/es/components/teletext-list/index.d.ts +0 -6
  171. package/es/components/teletext-list/index.js +0 -6
  172. package/es/components/teletext-list/index.scss +0 -40
  173. package/es/components/teletext-list/teletext-list-item.d.ts +0 -33
  174. package/es/components/teletext-list/teletext-list-item.js +0 -61
  175. package/es/components/teletext-list/teletext-list-item.scss +0 -57
  176. package/es/components/teletext-list/teletext-list.d.ts +0 -61
  177. package/es/components/teletext-list/teletext-list.js +0 -48
  178. package/es/components/title/index.d.ts +0 -8
  179. package/es/components/title/index.js +0 -7
  180. package/es/components/title/title-1.d.ts +0 -10
  181. package/es/components/title/title-1.js +0 -16
  182. package/es/components/title/title-1.scss +0 -25
  183. package/es/components/title/title-2.d.ts +0 -18
  184. package/es/components/title/title-2.js +0 -31
  185. package/es/components/title/title-2.scss +0 -22
  186. package/es/entity/dynamic-column-data-type.d.ts +0 -47
  187. package/es/entity/dynamic-column-data-type.js +0 -165
  188. package/es/index.d.ts +0 -46
  189. package/es/index.js +0 -86
  190. package/es/index.scss +0 -6
  191. package/es/style.js +0 -4
  192. package/es/utils/children-node-handle.d.ts +0 -9
  193. package/es/utils/children-node-handle.js +0 -25
  194. package/es/utils/component-wrapper.d.ts +0 -9
  195. package/es/utils/component-wrapper.js +0 -38
  196. package/es/utils/debounce.d.ts +0 -1
  197. package/es/utils/debounce.js +0 -14
  198. package/es/utils/textUtil.d.ts +0 -10
  199. package/es/utils/textUtil.js +0 -51
  200. package/es/utils/time-util.d.ts +0 -5
  201. package/es/utils/time-util.js +0 -18
  202. package/es/variables.d.ts +0 -2
  203. package/es/variables.js +0 -2
  204. package/es/variables.scss +0 -3
  205. package/lib/assets/icon/grid-nav/right.png +0 -0
  206. package/lib/assets/icon/integral-task/icon1.png +0 -0
  207. package/lib/assets/icon/navigation/index-selected.png +0 -0
  208. package/lib/assets/icon/navigation/index.png +0 -0
  209. package/lib/assets/icon/navigation/message-selected.png +0 -0
  210. package/lib/assets/icon/navigation/message.png +0 -0
  211. package/lib/assets/icon/navigation/mine-selected.png +0 -0
  212. package/lib/assets/icon/navigation/mine.png +0 -0
  213. package/lib/assets/icon/navigation/present-selected.png +0 -0
  214. package/lib/assets/icon/navigation/present.png +0 -0
  215. package/lib/assets/icon/notice-bar/notice.png +0 -0
  216. package/lib/assets/icon/position/arror.png +0 -0
  217. package/lib/assets/icon/position/img.png +0 -0
  218. package/lib/assets/icon/position/location.png +0 -0
  219. package/lib/assets/icon/search/delete.png +0 -0
  220. package/lib/assets/icon/search/search.png +0 -0
  221. package/lib/assets/icon/teletext-list/arr.png +0 -0
  222. package/lib/components/bottom-navigation/bottom-navigation.d.ts +0 -15
  223. package/lib/components/bottom-navigation/bottom-navigation.js +0 -60
  224. package/lib/components/bottom-navigation/index.d.ts +0 -3
  225. package/lib/components/bottom-navigation/index.js +0 -7
  226. package/lib/components/bottom-navigation/index.scss +0 -24
  227. package/lib/components/button/button.d.ts +0 -14
  228. package/lib/components/button/button.js +0 -21
  229. package/lib/components/button/index.d.ts +0 -6
  230. package/lib/components/button/index.js +0 -10
  231. package/lib/components/button/index.scss +0 -16
  232. package/lib/components/carousel/carousel.d.ts +0 -14
  233. package/lib/components/carousel/carousel.js +0 -81
  234. package/lib/components/carousel/carousel.scss +0 -32
  235. package/lib/components/colorful-button/colorful-button.d.ts +0 -12
  236. package/lib/components/colorful-button/colorful-button.js +0 -32
  237. package/lib/components/colorful-button/index.d.ts +0 -3
  238. package/lib/components/colorful-button/index.js +0 -7
  239. package/lib/components/colorful-button/index.scss +0 -5
  240. package/lib/components/colorful-input/colorful-input.d.ts +0 -8
  241. package/lib/components/colorful-input/colorful-input.js +0 -26
  242. package/lib/components/colorful-input/index.d.ts +0 -3
  243. package/lib/components/colorful-input/index.js +0 -7
  244. package/lib/components/colorful-input/index.scss +0 -5
  245. package/lib/components/form/form-item.d.ts +0 -42
  246. package/lib/components/form/form-item.js +0 -86
  247. package/lib/components/form/form-item.scss +0 -20
  248. package/lib/components/form/form.d.ts +0 -57
  249. package/lib/components/form/form.js +0 -49
  250. package/lib/components/form/index.d.ts +0 -6
  251. package/lib/components/form/index.js +0 -6
  252. package/lib/components/form/index.scss +0 -22
  253. package/lib/components/form/next-wrapper.d.ts +0 -54
  254. package/lib/components/form/next-wrapper.js +0 -49
  255. package/lib/components/goods-card-list/goods-card-list-common.d.ts +0 -5
  256. package/lib/components/goods-card-list/goods-card-list-common.js +0 -65
  257. package/lib/components/goods-card-list/goods-card-list-common.scss +0 -118
  258. package/lib/components/goods-card-list/goods-card-list.d.ts +0 -5
  259. package/lib/components/goods-card-list/goods-card-list.js +0 -163
  260. package/lib/components/goods-card-list/goods-card-list.scss +0 -112
  261. package/lib/components/goods-card-list/index.d.ts +0 -4
  262. package/lib/components/goods-card-list/index.js +0 -8
  263. package/lib/components/goods-card-list/types.d.ts +0 -45
  264. package/lib/components/goods-card-list/types.js +0 -3
  265. package/lib/components/grid-nav/grid-nav.d.ts +0 -13
  266. package/lib/components/grid-nav/grid-nav.js +0 -109
  267. package/lib/components/grid-nav/index.d.ts +0 -3
  268. package/lib/components/grid-nav/index.js +0 -7
  269. package/lib/components/grid-nav/index.scss +0 -50
  270. package/lib/components/integral-task/index.d.ts +0 -6
  271. package/lib/components/integral-task/index.js +0 -10
  272. package/lib/components/integral-task/index.scss +0 -35
  273. package/lib/components/integral-task/integral-task.d.ts +0 -40
  274. package/lib/components/integral-task/integral-task.js +0 -61
  275. package/lib/components/menu-list/index.d.ts +0 -6
  276. package/lib/components/menu-list/index.js +0 -10
  277. package/lib/components/menu-list/index.scss +0 -16
  278. package/lib/components/menu-list/menu-list-item.d.ts +0 -5
  279. package/lib/components/menu-list/menu-list-item.js +0 -37
  280. package/lib/components/menu-list/menu-list-item.scss +0 -49
  281. package/lib/components/menu-list/menu-list.d.ts +0 -5
  282. package/lib/components/menu-list/menu-list.js +0 -30
  283. package/lib/components/menu-list/types.d.ts +0 -23
  284. package/lib/components/menu-list/types.js +0 -3
  285. package/lib/components/message-list/index.d.ts +0 -6
  286. package/lib/components/message-list/index.js +0 -10
  287. package/lib/components/message-list/index.scss +0 -22
  288. package/lib/components/message-list/message-list-item.d.ts +0 -33
  289. package/lib/components/message-list/message-list-item.js +0 -45
  290. package/lib/components/message-list/message-list-item.scss +0 -60
  291. package/lib/components/message-list/message-list.d.ts +0 -28
  292. package/lib/components/message-list/message-list.js +0 -60
  293. package/lib/components/notice-bar/index.d.ts +0 -3
  294. package/lib/components/notice-bar/index.js +0 -7
  295. package/lib/components/notice-bar/index.scss +0 -84
  296. package/lib/components/notice-bar/notice-bar-item.d.ts +0 -18
  297. package/lib/components/notice-bar/notice-bar-item.js +0 -35
  298. package/lib/components/notice-bar/notice-bar-item.scss +0 -26
  299. package/lib/components/notice-bar/notice-bar.d.ts +0 -46
  300. package/lib/components/notice-bar/notice-bar.js +0 -62
  301. package/lib/components/position/entity.d.ts +0 -5
  302. package/lib/components/position/entity.js +0 -3
  303. package/lib/components/position/index.d.ts +0 -3
  304. package/lib/components/position/index.js +0 -7
  305. package/lib/components/position/index.scss +0 -27
  306. package/lib/components/position/position-left.d.ts +0 -9
  307. package/lib/components/position/position-left.js +0 -35
  308. package/lib/components/position/position-list.d.ts +0 -11
  309. package/lib/components/position/position-list.js +0 -35
  310. package/lib/components/position/position.d.ts +0 -8
  311. package/lib/components/position/position.js +0 -55
  312. package/lib/components/radio-group/index.d.ts +0 -8
  313. package/lib/components/radio-group/index.js +0 -8
  314. package/lib/components/radio-group/index.scss +0 -40
  315. package/lib/components/radio-group/radio-group-item.d.ts +0 -48
  316. package/lib/components/radio-group/radio-group-item.js +0 -79
  317. package/lib/components/radio-group/radio-group.d.ts +0 -52
  318. package/lib/components/radio-group/radio-group.js +0 -87
  319. package/lib/components/rich-text/index.d.ts +0 -6
  320. package/lib/components/rich-text/index.js +0 -6
  321. package/lib/components/rich-text/index.scss +0 -19
  322. package/lib/components/rich-text/rich-text.d.ts +0 -14
  323. package/lib/components/rich-text/rich-text.js +0 -42
  324. package/lib/components/search-bar/index.d.ts +0 -3
  325. package/lib/components/search-bar/index.js +0 -7
  326. package/lib/components/search-bar/index.scss +0 -39
  327. package/lib/components/search-bar/search-bar.d.ts +0 -10
  328. package/lib/components/search-bar/search-bar.js +0 -80
  329. package/lib/components/stream-list/index.d.ts +0 -6
  330. package/lib/components/stream-list/index.js +0 -6
  331. package/lib/components/stream-list/index.scss +0 -26
  332. package/lib/components/stream-list/stream-list.d.ts +0 -54
  333. package/lib/components/stream-list/stream-list.js +0 -166
  334. package/lib/components/swiper/index.d.ts +0 -3
  335. package/lib/components/swiper/index.js +0 -7
  336. package/lib/components/swiper/index.scss +0 -33
  337. package/lib/components/swiper/swiper.d.ts +0 -26
  338. package/lib/components/swiper/swiper.js +0 -84
  339. package/lib/components/tab/index.d.ts +0 -6
  340. package/lib/components/tab/index.js +0 -10
  341. package/lib/components/tab/index.scss +0 -39
  342. package/lib/components/tab/tab.d.ts +0 -27
  343. package/lib/components/tab/tab.js +0 -57
  344. package/lib/components/tab-container/index.d.ts +0 -3
  345. package/lib/components/tab-container/index.js +0 -6
  346. package/lib/components/tab-container/index.scss +0 -48
  347. package/lib/components/tab-container/tab-container.d.ts +0 -10
  348. package/lib/components/tab-container/tab-container.js +0 -31
  349. package/lib/components/tab-container-item/index.d.ts +0 -3
  350. package/lib/components/tab-container-item/index.js +0 -6
  351. package/lib/components/tab-container-item/index.scss +0 -0
  352. package/lib/components/tab-container-item/tab-container-item.d.ts +0 -11
  353. package/lib/components/tab-container-item/tab-container-item.js +0 -24
  354. package/lib/components/tag/index.d.ts +0 -6
  355. package/lib/components/tag/index.js +0 -10
  356. package/lib/components/tag/index.scss +0 -24
  357. package/lib/components/tag/tag.d.ts +0 -14
  358. package/lib/components/tag/tag.js +0 -21
  359. package/lib/components/teletext-list/index.d.ts +0 -6
  360. package/lib/components/teletext-list/index.js +0 -6
  361. package/lib/components/teletext-list/index.scss +0 -40
  362. package/lib/components/teletext-list/teletext-list-item.d.ts +0 -33
  363. package/lib/components/teletext-list/teletext-list-item.js +0 -65
  364. package/lib/components/teletext-list/teletext-list-item.scss +0 -57
  365. package/lib/components/teletext-list/teletext-list.d.ts +0 -61
  366. package/lib/components/teletext-list/teletext-list.js +0 -52
  367. package/lib/components/title/index.d.ts +0 -8
  368. package/lib/components/title/index.js +0 -8
  369. package/lib/components/title/title-1.d.ts +0 -10
  370. package/lib/components/title/title-1.js +0 -21
  371. package/lib/components/title/title-1.scss +0 -25
  372. package/lib/components/title/title-2.d.ts +0 -18
  373. package/lib/components/title/title-2.js +0 -36
  374. package/lib/components/title/title-2.scss +0 -22
  375. package/lib/entity/dynamic-column-data-type.d.ts +0 -47
  376. package/lib/entity/dynamic-column-data-type.js +0 -169
  377. package/lib/index.d.ts +0 -46
  378. package/lib/index.js +0 -95
  379. package/lib/index.scss +0 -6
  380. package/lib/style.js +0 -4
  381. package/lib/utils/children-node-handle.d.ts +0 -9
  382. package/lib/utils/children-node-handle.js +0 -30
  383. package/lib/utils/component-wrapper.d.ts +0 -9
  384. package/lib/utils/component-wrapper.js +0 -45
  385. package/lib/utils/debounce.d.ts +0 -1
  386. package/lib/utils/debounce.js +0 -18
  387. package/lib/utils/textUtil.d.ts +0 -10
  388. package/lib/utils/textUtil.js +0 -55
  389. package/lib/utils/time-util.d.ts +0 -5
  390. package/lib/utils/time-util.js +0 -22
  391. package/lib/variables.d.ts +0 -2
  392. package/lib/variables.js +0 -5
  393. package/lib/variables.scss +0 -3
@@ -1,159 +0,0 @@
1
- import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
2
- import _regeneratorRuntime from "@babel/runtime/regenerator";
3
- import React, { useEffect, useRef, useState } from 'react';
4
- import "./index.scss";
5
- /**
6
- * StreamList 组件
7
- */
8
- var StreamList = function StreamList(_ref) {
9
- var children = _ref.children,
10
- onNextPage = _ref.onNextPage,
11
- onRefreshPage = _ref.onRefreshPage,
12
- _ref$refreshingText = _ref.refreshingText,
13
- refreshingText = _ref$refreshingText === void 0 ? '正在刷新中...' : _ref$refreshingText,
14
- _ref$loadingText = _ref.loadingText,
15
- loadingText = _ref$loadingText === void 0 ? '加载中...' : _ref$loadingText,
16
- _ref$loadMoreText = _ref.loadMoreText,
17
- loadMoreText = _ref$loadMoreText === void 0 ? '加载更多' : _ref$loadMoreText,
18
- _ref$isLastPage = _ref.isLastPage,
19
- isLastPage = _ref$isLastPage === void 0 ? false : _ref$isLastPage,
20
- _ref$nowPage = _ref.nowPage,
21
- nowPage = _ref$nowPage === void 0 ? 1 : _ref$nowPage;
22
- var _useState = useState(false),
23
- isLoading = _useState[0],
24
- setIsLoading = _useState[1];
25
- var _useState2 = useState(false),
26
- isRefreshing = _useState2[0],
27
- setIsRefreshing = _useState2[1];
28
- // 下拉刷新的阈值
29
- var threshold = 50;
30
- // 最大下拉距离
31
- var maxPullDistance = 100;
32
- var _useState3 = useState(0),
33
- pullDistance = _useState3[0],
34
- setPullDistance = _useState3[1];
35
- var startYRef = useRef(0);
36
- var _useState4 = useState(false),
37
- isDragging = _useState4[0],
38
- setIsDragging = _useState4[1];
39
- var observerRef = useRef(null);
40
- // 防止初始加载直接请求下一页
41
- var hasInitialLoad = useRef(false);
42
-
43
- // 监听加载下一页数据
44
- useEffect(function () {
45
- if (isRefreshing || isLastPage) {
46
- // @ts-ignore
47
- return;
48
- }
49
- var spinElement = document.querySelector('.spin');
50
- if (spinElement && !observerRef.current) {
51
- // 创建 IntersectionObserver 观察器
52
- observerRef.current = new IntersectionObserver(function (entries) {
53
- var entry = entries[0];
54
- if (entry.isIntersecting && !isLoading) {
55
- setIsLoading(true);
56
- var nextPage = nowPage + 1;
57
- onNextPage({
58
- page: nextPage
59
- }).then(function (res) {})["catch"](function (err) {
60
- console.error('加载下一页失败:', err);
61
- })["finally"](function () {
62
- return setIsLoading(false);
63
- });
64
- }
65
- }, {
66
- threshold: 0.4
67
- });
68
- // 观察加载更多元素
69
- observerRef.current.observe(spinElement);
70
- }
71
- return function () {
72
- if (observerRef.current) {
73
- // 清除观察者
74
- observerRef.current.disconnect();
75
- observerRef.current = null;
76
- }
77
- };
78
- }, [nowPage, isLoading, isRefreshing, isLastPage]);
79
-
80
- // 初始化加载标记
81
- useEffect(function () {
82
- hasInitialLoad.current = true;
83
- }, []);
84
-
85
- // 处理触摸和鼠标事件
86
- var handleTouchStart = function handleTouchStart(e) {
87
- startYRef.current = 'touches' in e ? e.touches[0].clientY : e.clientY;
88
- setIsDragging(true);
89
- };
90
- var handleTouchMove = function handleTouchMove(e) {
91
- if (isRefreshing || !isDragging && !('touches' in e)) return;
92
- var clientY = 'touches' in e ? e.touches[0].clientY : e.clientY;
93
- var distance = clientY - startYRef.current;
94
-
95
- // 更新下拉距离
96
- if (distance > 0 && distance <= maxPullDistance) {
97
- setPullDistance(distance);
98
- } else if (distance > maxPullDistance) {
99
- setPullDistance(maxPullDistance);
100
- }
101
- };
102
- var handleTouchEnd = /*#__PURE__*/function () {
103
- var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee() {
104
- return _regeneratorRuntime.wrap(function _callee$(_context) {
105
- while (1) switch (_context.prev = _context.next) {
106
- case 0:
107
- setIsDragging(false);
108
- if (pullDistance > threshold) {
109
- setIsRefreshing(true);
110
- setPullDistance(0);
111
- onRefreshPage().then(function (res) {})["catch"](function (err) {
112
- console.error('刷新失败:', err);
113
- })["finally"](function () {
114
- setIsRefreshing(false);
115
- });
116
- } else {
117
- setPullDistance(0); // 重置下拉距离
118
- }
119
- case 2:
120
- case "end":
121
- return _context.stop();
122
- }
123
- }, _callee);
124
- }));
125
- return function handleTouchEnd() {
126
- return _ref2.apply(this, arguments);
127
- };
128
- }();
129
- return /*#__PURE__*/React.createElement("div", {
130
- onTouchStart: handleTouchStart,
131
- onTouchMove: handleTouchMove,
132
- onTouchEnd: handleTouchEnd,
133
- onMouseDown: handleTouchStart,
134
- onMouseMove: handleTouchMove,
135
- onMouseUp: handleTouchEnd,
136
- className: "stream-list-container"
137
- }, /*#__PURE__*/React.createElement("div", {
138
- className: "refresh-indicator",
139
- style: {
140
- position: 'fixed',
141
- top: 0,
142
- left: 0,
143
- right: 0,
144
- transform: "translateY(" + (isRefreshing ? threshold : pullDistance) + "px)",
145
- transition: isRefreshing || pullDistance === 0 ? 'transform 0.3s ease' : 'none'
146
- }
147
- }, isRefreshing && /*#__PURE__*/React.createElement("span", null, refreshingText)), /*#__PURE__*/React.createElement("div", {
148
- style: {
149
- transform: "translateY(" + (isRefreshing ? threshold : pullDistance) + "px)",
150
- transition: 'transform 0.3s ease'
151
- }
152
- }, children), !isRefreshing && !isLastPage && (isLoading ? /*#__PURE__*/React.createElement("div", {
153
- className: "loading-text"
154
- }, loadingText) : /*#__PURE__*/React.createElement("div", {
155
- className: "spin"
156
- }, loadMoreText)));
157
- };
158
- StreamList.displayName = 'StreamList';
159
- export default StreamList;
@@ -1,3 +0,0 @@
1
- import Swiper from './swiper';
2
- export type { ComponentProps } from './swiper';
3
- export default Swiper;
@@ -1,2 +0,0 @@
1
- import Swiper from "./swiper";
2
- export default Swiper;
@@ -1,33 +0,0 @@
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,26 +0,0 @@
1
- import * as React from 'react';
2
- import './index.scss';
3
- export interface ComponentProps {
4
- /**
5
- * 切换速度,单位ms
6
- */
7
- speed?: number;
8
- /**
9
- * 高度
10
- */
11
- height: number;
12
- /**
13
- * 自动播放
14
- */
15
- autoplay: boolean;
16
- /**
17
- * 循环播放
18
- */
19
- loop: boolean;
20
- /**
21
- * 图片路径
22
- */
23
- picUrls: string[];
24
- }
25
- declare const DCSlider: React.FC<ComponentProps>;
26
- export default DCSlider;
@@ -1,77 +0,0 @@
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
- import * as React from 'react';
5
- import { useEffect, useRef, useState } from 'react';
6
- 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,
50
- style: {
51
- height: height ? height + "px" : '100%'
52
- }
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",
63
- style: {
64
- width: '100%',
65
- height: height ? height + "px" : '100%'
66
- }
67
- }, /*#__PURE__*/React.createElement("img", {
68
- src: url,
69
- alt: "Slide " + index,
70
- style: {
71
- width: '100%',
72
- height: height ? height + "px" : '100%'
73
- }
74
- }));
75
- })));
76
- };
77
- export default DCSlider;
@@ -1,6 +0,0 @@
1
- /**
2
- * 标签tag
3
- */
4
- import Tab from './tab';
5
- export type { TabProps } from './tab';
6
- export default Tab;
@@ -1,5 +0,0 @@
1
- /**
2
- * 标签tag
3
- */
4
- import Tab from "./tab";
5
- export default Tab;
@@ -1,39 +0,0 @@
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,27 +0,0 @@
1
- import * as React from 'react';
2
- import './index.scss';
3
- export interface TabProps {
4
- /**
5
- * 选中背景颜色
6
- */
7
- selectedBGColor: string;
8
- /**
9
- * 选中字体颜色
10
- */
11
- selectedFontColor: string;
12
- /**
13
- * 尺寸 small | large
14
- */
15
- size: string;
16
- /**
17
- * 点击事件
18
- * @param e
19
- */
20
- onClickHandle?: (e: string) => void;
21
- /**
22
- * 未读消息数量
23
- */
24
- unreadCount?: number;
25
- }
26
- declare const Tab: React.FC<TabProps>;
27
- export default Tab;
@@ -1,50 +0,0 @@
1
- import _extends from "@babel/runtime/helpers/extends";
2
- import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
3
- var _excluded = ["selectedBGColor", "selectedFontColor", "size", "onClickHandle", "unreadCount"];
4
- import * as React from 'react';
5
- import "./index.scss";
6
- var Tab = function Tab(_ref) {
7
- var selectedBGColor = _ref.selectedBGColor,
8
- selectedFontColor = _ref.selectedFontColor,
9
- size = _ref.size,
10
- onClickHandle = _ref.onClickHandle,
11
- unreadCount = _ref.unreadCount,
12
- otherProps = _objectWithoutPropertiesLoose(_ref, _excluded);
13
- var tabList = [{
14
- key: 'all',
15
- label: '全部'
16
- }, {
17
- key: 'read',
18
- label: '已读'
19
- }, {
20
- key: 'unRead',
21
- label: '未读'
22
- }];
23
- var _React$useState = React.useState('all'),
24
- tab = _React$useState[0],
25
- setTab = _React$useState[1];
26
- var handleClick = function handleClick(key) {
27
- console.log(key);
28
- // 切换tab
29
- setTab(key);
30
- // 触发父组件传递的点击处理函数
31
- onClickHandle && onClickHandle(key);
32
- };
33
- return tabList.map(function (item) {
34
- return /*#__PURE__*/React.createElement("span", _extends({
35
- className: "tabs__container\n " + (tab === item.key ? 'tabs__container--selected' : '') + "\n " + (size == 'large' ? 'tabs__container--large' : 'tabs__container--small')
36
- }, otherProps, {
37
- onClick: function onClick() {
38
- return handleClick(item.key);
39
- },
40
- style: {
41
- backgroundColor: tab === item.key ? selectedBGColor : '',
42
- color: tab === item.key ? selectedFontColor : ''
43
- }
44
- }), item.label, item.key === 'unRead' && unreadCount > 0 && /*#__PURE__*/React.createElement("span", {
45
- className: "badge"
46
- }, unreadCount) // 条件渲染badge
47
- );
48
- });
49
- };
50
- export default Tab;
@@ -1,3 +0,0 @@
1
- import { TabContainer } from '../tab-container/tab-container';
2
- export type { TabContainerProps } from '../tab-container/tab-container';
3
- export default TabContainer;
@@ -1,2 +0,0 @@
1
- import { TabContainer } from "../tab-container/tab-container";
2
- export default TabContainer;
@@ -1,48 +0,0 @@
1
- .fusion-ui-tab {
2
- display: block;
3
- background-color: #fff;
4
-
5
- &.next-medium {
6
- .next-tabs-content {
7
- padding: 0;
8
- }
9
-
10
- }
11
- .next-tabs-bar {
12
- border-bottom: none;
13
- margin-bottom: 15px;
14
- .next-tabs-nav-container {
15
- .next-tabs-nav {
16
- .next-tabs-tab {
17
- font-size: 16px;
18
- color: #666666;
19
- margin-right: 13px;
20
- &.active {
21
- color: #333;
22
- font-size: 17px;
23
- }
24
- &.active::before {
25
- bottom: 2px;
26
- border-bottom: 5px solid #E96D40;
27
- z-index: 0;
28
- border-radius: 2.5px;
29
- }
30
- }
31
- }
32
- }
33
- }
34
-
35
- &.next-small {
36
- .next-tabs-content {
37
- padding: 12px;
38
- }
39
- }
40
- }
41
- .navigation {
42
- z-index: 10;
43
- position: relative;
44
- }
45
-
46
- :global(.fd-layout-p-margin) {
47
- margin-top: 0 !important;
48
- }
@@ -1,10 +0,0 @@
1
- import React from 'react';
2
- import { Tab } from '@alifd/next';
3
- import './index.scss';
4
- export interface TabContainerProps extends React.ComponentProps<typeof Tab> {
5
- className?: string;
6
- }
7
- export declare const TabContainer: {
8
- (props: TabContainerProps): JSX.Element;
9
- displayName: string;
10
- };
@@ -1,26 +0,0 @@
1
- import _Tab from "@alifd/next/es/tab";
2
- import _extends from "@babel/runtime/helpers/extends";
3
- import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
4
- var _excluded = ["className"];
5
- import React from 'react';
6
- import cx from 'classnames';
7
- import "./index.scss";
8
- export var TabContainer = function TabContainer(props) {
9
- var className = props.className,
10
- restProps = _objectWithoutPropertiesLoose(props, _excluded);
11
- var CustomTabItem = function CustomTabItem(key, props) {
12
- return /*#__PURE__*/React.createElement("div", {
13
- className: "navigation"
14
- }, key.title);
15
- };
16
- return /*#__PURE__*/React.createElement(_Tab, _extends({
17
- className: cx(className, 'fusion-ui-tab')
18
- }, restProps, {
19
- tabRender: function tabRender(key, props) {
20
- return /*#__PURE__*/React.createElement(CustomTabItem, _extends({
21
- key: key
22
- }, props));
23
- }
24
- }));
25
- };
26
- TabContainer.displayName = 'TabContainer';
@@ -1,3 +0,0 @@
1
- import { TabContainerItem } from './tab-container-item';
2
- export type { TabContainerItemProps } from './tab-container-item';
3
- export default TabContainerItem;
@@ -1,2 +0,0 @@
1
- import { TabContainerItem } from "./tab-container-item";
2
- export default TabContainerItem;
File without changes
@@ -1,11 +0,0 @@
1
- import React from 'react';
2
- import { Tab } from '@alifd/next';
3
- export interface TabContainerItemProps extends React.ComponentProps<typeof Tab> {
4
- className?: string;
5
- tab: string;
6
- key: string;
7
- }
8
- export declare const TabContainerItem: {
9
- (props: TabContainerItemProps): JSX.Element;
10
- displayName: string;
11
- };
@@ -1,19 +0,0 @@
1
- import _Tab from "@alifd/next/es/tab";
2
- import _extends from "@babel/runtime/helpers/extends";
3
- import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
4
- var _excluded = ["className", "tab", "key"];
5
- import React from 'react';
6
- import cx from 'classnames';
7
- export var TabContainerItem = function TabContainerItem(props) {
8
- var className = props.className,
9
- tab = props.tab,
10
- key = props.key,
11
- restProps = _objectWithoutPropertiesLoose(props, _excluded);
12
- return /*#__PURE__*/React.createElement(_Tab.Item, _extends({
13
- className: cx(className, 'fusion-ui-tab')
14
- }, restProps, {
15
- title: tab,
16
- primaryKey: key
17
- }));
18
- };
19
- TabContainerItem.displayName = 'TabContainerItem';
@@ -1,6 +0,0 @@
1
- /**
2
- * 标签tag
3
- */
4
- import Tag from './tag';
5
- export type { TagProps } from './tag';
6
- export default Tag;
@@ -1,5 +0,0 @@
1
- /**
2
- * 标签tag
3
- */
4
- import Tag from "./tag";
5
- export default Tag;
@@ -1,24 +0,0 @@
1
- .tags__container {
2
- padding: 2px 6px;
3
- border-radius: 3px;
4
- color: white;
5
- font-size: 11px;
6
- }
7
- .orange {
8
- color: #F1770E;
9
- background: rgba(241, 119, 14, 0.1);
10
- }
11
-
12
- .blue {
13
- color: #2972DD;
14
- background-color: rgba(41, 114, 221, 0.1);
15
- }
16
- .green {
17
- color: #52AD7C;
18
- background: rgba(195, 254, 222, 0.4);
19
- }
20
- .green-n {
21
- color: #52AD7C;
22
- background: #FFFFFF;
23
- box-shadow: 3.5px 5.5px 11px 0px rgba(203,203,203,0.34);
24
- }
@@ -1,14 +0,0 @@
1
- import * as React from 'react';
2
- import './index.scss';
3
- export interface TagProps {
4
- /**
5
- * 标签名称
6
- */
7
- name: string;
8
- /**
9
- * 标签颜色
10
- */
11
- color: string;
12
- }
13
- declare const Tag: React.FC<TagProps>;
14
- export default Tag;
@@ -1,14 +0,0 @@
1
- import _extends from "@babel/runtime/helpers/extends";
2
- import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
3
- var _excluded = ["name", "color"];
4
- import * as React from 'react';
5
- import "./index.scss";
6
- var Tag = function Tag(_ref) {
7
- var name = _ref.name,
8
- color = _ref.color,
9
- otherProps = _objectWithoutPropertiesLoose(_ref, _excluded);
10
- return /*#__PURE__*/React.createElement("span", _extends({
11
- className: "tags__container " + (color ? color : '')
12
- }, otherProps), name);
13
- };
14
- export default Tag;
@@ -1,6 +0,0 @@
1
- /**
2
- * 图文列表
3
- */
4
- import TeletextList from './teletext-list';
5
- export type { TeletextListProps } from './teletext-list';
6
- export { TeletextList, };
@@ -1,6 +0,0 @@
1
- /**
2
- * 图文列表
3
- */
4
-
5
- import TeletextList from "./teletext-list";
6
- export { TeletextList };