@dckj-npm/dc-material 0.1.42 → 0.1.44

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 (311) 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 +9 -9
  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/bottom-navigation.d.ts +15 -15
  18. package/es/components/bottom-navigation/index.d.ts +3 -3
  19. package/es/components/bottom-navigation/index.scss +24 -24
  20. package/es/components/button/button.d.ts +14 -14
  21. package/es/components/button/index.d.ts +6 -6
  22. package/es/components/button/index.js +2 -2
  23. package/es/components/button/index.scss +16 -16
  24. package/es/components/carousel/carousel.d.ts +14 -14
  25. package/es/components/carousel/carousel.scss +32 -32
  26. package/es/components/colorful-button/colorful-button.d.ts +12 -12
  27. package/es/components/colorful-button/index.d.ts +3 -3
  28. package/es/components/colorful-button/index.scss +5 -5
  29. package/es/components/colorful-input/colorful-input.d.ts +8 -8
  30. package/es/components/colorful-input/index.d.ts +3 -3
  31. package/es/components/colorful-input/index.scss +5 -5
  32. package/es/components/goods-card-list/goods-card-list.d.ts +5 -5
  33. package/es/components/goods-card-list/goods-card-list.scss +112 -112
  34. package/es/components/goods-card-list/index.d.ts +3 -4
  35. package/es/components/goods-card-list/index.js +1 -2
  36. package/es/components/goods-card-list/types.d.ts +45 -45
  37. package/es/components/grid-nav/grid-nav.d.ts +13 -13
  38. package/es/components/grid-nav/index.d.ts +3 -3
  39. package/es/components/grid-nav/index.scss +37 -41
  40. package/es/components/integral-task/index.d.ts +6 -6
  41. package/es/components/integral-task/index.js +2 -2
  42. package/es/components/integral-task/index.scss +35 -35
  43. package/es/components/integral-task/integral-task.d.ts +40 -40
  44. package/es/components/menu-list/index.d.ts +6 -6
  45. package/es/components/menu-list/index.js +2 -2
  46. package/es/components/menu-list/index.scss +16 -16
  47. package/es/components/menu-list/menu-list-item.d.ts +5 -5
  48. package/es/components/menu-list/menu-list-item.scss +49 -49
  49. package/es/components/menu-list/menu-list.d.ts +5 -5
  50. package/es/components/menu-list/types.d.ts +23 -23
  51. package/es/components/message-list/index.d.ts +6 -6
  52. package/es/components/message-list/index.js +2 -2
  53. package/es/components/message-list/index.scss +22 -22
  54. package/es/components/message-list/message-list-item.d.ts +29 -29
  55. package/es/components/message-list/message-list-item.js +2 -2
  56. package/es/components/message-list/message-list-item.scss +50 -50
  57. package/es/components/message-list/message-list.d.ts +32 -32
  58. package/es/components/notice-bar/index.d.ts +3 -3
  59. package/es/components/notice-bar/index.scss +29 -29
  60. package/es/components/notice-bar/notice-bar-item.d.ts +18 -18
  61. package/es/components/notice-bar/notice-bar-item.scss +26 -26
  62. package/es/components/notice-bar/notice-bar.d.ts +37 -37
  63. package/es/components/position/entity.d.ts +5 -5
  64. package/es/components/position/index.d.ts +3 -3
  65. package/es/components/position/index.scss +27 -27
  66. package/es/components/position/position-left.d.ts +9 -9
  67. package/es/components/position/position-list.d.ts +12 -12
  68. package/es/components/position/position.d.ts +8 -8
  69. package/es/components/radio-group/index.d.ts +8 -8
  70. package/es/components/radio-group/index.js +2 -2
  71. package/es/components/radio-group/index.scss +40 -40
  72. package/es/components/radio-group/radio-group-item.d.ts +48 -48
  73. package/es/components/radio-group/radio-group.d.ts +52 -52
  74. package/es/components/search-bar/index.d.ts +3 -3
  75. package/es/components/search-bar/index.scss +13 -13
  76. package/es/components/search-bar/search-bar.d.ts +7 -7
  77. package/es/components/swiper/index.d.ts +3 -3
  78. package/es/components/swiper/index.scss +12 -12
  79. package/es/components/swiper/swiper.d.ts +47 -47
  80. package/es/components/tab/index.d.ts +6 -6
  81. package/es/components/tab/index.js +2 -2
  82. package/es/components/tab/index.scss +23 -23
  83. package/es/components/tab/tab.d.ts +23 -23
  84. package/es/components/tab-container/index.d.ts +3 -3
  85. package/es/components/tab-container/index.scss +47 -47
  86. package/es/components/tab-container/tab-container.d.ts +10 -10
  87. package/es/components/tab-container-item/index.d.ts +3 -3
  88. package/es/components/tab-container-item/tab-container-item.d.ts +9 -11
  89. package/es/components/tab-container-item/tab-container-item.js +2 -7
  90. package/es/components/tag/index.d.ts +6 -6
  91. package/es/components/tag/index.js +2 -2
  92. package/es/components/tag/index.scss +24 -24
  93. package/es/components/tag/tag.d.ts +14 -14
  94. package/es/components/teletext-list/index.d.ts +6 -6
  95. package/es/components/teletext-list/index.js +2 -2
  96. package/es/components/teletext-list/index.scss +19 -19
  97. package/es/components/teletext-list/teletext-list-item.d.ts +42 -42
  98. package/es/components/teletext-list/teletext-list-item.js +4 -8
  99. package/es/components/teletext-list/teletext-list-item.scss +55 -55
  100. package/es/components/teletext-list/teletext-list.d.ts +61 -61
  101. package/es/components/teletext-list/teletext-list.js +2 -2
  102. package/es/components/title/index.d.ts +8 -8
  103. package/es/components/title/index.js +2 -2
  104. package/es/components/title/title-1.d.ts +10 -10
  105. package/es/components/title/title-1.scss +25 -25
  106. package/es/components/title/title-2.d.ts +18 -18
  107. package/es/components/title/title-2.scss +22 -22
  108. package/es/index.d.ts +40 -42
  109. package/es/index.js +1 -5
  110. package/es/index.scss +5 -5
  111. package/es/utils/children-node-handle.d.ts +9 -9
  112. package/es/utils/children-node-handle.js +7 -7
  113. package/es/utils/component-wrapper.d.ts +9 -9
  114. package/es/utils/debounce.d.ts +1 -1
  115. package/es/variables.d.ts +2 -2
  116. package/es/variables.scss +3 -3
  117. package/lib/components/bottom-navigation/bottom-navigation.d.ts +15 -15
  118. package/lib/components/bottom-navigation/index.d.ts +3 -3
  119. package/lib/components/bottom-navigation/index.scss +24 -24
  120. package/lib/components/button/button.d.ts +14 -14
  121. package/lib/components/button/index.d.ts +6 -6
  122. package/lib/components/button/index.js +2 -2
  123. package/lib/components/button/index.scss +16 -16
  124. package/lib/components/carousel/carousel.d.ts +14 -14
  125. package/lib/components/carousel/carousel.scss +32 -32
  126. package/lib/components/colorful-button/colorful-button.d.ts +12 -12
  127. package/lib/components/colorful-button/index.d.ts +3 -3
  128. package/lib/components/colorful-button/index.scss +5 -5
  129. package/lib/components/colorful-input/colorful-input.d.ts +8 -8
  130. package/lib/components/colorful-input/index.d.ts +3 -3
  131. package/lib/components/colorful-input/index.scss +5 -5
  132. package/lib/components/goods-card-list/goods-card-list.d.ts +5 -5
  133. package/lib/components/goods-card-list/goods-card-list.scss +112 -112
  134. package/lib/components/goods-card-list/index.d.ts +3 -4
  135. package/lib/components/goods-card-list/index.js +1 -3
  136. package/lib/components/goods-card-list/types.d.ts +45 -45
  137. package/lib/components/grid-nav/grid-nav.d.ts +13 -13
  138. package/lib/components/grid-nav/index.d.ts +3 -3
  139. package/lib/components/grid-nav/index.scss +37 -41
  140. package/lib/components/integral-task/index.d.ts +6 -6
  141. package/lib/components/integral-task/index.js +2 -2
  142. package/lib/components/integral-task/index.scss +35 -35
  143. package/lib/components/integral-task/integral-task.d.ts +40 -40
  144. package/lib/components/menu-list/index.d.ts +6 -6
  145. package/lib/components/menu-list/index.js +2 -2
  146. package/lib/components/menu-list/index.scss +16 -16
  147. package/lib/components/menu-list/menu-list-item.d.ts +5 -5
  148. package/lib/components/menu-list/menu-list-item.scss +49 -49
  149. package/lib/components/menu-list/menu-list.d.ts +5 -5
  150. package/lib/components/menu-list/types.d.ts +23 -23
  151. package/lib/components/message-list/index.d.ts +6 -6
  152. package/lib/components/message-list/index.js +2 -2
  153. package/lib/components/message-list/index.scss +22 -22
  154. package/lib/components/message-list/message-list-item.d.ts +29 -29
  155. package/lib/components/message-list/message-list-item.js +2 -2
  156. package/lib/components/message-list/message-list-item.scss +50 -50
  157. package/lib/components/message-list/message-list.d.ts +32 -32
  158. package/lib/components/notice-bar/index.d.ts +3 -3
  159. package/lib/components/notice-bar/index.scss +29 -29
  160. package/lib/components/notice-bar/notice-bar-item.d.ts +18 -18
  161. package/lib/components/notice-bar/notice-bar-item.scss +26 -26
  162. package/lib/components/notice-bar/notice-bar.d.ts +37 -37
  163. package/lib/components/position/entity.d.ts +5 -5
  164. package/lib/components/position/index.d.ts +3 -3
  165. package/lib/components/position/index.scss +27 -27
  166. package/lib/components/position/position-left.d.ts +9 -9
  167. package/lib/components/position/position-list.d.ts +12 -12
  168. package/lib/components/position/position.d.ts +8 -8
  169. package/lib/components/radio-group/index.d.ts +8 -8
  170. package/lib/components/radio-group/index.scss +40 -40
  171. package/lib/components/radio-group/radio-group-item.d.ts +48 -48
  172. package/lib/components/radio-group/radio-group.d.ts +52 -52
  173. package/lib/components/search-bar/index.d.ts +3 -3
  174. package/lib/components/search-bar/index.scss +13 -13
  175. package/lib/components/search-bar/search-bar.d.ts +7 -7
  176. package/lib/components/swiper/index.d.ts +3 -3
  177. package/lib/components/swiper/index.scss +12 -12
  178. package/lib/components/swiper/swiper.d.ts +47 -47
  179. package/lib/components/tab/index.d.ts +6 -6
  180. package/lib/components/tab/index.js +2 -2
  181. package/lib/components/tab/index.scss +23 -23
  182. package/lib/components/tab/tab.d.ts +23 -23
  183. package/lib/components/tab-container/index.d.ts +3 -3
  184. package/lib/components/tab-container/index.scss +47 -47
  185. package/lib/components/tab-container/tab-container.d.ts +10 -10
  186. package/lib/components/tab-container-item/index.d.ts +3 -3
  187. package/lib/components/tab-container-item/tab-container-item.d.ts +9 -11
  188. package/lib/components/tab-container-item/tab-container-item.js +2 -7
  189. package/lib/components/tag/index.d.ts +6 -6
  190. package/lib/components/tag/index.js +2 -2
  191. package/lib/components/tag/index.scss +24 -24
  192. package/lib/components/tag/tag.d.ts +14 -14
  193. package/lib/components/teletext-list/index.d.ts +6 -6
  194. package/lib/components/teletext-list/index.scss +19 -19
  195. package/lib/components/teletext-list/teletext-list-item.d.ts +42 -42
  196. package/lib/components/teletext-list/teletext-list-item.js +4 -8
  197. package/lib/components/teletext-list/teletext-list-item.scss +55 -55
  198. package/lib/components/teletext-list/teletext-list.d.ts +61 -61
  199. package/lib/components/teletext-list/teletext-list.js +2 -2
  200. package/lib/components/title/index.d.ts +8 -8
  201. package/lib/components/title/title-1.d.ts +10 -10
  202. package/lib/components/title/title-1.scss +25 -25
  203. package/lib/components/title/title-2.d.ts +18 -18
  204. package/lib/components/title/title-2.scss +22 -22
  205. package/lib/index.d.ts +40 -42
  206. package/lib/index.js +1 -6
  207. package/lib/index.scss +5 -5
  208. package/lib/utils/children-node-handle.d.ts +9 -9
  209. package/lib/utils/children-node-handle.js +7 -7
  210. package/lib/utils/component-wrapper.d.ts +9 -9
  211. package/lib/utils/debounce.d.ts +1 -1
  212. package/lib/variables.d.ts +2 -2
  213. package/lib/variables.scss +3 -3
  214. package/lowcode/button2/meta.ts +75 -75
  215. package/lowcode/custom-radio-group/meta.ts +310 -310
  216. package/lowcode/custom-radio-group-item/meta.ts +229 -229
  217. package/lowcode/d-c-slider/meta.design.ts +173 -173
  218. package/lowcode/d-c-slider/meta.ts +342 -342
  219. package/lowcode/d-c-slider/snippets.ts +68 -68
  220. package/lowcode/goods-card-list/meta.ts +268 -268
  221. package/lowcode/goods-card-list-common/meta.ts +268 -268
  222. package/lowcode/grid-nav/meta.ts +212 -212
  223. package/lowcode/integral-task/meta.ts +211 -211
  224. package/lowcode/menu-list/meta.ts +147 -147
  225. package/lowcode/message-list/meta.ts +202 -202
  226. package/lowcode/navigation/meta.ts +165 -165
  227. package/lowcode/notice-bar/meta.ts +229 -229
  228. package/lowcode/position/meta.ts +161 -161
  229. package/lowcode/search-bar/meta.ts +54 -54
  230. package/lowcode/swiper/meta.ts +237 -237
  231. package/lowcode/tab-container/meta.ts +70 -70
  232. package/lowcode/tab-container/props.ts +194 -194
  233. package/lowcode/tab-container-item/meta.ts +195 -195
  234. package/lowcode/tab-message/meta.ts +101 -101
  235. package/lowcode/tag-c/meta.ts +75 -75
  236. package/lowcode/teletext-list/meta.ts +329 -329
  237. package/lowcode/title1/meta.ts +59 -59
  238. package/lowcode/title2/meta.ts +93 -93
  239. package/lowcode_es/button2/meta.d.ts +22 -22
  240. package/lowcode_es/custom-radio-group/meta.d.ts +22 -22
  241. package/lowcode_es/custom-radio-group-item/meta.d.ts +23 -23
  242. package/lowcode_es/d-c-slider/meta.d.ts +148 -148
  243. package/lowcode_es/d-c-slider/meta.design.d.ts +100 -100
  244. package/lowcode_es/d-c-slider/snippets.d.ts +36 -36
  245. package/lowcode_es/goods-card-list/meta.d.ts +22 -22
  246. package/lowcode_es/goods-card-list-common/meta.d.ts +22 -22
  247. package/lowcode_es/grid-nav/meta.d.ts +22 -22
  248. package/lowcode_es/integral-task/meta.d.ts +22 -22
  249. package/lowcode_es/menu-list/meta.d.ts +22 -22
  250. package/lowcode_es/message-list/meta.d.ts +22 -22
  251. package/lowcode_es/meta.js +24 -24
  252. package/lowcode_es/navigation/meta.d.ts +22 -22
  253. package/lowcode_es/notice-bar/meta.d.ts +22 -22
  254. package/lowcode_es/position/meta.d.ts +22 -22
  255. package/lowcode_es/rich-text/meta.d.ts +22 -22
  256. package/lowcode_es/search-bar/meta.d.ts +22 -22
  257. package/lowcode_es/swiper/meta.d.ts +22 -22
  258. package/lowcode_es/tab-container/meta.d.ts +22 -22
  259. package/lowcode_es/tab-container/props.d.ts +90 -90
  260. package/lowcode_es/tab-container-item/meta.d.ts +22 -22
  261. package/lowcode_es/tab-message/meta.d.ts +22 -22
  262. package/lowcode_es/tag-c/meta.d.ts +22 -22
  263. package/lowcode_es/teletext-list/meta.d.ts +22 -22
  264. package/lowcode_es/title1/meta.d.ts +22 -22
  265. package/lowcode_es/title2/meta.d.ts +22 -22
  266. package/lowcode_es/view.js +3 -3
  267. package/lowcode_lib/button2/meta.d.ts +22 -22
  268. package/lowcode_lib/custom-radio-group/meta.d.ts +22 -22
  269. package/lowcode_lib/custom-radio-group-item/meta.d.ts +23 -23
  270. package/lowcode_lib/d-c-slider/meta.d.ts +148 -148
  271. package/lowcode_lib/d-c-slider/meta.design.d.ts +100 -100
  272. package/lowcode_lib/d-c-slider/snippets.d.ts +36 -36
  273. package/lowcode_lib/goods-card-list/meta.d.ts +22 -22
  274. package/lowcode_lib/goods-card-list-common/meta.d.ts +22 -22
  275. package/lowcode_lib/grid-nav/meta.d.ts +22 -22
  276. package/lowcode_lib/integral-task/meta.d.ts +22 -22
  277. package/lowcode_lib/menu-list/meta.d.ts +22 -22
  278. package/lowcode_lib/message-list/meta.d.ts +22 -22
  279. package/lowcode_lib/meta.js +24 -24
  280. package/lowcode_lib/navigation/meta.d.ts +22 -22
  281. package/lowcode_lib/notice-bar/meta.d.ts +22 -22
  282. package/lowcode_lib/position/meta.d.ts +22 -22
  283. package/lowcode_lib/rich-text/meta.d.ts +22 -22
  284. package/lowcode_lib/search-bar/meta.d.ts +22 -22
  285. package/lowcode_lib/swiper/meta.d.ts +22 -22
  286. package/lowcode_lib/tab-container/meta.d.ts +22 -22
  287. package/lowcode_lib/tab-container/props.d.ts +90 -90
  288. package/lowcode_lib/tab-container-item/meta.d.ts +22 -22
  289. package/lowcode_lib/tab-message/meta.d.ts +22 -22
  290. package/lowcode_lib/tag-c/meta.d.ts +22 -22
  291. package/lowcode_lib/teletext-list/meta.d.ts +22 -22
  292. package/lowcode_lib/title1/meta.d.ts +22 -22
  293. package/lowcode_lib/title2/meta.d.ts +22 -22
  294. package/lowcode_lib/view.js +2 -2
  295. package/package.json +3 -3
  296. package/es/components/goods-card-list/goods-card-list-common.d.ts +0 -5
  297. package/es/components/goods-card-list/goods-card-list-common.js +0 -52
  298. package/es/components/goods-card-list/goods-card-list-common.scss +0 -119
  299. package/es/components/rich-text/index.d.ts +0 -6
  300. package/es/components/rich-text/index.js +0 -6
  301. package/es/components/rich-text/index.scss +0 -15
  302. package/es/components/rich-text/rich-text.d.ts +0 -14
  303. package/es/components/rich-text/rich-text.js +0 -28
  304. package/lib/components/goods-card-list/goods-card-list-common.d.ts +0 -5
  305. package/lib/components/goods-card-list/goods-card-list-common.js +0 -57
  306. package/lib/components/goods-card-list/goods-card-list-common.scss +0 -119
  307. package/lib/components/rich-text/index.d.ts +0 -6
  308. package/lib/components/rich-text/index.js +0 -6
  309. package/lib/components/rich-text/index.scss +0 -15
  310. package/lib/components/rich-text/rich-text.d.ts +0 -14
  311. package/lib/components/rich-text/rich-text.js +0 -33
