@luck-design-biz/luckda 0.0.22-4 → 0.0.22-5

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 (310) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +40 -40
  3. package/es/components/Builder/index.js +1 -1
  4. package/es/components/LdGrid/index.js +4 -4
  5. package/es/components/LdGridForm/index.less +7 -7
  6. package/es/components/LdRuntimeCom/index.js +42 -0
  7. package/es/components/LdTree/index.less +36 -36
  8. package/es/helper/action.js +6 -6
  9. package/es/helper/form.js +14 -14
  10. package/es/helper/index.less +7 -7
  11. package/es/index.js +1 -0
  12. package/es/lowcode/constants/api-url.js +3 -0
  13. package/es/lowcode/constants/event-topics.js +31 -0
  14. package/es/lowcode/constants/index.js +12 -0
  15. package/es/lowcode/engine/factory/DataFactory.js +1 -0
  16. package/es/lowcode/engine/factory/panel-item-factory/DynamicStrategy.js +60 -0
  17. package/es/lowcode/engine/factory/panel-item-factory/SegmentedStrategy.js +32 -0
  18. package/es/lowcode/engine/factory/panel-item-factory/SelectStrategy.js +32 -0
  19. package/es/lowcode/engine/factory/panel-item-factory/Strategy.js +21 -0
  20. package/es/lowcode/engine/factory/panel-item-factory/StringStrategy.js +32 -0
  21. package/es/lowcode/engine/factory/panel-item-factory/SwitchStrategy.js +32 -0
  22. package/es/lowcode/engine/factory/panel-item-factory/index.js +40 -0
  23. package/es/lowcode/engine/meta/box.props.default.json +10 -0
  24. package/es/lowcode/engine/meta/box.props.json +40 -0
  25. package/es/lowcode/engine/meta/button.props.default.json +16 -0
  26. package/es/lowcode/engine/meta/button.props.json +117 -0
  27. package/es/lowcode/engine/meta/cardlist.props.default.json +18 -0
  28. package/es/lowcode/engine/meta/cardlist.props.json +144 -0
  29. package/es/lowcode/engine/meta/components-list.json +128 -0
  30. package/es/lowcode/engine/meta/dialog.props.default.json +19 -0
  31. package/es/lowcode/engine/meta/dialog.props.json +121 -0
  32. package/es/lowcode/engine/meta/drawer.props.default.json +18 -0
  33. package/es/lowcode/engine/meta/drawer.props.json +144 -0
  34. package/es/lowcode/engine/meta/form.props.default.json +13 -0
  35. package/es/lowcode/engine/meta/form.props.json +117 -0
  36. package/es/lowcode/engine/meta/iframe.props.default.json +11 -0
  37. package/es/lowcode/engine/meta/iframe.props.json +32 -0
  38. package/es/lowcode/engine/meta/image.props.default.json +16 -0
  39. package/es/lowcode/engine/meta/image.props.json +114 -0
  40. package/es/lowcode/engine/meta/imex.props.default.json +12 -0
  41. package/es/lowcode/engine/meta/imex.props.json +82 -0
  42. package/es/lowcode/engine/meta/js-editor/auto-complete.json +29 -0
  43. package/es/lowcode/engine/meta/jsx.props.default.json +10 -0
  44. package/es/lowcode/engine/meta/jsx.props.json +25 -0
  45. package/es/lowcode/engine/meta/layout.props.default.json +13 -0
  46. package/es/lowcode/engine/meta/layout.props.json +108 -0
  47. package/es/lowcode/engine/meta/link.props.default.json +14 -0
  48. package/es/lowcode/engine/meta/link.props.json +112 -0
  49. package/es/lowcode/engine/meta/section.props.default.json +17 -0
  50. package/es/lowcode/engine/meta/section.props.json +108 -0
  51. package/es/lowcode/engine/meta/split.props.default.json +13 -0
  52. package/es/lowcode/engine/meta/split.props.json +72 -0
  53. package/es/lowcode/engine/meta/table.props.default.json +18 -0
  54. package/es/lowcode/engine/meta/table.props.json +162 -0
  55. package/es/lowcode/engine/meta/tabs.props.default.json +18 -0
  56. package/es/lowcode/engine/meta/tabs.props.json +141 -0
  57. package/es/lowcode/engine/meta/text.props.default.json +12 -0
  58. package/es/lowcode/engine/meta/text.props.json +66 -0
  59. package/es/lowcode/engine/meta/tree.props.default.json +17 -0
  60. package/es/lowcode/engine/meta/tree.props.json +157 -0
  61. package/es/lowcode/engine/provider/ContextProvider.js +165 -0
  62. package/es/lowcode/engine/provider/EventBusProvider.js +120 -0
  63. package/es/lowcode/engine/tools/dataProcess.js +263 -0
  64. package/es/lowcode/engine/tools/helper.js +4 -0
  65. package/es/lowcode/engine/tools/lcid.js +16 -0
  66. package/es/lowcode/index.js +3 -0
  67. package/es/lowcode/painter/Components.js +104 -0
  68. package/es/lowcode/painter/Design.js +210 -0
  69. package/es/lowcode/painter/I18n.js +202 -0
  70. package/es/lowcode/painter/Outline.js +208 -0
  71. package/es/lowcode/painter/Panel.js +195 -0
  72. package/es/lowcode/painter/Ribbon.js +142 -0
  73. package/es/lowcode/painter/components/PanelItem.js +35 -0
  74. package/es/lowcode/painter/components/PopConfirm.js +20 -0
  75. package/es/lowcode/painter/components/PopForm.js +71 -0
  76. package/es/lowcode/painter/components/RuleInput.js +105 -0
  77. package/es/lowcode/painter/components/SortBox.js +92 -0
  78. package/es/lowcode/painter/components/TabEditor.js +88 -0
  79. package/es/lowcode/painter/components/code-editor/BaseEditor.js +49 -0
  80. package/es/lowcode/painter/components/code-editor/JSEditor.js +77 -0
  81. package/es/lowcode/painter/components/code-editor/index.js +2 -0
  82. package/es/lowcode/painter/index.js +45 -0
  83. package/es/lowcode/painter/panel-section/Icon.js +48 -0
  84. package/es/lowcode/painter/panel-section/IconSelector.js +139 -0
  85. package/es/lowcode/painter/panel-section/LayoutRatio.js +140 -0
  86. package/es/lowcode/painter/panel-section/TabItems.js +238 -0
  87. package/es/lowcode/painter/services/I18n.js +85 -0
  88. package/es/lowcode/painter/style/components.less +90 -0
  89. package/es/lowcode/painter/style/design.less +82 -0
  90. package/es/lowcode/painter/style/icon-selector.less +22 -0
  91. package/es/lowcode/painter/style/icon.less +11 -0
  92. package/es/lowcode/painter/style/index.less +6 -0
  93. package/es/lowcode/painter/style/layout-ratio.less +51 -0
  94. package/es/lowcode/painter/style/outline.less +28 -0
  95. package/es/lowcode/painter/style/panel-item.less +22 -0
  96. package/es/lowcode/painter/style/panel.less +119 -0
  97. package/es/lowcode/painter/style/pop-confirm.less +10 -0
  98. package/es/lowcode/painter/style/pop-form.less +20 -0
  99. package/es/lowcode/painter/style/radio.less +24 -0
  100. package/es/lowcode/painter/style/ribbon.less +5 -0
  101. package/es/lowcode/painter/style/rule-input.less +13 -0
  102. package/es/lowcode/painter/style/tabeditor.less +90 -0
  103. package/es/lowcode/painter/style/tabitems.less +90 -0
  104. package/es/lowcode/view/Canvas.js +135 -0
  105. package/es/lowcode/view/Loading.js +23 -0
  106. package/es/lowcode/view/Page.js +251 -0
  107. package/es/lowcode/view/index.js +18 -0
  108. package/es/lowcode/view/lc-components/Box/index.js +24 -0
  109. package/es/lowcode/view/lc-components/Box/meta.json +40 -0
  110. package/es/lowcode/view/lc-components/Button/index.js +37 -0
  111. package/es/lowcode/view/lc-components/Button/meta.json +117 -0
  112. package/es/lowcode/view/lc-components/CardList/index.js +20 -0
  113. package/es/lowcode/view/lc-components/CardList/meta.json +144 -0
  114. package/es/lowcode/view/lc-components/Dialog/index.js +61 -0
  115. package/es/lowcode/view/lc-components/Dialog/index.less +3 -0
  116. package/es/lowcode/view/lc-components/Dialog/meta.json +121 -0
  117. package/es/lowcode/view/lc-components/Drawer/index.js +62 -0
  118. package/es/lowcode/view/lc-components/Drawer/meta.json +144 -0
  119. package/es/lowcode/view/lc-components/Drawer/style.less +7 -0
  120. package/es/lowcode/view/lc-components/Form/index.js +20 -0
  121. package/es/lowcode/view/lc-components/Form/meta.json +117 -0
  122. package/es/lowcode/view/lc-components/Iframe/index.js +20 -0
  123. package/es/lowcode/view/lc-components/Iframe/meta.json +32 -0
  124. package/es/lowcode/view/lc-components/ImEx/index.js +20 -0
  125. package/es/lowcode/view/lc-components/ImEx/meta.json +82 -0
  126. package/es/lowcode/view/lc-components/Image/index.js +20 -0
  127. package/es/lowcode/view/lc-components/Image/meta.json +114 -0
  128. package/es/lowcode/view/lc-components/JSX/index.js +20 -0
  129. package/es/lowcode/view/lc-components/JSX/meta.json +25 -0
  130. package/es/lowcode/view/lc-components/Layout/index.js +98 -0
  131. package/es/lowcode/view/lc-components/Layout/index.less +9 -0
  132. package/es/lowcode/view/lc-components/Layout/meta.json +108 -0
  133. package/es/lowcode/view/lc-components/Link/index.js +20 -0
  134. package/es/lowcode/view/lc-components/Link/meta.json +112 -0
  135. package/es/lowcode/view/lc-components/Section/index.js +34 -0
  136. package/es/lowcode/view/lc-components/Section/meta.json +108 -0
  137. package/es/lowcode/view/lc-components/Split/index.js +21 -0
  138. package/es/lowcode/view/lc-components/Split/meta.json +72 -0
  139. package/es/lowcode/view/lc-components/Table/index.js +23 -0
  140. package/es/lowcode/view/lc-components/Table/meta.json +162 -0
  141. package/es/lowcode/view/lc-components/Tabs/index.js +21 -0
  142. package/es/lowcode/view/lc-components/Tabs/meta.json +141 -0
  143. package/es/lowcode/view/lc-components/Text/index.js +23 -0
  144. package/es/lowcode/view/lc-components/Text/meta.json +66 -0
  145. package/es/lowcode/view/lc-components/Tree/index.js +20 -0
  146. package/es/lowcode/view/lc-components/Tree/meta.json +157 -0
  147. package/es/lowcode/view/lc-components/Wrapper.js +52 -0
  148. package/es/lowcode/view/style/canvas.less +5 -0
  149. package/es/lowcode/view/style/loading.less +84 -0
  150. package/es/lowcode/view/style/page.less +5 -0
  151. package/es/upload/Form/index.less +7 -7
  152. package/es/upload/FormItem/index.js +15 -15
  153. package/es/utils/form.js +22 -22
  154. package/es/utils/grid.js +2 -2
  155. package/lib/components/Builder/index.js +1 -1
  156. package/lib/components/LdGrid/index.js +4 -4
  157. package/lib/components/LdGridForm/index.less +7 -7
  158. package/lib/components/LdRuntimeCom/index.js +49 -0
  159. package/lib/components/LdTree/index.less +36 -36
  160. package/lib/helper/action.js +6 -6
  161. package/lib/helper/form.js +14 -14
  162. package/lib/helper/index.less +7 -7
  163. package/lib/index.js +9 -1
  164. package/lib/lowcode/constants/api-url.js +9 -0
  165. package/lib/lowcode/constants/event-topics.js +37 -0
  166. package/lib/lowcode/constants/index.js +18 -0
  167. package/lib/lowcode/engine/factory/DataFactory.js +3 -0
  168. package/lib/lowcode/engine/factory/panel-item-factory/DynamicStrategy.js +73 -0
  169. package/lib/lowcode/engine/factory/panel-item-factory/SegmentedStrategy.js +38 -0
  170. package/lib/lowcode/engine/factory/panel-item-factory/SelectStrategy.js +38 -0
  171. package/lib/lowcode/engine/factory/panel-item-factory/Strategy.js +27 -0
  172. package/lib/lowcode/engine/factory/panel-item-factory/StringStrategy.js +38 -0
  173. package/lib/lowcode/engine/factory/panel-item-factory/SwitchStrategy.js +38 -0
  174. package/lib/lowcode/engine/factory/panel-item-factory/index.js +46 -0
  175. package/lib/lowcode/engine/meta/box.props.default.json +10 -0
  176. package/lib/lowcode/engine/meta/box.props.json +40 -0
  177. package/lib/lowcode/engine/meta/button.props.default.json +16 -0
  178. package/lib/lowcode/engine/meta/button.props.json +117 -0
  179. package/lib/lowcode/engine/meta/cardlist.props.default.json +18 -0
  180. package/lib/lowcode/engine/meta/cardlist.props.json +144 -0
  181. package/lib/lowcode/engine/meta/components-list.json +128 -0
  182. package/lib/lowcode/engine/meta/dialog.props.default.json +19 -0
  183. package/lib/lowcode/engine/meta/dialog.props.json +121 -0
  184. package/lib/lowcode/engine/meta/drawer.props.default.json +18 -0
  185. package/lib/lowcode/engine/meta/drawer.props.json +144 -0
  186. package/lib/lowcode/engine/meta/form.props.default.json +13 -0
  187. package/lib/lowcode/engine/meta/form.props.json +117 -0
  188. package/lib/lowcode/engine/meta/iframe.props.default.json +11 -0
  189. package/lib/lowcode/engine/meta/iframe.props.json +32 -0
  190. package/lib/lowcode/engine/meta/image.props.default.json +16 -0
  191. package/lib/lowcode/engine/meta/image.props.json +114 -0
  192. package/lib/lowcode/engine/meta/imex.props.default.json +12 -0
  193. package/lib/lowcode/engine/meta/imex.props.json +82 -0
  194. package/lib/lowcode/engine/meta/js-editor/auto-complete.json +29 -0
  195. package/lib/lowcode/engine/meta/jsx.props.default.json +10 -0
  196. package/lib/lowcode/engine/meta/jsx.props.json +25 -0
  197. package/lib/lowcode/engine/meta/layout.props.default.json +13 -0
  198. package/lib/lowcode/engine/meta/layout.props.json +108 -0
  199. package/lib/lowcode/engine/meta/link.props.default.json +14 -0
  200. package/lib/lowcode/engine/meta/link.props.json +112 -0
  201. package/lib/lowcode/engine/meta/section.props.default.json +17 -0
  202. package/lib/lowcode/engine/meta/section.props.json +108 -0
  203. package/lib/lowcode/engine/meta/split.props.default.json +13 -0
  204. package/lib/lowcode/engine/meta/split.props.json +72 -0
  205. package/lib/lowcode/engine/meta/table.props.default.json +18 -0
  206. package/lib/lowcode/engine/meta/table.props.json +162 -0
  207. package/lib/lowcode/engine/meta/tabs.props.default.json +18 -0
  208. package/lib/lowcode/engine/meta/tabs.props.json +141 -0
  209. package/lib/lowcode/engine/meta/text.props.default.json +12 -0
  210. package/lib/lowcode/engine/meta/text.props.json +66 -0
  211. package/lib/lowcode/engine/meta/tree.props.default.json +17 -0
  212. package/lib/lowcode/engine/meta/tree.props.json +157 -0
  213. package/lib/lowcode/engine/provider/ContextProvider.js +173 -0
  214. package/lib/lowcode/engine/provider/EventBusProvider.js +128 -0
  215. package/lib/lowcode/engine/tools/dataProcess.js +277 -0
  216. package/lib/lowcode/engine/tools/helper.js +11 -0
  217. package/lib/lowcode/engine/tools/lcid.js +22 -0
  218. package/lib/lowcode/index.js +20 -0
  219. package/lib/lowcode/painter/Components.js +112 -0
  220. package/lib/lowcode/painter/Design.js +218 -0
  221. package/lib/lowcode/painter/I18n.js +209 -0
  222. package/lib/lowcode/painter/Outline.js +216 -0
  223. package/lib/lowcode/painter/Panel.js +203 -0
  224. package/lib/lowcode/painter/Ribbon.js +150 -0
  225. package/lib/lowcode/painter/components/PanelItem.js +41 -0
  226. package/lib/lowcode/painter/components/PopConfirm.js +26 -0
  227. package/lib/lowcode/painter/components/PopForm.js +77 -0
  228. package/lib/lowcode/painter/components/RuleInput.js +112 -0
  229. package/lib/lowcode/painter/components/SortBox.js +99 -0
  230. package/lib/lowcode/painter/components/TabEditor.js +94 -0
  231. package/lib/lowcode/painter/components/code-editor/BaseEditor.js +57 -0
  232. package/lib/lowcode/painter/components/code-editor/JSEditor.js +88 -0
  233. package/lib/lowcode/painter/components/code-editor/index.js +20 -0
  234. package/lib/lowcode/painter/index.js +54 -0
  235. package/lib/lowcode/painter/panel-section/Icon.js +54 -0
  236. package/lib/lowcode/painter/panel-section/IconSelector.js +146 -0
  237. package/lib/lowcode/painter/panel-section/LayoutRatio.js +148 -0
  238. package/lib/lowcode/painter/panel-section/TabItems.js +246 -0
  239. package/lib/lowcode/painter/services/I18n.js +95 -0
  240. package/lib/lowcode/painter/style/components.less +90 -0
  241. package/lib/lowcode/painter/style/design.less +82 -0
  242. package/lib/lowcode/painter/style/icon-selector.less +22 -0
  243. package/lib/lowcode/painter/style/icon.less +11 -0
  244. package/lib/lowcode/painter/style/index.less +6 -0
  245. package/lib/lowcode/painter/style/layout-ratio.less +51 -0
  246. package/lib/lowcode/painter/style/outline.less +28 -0
  247. package/lib/lowcode/painter/style/panel-item.less +22 -0
  248. package/lib/lowcode/painter/style/panel.less +119 -0
  249. package/lib/lowcode/painter/style/pop-confirm.less +10 -0
  250. package/lib/lowcode/painter/style/pop-form.less +20 -0
  251. package/lib/lowcode/painter/style/radio.less +24 -0
  252. package/lib/lowcode/painter/style/ribbon.less +5 -0
  253. package/lib/lowcode/painter/style/rule-input.less +13 -0
  254. package/lib/lowcode/painter/style/tabeditor.less +90 -0
  255. package/lib/lowcode/painter/style/tabitems.less +90 -0
  256. package/lib/lowcode/view/Canvas.js +150 -0
  257. package/lib/lowcode/view/Loading.js +30 -0
  258. package/lib/lowcode/view/Page.js +259 -0
  259. package/lib/lowcode/view/index.js +25 -0
  260. package/lib/lowcode/view/lc-components/Box/index.js +32 -0
  261. package/lib/lowcode/view/lc-components/Box/meta.json +40 -0
  262. package/lib/lowcode/view/lc-components/Button/index.js +45 -0
  263. package/lib/lowcode/view/lc-components/Button/meta.json +117 -0
  264. package/lib/lowcode/view/lc-components/CardList/index.js +28 -0
  265. package/lib/lowcode/view/lc-components/CardList/meta.json +144 -0
  266. package/lib/lowcode/view/lc-components/Dialog/index.js +69 -0
  267. package/lib/lowcode/view/lc-components/Dialog/index.less +3 -0
  268. package/lib/lowcode/view/lc-components/Dialog/meta.json +121 -0
  269. package/lib/lowcode/view/lc-components/Drawer/index.js +70 -0
  270. package/lib/lowcode/view/lc-components/Drawer/meta.json +144 -0
  271. package/lib/lowcode/view/lc-components/Drawer/style.less +7 -0
  272. package/lib/lowcode/view/lc-components/Form/index.js +28 -0
  273. package/lib/lowcode/view/lc-components/Form/meta.json +117 -0
  274. package/lib/lowcode/view/lc-components/Iframe/index.js +28 -0
  275. package/lib/lowcode/view/lc-components/Iframe/meta.json +32 -0
  276. package/lib/lowcode/view/lc-components/ImEx/index.js +28 -0
  277. package/lib/lowcode/view/lc-components/ImEx/meta.json +82 -0
  278. package/lib/lowcode/view/lc-components/Image/index.js +28 -0
  279. package/lib/lowcode/view/lc-components/Image/meta.json +114 -0
  280. package/lib/lowcode/view/lc-components/JSX/index.js +28 -0
  281. package/lib/lowcode/view/lc-components/JSX/meta.json +25 -0
  282. package/lib/lowcode/view/lc-components/Layout/index.js +106 -0
  283. package/lib/lowcode/view/lc-components/Layout/index.less +9 -0
  284. package/lib/lowcode/view/lc-components/Layout/meta.json +108 -0
  285. package/lib/lowcode/view/lc-components/Link/index.js +28 -0
  286. package/lib/lowcode/view/lc-components/Link/meta.json +112 -0
  287. package/lib/lowcode/view/lc-components/Section/index.js +42 -0
  288. package/lib/lowcode/view/lc-components/Section/meta.json +108 -0
  289. package/lib/lowcode/view/lc-components/Split/index.js +29 -0
  290. package/lib/lowcode/view/lc-components/Split/meta.json +72 -0
  291. package/lib/lowcode/view/lc-components/Table/index.js +31 -0
  292. package/lib/lowcode/view/lc-components/Table/meta.json +162 -0
  293. package/lib/lowcode/view/lc-components/Tabs/index.js +29 -0
  294. package/lib/lowcode/view/lc-components/Tabs/meta.json +141 -0
  295. package/lib/lowcode/view/lc-components/Text/index.js +31 -0
  296. package/lib/lowcode/view/lc-components/Text/meta.json +66 -0
  297. package/lib/lowcode/view/lc-components/Tree/index.js +28 -0
  298. package/lib/lowcode/view/lc-components/Tree/meta.json +157 -0
  299. package/lib/lowcode/view/lc-components/Wrapper.js +59 -0
  300. package/lib/lowcode/view/style/canvas.less +5 -0
  301. package/lib/lowcode/view/style/loading.less +84 -0
  302. package/lib/lowcode/view/style/page.less +5 -0
  303. package/lib/upload/Form/index.less +7 -7
  304. package/lib/upload/FormItem/index.js +15 -15
  305. package/lib/utils/form.js +22 -22
  306. package/lib/utils/grid.js +2 -2
  307. package/lowcode.js +1 -0
  308. package/package.json +163 -151
  309. package/upload.js +1 -1
  310. package/utils.js +1 -1
