@dckj-npm/dc-material 0.1.39 → 0.1.40

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 (306) 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 +6 -6
  10. package/build/lowcode/render/default/view.js +6 -6
  11. package/build/lowcode/view.js +6 -6
  12. package/dist/BizComps.css +1 -1
  13. package/dist/BizComps.js +4 -4
  14. package/dist/BizComps.js.map +1 -1
  15. package/es/components/bottom-navigation/bottom-navigation.d.ts +15 -15
  16. package/es/components/bottom-navigation/index.d.ts +3 -3
  17. package/es/components/bottom-navigation/index.scss +24 -24
  18. package/es/components/button/button.d.ts +14 -14
  19. package/es/components/button/index.d.ts +6 -6
  20. package/es/components/button/index.js +2 -2
  21. package/es/components/button/index.scss +16 -16
  22. package/es/components/carousel/carousel.d.ts +14 -14
  23. package/es/components/carousel/carousel.scss +32 -32
  24. package/es/components/colorful-button/colorful-button.d.ts +12 -12
  25. package/es/components/colorful-button/index.d.ts +3 -3
  26. package/es/components/colorful-button/index.scss +5 -5
  27. package/es/components/colorful-input/colorful-input.d.ts +8 -8
  28. package/es/components/colorful-input/index.d.ts +3 -3
  29. package/es/components/colorful-input/index.scss +5 -5
  30. package/es/components/goods-card-list/goods-card-list.d.ts +5 -5
  31. package/es/components/goods-card-list/goods-card-list.scss +112 -112
  32. package/es/components/goods-card-list/index.d.ts +3 -3
  33. package/es/components/goods-card-list/types.d.ts +45 -45
  34. package/es/components/grid-nav/grid-nav.d.ts +13 -13
  35. package/es/components/grid-nav/index.d.ts +3 -3
  36. package/es/components/grid-nav/index.scss +41 -37
  37. package/es/components/integral-task/index.d.ts +6 -6
  38. package/es/components/integral-task/index.js +2 -2
  39. package/es/components/integral-task/index.scss +35 -35
  40. package/es/components/integral-task/integral-task.d.ts +40 -40
  41. package/es/components/menu-list/index.d.ts +6 -6
  42. package/es/components/menu-list/index.js +2 -2
  43. package/es/components/menu-list/index.scss +16 -16
  44. package/es/components/menu-list/menu-list-item.d.ts +5 -5
  45. package/es/components/menu-list/menu-list-item.scss +49 -49
  46. package/es/components/menu-list/menu-list.d.ts +5 -5
  47. package/es/components/menu-list/types.d.ts +23 -23
  48. package/es/components/message-list/index.d.ts +6 -6
  49. package/es/components/message-list/index.js +2 -2
  50. package/es/components/message-list/index.scss +22 -22
  51. package/es/components/message-list/message-list-item.d.ts +29 -29
  52. package/es/components/message-list/message-list-item.js +2 -2
  53. package/es/components/message-list/message-list-item.scss +50 -50
  54. package/es/components/message-list/message-list.d.ts +32 -32
  55. package/es/components/notice-bar/index.d.ts +3 -3
  56. package/es/components/notice-bar/index.scss +29 -29
  57. package/es/components/notice-bar/notice-bar-item.d.ts +18 -18
  58. package/es/components/notice-bar/notice-bar-item.scss +26 -26
  59. package/es/components/notice-bar/notice-bar.d.ts +37 -37
  60. package/es/components/position/entity.d.ts +5 -5
  61. package/es/components/position/index.d.ts +3 -3
  62. package/es/components/position/index.scss +27 -27
  63. package/es/components/position/position-left.d.ts +9 -9
  64. package/es/components/position/position-list.d.ts +12 -12
  65. package/es/components/position/position.d.ts +8 -8
  66. package/es/components/radio-group/index.d.ts +8 -8
  67. package/es/components/radio-group/index.js +2 -2
  68. package/es/components/radio-group/index.scss +40 -40
  69. package/es/components/radio-group/radio-group-item.d.ts +48 -48
  70. package/es/components/radio-group/radio-group.d.ts +52 -52
  71. package/es/components/rich-text/index.d.ts +6 -0
  72. package/es/components/rich-text/index.js +6 -0
  73. package/es/components/rich-text/index.scss +8 -0
  74. package/es/components/rich-text/rich-text.d.ts +14 -0
  75. package/es/components/rich-text/rich-text.js +28 -0
  76. package/es/components/search-bar/index.d.ts +3 -3
  77. package/es/components/search-bar/index.scss +13 -13
  78. package/es/components/search-bar/search-bar.d.ts +7 -7
  79. package/es/components/swiper/index.d.ts +3 -3
  80. package/es/components/swiper/index.scss +12 -12
  81. package/es/components/swiper/swiper.d.ts +47 -47
  82. package/es/components/tab/index.d.ts +6 -6
  83. package/es/components/tab/index.js +2 -2
  84. package/es/components/tab/index.scss +23 -23
  85. package/es/components/tab/tab.d.ts +23 -23
  86. package/es/components/tab-container/index.d.ts +3 -3
  87. package/es/components/tab-container/index.scss +47 -47
  88. package/es/components/tab-container/tab-container.d.ts +10 -10
  89. package/es/components/tab-container-item/index.d.ts +3 -3
  90. package/es/components/tab-container-item/tab-container-item.d.ts +11 -9
  91. package/es/components/tab-container-item/tab-container-item.js +7 -2
  92. package/es/components/tag/index.d.ts +6 -6
  93. package/es/components/tag/index.js +2 -2
  94. package/es/components/tag/index.scss +24 -24
  95. package/es/components/tag/tag.d.ts +14 -14
  96. package/es/components/teletext-list/index.d.ts +6 -6
  97. package/es/components/teletext-list/index.js +2 -2
  98. package/es/components/teletext-list/index.scss +19 -19
  99. package/es/components/teletext-list/teletext-list-item.d.ts +42 -42
  100. package/es/components/teletext-list/teletext-list-item.js +8 -4
  101. package/es/components/teletext-list/teletext-list-item.scss +55 -55
  102. package/es/components/teletext-list/teletext-list.d.ts +61 -61
  103. package/es/components/teletext-list/teletext-list.js +2 -2
  104. package/es/components/title/index.d.ts +8 -8
  105. package/es/components/title/index.js +2 -2
  106. package/es/components/title/title-1.d.ts +10 -10
  107. package/es/components/title/title-1.scss +25 -25
  108. package/es/components/title/title-2.d.ts +18 -18
  109. package/es/components/title/title-2.scss +22 -22
  110. package/es/index.d.ts +42 -40
  111. package/es/index.js +4 -0
  112. package/es/index.scss +5 -5
  113. package/es/utils/children-node-handle.d.ts +9 -9
  114. package/es/utils/children-node-handle.js +7 -7
  115. package/es/utils/component-wrapper.d.ts +9 -9
  116. package/es/utils/debounce.d.ts +1 -1
  117. package/es/variables.d.ts +2 -2
  118. package/es/variables.scss +3 -3
  119. package/lib/components/bottom-navigation/bottom-navigation.d.ts +15 -15
  120. package/lib/components/bottom-navigation/index.d.ts +3 -3
  121. package/lib/components/bottom-navigation/index.scss +24 -24
  122. package/lib/components/button/button.d.ts +14 -14
  123. package/lib/components/button/index.d.ts +6 -6
  124. package/lib/components/button/index.js +2 -2
  125. package/lib/components/button/index.scss +16 -16
  126. package/lib/components/carousel/carousel.d.ts +14 -14
  127. package/lib/components/carousel/carousel.scss +32 -32
  128. package/lib/components/colorful-button/colorful-button.d.ts +12 -12
  129. package/lib/components/colorful-button/index.d.ts +3 -3
  130. package/lib/components/colorful-button/index.scss +5 -5
  131. package/lib/components/colorful-input/colorful-input.d.ts +8 -8
  132. package/lib/components/colorful-input/index.d.ts +3 -3
  133. package/lib/components/colorful-input/index.scss +5 -5
  134. package/lib/components/goods-card-list/goods-card-list.d.ts +5 -5
  135. package/lib/components/goods-card-list/goods-card-list.scss +112 -112
  136. package/lib/components/goods-card-list/index.d.ts +3 -3
  137. package/lib/components/goods-card-list/types.d.ts +45 -45
  138. package/lib/components/grid-nav/grid-nav.d.ts +13 -13
  139. package/lib/components/grid-nav/index.d.ts +3 -3
  140. package/lib/components/grid-nav/index.scss +41 -37
  141. package/lib/components/integral-task/index.d.ts +6 -6
  142. package/lib/components/integral-task/index.js +2 -2
  143. package/lib/components/integral-task/index.scss +35 -35
  144. package/lib/components/integral-task/integral-task.d.ts +40 -40
  145. package/lib/components/menu-list/index.d.ts +6 -6
  146. package/lib/components/menu-list/index.js +2 -2
  147. package/lib/components/menu-list/index.scss +16 -16
  148. package/lib/components/menu-list/menu-list-item.d.ts +5 -5
  149. package/lib/components/menu-list/menu-list-item.scss +49 -49
  150. package/lib/components/menu-list/menu-list.d.ts +5 -5
  151. package/lib/components/menu-list/types.d.ts +23 -23
  152. package/lib/components/message-list/index.d.ts +6 -6
  153. package/lib/components/message-list/index.js +2 -2
  154. package/lib/components/message-list/index.scss +22 -22
  155. package/lib/components/message-list/message-list-item.d.ts +29 -29
  156. package/lib/components/message-list/message-list-item.js +2 -2
  157. package/lib/components/message-list/message-list-item.scss +50 -50
  158. package/lib/components/message-list/message-list.d.ts +32 -32
  159. package/lib/components/notice-bar/index.d.ts +3 -3
  160. package/lib/components/notice-bar/index.scss +29 -29
  161. package/lib/components/notice-bar/notice-bar-item.d.ts +18 -18
  162. package/lib/components/notice-bar/notice-bar-item.scss +26 -26
  163. package/lib/components/notice-bar/notice-bar.d.ts +37 -37
  164. package/lib/components/position/entity.d.ts +5 -5
  165. package/lib/components/position/index.d.ts +3 -3
  166. package/lib/components/position/index.scss +27 -27
  167. package/lib/components/position/position-left.d.ts +9 -9
  168. package/lib/components/position/position-list.d.ts +12 -12
  169. package/lib/components/position/position.d.ts +8 -8
  170. package/lib/components/radio-group/index.d.ts +8 -8
  171. package/lib/components/radio-group/index.scss +40 -40
  172. package/lib/components/radio-group/radio-group-item.d.ts +48 -48
  173. package/lib/components/radio-group/radio-group.d.ts +52 -52
  174. package/lib/components/rich-text/index.d.ts +6 -0
  175. package/lib/components/rich-text/index.js +6 -0
  176. package/lib/components/rich-text/index.scss +8 -0
  177. package/lib/components/rich-text/rich-text.d.ts +14 -0
  178. package/lib/components/rich-text/rich-text.js +33 -0
  179. package/lib/components/search-bar/index.d.ts +3 -3
  180. package/lib/components/search-bar/index.scss +13 -13
  181. package/lib/components/search-bar/search-bar.d.ts +7 -7
  182. package/lib/components/swiper/index.d.ts +3 -3
  183. package/lib/components/swiper/index.scss +12 -12
  184. package/lib/components/swiper/swiper.d.ts +47 -47
  185. package/lib/components/tab/index.d.ts +6 -6
  186. package/lib/components/tab/index.js +2 -2
  187. package/lib/components/tab/index.scss +23 -23
  188. package/lib/components/tab/tab.d.ts +23 -23
  189. package/lib/components/tab-container/index.d.ts +3 -3
  190. package/lib/components/tab-container/index.scss +47 -47
  191. package/lib/components/tab-container/tab-container.d.ts +10 -10
  192. package/lib/components/tab-container-item/index.d.ts +3 -3
  193. package/lib/components/tab-container-item/tab-container-item.d.ts +11 -9
  194. package/lib/components/tab-container-item/tab-container-item.js +7 -2
  195. package/lib/components/tag/index.d.ts +6 -6
  196. package/lib/components/tag/index.js +2 -2
  197. package/lib/components/tag/index.scss +24 -24
  198. package/lib/components/tag/tag.d.ts +14 -14
  199. package/lib/components/teletext-list/index.d.ts +6 -6
  200. package/lib/components/teletext-list/index.scss +19 -19
  201. package/lib/components/teletext-list/teletext-list-item.d.ts +42 -42
  202. package/lib/components/teletext-list/teletext-list-item.js +8 -4
  203. package/lib/components/teletext-list/teletext-list-item.scss +55 -55
  204. package/lib/components/teletext-list/teletext-list.d.ts +61 -61
  205. package/lib/components/teletext-list/teletext-list.js +2 -2
  206. package/lib/components/title/index.d.ts +8 -8
  207. package/lib/components/title/title-1.d.ts +10 -10
  208. package/lib/components/title/title-1.scss +25 -25
  209. package/lib/components/title/title-2.d.ts +18 -18
  210. package/lib/components/title/title-2.scss +22 -22
  211. package/lib/index.d.ts +42 -40
  212. package/lib/index.js +5 -1
  213. package/lib/index.scss +5 -5
  214. package/lib/utils/children-node-handle.d.ts +9 -9
  215. package/lib/utils/children-node-handle.js +7 -7
  216. package/lib/utils/component-wrapper.d.ts +9 -9
  217. package/lib/utils/debounce.d.ts +1 -1
  218. package/lib/variables.d.ts +2 -2
  219. package/lib/variables.scss +3 -3
  220. package/lowcode/button2/meta.ts +75 -75
  221. package/lowcode/custom-radio-group/meta.ts +310 -310
  222. package/lowcode/custom-radio-group-item/meta.ts +229 -229
  223. package/lowcode/d-c-slider/meta.design.ts +173 -173
  224. package/lowcode/d-c-slider/meta.ts +342 -342
  225. package/lowcode/d-c-slider/snippets.ts +68 -68
  226. package/lowcode/goods-card-list/meta.ts +268 -268
  227. package/lowcode/grid-nav/meta.ts +212 -212
  228. package/lowcode/integral-task/meta.ts +211 -211
  229. package/lowcode/menu-list/meta.ts +147 -147
  230. package/lowcode/message-list/meta.ts +202 -202
  231. package/lowcode/navigation/meta.ts +165 -165
  232. package/lowcode/notice-bar/meta.ts +229 -229
  233. package/lowcode/position/meta.ts +161 -161
  234. package/lowcode/search-bar/meta.ts +54 -54
  235. package/lowcode/swiper/meta.ts +237 -237
  236. package/lowcode/tab-container/meta.ts +70 -70
  237. package/lowcode/tab-container/props.ts +194 -194
  238. package/lowcode/tab-container-item/meta.ts +195 -195
  239. package/lowcode/tab-message/meta.ts +101 -101
  240. package/lowcode/tag-c/meta.ts +75 -75
  241. package/lowcode/teletext-list/meta.ts +329 -329
  242. package/lowcode/title1/meta.ts +59 -59
  243. package/lowcode/title2/meta.ts +93 -93
  244. package/lowcode_es/button2/meta.d.ts +22 -22
  245. package/lowcode_es/custom-radio-group/meta.d.ts +22 -22
  246. package/lowcode_es/custom-radio-group-item/meta.d.ts +23 -23
  247. package/lowcode_es/d-c-slider/meta.d.ts +148 -148
  248. package/lowcode_es/d-c-slider/meta.design.d.ts +100 -100
  249. package/lowcode_es/d-c-slider/snippets.d.ts +36 -36
  250. package/lowcode_es/goods-card-list/meta.d.ts +22 -22
  251. package/lowcode_es/grid-nav/meta.d.ts +22 -22
  252. package/lowcode_es/integral-task/meta.d.ts +22 -22
  253. package/lowcode_es/menu-list/meta.d.ts +22 -22
  254. package/lowcode_es/message-list/meta.d.ts +22 -22
  255. package/lowcode_es/meta.js +23 -23
  256. package/lowcode_es/navigation/meta.d.ts +22 -22
  257. package/lowcode_es/notice-bar/meta.d.ts +22 -22
  258. package/lowcode_es/position/meta.d.ts +22 -22
  259. package/lowcode_es/rich-text/meta.d.ts +22 -22
  260. package/lowcode_es/search-bar/meta.d.ts +22 -22
  261. package/lowcode_es/swiper/meta.d.ts +22 -22
  262. package/lowcode_es/tab-container/meta.d.ts +22 -22
  263. package/lowcode_es/tab-container/meta.js +4 -4
  264. package/lowcode_es/tab-container/props.d.ts +90 -90
  265. package/lowcode_es/tab-container/props.js +12 -12
  266. package/lowcode_es/tab-container-item/meta.d.ts +22 -22
  267. package/lowcode_es/tab-container-item/meta.js +1 -1
  268. package/lowcode_es/tab-message/meta.d.ts +22 -22
  269. package/lowcode_es/tag-c/meta.d.ts +22 -22
  270. package/lowcode_es/teletext-list/meta.d.ts +22 -22
  271. package/lowcode_es/teletext-list/meta.js +1 -1
  272. package/lowcode_es/title1/meta.d.ts +22 -22
  273. package/lowcode_es/title2/meta.d.ts +22 -22
  274. package/lowcode_es/view.js +3 -3
  275. package/lowcode_lib/button2/meta.d.ts +22 -22
  276. package/lowcode_lib/custom-radio-group/meta.d.ts +22 -22
  277. package/lowcode_lib/custom-radio-group-item/meta.d.ts +23 -23
  278. package/lowcode_lib/d-c-slider/meta.d.ts +148 -148
  279. package/lowcode_lib/d-c-slider/meta.design.d.ts +100 -100
  280. package/lowcode_lib/d-c-slider/snippets.d.ts +36 -36
  281. package/lowcode_lib/goods-card-list/meta.d.ts +22 -22
  282. package/lowcode_lib/grid-nav/meta.d.ts +22 -22
  283. package/lowcode_lib/integral-task/meta.d.ts +22 -22
  284. package/lowcode_lib/menu-list/meta.d.ts +22 -22
  285. package/lowcode_lib/message-list/meta.d.ts +22 -22
  286. package/lowcode_lib/meta.js +23 -23
  287. package/lowcode_lib/navigation/meta.d.ts +22 -22
  288. package/lowcode_lib/notice-bar/meta.d.ts +22 -22
  289. package/lowcode_lib/position/meta.d.ts +22 -22
  290. package/lowcode_lib/rich-text/meta.d.ts +22 -22
  291. package/lowcode_lib/search-bar/meta.d.ts +22 -22
  292. package/lowcode_lib/swiper/meta.d.ts +22 -22
  293. package/lowcode_lib/tab-container/meta.d.ts +22 -22
  294. package/lowcode_lib/tab-container/meta.js +4 -4
  295. package/lowcode_lib/tab-container/props.d.ts +90 -90
  296. package/lowcode_lib/tab-container/props.js +12 -12
  297. package/lowcode_lib/tab-container-item/meta.d.ts +22 -22
  298. package/lowcode_lib/tab-container-item/meta.js +1 -1
  299. package/lowcode_lib/tab-message/meta.d.ts +22 -22
  300. package/lowcode_lib/tag-c/meta.d.ts +22 -22
  301. package/lowcode_lib/teletext-list/meta.d.ts +22 -22
  302. package/lowcode_lib/teletext-list/meta.js +1 -1
  303. package/lowcode_lib/title1/meta.d.ts +22 -22
  304. package/lowcode_lib/title2/meta.d.ts +22 -22
  305. package/lowcode_lib/view.js +2 -2
  306. package/package.json +4 -4