@@ -1,10 +1,10 @@
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
+ 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,3 +1,3 @@
1
- import { TabContainerItem } from './tab-container-item';
2
- export type { TabContainerItemProps } from './tab-container-item';
3
- export default TabContainerItem;
1
+ import { TabContainerItem } from './tab-container-item';
2
+ export type { TabContainerItemProps } from './tab-container-item';
3
+ export default TabContainerItem;
@@ -1,11 +1,9 @@
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
+ import React from 'react';
2
+ import { Tab } from '@alifd/next';
3
+ export interface TabContainerItemProps extends React.ComponentProps<typeof Tab> {
4
+ className?: string;
5
+ }
6
+ export declare const TabContainerItem: {
7
+ (props: TabContainerItemProps): JSX.Element;
8
+ displayName: string;
9
+ };
@@ -1,19 +1,14 @@
1
1
  import _Tab from "@alifd/next/es/tab";
2
2
  import _extends from "@babel/runtime/helpers/extends";
3
3
  import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
4
- var _excluded = ["className", "tab", "key"];
4
+ var _excluded = ["className"];
5
5
  import React from 'react';
6
6
  import cx from 'classnames';
7
7
  export var TabContainerItem = function TabContainerItem(props) {
8
8
  var className = props.className,
9
- tab = props.tab,
10
- key = props.key,
11
9
  restProps = _objectWithoutPropertiesLoose(props, _excluded);
12
10
  return /*#__PURE__*/React.createElement(_Tab.Item, _extends({
13
11
  className: cx(className, 'fusion-ui-tab')
14
- }, restProps, {
15
- title: tab,
16
- primaryKey: key
17
- }));
12
+ }, restProps));
18
13
  };