@@ -0,0 +1,84 @@
1
+ .lc-painter-loading {
2
+ position: absolute;
3
+ height: 64px;
4
+ width: 64px;
5
+ left: calc(50% - 32px);
6
+ top: calc(50% - 32px);
7
+ -webkit-transform: translateX(-50%) translateY(-50%);
8
+ transform: translateX(-50%) translateY(-50%);
9
+ -webkit-perspective: 400px;
10
+ perspective: 400px;
11
+ }
12
+ .cube {
13
+ height: 64px;
14
+ width: 64px;
15
+ -webkit-transform-origin: 50% 50%;
16
+ transform-origin: 50% 50%;
17
+ -webkit-transform-style: preserve-3d;
18
+ transform-style: preserve-3d;
19
+ -webkit-animation: rotate 4s infinite ease-in-out;
20
+ animation: rotate 4s infinite ease-in-out;
21
+ }
22
+ .side {
23
+ position: absolute;
24
+ display: block;
25
+ height: 64px;
26
+ width: 64px;
27
+ border-radius: 4px;
28
+ }
29
+ .side1 {
30
+ background: #41c3ac;
31
+ -webkit-transform: translateZ(46px);
32
+ transform: translateZ(46px);
33
+ }
34
+ .side2 {
35
+ background: #ff884d;
36
+ -webkit-transform: rotateY(90deg) translateZ(46px);
37
+ transform: rotateY(90deg) translateZ(46px);
38
+ }
39
+ .side3 {
40
+ background: #32526e;
41
+ -webkit-transform: rotateY(180deg) translateZ(46px);
42
+ transform: rotateY(180deg) translateZ(46px);
43
+ }
44
+ .side4 {
45
+ background: #65a2c5;
46
+ -webkit-transform: rotateY(-90deg) translateZ(46px);
47
+ transform: rotateY(-90deg) translateZ(46px);
48
+ }
49
+ .side5 {
50
+ background: #ffcc5c;
51
+ -webkit-transform: rotateX(90deg) translateZ(46px);
52
+ transform: rotateX(90deg) translateZ(46px);
53
+ }
54
+ .side6 {
55
+ background: #ff6b57;
56
+ -webkit-transform: rotateX(-90deg) translateZ(46px);
57
+ transform: rotateX(-90deg) translateZ(46px);
58
+ }
59
+
60
+ @-webkit-keyframes rotate {
61
+ 0% {
62
+ -webkit-transform: rotateX(0deg) rotateY(0deg) rotateZ(0deg);
63
+ }
64
+ 33.33% {
65
+ -webkit-transform: rotateX(360deg) rotateY(0deg) rotateZ(0deg);
66
+ }
67
+ 66.66% {
68
+ -webkit-transform: rotateX(360deg) rotateY(360deg) rotateZ(0deg);
69
+ }
70
+ 100% {
71
+ -webkit-transform: rotateX(360deg) rotateY(360deg) rotateZ(360deg);
72
+ }
73
+ }
74
+ @keyframes rotate {
75
+ 0% {
76
+ transform: rotateX(0deg) rotateY(0deg);
77
+ }
78
+ 50% {
79
+ transform: rotateX(360deg) rotateY(0deg);
80
+ }
81
+ 100% {
82
+ transform: rotateX(360deg) rotateY(360deg);
83
+ }
84
+ }
@@ -0,0 +1,5 @@
1
+ .lc-view-page {
2
+ position: relative;
3
+ width: 100%;
4
+ height: 100%;
5
+ }
@@ -1,7 +1,7 @@
1
- .fileGrid {
2
- :global {
3
- .ag-root-wrapper-body.ag-layout-normal {
4
- height: 100% !important;
5
- }
6
- }
7
- }
1
+ .fileGrid {
2
+ :global {
3
+ .ag-root-wrapper-body.ag-layout-normal {
4
+ height: 100% !important;
5
+ }
6
+ }
7
+ }
@@ -13,21 +13,21 @@ var _luckDesign = require("luck-design");
13
13
  var _utils = require("@luck-design-biz/base/utils");
