@dckj-npm/dc-material 0.1.122 → 0.1.124

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 (314) 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.css +1 -1
  11. package/build/lowcode/render/default/view.js +6 -6
  12. package/build/lowcode/view.css +1 -1
  13. package/build/lowcode/view.js +6 -6
  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 -0
  18. package/es/components/bottom-navigation/index.d.ts +3 -0
  19. package/es/components/bottom-navigation/index.scss +24 -24
  20. package/es/components/button/button.d.ts +14 -0
  21. package/es/components/button/index.d.ts +6 -0
  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 -0
  25. package/es/components/carousel/carousel.scss +32 -32
  26. package/es/components/colorful-button/colorful-button.d.ts +12 -0
  27. package/es/components/colorful-button/index.d.ts +3 -0
  28. package/es/components/colorful-button/index.scss +5 -5
  29. package/es/components/colorful-input/colorful-input.d.ts +8 -0
  30. package/es/components/colorful-input/index.d.ts +3 -0
  31. package/es/components/colorful-input/index.scss +5 -5
  32. package/es/components/goods-card-list/goods-card-list-common.d.ts +5 -0
  33. package/es/components/goods-card-list/goods-card-list-common.scss +118 -118
  34. package/es/components/goods-card-list/goods-card-list.d.ts +5 -0
  35. package/es/components/goods-card-list/goods-card-list.scss +112 -112
  36. package/es/components/goods-card-list/index.d.ts +4 -0
  37. package/es/components/goods-card-list/types.d.ts +45 -0
  38. package/es/components/grid-nav/grid-nav.d.ts +13 -0
  39. package/es/components/grid-nav/index.d.ts +3 -0
  40. package/es/components/grid-nav/index.scss +41 -41
  41. package/es/components/integral-task/index.d.ts +6 -0
  42. package/es/components/integral-task/index.js +2 -2
  43. package/es/components/integral-task/index.scss +35 -35
  44. package/es/components/integral-task/integral-task.d.ts +40 -0
  45. package/es/components/menu-list/index.d.ts +6 -0
  46. package/es/components/menu-list/index.js +2 -2
  47. package/es/components/menu-list/index.scss +16 -16
  48. package/es/components/menu-list/menu-list-item.d.ts +5 -0
  49. package/es/components/menu-list/menu-list-item.scss +49 -49
  50. package/es/components/menu-list/menu-list.d.ts +5 -0
  51. package/es/components/menu-list/types.d.ts +23 -0
  52. package/es/components/message-list/index.d.ts +6 -0
  53. package/es/components/message-list/index.js +2 -2
  54. package/es/components/message-list/index.scss +22 -22
  55. package/es/components/message-list/message-list-item.d.ts +33 -0
  56. package/es/components/message-list/message-list-item.js +2 -2
  57. package/es/components/message-list/message-list-item.scss +60 -60
  58. package/es/components/message-list/message-list.d.ts +28 -0
  59. package/es/components/notice-bar/index.d.ts +3 -0
  60. package/es/components/notice-bar/index.scss +59 -42
  61. package/es/components/notice-bar/notice-bar-item.d.ts +18 -0
  62. package/es/components/notice-bar/notice-bar-item.js +5 -2
  63. package/es/components/notice-bar/notice-bar-item.scss +26 -26
  64. package/es/components/notice-bar/notice-bar.d.ts +37 -0
  65. package/es/components/notice-bar/notice-bar.js +15 -51
  66. package/es/components/position/entity.d.ts +5 -0
  67. package/es/components/position/index.d.ts +3 -0
  68. package/es/components/position/index.scss +27 -27
  69. package/es/components/position/position-left.d.ts +9 -0
  70. package/es/components/position/position-list.d.ts +12 -0
  71. package/es/components/position/position.d.ts +8 -0
  72. package/es/components/radio-group/index.d.ts +8 -0
  73. package/es/components/radio-group/index.js +2 -2
  74. package/es/components/radio-group/index.scss +40 -40
  75. package/es/components/radio-group/radio-group-item.d.ts +48 -0
  76. package/es/components/radio-group/radio-group.d.ts +52 -0
  77. package/es/components/rich-text/index.d.ts +6 -0
  78. package/es/components/rich-text/index.js +2 -2
  79. package/es/components/rich-text/index.scss +19 -19
  80. package/es/components/rich-text/rich-text.d.ts +14 -0
  81. package/es/components/search-bar/index.d.ts +3 -0
  82. package/es/components/search-bar/index.scss +14 -13
  83. package/es/components/search-bar/search-bar.d.ts +7 -0
  84. package/es/components/swiper/index.d.ts +3 -0
  85. package/es/components/swiper/index.scss +12 -12
  86. package/es/components/swiper/swiper.d.ts +47 -0
  87. package/es/components/tab/index.d.ts +6 -0
  88. package/es/components/tab/index.js +2 -2
  89. package/es/components/tab/index.scss +39 -39
  90. package/es/components/tab/tab.d.ts +27 -0
  91. package/es/components/tab-container/index.d.ts +3 -0
  92. package/es/components/tab-container/index.scss +47 -47
  93. package/es/components/tab-container/tab-container.d.ts +10 -0
  94. package/es/components/tab-container-item/index.d.ts +3 -0
  95. package/es/components/tab-container-item/tab-container-item.d.ts +11 -0
  96. package/es/components/tag/index.d.ts +6 -0
  97. package/es/components/tag/index.js +2 -2
  98. package/es/components/tag/index.scss +24 -24
  99. package/es/components/tag/tag.d.ts +14 -0
  100. package/es/components/teletext-list/index.d.ts +6 -0
  101. package/es/components/teletext-list/index.js +2 -2
  102. package/es/components/teletext-list/index.scss +19 -19
  103. package/es/components/teletext-list/teletext-list-item.d.ts +33 -0
  104. package/es/components/teletext-list/teletext-list-item.js +2 -2
  105. package/es/components/teletext-list/teletext-list-item.scss +55 -55
  106. package/es/components/teletext-list/teletext-list.d.ts +52 -0
  107. package/es/components/teletext-list/teletext-list.js +2 -2
  108. package/es/components/title/index.d.ts +8 -0
  109. package/es/components/title/index.js +2 -2
  110. package/es/components/title/title-1.d.ts +10 -0
  111. package/es/components/title/title-1.scss +25 -25
  112. package/es/components/title/title-2.d.ts +18 -0
  113. package/es/components/title/title-2.scss +22 -22
  114. package/es/index.d.ts +42 -0
  115. package/es/index.scss +5 -5
  116. package/es/utils/children-node-handle.d.ts +9 -0
  117. package/es/utils/children-node-handle.js +7 -7
  118. package/es/utils/component-wrapper.d.ts +9 -0
  119. package/es/utils/debounce.d.ts +1 -0
  120. package/es/utils/time-util.d.ts +5 -0
  121. package/es/utils/time-util.js +3 -3
  122. package/es/variables.d.ts +2 -0
  123. package/es/variables.scss +3 -3
  124. package/lib/components/bottom-navigation/bottom-navigation.d.ts +15 -0
  125. package/lib/components/bottom-navigation/index.d.ts +3 -0
  126. package/lib/components/bottom-navigation/index.scss +24 -24
  127. package/lib/components/button/button.d.ts +14 -0
  128. package/lib/components/button/index.d.ts +6 -0
  129. package/lib/components/button/index.js +2 -2
  130. package/lib/components/button/index.scss +16 -16
  131. package/lib/components/carousel/carousel.d.ts +14 -0
  132. package/lib/components/carousel/carousel.scss +32 -32
  133. package/lib/components/colorful-button/colorful-button.d.ts +12 -0
  134. package/lib/components/colorful-button/index.d.ts +3 -0
  135. package/lib/components/colorful-button/index.scss +5 -5
  136. package/lib/components/colorful-input/colorful-input.d.ts +8 -0
  137. package/lib/components/colorful-input/index.d.ts +3 -0
  138. package/lib/components/colorful-input/index.scss +5 -5
  139. package/lib/components/goods-card-list/goods-card-list-common.d.ts +5 -0
  140. package/lib/components/goods-card-list/goods-card-list-common.scss +118 -118
  141. package/lib/components/goods-card-list/goods-card-list.d.ts +5 -0
  142. package/lib/components/goods-card-list/goods-card-list.scss +112 -112
  143. package/lib/components/goods-card-list/index.d.ts +4 -0
  144. package/lib/components/goods-card-list/types.d.ts +45 -0
  145. package/lib/components/grid-nav/grid-nav.d.ts +13 -0
  146. package/lib/components/grid-nav/index.d.ts +3 -0
  147. package/lib/components/grid-nav/index.scss +41 -41
  148. package/lib/components/integral-task/index.d.ts +6 -0
  149. package/lib/components/integral-task/index.js +2 -2
  150. package/lib/components/integral-task/index.scss +35 -35
  151. package/lib/components/integral-task/integral-task.d.ts +40 -0
  152. package/lib/components/menu-list/index.d.ts +6 -0
  153. package/lib/components/menu-list/index.js +2 -2
  154. package/lib/components/menu-list/index.scss +16 -16
  155. package/lib/components/menu-list/menu-list-item.d.ts +5 -0
  156. package/lib/components/menu-list/menu-list-item.scss +49 -49
  157. package/lib/components/menu-list/menu-list.d.ts +5 -0
  158. package/lib/components/menu-list/types.d.ts +23 -0
  159. package/lib/components/message-list/index.d.ts +6 -0
  160. package/lib/components/message-list/index.js +2 -2
  161. package/lib/components/message-list/index.scss +22 -22
  162. package/lib/components/message-list/message-list-item.d.ts +33 -0
  163. package/lib/components/message-list/message-list-item.js +2 -2
  164. package/lib/components/message-list/message-list-item.scss +60 -60
  165. package/lib/components/message-list/message-list.d.ts +28 -0
  166. package/lib/components/notice-bar/index.d.ts +3 -0
  167. package/lib/components/notice-bar/index.scss +59 -42
  168. package/lib/components/notice-bar/notice-bar-item.d.ts +18 -0
  169. package/lib/components/notice-bar/notice-bar-item.js +5 -2
  170. package/lib/components/notice-bar/notice-bar-item.scss +26 -26
  171. package/lib/components/notice-bar/notice-bar.d.ts +37 -0
  172. package/lib/components/notice-bar/notice-bar.js +15 -53
  173. package/lib/components/position/entity.d.ts +5 -0
  174. package/lib/components/position/index.d.ts +3 -0
  175. package/lib/components/position/index.scss +27 -27
  176. package/lib/components/position/position-left.d.ts +9 -0
  177. package/lib/components/position/position-list.d.ts +12 -0
  178. package/lib/components/position/position.d.ts +8 -0
  179. package/lib/components/radio-group/index.d.ts +8 -0
  180. package/lib/components/radio-group/index.scss +40 -40
  181. package/lib/components/radio-group/radio-group-item.d.ts +48 -0
  182. package/lib/components/radio-group/radio-group.d.ts +52 -0
  183. package/lib/components/rich-text/index.d.ts +6 -0
  184. package/lib/components/rich-text/index.scss +19 -19
  185. package/lib/components/rich-text/rich-text.d.ts +14 -0
  186. package/lib/components/search-bar/index.d.ts +3 -0
  187. package/lib/components/search-bar/index.scss +14 -13
  188. package/lib/components/search-bar/search-bar.d.ts +7 -0
  189. package/lib/components/swiper/index.d.ts +3 -0
  190. package/lib/components/swiper/index.scss +12 -12
  191. package/lib/components/swiper/swiper.d.ts +47 -0
  192. package/lib/components/tab/index.d.ts +6 -0
  193. package/lib/components/tab/index.js +2 -2
  194. package/lib/components/tab/index.scss +39 -39
  195. package/lib/components/tab/tab.d.ts +27 -0
  196. package/lib/components/tab-container/index.d.ts +3 -0
  197. package/lib/components/tab-container/index.scss +47 -47
  198. package/lib/components/tab-container/tab-container.d.ts +10 -0
  199. package/lib/components/tab-container-item/index.d.ts +3 -0
  200. package/lib/components/tab-container-item/tab-container-item.d.ts +11 -0
  201. package/lib/components/tag/index.d.ts +6 -0
  202. package/lib/components/tag/index.js +2 -2
  203. package/lib/components/tag/index.scss +24 -24
  204. package/lib/components/tag/tag.d.ts +14 -0
  205. package/lib/components/teletext-list/index.d.ts +6 -0
  206. package/lib/components/teletext-list/index.scss +19 -19
  207. package/lib/components/teletext-list/teletext-list-item.d.ts +33 -0
  208. package/lib/components/teletext-list/teletext-list-item.js +2 -2
  209. package/lib/components/teletext-list/teletext-list-item.scss +55 -55
  210. package/lib/components/teletext-list/teletext-list.d.ts +52 -0
  211. package/lib/components/teletext-list/teletext-list.js +2 -2
  212. package/lib/components/title/index.d.ts +8 -0
  213. package/lib/components/title/title-1.d.ts +10 -0
  214. package/lib/components/title/title-1.scss +25 -25
  215. package/lib/components/title/title-2.d.ts +18 -0
  216. package/lib/components/title/title-2.scss +22 -22
  217. package/lib/index.d.ts +42 -0
  218. package/lib/index.scss +5 -5
  219. package/lib/utils/children-node-handle.d.ts +9 -0
  220. package/lib/utils/children-node-handle.js +7 -7
  221. package/lib/utils/component-wrapper.d.ts +9 -0
  222. package/lib/utils/debounce.d.ts +1 -0
  223. package/lib/utils/time-util.d.ts +5 -0
  224. package/lib/utils/time-util.js +3 -3
  225. package/lib/variables.d.ts +2 -0
  226. package/lib/variables.scss +3 -3
  227. package/lowcode/button2/meta.ts +75 -75
  228. package/lowcode/custom-radio-group/meta.ts +310 -310
  229. package/lowcode/custom-radio-group-item/meta.ts +229 -229
  230. package/lowcode/d-c-slider/meta.design.ts +173 -173
  231. package/lowcode/d-c-slider/meta.ts +342 -342
  232. package/lowcode/d-c-slider/snippets.ts +68 -68
  233. package/lowcode/goods-card-list/meta.ts +268 -268
  234. package/lowcode/goods-card-list-common/meta.ts +268 -268
  235. package/lowcode/grid-nav/meta.ts +212 -212
  236. package/lowcode/integral-task/meta.ts +211 -211
  237. package/lowcode/menu-list/meta.ts +147 -147
  238. package/lowcode/message-list/meta.ts +202 -202
  239. package/lowcode/navigation/meta.ts +165 -165
  240. package/lowcode/notice-bar/meta.ts +228 -228
  241. package/lowcode/position/meta.ts +161 -161
  242. package/lowcode/search-bar/meta.ts +54 -54
  243. package/lowcode/swiper/meta.ts +237 -237
  244. package/lowcode/tab-container/meta.ts +70 -70
  245. package/lowcode/tab-container/props.ts +194 -194
  246. package/lowcode/tab-container-item/meta.ts +195 -195
  247. package/lowcode/tab-message/meta.ts +101 -101
  248. package/lowcode/tag-c/meta.ts +75 -75
  249. package/lowcode/teletext-list/meta.ts +338 -338
  250. package/lowcode/title1/meta.ts +59 -59
  251. package/lowcode/title2/meta.ts +93 -93
  252. package/lowcode_es/button2/meta.d.ts +22 -22
  253. package/lowcode_es/custom-radio-group/meta.d.ts +22 -22
  254. package/lowcode_es/custom-radio-group-item/meta.d.ts +23 -23
  255. package/lowcode_es/d-c-slider/meta.d.ts +148 -148
  256. package/lowcode_es/d-c-slider/meta.design.d.ts +100 -100
  257. package/lowcode_es/d-c-slider/snippets.d.ts +36 -36
  258. package/lowcode_es/goods-card-list/meta.d.ts +22 -22
  259. package/lowcode_es/goods-card-list-common/meta.d.ts +22 -22
  260. package/lowcode_es/grid-nav/meta.d.ts +22 -22
  261. package/lowcode_es/integral-task/meta.d.ts +22 -22
  262. package/lowcode_es/menu-list/meta.d.ts +22 -22
  263. package/lowcode_es/message-list/meta.d.ts +22 -22
  264. package/lowcode_es/meta.js +24 -24
  265. package/lowcode_es/navigation/meta.d.ts +22 -22
  266. package/lowcode_es/notice-bar/meta.d.ts +22 -22
  267. package/lowcode_es/position/meta.d.ts +22 -22
  268. package/lowcode_es/rich-text/meta.d.ts +22 -22
  269. package/lowcode_es/search-bar/meta.d.ts +22 -22
  270. package/lowcode_es/swiper/meta.d.ts +22 -22
  271. package/lowcode_es/tab-container/meta.d.ts +22 -22
  272. package/lowcode_es/tab-container/props.d.ts +90 -90
  273. package/lowcode_es/tab-container-item/meta.d.ts +22 -22
  274. package/lowcode_es/tab-message/meta.d.ts +22 -22
  275. package/lowcode_es/tag-c/meta.d.ts +22 -22
  276. package/lowcode_es/teletext-list/meta.d.ts +22 -22
  277. package/lowcode_es/teletext-list/meta.js +1 -1
  278. package/lowcode_es/title1/meta.d.ts +22 -22
  279. package/lowcode_es/title2/meta.d.ts +22 -22
  280. package/lowcode_es/view.js +3 -3
  281. package/lowcode_lib/button2/meta.d.ts +22 -22
  282. package/lowcode_lib/custom-radio-group/meta.d.ts +22 -22
  283. package/lowcode_lib/custom-radio-group-item/meta.d.ts +23 -23
  284. package/lowcode_lib/d-c-slider/meta.d.ts +148 -148
  285. package/lowcode_lib/d-c-slider/meta.design.d.ts +100 -100
  286. package/lowcode_lib/d-c-slider/snippets.d.ts +36 -36
  287. package/lowcode_lib/goods-card-list/meta.d.ts +22 -22
  288. package/lowcode_lib/goods-card-list-common/meta.d.ts +22 -22
  289. package/lowcode_lib/grid-nav/meta.d.ts +22 -22
  290. package/lowcode_lib/integral-task/meta.d.ts +22 -22
  291. package/lowcode_lib/menu-list/meta.d.ts +22 -22
  292. package/lowcode_lib/message-list/meta.d.ts +22 -22
  293. package/lowcode_lib/meta.js +24 -24
  294. package/lowcode_lib/navigation/meta.d.ts +22 -22
  295. package/lowcode_lib/notice-bar/meta.d.ts +22 -22
  296. package/lowcode_lib/position/meta.d.ts +22 -22
  297. package/lowcode_lib/rich-text/meta.d.ts +22 -22
  298. package/lowcode_lib/search-bar/meta.d.ts +22 -22
  299. package/lowcode_lib/swiper/meta.d.ts +22 -22
  300. package/lowcode_lib/tab-container/meta.d.ts +22 -22
  301. package/lowcode_lib/tab-container/props.d.ts +90 -90
  302. package/lowcode_lib/tab-container-item/meta.d.ts +22 -22
  303. package/lowcode_lib/tab-message/meta.d.ts +22 -22
  304. package/lowcode_lib/tag-c/meta.d.ts +22 -22
  305. package/lowcode_lib/teletext-list/meta.d.ts +22 -22
  306. package/lowcode_lib/teletext-list/meta.js +1 -1
  307. package/lowcode_lib/title1/meta.d.ts +22 -22
  308. package/lowcode_lib/title2/meta.d.ts +22 -22
  309. package/lowcode_lib/view.js +2 -2
  310. package/package.json +3 -3
  311. package/es/components/notice-bar/components/ScrollSwitcher.js +0 -45
  312. package/es/components/notice-bar/components/ScrollSwitcher.scss +0 -17
  313. package/lib/components/notice-bar/components/ScrollSwitcher.js +0 -52
  314. package/lib/components/notice-bar/components/ScrollSwitcher.scss +0 -17