19
14
  TabContainerItem.displayName = 'TabContainerItem';
@@ -1,6 +1,6 @@
1
- /**
2
- * 标签tag
3
- */
4
- import Tag from './tag';
5
- export type { TagProps } from './tag';
6
- export default Tag;
1
+ /**
2
+ * 标签tag
3
+ */
4
+ import Tag from './tag';
5
+ export type { TagProps } from './tag';
6
+ export default Tag;
@@ -1,5 +1,5 @@
1
- /**
2
- * 标签tag
1
+ /**
2
+ * 标签tag
3
3
  */
4
4
  import Tag from "./tag";
5
5
  export default Tag;
@@ -1,24 +1,24 @@
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
+ .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 +1,14 @@
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
+ 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,6 +1,6 @@
1
- /**
2
- * 图文列表
3
- */
4
- import TeletextList from './teletext-list';
5
- export type { TeletextListProps } from './teletext-list';
6
- export { TeletextList, };
1
+ /**
2
+ * 图文列表
3
+ */
4
+ import TeletextList from './teletext-list';
5
+ export type { TeletextListProps } from './teletext-list';
6
+ export { TeletextList, };
@@ -1,5 +1,5 @@
1
- /**
2
- * 图文列表
1
+ /**
2
+ * 图文列表
3
3
  */