14
14
  var _ahooks = require("ahooks");
15
15
  var _excluded = ["uploadUrl", "moduleCode", "bucket", "tag", "note", "config", "forbiddenTypes", "children", "dataFormat", "listType"];
16
- /**
17
- * 表单类型富文本上传
18
- * 是否实体字段: 是
19
- * 是否接受tag: 是
20
- * 是否虚拟主键: 否
21
- * 接受参数:
22
- * name: 附件名称逗号拼接
23
- * name_virtual: [{...// 附件所有参数}]
24
- * ### name=name_virtual ###
25
- * 传参:
26
- * name: [{objectName, marker},...]
27
- * 其他需求:
28
- * 支持beforeUpload禁止附加类型
29
- * =>beforeUpload禁止类型全覆盖
30
- * =>forbiddenTypes和配置管理中禁止类型合并
16
+ /**
17
+ * 表单类型富文本上传
18
+ * 是否实体字段: 是
19
+ * 是否接受tag: 是
20
+ * 是否虚拟主键: 否
21
+ * 接受参数:
22
+ * name: 附件名称逗号拼接
23
+ * name_virtual: [{...// 附件所有参数}]
24
+ * ### name=name_virtual ###
25
+ * 传参:
26
+ * name: [{objectName, marker},...]
27
+ * 其他需求:
28
+ * 支持beforeUpload禁止附加类型
29
+ * =>beforeUpload禁止类型全覆盖
30
+ * =>forbiddenTypes和配置管理中禁止类型合并
31
31
  */