@@ -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,48 +1,48 @@
1
- import React from 'react';
2
- import './index.scss';
3
- export type RadioGroupItemType = 'button' | 'text';
4
- export interface RadioGroupItemProps {
5
- /**
6
- * 选项
7
- */
8
- label: string;
9
- /**
10
- * 值
11
- */
12
- value: string;
13
- /**
14
- * 是否选中
15
- */
16
- checked: boolean;
17
- /**
18
- * 选中颜色
19
- */
20
- selectColor?: string;
21
- /**
22
- * 选中的文字颜色
23
- */
24
- selectTextColor?: string;
25
- /**
26
- * 未选中颜色
27
- */
28
- unSelectColor?: string;
29
- /**
30
- * 未选中的文字颜色
31
- */
32
- unSelectTextColor?: string;
33
- /**
34
- * 类型
35
- */
36
- type?: RadioGroupItemType;
37
- /**
38
- * 名称
39
- */
40
- name: string;
41
- /**
42
- * 改变事件
43
- * @param value
44
- */
45
- onChange: (value: string) => void;
46
- }
47
- declare const RadioGroupItem: React.FC<RadioGroupItemProps>;
48
- export default RadioGroupItem;
1
+ import React from 'react';
2
+ import './index.scss';
3
+ export type RadioGroupItemType = 'button' | 'text';
4
+ export interface RadioGroupItemProps {
5
+ /**
6
+ * 选项
7
+ */
8
+ label: string;
9
+ /**
10
+ * 值
11
+ */
12
+ value: string;
13
+ /**
14
+ * 是否选中
15
+ */
16
+ checked: boolean;
17
+ /**
18
+ * 选中颜色
19
+ */
20
+ selectColor?: string;
21
+ /**
22
+ * 选中的文字颜色
23
+ */
24
+ selectTextColor?: string;
25
+ /**
26
+ * 未选中颜色
27
+ */
28
+ unSelectColor?: string;
29
+ /**
30
+ * 未选中的文字颜色
31
+ */
32
+ unSelectTextColor?: string;
33
+ /**
34
+ * 类型
35
+ */
36
+ type?: RadioGroupItemType;
37
+ /**
38
+ * 名称
39
+ */
40
+ name: string;
41
+ /**
42
+ * 改变事件
43
+ * @param value
44
+ */
45
+ onChange: (value: string) => void;
46
+ }
47
+ declare const RadioGroupItem: React.FC<RadioGroupItemProps>;
48
+ export default RadioGroupItem;
@@ -1,52 +1,52 @@
1
- import React from 'react';
2
- import './index.scss';
3
- export interface RadioType {
4
- label: string;
5
- value: string;
6
- }
7
- export type RadioGroupItemType = 'button' | 'text';
8
- export interface RadioGroupProps {
9
- /**
10
- * 选项
11
- */
12
- options: Array<RadioType>;
13
- /**
14
- * 默认值
15
- */
16
- defaultValue?: string;
17
- /**
18
- * 是否换行
19
- */
20
- isWrap?: boolean;
21
- /**
22
- * 选中颜色
23
- */
24
- selectColor?: string;
25
- /**
26
- * 选中的文字颜色
27
- */
28
- selectTextColor?: string;
29
- /**
30
- * 未选中颜色
31
- */
32
- unSelectColor?: string;
33
- /**
34
- * 未选中的文字颜色
35
- */
36
- unSelectTextColor?: string;
37
- /**
38
- * 改变事件
39
- * @param value
40
- */
41
- onChange?: (value: string) => void;
42
- /**
43
- * 类型
44
- */
45
- type?: RadioGroupItemType;
46
- /**
47
- * 名称
48
- */
49
- name?: string;
50
- }
51
- declare const RadioGroup: React.FC<RadioGroupProps>;
52
- export default RadioGroup;
1
+ import React from 'react';
2
+ import './index.scss';
3
+ export interface RadioType {
4
+ label: string;
5
+ value: string;
6
+ }
7
+ export type RadioGroupItemType = 'button' | 'text';
8
+ export interface RadioGroupProps {
9
+ /**
10
+ * 选项
11
+ */
12
+ options: Array<RadioType>;
13
+ /**
14
+ * 默认值
15
+ */
16
+ defaultValue?: string;
17
+ /**
18
+ * 是否换行
19
+ */
20
+ isWrap?: boolean;
21
+ /**
22
+ * 选中颜色
23
+ */
24
+ selectColor?: string;
25
+ /**
26
+ * 选中的文字颜色
27
+ */
28
+ selectTextColor?: string;
29
+ /**
30
+ * 未选中颜色
31
+ */
32
+ unSelectColor?: string;
33
+ /**
34
+ * 未选中的文字颜色
35
+ */
36
+ unSelectTextColor?: string;
37
+ /**
38
+ * 改变事件
39
+ * @param value
40
+ */
41
+ onChange?: (value: string) => void;
42
+ /**
43
+ * 类型
44
+ */
45
+ type?: RadioGroupItemType;
46
+ /**
47
+ * 名称
48
+ */
49
+ name?: string;
50
+ }
51
+ declare const RadioGroup: React.FC<RadioGroupProps>;
52
+ export default RadioGroup;
@@ -0,0 +1,6 @@
1
+ /**
2
+ * 富文本
3
+ */
4
+ import RichText from './rich-text';
5
+ export type { RichTextProps } from './rich-text';
6
+ export { RichText, };
@@ -0,0 +1,6 @@
1
+ /**
2
+ * 富文本
3
+ */
4
+
5
+ import RichText from "./rich-text";
6
+ export { RichText };
@@ -0,0 +1,8 @@
1
+ .rich-text {
2
+ display: flex;
3
+ flex-direction: column;
4
+ padding: 10px; /* 添加内边距 */
5
+ margin: 0; /* 去除外边距 */
6
+ word-break: break-word; /* 处理长单词换行 */
7
+ overflow-wrap: break-word; /* 支持长单词换行 */
8
+ }
@@ -0,0 +1,14 @@
1
+ /// <reference types="react" />
2
+ import './index.scss';
3
+ interface DataProps {
4
+ content?: string;
5
+ }
6
+ export interface RichTextProps {
7
+ content?: string;
8
+ dataList?: DataProps[];
9
+ }
10
+ declare const RichText: {
11
+ (props: RichTextProps): JSX.Element;
12
+ displayName: string;
13
+ };
14
+ export default RichText;
@@ -0,0 +1,28 @@
1
+ import _extends from "@babel/runtime/helpers/extends";
2
+ import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
3
+ var _excluded = ["content", "dataList"];
4
+ import React from 'react';
5
+ import "./index.scss";
6
+ // 富文本
7
+
8
+ var RichText = function RichText(props) {
9
+ var content = props.content,
10
+ dataList = props.dataList,
11
+ otherProps = _objectWithoutPropertiesLoose(props, _excluded);
12
+ return /*#__PURE__*/React.createElement("div", _extends({
13
+ className: "rich-text"
14
+ }, otherProps), dataList && dataList.length > 0 ? dataList.map(function (item, index) {
15
+ return /*#__PURE__*/React.createElement("div", {
16
+ key: index,
17
+ dangerouslySetInnerHTML: {
18
+ __html: item.content
19
+ }
20
+ });
21
+ }) : /*#__PURE__*/React.createElement("div", {
22
+ dangerouslySetInnerHTML: {
23
+ __html: content
24
+ }
25
+ }));
26
+ };
27
+ RichText.displayName = 'RichText';
28
+ export default RichText;
@@ -1,3 +1,3 @@
1
- import SearchBar from "./search-bar";
2
- export type { SearchBarProps } from './search-bar';
3
- export default SearchBar;
1
+ import SearchBar from "./search-bar";
2
+ export type { SearchBarProps } from './search-bar';
3
+ export default SearchBar;
@@ -1,13 +1,13 @@
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
+ .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,7 +1,7 @@
1
- import * as React from 'react';
2
- export interface SearchBarProps {
3
- defaultValue: string;
4
- onSearch: () => void;
5
- }
6
- declare const SearchBar: React.ForwardRefExoticComponent<SearchBarProps & React.RefAttributes<any>>;
7
- export default SearchBar;
1
+ import * as React from 'react';
2
+ export interface SearchBarProps {
3
+ defaultValue: string;
4
+ onSearch: () => void;
5
+ }
6
+ declare const SearchBar: React.ForwardRefExoticComponent<SearchBarProps & React.RefAttributes<any>>;
7
+ export default SearchBar;
@@ -1,3 +1,3 @@
1
- import Swiper from './swiper';
2
- export type { ComponentProps } from './swiper';
3
- export default Swiper;
1
+ import Swiper from './swiper';
2
+ export type { ComponentProps } from './swiper';
3
+ export default Swiper;
@@ -1,12 +1,12 @@
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
+ /* 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,47 +1,47 @@
1
- import * as React from 'react';
2
- import './index.scss';
3
- import 'swiper/swiper.min.css';
4
- export interface ComponentProps {
5
- /**
6
- * 设定初始化时slide的索引
7
- */
8
- initialSlide?: number;
9
- /**
10
- * 设定初始化时slide的索引
11
- */
12
- direction?: 'vertical' | 'horizontal';
13
- /**
14
- * 切换速度,单位ms
15
- */
16
- speed?: number;
17
- /**
18
- * 展示数量
19
- */
20
- slidesPerView: number;
21
- /**
22
- * 高度
23
- */
24
- height: number;
25
- /**
26
- * 自动高度
27
- */
28
- autoHeight: boolean;
29
- /**
30
- * 自动播放
31
- */
32
- autoplay: boolean;
33
- /**
34
- * 循环播放
35
- */
36
- loop: boolean;
37
- /**
38
- * 图片间距
39
- */
40
- spaceBetween: number;
41
- /**
42
- * 图片路径
43
- */
44
- picUrls: string[];
45
- }
46
- declare const DCSlider: React.FC<ComponentProps>;
47
- export default DCSlider;
1
+ import * as React from 'react';
2
+ import './index.scss';
3
+ import 'swiper/swiper.min.css';
4
+ export interface ComponentProps {
5
+ /**
6
+ * 设定初始化时slide的索引
7
+ */
8
+ initialSlide?: number;
9
+ /**
10
+ * 设定初始化时slide的索引
11
+ */
12
+ direction?: 'vertical' | 'horizontal';
13
+ /**
14
+ * 切换速度,单位ms
15
+ */
16
+ speed?: number;
17
+ /**
18
+ * 展示数量
19
+ */
20
+ slidesPerView: number;
21
+ /**
22
+ * 高度
23
+ */
24
+ height: number;
25
+ /**
26
+ * 自动高度
27
+ */
28
+ autoHeight: boolean;
29
+ /**
30
+ * 自动播放
31
+ */
32
+ autoplay: boolean;
33
+ /**
34
+ * 循环播放
35
+ */
36
+ loop: boolean;
37
+ /**
38
+ * 图片间距
39
+ */
40
+ spaceBetween: number;
41
+ /**
42
+ * 图片路径
43
+ */
44
+ picUrls: string[];
45
+ }
46
+ declare const DCSlider: React.FC<ComponentProps>;
47
+ export default DCSlider;
@@ -1,6 +1,6 @@
1
- /**
2
- * 标签tag
3
- */
4
- import Tab from './tab';
5
- export type { TabProps } from './tab';
6
- export default Tab;
1
+ /**
2
+ * 标签tag
3
+ */
4
+ import Tab from './tab';
5
+ export type { TabProps } from './tab';
6
+ export default Tab;
@@ -1,5 +1,5 @@
1
- /**
2
- * 标签tag
1
+ /**
2
+ * 标签tag
3
3
  */