4
4
 
5
5
  import TeletextList from "./teletext-list";
@@ -1,19 +1,19 @@
1
- @import '../../variables.scss';
2
-
3
- .teletext-list__panel {
4
- display: flex;
5
- flex-direction: column;
6
- gap: 10px;
7
- width: 100%;
8
- margin: 0;
9
-
10
- .teletext-list__panel__item-list {
11
- display: flex;
12
- width: 100%;
13
- flex-direction: column;
14
- gap: 10px;
15
- }
16
-
17
- }
18
-
19
-
1
+ @import '../../variables.scss';
2
+
3
+ .teletext-list__panel {
4
+ display: flex;
5
+ flex-direction: column;
6
+ gap: 10px;
7
+ width: 100%;
8
+ margin: 0;
9
+
10
+ .teletext-list__panel__item-list {
11
+ display: flex;
12
+ width: 100%;
13
+ flex-direction: column;
14
+ gap: 10px;
15
+ }
16
+
17
+ }
18
+
19
+
@@ -1,42 +1,42 @@
1
- import React from 'react';
2
- import './teletext-list-item.scss';
3
- /**
4
- * 数据
5
- */
6
- export interface TeletextListItemProps {
7
- /**
8
- * 点击事件
9
- */
10
- onClick?: (e: any) => void;
11
- /**
12
- * 标题
13
- */
14
- title?: string;
15
- /**
16
- * 图片地址
17
- */
18
- image?: string[];
19
- /**
20
- * 图片位置
21
- */
22
- imagePlacement?: "left" | "right" | "none";
23
- /**
24
- * 说明
25
- */
26
- description?: string;
27
- /**
28
- * 标签列表
29
- */
30
- tags?: {
31
- /**
32
- * 标签名称
33
- */
34
- name: string;
35
- /**
36
- * 标签颜色
37
- */
38
- color: string;
39
- }[] | string;
40
- }
41
- declare const TeletextListItem: React.FC<TeletextListItemProps>;
42
- export default TeletextListItem;
1
+ import React from 'react';
2
+ import './teletext-list-item.scss';
3
+ /**
4
+ * 数据
5
+ */
6
+ export interface TeletextListItemProps {
7
+ /**
8
+ * 点击事件
9
+ */
10
+ onClick?: (e: any) => void;
11
+ /**
12
+ * 标题
13
+ */
14
+ title?: string;
15
+ /**
16
+ * 图片地址
17
+ */
18
+ image?: string[];
19
+ /**
20
+ * 图片位置
21
+ */
22
+ imagePlacement?: "left" | "right" | "none";
23
+ /**
24
+ * 说明
25
+ */
26
+ description?: string;
27
+ /**
28
+ * 标签列表
29
+ */
30
+ tags?: {
31
+ /**
32
+ * 标签名称
33
+ */
34
+ name: string;
35
+ /**
36
+ * 标签颜色
37
+ */
38
+ color: string;
39
+ }[] | string;
40
+ }
41
+ declare const TeletextListItem: React.FC<TeletextListItemProps>;
42
+ export default TeletextListItem;
@@ -5,8 +5,8 @@ import React from 'react';
5
5
  import "./teletext-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 TeletextListItem = function TeletextListItem(_ref) {