32
32
 
33
33
  function buildComponent(props) {
package/lib/utils/form.js CHANGED
@@ -26,11 +26,11 @@ var _excluded = ["comName", "property"],
26
26
  _excluded7 = ["formItemRewrite"],
27
27
  _excluded8 = ["name"],
28
28
  _excluded9 = ["type", "name"];
29
- /**
30
- * 根据动态表单配置项生成formItem
31
- * @param {动态表单配置项} props
32
- * @param {自定义动态表单配置项} customProps
33
- * @returns <BasicForm name='' ... />
29
+ /**
30
+ * 根据动态表单配置项生成formItem
31
+ * @param {动态表单配置项} props
32
+ * @param {自定义动态表单配置项} customProps
33
+ * @returns <BasicForm name='' ... />
34
34
  */
35
35
  function getFormItem() {
36
36
  var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
@@ -63,11 +63,11 @@ function getFormItem() {
63
63
  }));
64
64
  }
65
65
 
66
- /**
67
- * 根据后端返回数据组装表单数据
68
- * @param {数组---动态表单配置参数列表} propsList
69
- * @param {对象---后端返回的未处理数据} values
70
- * @returns
66
+ /**
67
+ * 根据后端返回数据组装表单数据
68
+ * @param {数组---动态表单配置参数列表} propsList
69
+ * @param {对象---后端返回的未处理数据} values
70
+ * @returns
71
71
  */