4
4
  import Tab from "./tab";
5
5
  export default Tab;
@@ -1,23 +1,23 @@
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
- &--selected {
12
- background-color: #ED794A;
13
- color: #FFFFFF;
14
- }
15
- &--small {
16
- padding: 5px 16px;
17
- border-radius: 19px;
18
- }
19
- &--large {
20
- padding: 14px 30px;
21
- border-radius: 28px;
22
- }
23
- }
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
+ &--selected {
12
+ background-color: #ED794A;
13
+ color: #FFFFFF;
14
+ }
15
+ &--small {
16
+ padding: 5px 16px;
17
+ border-radius: 19px;
18
+ }
19
+ &--large {
20
+ padding: 14px 30px;
21
+ border-radius: 28px;
22
+ }
23
+ }
@@ -1,23 +1,23 @@
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
- declare const Tab: React.FC<TabProps>;
23
- export default Tab;
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
+ declare const Tab: React.FC<TabProps>;
23
+ export default Tab;
@@ -1,3 +1,3 @@
1
- import { TabContainer } from '../tab-container/tab-container';
2
- export type { TabContainerProps } from '../tab-container/tab-container';
3
- export default TabContainer;
1
+ import { TabContainer } from '../tab-container/tab-container';
2
+ export type { TabContainerProps } from '../tab-container/tab-container';
3
+ export default TabContainer;