@@ -40,12 +40,8 @@ var TeletextListItem = function TeletextListItem(_ref) {
40
40
  className: 'teletext-list__panel__item__text__description'
41
41
  }), tags ? /*#__PURE__*/React.createElement("div", {
42
42
  className: "teletext-list__panel__item__text__tags"
43
- }, (Array.isArray(tags) ? tags : tags.split(',').map(function (tag) {
44
- return {
45
- name: tag
46
- };
47
- })).map(function (tag, tagIndex) {
48
- return convertChildren(children, 'teletext-tag-c', {
43
+ }, (Array.isArray(tags) ? tags : tags.split(',')).map(function (tag, tagIndex) {
44
+ return convertChildren(children, 'teletext-tagc-1', {
49
45
  name: tag.name,
50
46
  key: tagIndex,
51
47
  color: tagColorArray[tagIndex % tagColorArray.length]
@@ -1,55 +1,55 @@
1
- @import '../../variables.scss';
2
-
3
- .teletext-list__panel__item {
4
- width: 100%;
5
- display: flex;
6
- gap: 5px;
7
- padding-bottom: 10px;
8
- justify-content: flex-start;
9
-
10
- border-bottom: 1px solid rgba(0, 0, 0, 0.1);
11
-
12
- .teletext-list__panel__item_image {
13
- width: 90px;
14
- height: 71px;
15
- border-radius: 5px;
16
- flex: 0 0 auto;
17
- overflow: hidden;
18
-
19
- & > img {
20
- width: 100%;
21
- height: 100%;
22
- object-fit: cover;
23
- }
24
-
25
- }
26
-
27
- .teletext-list__panel__item__text {
28
- display: flex;
29
- flex-direction: column;
30
- gap: 3px;
31
-
32
- .teletext-list__panel__item__text__title {
33
- font-size: 15px;
34
- font-weight: 500;
35
- color: #000000;
36
- }
37
-
38
- .teletext-list__panel__item__text__description {
39
- -webkit-line-clamp: 1;
40
- overflow: hidden;
41
- color: #686868;
42
- -webkit-box-orient: vertical;
43
- display: -webkit-box;
44
- font-size: 12px;
45
- text-overflow: ellipsis;
46
- }
47
-
48
- .teletext-list__panel__item__text__tags {
49
- display: flex;
50
- gap: 6px;
51
- }
52
-
53
- }
54
-
55
- }
1
+ @import '../../variables.scss';
2
+
3
+ .teletext-list__panel__item {
4
+ width: 100%;
5
+ display: flex;
6
+ gap: 5px;
7
+ padding-bottom: 10px;
8
+ justify-content: flex-start;
9
+
10
+ border-bottom: 1px solid rgba(0, 0, 0, 0.1);
11
+
12
+ .teletext-list__panel__item_image {
13
+ width: 90px;
14
+ height: 71px;
15
+ border-radius: 5px;
16
+ flex: 0 0 auto;
17
+ overflow: hidden;
18
+
19
+ & > img {
20
+ width: 100%;
21
+ height: 100%;
22
+ object-fit: cover;
23
+ }
24
+
25
+ }
26
+
27
+ .teletext-list__panel__item__text {
28
+ display: flex;
29
+ flex-direction: column;
30
+ gap: 3px;
31
+
32
+ .teletext-list__panel__item__text__title {
33
+ font-size: 15px;
34
+ font-weight: 500;
35
+ color: #000000;
36
+ }
37
+
38
+ .teletext-list__panel__item__text__description {
39
+ -webkit-line-clamp: 1;
40
+ overflow: hidden;
41
+ color: #686868;
42
+ -webkit-box-orient: vertical;
43
+ display: -webkit-box;
44
+ font-size: 12px;
45
+ text-overflow: ellipsis;
46
+ }
47
+
48
+ .teletext-list__panel__item__text__tags {
49
+ display: flex;
50
+ gap: 6px;
51
+ }
52
+
53
+ }
54
+
55
+ }
@@ -1,61 +1,61 @@
1
- import React from 'react';
2
- import './index.scss';
3
- /**
4
- * 数据
5
- */
6
- interface DataProps {
7
- /**
8
- * 标题
9
- */
10
- title?: string;
11
- /**
12
- * 图片地址
13
- */
14
- image?: string[];
15
- /**
16
- * 说明
17
- */
18
- description?: string;
19
- /**
20
- * 标签列表
21
- */
22
- tags?: {
23
- /**
24
- * 标签名称
25
- */
26
- name: string;
27
- /**
28
- * 标签颜色
29
- */
30
- color: string;
31
- }[] | string;
32
- /**
33
- * 链接地址
34
- */
35
- link?: string;
36
- }
37
- export interface TeletextListProps {
38
- /**
39
- * 标题
40
- */
41
- title?: string;
42
- /**
43
- * 数据
44
- */
45
- dataList?: DataProps[];
46
- /**
47
- * 点击事件
48
- * @param e
49
- */
50
- onClick?: (e: any) => void;
51
- /**
52
- * 子节点
53
- */
54
- children: React.ReactChild;
55
- /**
56
- * 图片位置
57
- */
58
- imagePlacement?: "left" | "right" | "none";
59
- }
60
- declare const TeletextList: React.FC<TeletextListProps>;
61
- export default TeletextList;
1
+ import React from 'react';
2
+ import './index.scss';
3
+ /**
4
+ * 数据
5
+ */
6
+ interface DataProps {
7
+ /**
8
+ * 标题
9
+ */
10
+ title?: string;
11
+ /**
12
+ * 图片地址
13
+ */
14
+ image?: string[];
15
+ /**
16
+ * 说明
17
+ */
18
+ description?: string;
19
+ /**
20
+ * 标签列表
21
+ */
22
+ tags?: {
23
+ /**
24
+ * 标签名称
25
+ */
26
+ name: string;
27
+ /**
28
+ * 标签颜色
29
+ */
30
+ color: string;
31
+ }[] | string;
32
+ /**
33
+ * 链接地址
34
+ */
35
+ link?: string;
36
+ }
37
+ export interface TeletextListProps {
38
+ /**
39
+ * 标题
40
+ */
41
+ title?: string;
42
+ /**
43
+ * 数据
44
+ */
45
+ dataList?: DataProps[];
46
+ /**
47
+ * 点击事件
48
+ * @param e
49
+ */
50
+ onClick?: (e: any) => void;
51
+ /**
52
+ * 子节点
53
+ */
54
+ children: React.ReactChild;
55
+ /**
56
+ * 图片位置
57
+ */
58
+ imagePlacement?: "left" | "right" | "none";
59
+ }
60
+ declare const TeletextList: React.FC<TeletextListProps>;
61
+ export default TeletextList;
@@ -6,8 +6,8 @@ import "./index.scss";
6
6
  import { default as TeletextListItem } from "./teletext-list-item";
7
7
  import { convertChildren } from "../../utils/children-node-handle";
8
8
 
9
- /**
10
- * 数据
9
+ /**
10
+ * 数据
11
11
  */
12
12
 
13
13
  var TeletextList = function TeletextList(_ref) {
@@ -1,8 +1,8 @@
1
- /**
2
- * 标题
3
- */
4
- import Title1 from './title-1';
5
- import Title2 from './title-2';
6
- export type { Title1Props } from './title-1';
7
- export type { Title2Props } from './title-2';
8
- export { Title1, Title2 };
1
+ /**
2
+ * 标题
3
+ */
4
+ import Title1 from './title-1';
5
+ import Title2 from './title-2';
6
+ export type { Title1Props } from './title-1';
7
+ export type { Title2Props } from './title-2';
8
+ export { Title1, Title2 };
@@ -1,5 +1,5 @@
1
- /**
2
- * 标题
1
+ /**
2
+ * 标题
3
3
  */
4
4
 
5
5
  import Title1 from "./title-1";
@@ -1,10 +1,10 @@
1
- import React from 'react';
2
- import './title-1.scss';
3
- export interface Title1Props {
4
- /**
5
- * 标题
6
- */
7
- title?: string;
8
- }
9
- declare const Title1: React.FC<Title1Props>;
10
- export default Title1;
1
+ import React from 'react';
2
+ import './title-1.scss';
3
+ export interface Title1Props {
4
+ /**
5
+ * 标题
6
+ */
7
+ title?: string;
8
+ }
9
+ declare const Title1: React.FC<Title1Props>;
10
+ export default Title1;