72
72
  var formItemDataFormat = exports.formItemDataFormat = function formItemDataFormat() {
73
73
  var propsList = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
@@ -105,7 +105,7 @@ var formItemDataFormat = exports.formItemDataFormat = function formItemDataForma
105
105
  result[name] = values[name] ? JSON.parse(values[name]) : undefined;
106
106
  break;
107
107
  case 'year':
108
- result[name] = values["".concat(name, "_virtual")] ? (0, _moment.default)(values["".concat(name, "_virtual")], 'YYYY') : undefined;
108
+ result[name] = values[name] ? (0, _moment.default)(values[name], 'YYYY') : undefined;
109
109
  break;
110
110
  case 'radio':
111
111
  result[name] = values[name];
@@ -131,11 +131,11 @@ var formItemDataFormat = exports.formItemDataFormat = function formItemDataForma
131
131
  return (0, _objectSpread2.default)((0, _objectSpread2.default)({}, omitValues), data);
132
132
  };
133
133
 
134
- /**
135
- * 数据格式化
136
- * @param {数组---动态表单配置参数列表} propsList
137
- * @param {对象---表单获取到的未处理数据} values
138
- * @returns
134
+ /**
135
+ * 数据格式化
136
+ * @param {数组---动态表单配置参数列表} propsList
137
+ * @param {对象---表单获取到的未处理数据} values
138
+ * @returns
139
139
  */