@@ -1,237 +1,237 @@
1
-
2
- import { IPublicTypeComponentMetadata, IPublicTypeSnippet } from '@alilc/lowcode-types';
3
-
4
- const SwiperMeta: IPublicTypeComponentMetadata = {
5
- group: '低代码组件',
6
- category: '信息展示',
7
- "componentName": "Swiper",
8
- title: '图片轮播Swiper',
9
- "docUrl": "",
10
- "screenshot": "",
11
- "devMode": "proCode",
12
- "npm": {
13
- "package": "@dckj-npm/dc-material",
14
- "version": "0.1.16",
15
- "exportName": "Swiper",
16
- "main": "src\\index.tsx",
17
- "destructuring": true,
18
- "subName": ""
19
- },
20
- "configure": {
21
- "props": [
22
- {
23
- "title": "初始索引",
24
- "name": "initialSlide",
25
- "description": "设定初始化时slide的索引",
26
- "setter": {
27
- "componentName": "NumberSetter",
28
- "isRequired": false,
29
- "initialValue": 0
30
- }
31
- },
32
- {
33
- "title": {
34
- "label": {
35
- "type": "i18n",
36
- "en-US": "direction",
37
- "zh-CN": "方向"
38
- },
39
- "tip": "direction | 轮播方向"
40
- },
41
- "name": "direction",
42
- "setter": {
43
- "componentName": "RadioGroupSetter",
44
- "props": {
45
- "dataSource": [
46
- {
47
- "label": "vertical",
48
- "value": "vertical"
49
- },
50
- {
51
- "label": "horizontal",
52
- "value": "horizontal"
53
- }
54
- ],
55
- "options": [
56
- {
57
- "label": "vertical",
58
- "value": "vertical"
59
- },
60
- {
61
- "label": "horizontal",
62
- "value": "horizontal"
63
- }
64
- ]
65
- },
66
- "initialValue": "vertical"
67
- }
68
- },
69
- {
70
- "title": {
71
- "label": {
72
- "type": "i18n",
73
- "en-US": "speed",
74
- "zh-CN": "切换速度"
75
- },
76
- "tip": "speed | 切换速度,单位ms"
77
- },
78
- "name": "speed",
79
- "description": "切换速度,单位ms",
80
- "setter": {
81
- "componentName": "NumberSetter",
82
- "isRequired": false,
83
- "initialValue": 0
84
- }
85
- },
86
- {
87
- "title": {
88
- "label": {
89
- "type": "i18n",
90
- "en-US": "slidesPerView",
91
- "zh-CN": "展示数量"
92
- },
93
- "tip": "同时展示图片数量"
94
- },
95
- "name": "slidesPerView",
96
- "description": "展示数量",
97
- "setter": {
98
- "componentName": "NumberSetter",
99
- "isRequired": true,
100
- "initialValue": 0
101
- }
102
- },
103
- {
104
- "title": {
105
- "label": {
106
- "type": "i18n",
107
- "en-US": "height",
108
- "zh-CN": "高度"
109
- },
110
- "tip": "height | 高度"
111
- },
112
- "name": "height",
113
- "description": "高度",
114
- "setter": {
115
- "componentName": "NumberSetter",
116
- "isRequired": true
117
- }
118
- },
119
- {
120
- "title": {
121
- "label": {
122
- "type": "i18n",
123
- "en-US": "autoHeight",
124
- "zh-CN": "自动高度"
125
- },
126
- "tip": "autoHeight | 自动高度"
127
- },
128
- "name": "autoHeight",
129
- "description": "自动高度",
130
- "setter": {
131
- "componentName": "BoolSetter",
132
- "isRequired": true,
133
- "initialValue": false
134
- }
135
- },
136
- {
137
- "title": {
138
- "label": {
139
- "type": "i18n",
140
- "en-US": "autoplay",
141
- "zh-CN": "自动播放"
142
- },
143
- "tip": "autoplay | 自动播放"
144
- },
145
- "name": "autoplay",
146
- "description": "自动播放",
147
- "setter": {
148
- "componentName": "BoolSetter",
149
- "isRequired": true,
150
- "initialValue": false
151
- }
152
- },
153
- {
154
- "title": {
155
- "label": {
156
- "type": "i18n",
157
- "en-US": "loop",
158
- "zh-CN": "循环播放"
159
- },
160
- "tip": "loop | 循环播放"
161
- },
162
- "name": "loop",
163
- "description": "循环播放",
164
- "setter": {
165
- "componentName": "BoolSetter",
166
- "isRequired": true,
167
- "initialValue": false
168
- }
169
- },
170
- {
171
- "title": {
172
- "label": {
173
- "type": "i18n",
174
- "en-US": "spaceBetween",
175
- "zh-CN": "图片间距"
176
- },
177
- "tip": "spaceBetween | 图片间距"
178
- },
179
- "name": "spaceBetween",
180
- "description": "图片间距",
181
- "setter": {
182
- "componentName": "NumberSetter",
183
- "isRequired": true,
184
- "initialValue": 0
185
- }
186
- },
187
- {
188
- name: 'picUrls',
189
- title: '数据源绑定',
190
- setter: {
191
- componentName: 'SetterFormVariable',
192
- props: {
193
- attributes: [
194
- {
195
- label: '图标链接',
196
- value: 'picUrls'
197
- }
198
- ]
199
- }
200
- }
201
- }
202
- ],
203
- "supports": {
204
- "style": true
205
- },
206
- "component": {}
207
- }
208
- };
209
- const snippets: IPublicTypeSnippet[] = [
210
- {
211
- "title": "图片轮播Swiper",
212
- "screenshot": "",
213
- "schema": {
214
- "componentName": "Swiper",
215
- "props": {
216
- spaceBetween: 0,
217
- loop: true,
218
- autoplay: true,
219
- speed: 200,
220
- slidesPerView: 1,
221
- initialSlide: 1,
222
- direction: 'horizontal',
223
- autoHeight: false,
224
- // 轮播路径
225
- picUrls: ['https://img.alicdn.com/tps/TB1bewbNVXXXXc5XXXXXXXXXXXX-1000-300.png',
226
- 'https://img.alicdn.com/tps/TB1xuUcNVXXXXcRXXXXXXXXXXXX-1000-300.jpg',
227
- 'https://img.alicdn.com/tps/TB1ikP.NVXXXXaYXpXXXXXXXXXX-1000-300.jpg',
228
- 'https://img.alicdn.com/tps/TB1s1_JNVXXXXbhaXXXXXXXXXXX-1000-300.jpg']
229
- }
230
- }
231
- }
232
- ];
233
-
234
- export default {
235
- ...SwiperMeta,
236
- snippets
237
- };
1
+
2
+ import { IPublicTypeComponentMetadata, IPublicTypeSnippet } from '@alilc/lowcode-types';
3
+
4
+ const SwiperMeta: IPublicTypeComponentMetadata = {
5
+ group: '低代码组件',
6
+ category: '信息展示',
7
+ "componentName": "Swiper",
8
+ title: '图片轮播Swiper',
9
+ "docUrl": "",
10
+ "screenshot": "",
11
+ "devMode": "proCode",
12
+ "npm": {
13
+ "package": "@dckj-npm/dc-material",
14
+ "version": "0.1.16",
15
+ "exportName": "Swiper",
16
+ "main": "src\\index.tsx",
17
+ "destructuring": true,
18
+ "subName": ""
19
+ },
20
+ "configure": {
21
+ "props": [
22
+ {
23
+ "title": "初始索引",
24
+ "name": "initialSlide",
25
+ "description": "设定初始化时slide的索引",
26
+ "setter": {
27
+ "componentName": "NumberSetter",
28
+ "isRequired": false,
29
+ "initialValue": 0
30
+ }
31
+ },
32
+ {
33
+ "title": {
34
+ "label": {
35
+ "type": "i18n",
36
+ "en-US": "direction",
37
+ "zh-CN": "方向"
38
+ },
39
+ "tip": "direction | 轮播方向"
40
+ },
41
+ "name": "direction",
42
+ "setter": {
43
+ "componentName": "RadioGroupSetter",
44
+ "props": {
45
+ "dataSource": [
46
+ {
47
+ "label": "vertical",
48
+ "value": "vertical"
49
+ },
50
+ {
51
+ "label": "horizontal",
52
+ "value": "horizontal"
53
+ }
54
+ ],
55
+ "options": [
56
+ {
57
+ "label": "vertical",
58
+ "value": "vertical"
59
+ },
60
+ {
61
+ "label": "horizontal",
62
+ "value": "horizontal"
63
+ }
64
+ ]
65
+ },
66
+ "initialValue": "vertical"
67
+ }
68
+ },
69
+ {
70
+ "title": {
71
+ "label": {
72
+ "type": "i18n",
73
+ "en-US": "speed",
74
+ "zh-CN": "切换速度"
75
+ },
76
+ "tip": "speed | 切换速度,单位ms"
77
+ },
78
+ "name": "speed",
79
+ "description": "切换速度,单位ms",
80
+ "setter": {
81
+ "componentName": "NumberSetter",
82
+ "isRequired": false,
83
+ "initialValue": 0
84
+ }
85
+ },
86
+ {
87
+ "title": {
88
+ "label": {
89
+ "type": "i18n",
90
+ "en-US": "slidesPerView",
91
+ "zh-CN": "展示数量"
92
+ },
93
+ "tip": "同时展示图片数量"
94
+ },
95
+ "name": "slidesPerView",
96
+ "description": "展示数量",
97
+ "setter": {
98
+ "componentName": "NumberSetter",
99
+ "isRequired": true,
100
+ "initialValue": 0
101
+ }
102
+ },
103
+ {
104
+ "title": {
105
+ "label": {
106
+ "type": "i18n",
107
+ "en-US": "height",
108
+ "zh-CN": "高度"
109
+ },
110
+ "tip": "height | 高度"
111
+ },
112
+ "name": "height",
113
+ "description": "高度",
114
+ "setter": {
115
+ "componentName": "NumberSetter",
116
+ "isRequired": true
117
+ }
118
+ },
119
+ {
120
+ "title": {
121
+ "label": {
122
+ "type": "i18n",
123
+ "en-US": "autoHeight",
124
+ "zh-CN": "自动高度"
125
+ },
126
+ "tip": "autoHeight | 自动高度"
127
+ },
128
+ "name": "autoHeight",
129
+ "description": "自动高度",
130
+ "setter": {
131
+ "componentName": "BoolSetter",
132
+ "isRequired": true,
133
+ "initialValue": false
134
+ }
135
+ },
136
+ {
137
+ "title": {
138
+ "label": {
139
+ "type": "i18n",
140
+ "en-US": "autoplay",
141
+ "zh-CN": "自动播放"
142
+ },
143
+ "tip": "autoplay | 自动播放"
144
+ },
145
+ "name": "autoplay",
146
+ "description": "自动播放",
147
+ "setter": {
148
+ "componentName": "BoolSetter",
149
+ "isRequired": true,
150
+ "initialValue": false
151
+ }
152
+ },
153
+ {
154
+ "title": {
155
+ "label": {
156
+ "type": "i18n",
157
+ "en-US": "loop",
158
+ "zh-CN": "循环播放"
159
+ },
160
+ "tip": "loop | 循环播放"
161
+ },
162
+ "name": "loop",
163
+ "description": "循环播放",
164
+ "setter": {
165
+ "componentName": "BoolSetter",
166
+ "isRequired": true,
167
+ "initialValue": false
168
+ }
169
+ },
170
+ {
171
+ "title": {
172
+ "label": {
173
+ "type": "i18n",
174
+ "en-US": "spaceBetween",
175
+ "zh-CN": "图片间距"
176
+ },
177
+ "tip": "spaceBetween | 图片间距"
178
+ },
179
+ "name": "spaceBetween",
180
+ "description": "图片间距",
181
+ "setter": {
182
+ "componentName": "NumberSetter",
183
+ "isRequired": true,
184
+ "initialValue": 0
185
+ }
186
+ },
187
+ {
188
+ name: 'picUrls',
189
+ title: '数据源绑定',
190
+ setter: {
191
+ componentName: 'SetterFormVariable',
192
+ props: {
193
+ attributes: [
194
+ {
195
+ label: '图标链接',
196
+ value: 'picUrls'
197
+ }
198
+ ]
199
+ }
200
+ }
201
+ }
202
+ ],
203
+ "supports": {
204
+ "style": true
205
+ },
206
+ "component": {}
207
+ }
208
+ };
209
+ const snippets: IPublicTypeSnippet[] = [
210
+ {
211
+ "title": "图片轮播Swiper",
212
+ "screenshot": "",
213
+ "schema": {
214
+ "componentName": "Swiper",
215
+ "props": {
216
+ spaceBetween: 0,
217
+ loop: true,
218
+ autoplay: true,
219
+ speed: 200,
220
+ slidesPerView: 1,
221
+ initialSlide: 1,
222
+ direction: 'horizontal',
223
+ autoHeight: false,
224
+ // 轮播路径
225
+ picUrls: ['https://img.alicdn.com/tps/TB1bewbNVXXXXc5XXXXXXXXXXXX-1000-300.png',
226
+ 'https://img.alicdn.com/tps/TB1xuUcNVXXXXcRXXXXXXXXXXXX-1000-300.jpg',
227
+ 'https://img.alicdn.com/tps/TB1ikP.NVXXXXaYXpXXXXXXXXXX-1000-300.jpg',
228
+ 'https://img.alicdn.com/tps/TB1s1_JNVXXXXbhaXXXXXXXXXXX-1000-300.jpg']
229
+ }
230
+ }
231
+ }
232
+ ];
233
+
234
+ export default {
235
+ ...SwiperMeta,
236
+ snippets
237
+ };
@@ -1,70 +1,70 @@
1
- import { IPublicTypeComponentMetadata, IPublicTypeSnippet } from "@alilc/lowcode-types";
2
-
3
- import props from "./props";
4
-
5
- const snippets: IPublicTypeSnippet[] = [
6
- {
7
- title: "选项卡",
8
- schema: {
9
- componentName: "TabContainer",
10
- props: {
11
- shape: "pure",
12
- size: "medium",
13
- excessMode: "slide",
14
- },
15
- children: [
16
- {
17
- componentName: "TabContainerItem",
18
- props: {
19
- tab: "标签项1",
20
- key: "tab-item-1",
21
- },
22
- },
23
- {
24
- componentName: "TabContainerItem",
25
- props: {
26
- tab: "标签项2",
27
- key: "tab-item-2",
28
- },
29
- },
30
- ],
31
- },
32
- },
33
- ];
34
-
35
- const TabContainerMeta: IPublicTypeComponentMetadata = {
36
- "group": "低代码组件",
37
- componentName: "TabContainer",
38
- title: "选项卡",
39
- category: "布局容器类",
40
- docUrl: "",
41
- screenshot:
42
- "https://img.alicdn.com/imgextra/i4/O1CN01mh9LPG268B90t8DaA_!!6000000007616-55-tps-56-56.svg",
43
- devMode: "proCode",
44
- npm: {
45
- "package": "@dckj-npm/dc-material",
46
- "version": "0.1.13",
47
- "exportName": "TabContainer",
48
- "main": "src\\index.tsx",
49
- "destructuring": true,
50
- "subName": ""
51
- },
52
- configure: {
53
- component: {
54
- isContainer: true,
55
- nestingRule: {
56
- childWhitelist: ["TabContainerItem"],
57
- },
58
- },
59
- props,
60
- supports: {
61
- style: true,
62
- },
63
- },
64
- snippets,
65
- };
66
-
67
- export default {
68
- ...TabContainerMeta,
69
- snippets
70
- };
1
+ import { IPublicTypeComponentMetadata, IPublicTypeSnippet } from "@alilc/lowcode-types";
2
+
3
+ import props from "./props";
4
+
5
+ const snippets: IPublicTypeSnippet[] = [
6
+ {
7
+ title: "选项卡",
8
+ schema: {
9
+ componentName: "TabContainer",
10
+ props: {
11
+ shape: "pure",
12
+ size: "medium",
13
+ excessMode: "slide",
14
+ },
15
+ children: [
16
+ {
17
+ componentName: "TabContainerItem",
18
+ props: {
19
+ tab: "标签项1",
20
+ key: "tab-item-1",
21
+ },
22
+ },
23
+ {
24
+ componentName: "TabContainerItem",
25
+ props: {
26
+ tab: "标签项2",
27
+ key: "tab-item-2",
28
+ },
29
+ },
30
+ ],
31
+ },
32
+ },
33
+ ];
34
+
35
+ const TabContainerMeta: IPublicTypeComponentMetadata = {
36
+ "group": "低代码组件",
37
+ componentName: "TabContainer",
38
+ title: "选项卡",
39
+ category: "布局容器类",
40
+ docUrl: "",
41
+ screenshot:
42
+ "https://img.alicdn.com/imgextra/i4/O1CN01mh9LPG268B90t8DaA_!!6000000007616-55-tps-56-56.svg",
43
+ devMode: "proCode",
44
+ npm: {
45
+ "package": "@dckj-npm/dc-material",
46
+ "version": "0.1.13",
47
+ "exportName": "TabContainer",
48
+ "main": "src\\index.tsx",
49
+ "destructuring": true,
50
+ "subName": ""
51
+ },
52
+ configure: {
53
+ component: {
54
+ isContainer: true,
55
+ nestingRule: {
56
+ childWhitelist: ["TabContainerItem"],
57
+ },
58
+ },
59
+ props,
60
+ supports: {
61
+ style: true,
62
+ },
63
+ },
64
+ snippets,
65
+ };
66
+
67
+ export default {
68
+ ...TabContainerMeta,
69
+ snippets
70
+ };