140
140
  var dataFormat = exports.dataFormat = function dataFormat() {
141
141
  var propsList = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
@@ -194,12 +194,12 @@ var dataFormat = exports.dataFormat = function dataFormat() {
194
194
  return (0, _objectSpread2.default)((0, _objectSpread2.default)({}, values), data);
195
195
  };
196
196
 
197
- /**
198
- *
199
- * @param formType
200
- * @param props
201
- * @param customProps
202
- * @returns {*&{field: *, editable: (false|{required: *}), renderBasicFormItem: ((function(): (*))|*), title, render: *}}
197
+ /**
198
+ *
199
+ * @param formType
200
+ * @param props
201
+ * @param customProps
202
+ * @returns {*&{field: *, editable: (false|{required: *}), renderBasicFormItem: ((function(): (*))|*), title, render: *}}
203
203
  */
204
204
  var getFormColumn = exports.getFormColumn = function getFormColumn() {
205
205
  var _props$config;
package/lib/utils/grid.js CHANGED
@@ -44,8 +44,8 @@ function getColumnRender(name, type) {
44
44
  };
45
45
  break;
46
46
  case 'year':
47
- render = function render(text, record) {
48
- return record["".concat(name, "_virtual")] || (text ? (0, _moment.default)(text).format('YYYY-MM-DD') : undefined);
47
+ render = function render(text) {
48
+ return text;
49
49
  };
50
50
  break;
51
51
  case 'user':
package/lowcode.js ADDED
@@ -0,0 +1 @@
1
+ module.exports = require('./es/lowcode');
package/package.json CHANGED
@@ -1,151 +1,163 @@
1
- {
2
- "name": "@luck-design-biz/luckda",
3
- "version": "0.0.22-4",
4
- "description": "前端配置管理中心业务组件库",
5
- "scripts": {
6
- "start": "cross-env NODE_OPTIONS=--max-old-space-size=10240 USER_RUNTIME=SITE RUNTIME=dev umi dev",
7
- "build": "umi build",
8
- "build-biz": "father build",
9
- "async": "npm run build-biz && yalc push",
10
- "release": "npm run build-biz && npm publish",
11
- "prettier": "prettier --write \"**/*.{js,jsx,tsx,ts,less,md,json}\"",
12
- "test": "umi-test",
13
- "test:coverage": "umi-test --coverage",
14
- "watch": "nodemon --ignore dist/ --ignore node_modules/ --watch src/ -C -e js,jsx,less --debug -x 'tnpm run async'"
15
- },
16
- "files": [
17
- "es",
18
- "lib",
19
- "utils.js",
20
- "upload.js"
21
- ],
22
- "main": "lib/index.js",
23
- "module": "es/index.js",
24
- "gitHooks": {
25
- "pre-commit": "lint-staged"
26
- },
27
- "engines": {
28
- "node": ">=16",
29
- "pnpm": ">=7.14.0"
30
- },
31
- "license": "MIT",
32
- "repository": {
33
- "type": "git",
34
- "url": "git+https://github.com/xieyt203/luck-biz-components.git",
35
- "branch": "main"
36
- },
37
- "lint-staged": {
38
- "**/*.less": "stylelint --syntax less",
39
- "**/*.{js,jsx,tsx,ts,less,md,json}": [
40
- "prettier --write",
41
- "git add"
42
- ],
43
- "**/*.{js,ts,jsx,tsx}": "npm run lint-staged:js"
44
- },
45
- "dependencies": {
46
- "@babel/runtime": "^7.18.9",
47
- "ahooks": "^3.7.0",
48
- "classnames": "^2.3.1",
49
- "lodash": "^4.17.11",
50
- "moment": "^2.24.0",
51
- "prop-types": "^15.8.1",
52
- "querystring": "^0.2.0",
53
- "react": "^16.12.0"
54
- },
55
- "devDependencies": {
56
- "@amap/amap-jsapi-loader": "^0.0.7",
57
- "@luck-helper/ui-design": "0.0.4",
58
- "@umijs/plugin-qiankun": "^2.41.0",
59
- "@umijs/preset-react": "~1.8.31",
60
- "@luck-design-biz/base": "0.0.40",
61
- "@luck-design-biz/bpm": "0.0.3",
62
- "luck-design": "0.1.72",
63
- "bpmn-js": "^7.5.0",
64
- "bpmn-js-properties-panel": "^0.35.0",
65
- "d3-selection": "^1.4.2",
66
- "gm-crypt": "^0.0.2",
67
- "js-cookie": "^2.2.1",
68
- "nprogress": "^0.2.0",
69
- "promise-sequential": "^1.1.1",
70
- "qrcode.react": "^1.0.1",
71
- "qs": "^6.11.0",
72
- "raphael": "^2.3.0",
73
- "react-copy-to-clipboard": "^5.1.0",
74
- "react-device-detect": "^1.17.0",
75
- "react-dnd": "^9.5.1",
76
- "react-dnd-html5-backend": "^9.5.1",
77
- "react-dom": "^16.14.0",
78
- "react-helmet": "^5.2.1",
79
- "react-iframe": "^1.8.5",
80
- "react-loading": "^2.0.3",
81
- "react-viewer": "^3.2.2",
82
- "resizable": "^1.2.1",
83
- "umi": "^3.5.35",
84
- "uuid": "^9.0.1",
85
- "@ant-design/pro-cli": "^1.0.28",
86
- "@babel/core": "^7.20.2",
87
- "@babel/eslint-parser": "^7.19.1",
88
- "@babel/plugin-proposal-class-properties": "^7.18.6",
89
- "@babel/plugin-proposal-decorators": "^7.20.2",
90
- "@babel/plugin-transform-strict-mode": "^7.18.6",
91
- "@babel/polyfill": "^7.12.1",
92
- "@types/classnames": "^2.3.1",
93
- "@types/express": "^4.17.14",
94
- "@types/history": "^4.7.11",
95
- "@types/lodash": "^4.14.189",
96
- "@types/qs": "^6.9.7",
97
- "@types/react": "^16.14.34",
98
- "@types/react-dom": "^16.9.17",
99
- "@types/react-helmet": "^5.0.20",
100
- "@umijs/fabric": "^2.14.0",
101
- "chalk": "^3.0.0",
102
- "check-prettier": "^1.0.3",
103
- "compression-webpack-plugin": "^6.1.1",
104
- "core-js": "^3.26.1",
105
- "cross-env": "^6.0.3",
106
- "cross-port-killer": "^1.4.0",
107
- "cross-var": "^1.1.0",
108
- "dry-dry": "^0.4.0",
109
- "enzyme": "^3.11.0",
110
- "eslint": "^7.32.0",
111
- "eslint-plugin-babel": "^5.3.1",
112
- "eslint-plugin-react": "^7.31.10",
113
- "eslint-plugin-react-hooks": "^4.6.0",
114
- "express": "^4.18.2",
115
- "father": "^4.3.1",
116
- "gh-pages": "^2.2.0",
117
- "husky": "^7.0.4",
118
- "import-sort-cli": "^6.0.0",
119
- "import-sort-parser-babylon": "^6.0.0",
120
- "import-sort-parser-typescript": "^6.0.0",
121
- "import-sort-style-module": "^6.0.0",
122
- "jsdom-global": "^3.0.2",
123
- "lint-staged": "^11.2.6",
124
- "node-fetch": "^2.6.7",
125
- "only-allow": "^1.1.1",
126
- "prettier": "^2.7.1",
127
- "pro-download": "1.0.1",
128
- "slash2": "^2.0.0",
129
- "stylelint": "^13.13.1",
130
- "umi-types": "^0.5.14"
131
- },
132
- "peerDependencies": {
133
- "@luck-design-biz/base": ">= 0.0.10",
134
- "@luck-design-biz/bpm": ">= 0.0.1",
135
- "luck-design": ">=0.1.51"
136
- },
137
- "pnpm": {
138
- "overrides": {
139
- "immer": "^2.1.1"
140
- }
141
- },
142
- "bugs": {
143
- "url": "https://github.com/xieyt203/luck-biz-components/issues"
144
- },
145
- "homepage": "https://github.com/xieyt203/luck-biz-components#readme",
146
- "directories": {
147
- "doc": "docs",
148
- "lib": "lib"
149
- },
150
- "author": ""
151
- }
1
+ {
2
+ "name": "@luck-design-biz/luckda",
3
+ "version": "0.0.22-5",
4
+ "description": "前端配置管理中心业务组件库",
5
+ "scripts": {
6
+ "start": "cross-env NODE_OPTIONS=--max-old-space-size=10240 USER_RUNTIME=SITE RUNTIME=dev umi dev",
7
+ "build": "umi build",
8
+ "build-biz": "npm run meta && father build",
9
+ "async": "npm run build-biz && yalc push",
10
+ "lint-staged:js": "eslint --ext .js,.jsx,.ts,.tsx",
11
+ "release": "npm run build-biz && npm publish",
12
+ "prettier": "prettier --write \"**/*.{js,jsx,tsx,ts,less,md,json}\"",
13
+ "test": "umi-test",
14
+ "test:coverage": "umi-test --coverage",
15
+ "watch": "nodemon --ignore dist/ --ignore node_modules/ --watch src/ -C -e js,jsx,less --debug -x 'tnpm run async'",
16
+ "meta": "node generateMeta.js"
17
+ },
18
+ "files": [
19
+ "es",
20
+ "lib",
21
+ "utils.js",
22
+ "upload.js",
23
+ "lowcode.js"
24
+ ],
25
+ "main": "lib/index.js",
26
+ "module": "es/index.js",
27
+ "gitHooks": {
28
+ "pre-commit": "lint-staged"
29
+ },
30
+ "engines": {
31
+ "node": ">=16",
32
+ "pnpm": ">=7.14.0"
33
+ },
34
+ "license": "MIT",
35
+ "repository": {
36
+ "type": "git",
37
+ "url": "git+https://github.com/xieyt203/luck-biz-components.git",
38
+ "branch": "main"
39
+ },
40
+ "lint-staged": {
41
+ "**/*.less": "stylelint --syntax less",
42
+ "**/*.{js,jsx,tsx,ts,less,md,json}": [
43
+ "prettier --write",
44
+ "git add"
45
+ ],
46
+ "**/*.{js,ts,jsx,tsx}": "npm run lint-staged:js"
47
+ },
48
+ "dependencies": {
49
+ "@ahooksjs/use-url-state": "^3.5.1",
50
+ "@babel/runtime": "^7.18.9",
51
+ "@babel/standalone": "^7.24.0",
52
+ "@dnd-kit/core": "^6.1.0",
53
+ "@dnd-kit/sortable": "^8.0.0",
54
+ "@dnd-kit/utilities": "^3.2.2",
55
+ "ahooks": "^3.7.0",
56
+ "classnames": "^2.3.1",
57
+ "lodash": "^4.17.11",
58
+ "lz-string": "^1.5.0",
59
+ "moment": "^2.24.0",
60
+ "monaco-editor": "0.30.*",
61
+ "prop-types": "^15.8.1",
62
+ "querystring": "^0.2.0",
63
+ "react": "^16.12.0"
64
+ },
65
+ "devDependencies": {
66
+ "@amap/amap-jsapi-loader": "^0.0.7",
67
+ "@ant-design/pro-cli": "^1.0.28",
68
+ "@babel/core": "^7.20.2",
69
+ "@babel/eslint-parser": "^7.19.1",
70
+ "@babel/plugin-proposal-class-properties": "^7.18.6",
71
+ "@babel/plugin-proposal-decorators": "^7.20.2",
72
+ "@babel/plugin-transform-strict-mode": "^7.18.6",
73
+ "@babel/polyfill": "^7.12.1",
74
+ "@luck-design-biz/base": "0.0.40",
75
+ "@luck-design-biz/bpm": "0.0.3",
76
+ "@luck-helper/ui-design": "0.0.4-4",
77
+ "@types/classnames": "^2.3.1",
78
+ "@types/express": "^4.17.14",
79
+ "@types/history": "^4.7.11",
80
+ "@types/lodash": "^4.14.189",
81
+ "@types/qs": "^6.9.7",
82
+ "@types/react": "^16.14.34",
83
+ "@types/react-dom": "^16.9.17",
84
+ "@types/react-helmet": "^5.0.20",
85
+ "@umijs/fabric": "^2.14.0",
86
+ "@umijs/plugin-qiankun": "^2.41.0",
87
+ "@umijs/preset-react": "~1.8.31",
88
+ "bpmn-js": "^7.5.0",
89
+ "bpmn-js-properties-panel": "^0.35.0",
90
+ "chalk": "^3.0.0",
91
+ "check-prettier": "^1.0.3",
92
+ "compression-webpack-plugin": "^6.1.1",
93
+ "core-js": "^3.26.1",
94
+ "cross-env": "^6.0.3",
95
+ "cross-port-killer": "^1.4.0",
96
+ "cross-var": "^1.1.0",
97
+ "d3-selection": "^1.4.2",
98
+ "dry-dry": "^0.4.0",
99
+ "enzyme": "^3.11.0",
100
+ "eslint": "^7.32.0",
101
+ "eslint-plugin-babel": "^5.3.1",
102
+ "eslint-plugin-react": "^7.31.10",
103
+ "eslint-plugin-react-hooks": "^4.6.0",
104
+ "express": "^4.18.2",
105
+ "father": "^4.3.1",
106
+ "gh-pages": "^2.2.0",
107
+ "gm-crypt": "^0.0.2",
108
+ "husky": "^7.0.4",
109
+ "import-sort-cli": "^6.0.0",
110
+ "import-sort-parser-babylon": "^6.0.0",
111
+ "import-sort-parser-typescript": "^6.0.0",
112
+ "import-sort-style-module": "^6.0.0",
113
+ "js-cookie": "^2.2.1",
114
+ "jsdom-global": "^3.0.2",
115
+ "lint-staged": "^11.2.6",
116
+ "luck-design": "0.1.72",
117
+ "monaco-editor-webpack-plugin": "6.*.*",
118
+ "node-fetch": "^2.6.7",
119
+ "nprogress": "^0.2.0",
120
+ "only-allow": "^1.1.1",
121
+ "prettier": "^2.7.1",
122
+ "pro-download": "1.0.1",
123
+ "promise-sequential": "^1.1.1",
124
+ "qrcode.react": "^1.0.1",
125
+ "qs": "^6.11.0",
126
+ "raphael": "^2.3.0",
127
+ "react-copy-to-clipboard": "^5.1.0",
128
+ "react-device-detect": "^1.17.0",
129
+ "react-dnd": "^9.5.1",
130
+ "react-dnd-html5-backend": "^9.5.1",
131
+ "react-dom": "^16.14.0",
132
+ "react-helmet": "^5.2.1",
133
+ "react-iframe": "^1.8.5",
134
+ "react-loading": "^2.0.3",
135
+ "react-viewer": "^3.2.2",
136
+ "resizable": "^1.2.1",
137
+ "slash2": "^2.0.0",
138
+ "stylelint": "^13.13.1",
139
+ "umi": "^3.5.35",
140
+ "umi-types": "^0.5.14",
141
+ "yorkie": "2.0.0"
142
+ },
143
+ "peerDependencies": {
144
+ "@luck-design-biz/base": ">= 0.0.10",
145
+ "@luck-design-biz/bpm": ">= 0.0.1",
146
+ "luck-design": ">=0.1.51",
147
+ "uuid": "^9.0.1"
148
+ },
149
+ "pnpm": {
150
+ "overrides": {
151
+ "immer": "^2.1.1"
152
+ }
153
+ },
154
+ "bugs": {
155
+ "url": "https://github.com/xieyt203/luck-biz-components/issues"
156
+ },
157
+ "homepage": "https://github.com/xieyt203/luck-biz-components#readme",
158
+ "directories": {
159
+ "doc": "docs",
160
+ "lib": "lib"
161
+ },
162
+ "author": ""
163
+ }
package/upload.js CHANGED
@@ -1 +1 @@
1
- module.exports = require('./es/upload');
1
+ module.exports = require('./es/upload');
package/utils.js CHANGED
@@ -1 +1 @@
1
- module.exports = require('./es/utils');
1
+ module.exports = require('./es/utils');