@luck-design-biz/luckda 1.0.1-1 → 1.0.1-11

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 (400) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +40 -40
  3. package/es/components/LDActions/index.less +68 -68
  4. package/es/components/LdFormList/index.js +20 -6
  5. package/es/components/LdGrid/index.js +4 -4
  6. package/es/components/LdGridForm/index.js +40 -24
  7. package/es/components/LdGridForm/index.less +7 -7
  8. package/es/components/LdTree/index.less +40 -40
  9. package/es/helper/action.js +6 -6
  10. package/es/helper/form.js +14 -14
  11. package/es/helper/index.less +7 -7
  12. package/es/locales/zh-CN.js +3 -3
  13. package/es/lowcode/constants/api-url.js +87 -87
  14. package/es/lowcode/engine/meta/cardlist.props.default.json +1 -0
  15. package/es/lowcode/engine/meta/cardlist.props.json +2 -1
  16. package/es/lowcode/engine/meta/components-list.json +6 -126
  17. package/es/lowcode/engine/meta/dialog.props.default.json +4 -2
  18. package/es/lowcode/engine/meta/dialog.props.json +74 -18
  19. package/es/lowcode/engine/meta/drawer.props.default.json +15 -4
  20. package/es/lowcode/engine/meta/drawer.props.json +144 -24
  21. package/es/lowcode/engine/meta/fielddatadic.props.default.json +16 -0
  22. package/es/lowcode/engine/meta/fielddatadic.props.json +73 -0
  23. package/es/lowcode/engine/meta/form.props.default.json +1 -0
  24. package/es/lowcode/engine/meta/form.props.json +2 -1
  25. package/es/lowcode/engine/meta/grouptree.props.default.json +16 -0
  26. package/es/lowcode/engine/meta/grouptree.props.json +89 -0
  27. package/es/lowcode/engine/meta/iframe.props.default.json +1 -0
  28. package/es/lowcode/engine/meta/iframe.props.json +2 -1
  29. package/es/lowcode/engine/meta/image.props.default.json +1 -0
  30. package/es/lowcode/engine/meta/image.props.json +2 -1
  31. package/es/lowcode/engine/meta/imex.props.json +1 -1
  32. package/es/lowcode/engine/meta/js-editor/auto-complete.json +35 -30
  33. package/es/lowcode/engine/meta/link.props.default.json +1 -0
  34. package/es/lowcode/engine/meta/link.props.json +2 -1
  35. package/es/lowcode/engine/meta/table.props.json +1 -1
  36. package/es/lowcode/engine/meta/tree.props.json +2 -2
  37. package/es/lowcode/engine/provider/ContextProvider/index.js +44 -44
  38. package/es/lowcode/engine/tools/dataProcess.js +76 -76
  39. package/es/lowcode/engine/tools/helper.js +21 -0
  40. package/es/lowcode/engine/tools/useCanvasRender.js +13 -1
  41. package/es/lowcode/painter/Components.js +2 -2
  42. package/es/lowcode/painter/Design.js +1 -0
  43. package/es/lowcode/painter/DesignOperator.js +15 -10
  44. package/es/lowcode/painter/components/Collapse.js +26 -26
  45. package/es/lowcode/painter/components/ColorInput.js +24 -24
  46. package/es/lowcode/painter/components/ListEditor.js +24 -24
  47. package/es/lowcode/painter/components/NumberInput.js +29 -29
  48. package/es/lowcode/painter/components/PanelItem.js +24 -24
  49. package/es/lowcode/painter/components/PopConfirm.js +8 -8
  50. package/es/lowcode/painter/components/PopForm.js +27 -27
  51. package/es/lowcode/painter/components/RuleInput.js +30 -30
  52. package/es/lowcode/painter/components/SortBox.js +22 -22
  53. package/es/lowcode/painter/components/code-editor/BaseEditor.js +32 -32
  54. package/es/lowcode/painter/components/code-editor/CssEditor.js +25 -25
  55. package/es/lowcode/painter/components/code-editor/FullScreenEditor.js +23 -23
  56. package/es/lowcode/painter/components/code-editor/JSEditor.js +20 -20
  57. package/es/lowcode/painter/components/code-editor/JsonEditor.js +25 -25
  58. package/es/lowcode/painter/components/field-setting/SettingUI.js +8 -4
  59. package/es/lowcode/painter/panel-section/GroupClassSelector.js +55 -0
  60. package/es/lowcode/painter/panel-section/Icon.js +23 -23
  61. package/es/lowcode/painter/panel-section/IconSelector.js +16 -16
  62. package/es/lowcode/painter/panel-section/LayoutRatio.js +21 -21
  63. package/es/lowcode/painter/panel-section/PageVars.js +1 -1
  64. package/es/lowcode/painter/panel-section/StylePanel/BackGround.js +2 -2
  65. package/es/lowcode/painter/panel-section/StylePanel/Border.js +2 -2
  66. package/es/lowcode/painter/panel-section/StylePanel/BorderRadius.js +2 -2
  67. package/es/lowcode/painter/panel-section/StylePanel/BorderRadiusSelector.js +2 -2
  68. package/es/lowcode/painter/panel-section/StylePanel/BorderSelector.js +2 -2
  69. package/es/lowcode/painter/panel-section/StylePanel/Display.js +2 -2
  70. package/es/lowcode/painter/panel-section/StylePanel/Font.js +2 -2
  71. package/es/lowcode/painter/panel-section/StylePanel/FontEditor.js +2 -2
  72. package/es/lowcode/painter/panel-section/StylePanel/GapSelector.js +2 -2
  73. package/es/lowcode/painter/panel-section/StylePanel/HighLightPanel.js +2 -2
  74. package/es/lowcode/painter/panel-section/StylePanel/HighLigthtSpan.js +2 -2
  75. package/es/lowcode/painter/panel-section/StylePanel/HightLightSvg.js +2 -2
  76. package/es/lowcode/painter/panel-section/StylePanel/MainPanel.js +2 -2
  77. package/es/lowcode/painter/panel-section/StylePanel/Margin.js +2 -2
  78. package/es/lowcode/painter/panel-section/StylePanel/Opacity.js +2 -2
  79. package/es/lowcode/painter/panel-section/StylePanel/Padding.js +2 -2
  80. package/es/lowcode/painter/panel-section/StylePanel/Pointer.js +2 -2
  81. package/es/lowcode/painter/panel-section/StylePanel/Shadow.js +2 -2
  82. package/es/lowcode/painter/panel-section/StylePanel/Size.js +2 -2
  83. package/es/lowcode/painter/panel-section/StylePanel/StyleContext.js +2 -2
  84. package/es/lowcode/painter/panel-section/StylePanel/StyleRow.js +2 -2
  85. package/es/lowcode/painter/panel-section/StylePanel/WidthHeight.js +2 -2
  86. package/es/lowcode/painter/panel-section/StylePanel/index.js +15 -15
  87. package/es/lowcode/painter/style/action-bind-modal.less +102 -102
  88. package/es/lowcode/painter/style/actions-editor.less +15 -15
  89. package/es/lowcode/painter/style/border-editor.less +36 -36
  90. package/es/lowcode/painter/style/border-radius-selector.less +42 -42
  91. package/es/lowcode/painter/style/border-selector.less +39 -39
  92. package/es/lowcode/painter/style/button-type.less +5 -5
  93. package/es/lowcode/painter/style/collapse.less +28 -28
  94. package/es/lowcode/painter/style/color-input.less +19 -19
  95. package/es/lowcode/painter/style/components.less +91 -91
  96. package/es/lowcode/painter/style/design.less +166 -160
  97. package/es/lowcode/painter/style/display.less +17 -17
  98. package/es/lowcode/painter/style/dragdrop.less +10 -10
  99. package/es/lowcode/painter/style/fields-setting.less +25 -25
  100. package/es/lowcode/painter/style/font-editor.less +9 -9
  101. package/es/lowcode/painter/style/fullscreen-editor.less +17 -17
  102. package/es/lowcode/painter/style/icon-selector.less +22 -22
  103. package/es/lowcode/painter/style/icon.less +10 -10
  104. package/es/lowcode/painter/style/impexp.less +7 -7
  105. package/es/lowcode/painter/style/index.less +6 -6
  106. package/es/lowcode/painter/style/layout-ratio.less +51 -51
  107. package/es/lowcode/painter/style/list-editor.less +95 -95
  108. package/es/lowcode/painter/style/number-input.less +17 -17
  109. package/es/lowcode/painter/style/outline.less +28 -28
  110. package/es/lowcode/painter/style/page-layout-display.less +27 -27
  111. package/es/lowcode/painter/style/page-vars.less +25 -25
  112. package/es/lowcode/painter/style/panel-attrs.less +43 -43
  113. package/es/lowcode/painter/style/panel-item.less +54 -54
  114. package/es/lowcode/painter/style/panel.less +98 -98
  115. package/es/lowcode/painter/style/pop-confirm.less +17 -17
  116. package/es/lowcode/painter/style/pop-form.less +19 -19
  117. package/es/lowcode/painter/style/radio.less +24 -24
  118. package/es/lowcode/painter/style/ribbon.less +5 -5
  119. package/es/lowcode/painter/style/rule-input.less +12 -12
  120. package/es/lowcode/painter/style/split-display.less +18 -18
  121. package/es/lowcode/painter/style/style-panel.less +37 -37
  122. package/es/lowcode/painter/style/tabitems.less +90 -90
  123. package/es/lowcode/painter/style/treedragdrop.less +19 -19
  124. package/es/lowcode/view/lc-components/Box/index.js +4 -4
  125. package/es/lowcode/view/lc-components/Box/index.less +14 -14
  126. package/es/lowcode/view/lc-components/Box/meta.json +40 -40
  127. package/es/lowcode/view/lc-components/Button/index.js +33 -33
  128. package/es/lowcode/view/lc-components/Button/meta.json +127 -127
  129. package/es/lowcode/view/lc-components/Button/style.less +2 -2
  130. package/es/lowcode/view/lc-components/CardList/meta.json +154 -153
  131. package/es/lowcode/view/lc-components/Dialog/FunctionDesign.js +14 -6
  132. package/es/lowcode/view/lc-components/Dialog/index.js +28 -18
  133. package/es/lowcode/view/lc-components/Dialog/index.less +12 -8
  134. package/es/lowcode/view/lc-components/Dialog/meta.json +204 -150
  135. package/es/lowcode/view/lc-components/Drawer/FunctionDesign.js +51 -8
  136. package/es/lowcode/view/lc-components/Drawer/index.js +149 -34
  137. package/es/lowcode/view/lc-components/Drawer/index.less +13 -10
  138. package/es/lowcode/view/lc-components/Drawer/meta.json +242 -131
  139. package/es/lowcode/view/lc-components/FieldColor/meta.json +157 -157
  140. package/es/lowcode/view/lc-components/FieldComplex/meta.json +140 -140
  141. package/es/lowcode/view/lc-components/FieldDate/meta.json +141 -141
  142. package/es/lowcode/view/lc-components/FieldDict/meta.json +138 -138
  143. package/es/lowcode/view/lc-components/FieldEditor/meta.json +138 -138
  144. package/es/lowcode/view/lc-components/FieldGroup/meta.json +167 -167
  145. package/es/lowcode/view/lc-components/FieldNumber/meta.json +143 -143
  146. package/es/lowcode/view/lc-components/FieldRadio/meta.json +115 -115
  147. package/es/lowcode/view/lc-components/FieldRegion/meta.json +121 -121
  148. package/es/lowcode/view/lc-components/FieldSelect/meta.json +152 -152
  149. package/es/lowcode/view/lc-components/FieldString/meta.json +152 -152
  150. package/es/lowcode/view/lc-components/FieldSwitch/meta.json +125 -125
  151. package/es/lowcode/view/lc-components/FieldTextarea/meta.json +143 -143
  152. package/es/lowcode/view/lc-components/FieldUpload/meta.json +165 -165
  153. package/es/lowcode/view/lc-components/FieldUser/meta.json +176 -176
  154. package/es/lowcode/view/lc-components/FieldYear/meta.json +129 -129
  155. package/es/lowcode/view/lc-components/Form/FunctionDesign.js +2 -1
  156. package/es/lowcode/view/lc-components/Form/index.js +42 -33
  157. package/es/lowcode/view/lc-components/Form/meta.json +645 -644
  158. package/es/lowcode/view/lc-components/GroupTree/FunctionDesign.js +10 -0
  159. package/es/lowcode/view/lc-components/GroupTree/FunctionLive.js +10 -0
  160. package/es/lowcode/view/lc-components/GroupTree/FunctionPreview.js +10 -0
  161. package/es/lowcode/view/lc-components/GroupTree/index.js +201 -0
  162. package/es/lowcode/view/lc-components/GroupTree/meta.json +89 -0
  163. package/es/lowcode/view/lc-components/Iframe/meta.json +33 -32
  164. package/es/lowcode/view/lc-components/ImEx/index.js +25 -25
  165. package/es/lowcode/view/lc-components/ImEx/index.less +7 -7
  166. package/es/lowcode/view/lc-components/ImEx/meta.json +134 -134
  167. package/es/lowcode/view/lc-components/Image/meta.json +115 -114
  168. package/es/lowcode/view/lc-components/JSX/RuntimeComp.js +4 -4
  169. package/es/lowcode/view/lc-components/JSX/meta.json +28 -28
  170. package/es/lowcode/view/lc-components/Layout/index.js +16 -16
  171. package/es/lowcode/view/lc-components/Layout/index.less +5 -5
  172. package/es/lowcode/view/lc-components/Layout/meta.json +107 -107
  173. package/es/lowcode/view/lc-components/Link/meta.json +113 -112
  174. package/es/lowcode/view/lc-components/Page/meta.json +61 -61
  175. package/es/lowcode/view/lc-components/PageContent/meta.json +9 -9
  176. package/es/lowcode/view/lc-components/PageFooter/meta.json +9 -9
  177. package/es/lowcode/view/lc-components/PageHeader/meta.json +9 -9
  178. package/es/lowcode/view/lc-components/PageLayout/meta.json +59 -59
  179. package/es/lowcode/view/lc-components/Section/index.less +7 -7
  180. package/es/lowcode/view/lc-components/Section/meta.json +108 -108
  181. package/es/lowcode/view/lc-components/Split/meta.json +53 -53
  182. package/es/lowcode/view/lc-components/Table/index.js +149 -148
  183. package/es/lowcode/view/lc-components/Table/meta.json +450 -450
  184. package/es/lowcode/view/lc-components/Tabs/index.js +23 -23
  185. package/es/lowcode/view/lc-components/Tabs/meta.json +113 -113
  186. package/es/lowcode/view/lc-components/Text/meta.json +56 -56
  187. package/es/lowcode/view/lc-components/Tree/index.js +102 -107
  188. package/es/lowcode/view/lc-components/Tree/index.less +4 -4
  189. package/es/lowcode/view/lc-components/Tree/meta.json +357 -357
  190. package/es/lowcode/view/style/canvas.less +5 -5
  191. package/es/lowcode/view/style/loading.less +98 -98
  192. package/es/lowcode/view/style/page.less +7 -7
  193. package/es/upload/FilesWall/index.js +13 -13
  194. package/es/upload/FilesWall/index.less +74 -74
  195. package/es/upload/Form/index.less +7 -7
  196. package/es/upload/FormItem/index.js +15 -15
  197. package/es/utils/form.js +21 -21
  198. package/es/utils/grid.js +3 -3
  199. package/lib/components/LDActions/index.less +68 -68
  200. package/lib/components/LdFormList/index.js +19 -5
  201. package/lib/components/LdGrid/index.js +4 -4
  202. package/lib/components/LdGridForm/index.js +40 -24
  203. package/lib/components/LdGridForm/index.less +7 -7
  204. package/lib/components/LdTree/index.less +40 -40
  205. package/lib/helper/action.js +6 -6
  206. package/lib/helper/form.js +14 -14
  207. package/lib/helper/index.less +7 -7
  208. package/lib/locales/zh-CN.js +3 -3
  209. package/lib/lowcode/constants/api-url.js +87 -87
  210. package/lib/lowcode/engine/meta/cardlist.props.default.json +1 -0
  211. package/lib/lowcode/engine/meta/cardlist.props.json +2 -1
  212. package/lib/lowcode/engine/meta/components-list.json +6 -126
  213. package/lib/lowcode/engine/meta/dialog.props.default.json +4 -2
  214. package/lib/lowcode/engine/meta/dialog.props.json +74 -18
  215. package/lib/lowcode/engine/meta/drawer.props.default.json +15 -4
  216. package/lib/lowcode/engine/meta/drawer.props.json +144 -24
  217. package/lib/lowcode/engine/meta/fielddatadic.props.default.json +16 -0
  218. package/lib/lowcode/engine/meta/fielddatadic.props.json +73 -0
  219. package/lib/lowcode/engine/meta/form.props.default.json +1 -0
  220. package/lib/lowcode/engine/meta/form.props.json +2 -1
  221. package/lib/lowcode/engine/meta/grouptree.props.default.json +16 -0
  222. package/lib/lowcode/engine/meta/grouptree.props.json +89 -0
  223. package/lib/lowcode/engine/meta/iframe.props.default.json +1 -0
  224. package/lib/lowcode/engine/meta/iframe.props.json +2 -1
  225. package/lib/lowcode/engine/meta/image.props.default.json +1 -0
  226. package/lib/lowcode/engine/meta/image.props.json +2 -1
  227. package/lib/lowcode/engine/meta/imex.props.json +1 -1
  228. package/lib/lowcode/engine/meta/js-editor/auto-complete.json +35 -30
  229. package/lib/lowcode/engine/meta/link.props.default.json +1 -0
  230. package/lib/lowcode/engine/meta/link.props.json +2 -1
  231. package/lib/lowcode/engine/meta/table.props.json +1 -1
  232. package/lib/lowcode/engine/meta/tree.props.json +2 -2
  233. package/lib/lowcode/engine/provider/ContextProvider/index.js +44 -44
  234. package/lib/lowcode/engine/tools/dataProcess.js +76 -76
  235. package/lib/lowcode/engine/tools/helper.js +22 -0
  236. package/lib/lowcode/engine/tools/useCanvasRender.js +13 -1
  237. package/lib/lowcode/painter/Components.js +2 -2
  238. package/lib/lowcode/painter/Design.js +1 -0
  239. package/lib/lowcode/painter/DesignOperator.js +15 -10
  240. package/lib/lowcode/painter/components/Collapse.js +26 -26
  241. package/lib/lowcode/painter/components/ColorInput.js +24 -24
  242. package/lib/lowcode/painter/components/ListEditor.js +24 -24
  243. package/lib/lowcode/painter/components/NumberInput.js +29 -29
  244. package/lib/lowcode/painter/components/PanelItem.js +24 -24
  245. package/lib/lowcode/painter/components/PopConfirm.js +8 -8
  246. package/lib/lowcode/painter/components/PopForm.js +27 -27
  247. package/lib/lowcode/painter/components/RuleInput.js +30 -30
  248. package/lib/lowcode/painter/components/SortBox.js +22 -22
  249. package/lib/lowcode/painter/components/code-editor/BaseEditor.js +32 -32
  250. package/lib/lowcode/painter/components/code-editor/CssEditor.js +25 -25
  251. package/lib/lowcode/painter/components/code-editor/FullScreenEditor.js +23 -23
  252. package/lib/lowcode/painter/components/code-editor/JSEditor.js +20 -20
  253. package/lib/lowcode/painter/components/code-editor/JsonEditor.js +25 -25
  254. package/lib/lowcode/painter/components/field-setting/SettingUI.js +8 -4
  255. package/lib/lowcode/painter/panel-section/GroupClassSelector.js +63 -0
  256. package/lib/lowcode/painter/panel-section/Icon.js +23 -23
  257. package/lib/lowcode/painter/panel-section/IconSelector.js +16 -16
  258. package/lib/lowcode/painter/panel-section/LayoutRatio.js +21 -21
  259. package/lib/lowcode/painter/panel-section/PageVars.js +1 -1
  260. package/lib/lowcode/painter/panel-section/StylePanel/BackGround.js +2 -2
  261. package/lib/lowcode/painter/panel-section/StylePanel/Border.js +2 -2
  262. package/lib/lowcode/painter/panel-section/StylePanel/BorderRadius.js +2 -2
  263. package/lib/lowcode/painter/panel-section/StylePanel/BorderRadiusSelector.js +2 -2
  264. package/lib/lowcode/painter/panel-section/StylePanel/BorderSelector.js +2 -2
  265. package/lib/lowcode/painter/panel-section/StylePanel/Display.js +2 -2
  266. package/lib/lowcode/painter/panel-section/StylePanel/Font.js +2 -2
  267. package/lib/lowcode/painter/panel-section/StylePanel/FontEditor.js +2 -2
  268. package/lib/lowcode/painter/panel-section/StylePanel/GapSelector.js +2 -2
  269. package/lib/lowcode/painter/panel-section/StylePanel/HighLightPanel.js +2 -2
  270. package/lib/lowcode/painter/panel-section/StylePanel/HighLigthtSpan.js +2 -2
  271. package/lib/lowcode/painter/panel-section/StylePanel/HightLightSvg.js +2 -2
  272. package/lib/lowcode/painter/panel-section/StylePanel/MainPanel.js +2 -2
  273. package/lib/lowcode/painter/panel-section/StylePanel/Margin.js +2 -2
  274. package/lib/lowcode/painter/panel-section/StylePanel/Opacity.js +2 -2
  275. package/lib/lowcode/painter/panel-section/StylePanel/Padding.js +2 -2
  276. package/lib/lowcode/painter/panel-section/StylePanel/Pointer.js +2 -2
  277. package/lib/lowcode/painter/panel-section/StylePanel/Shadow.js +2 -2
  278. package/lib/lowcode/painter/panel-section/StylePanel/Size.js +2 -2
  279. package/lib/lowcode/painter/panel-section/StylePanel/StyleContext.js +2 -2
  280. package/lib/lowcode/painter/panel-section/StylePanel/StyleRow.js +2 -2
  281. package/lib/lowcode/painter/panel-section/StylePanel/WidthHeight.js +2 -2
  282. package/lib/lowcode/painter/panel-section/StylePanel/index.js +15 -15
  283. package/lib/lowcode/painter/style/action-bind-modal.less +102 -102
  284. package/lib/lowcode/painter/style/actions-editor.less +15 -15
  285. package/lib/lowcode/painter/style/border-editor.less +36 -36
  286. package/lib/lowcode/painter/style/border-radius-selector.less +42 -42
  287. package/lib/lowcode/painter/style/border-selector.less +39 -39
  288. package/lib/lowcode/painter/style/button-type.less +5 -5
  289. package/lib/lowcode/painter/style/collapse.less +28 -28
  290. package/lib/lowcode/painter/style/color-input.less +19 -19
  291. package/lib/lowcode/painter/style/components.less +91 -91
  292. package/lib/lowcode/painter/style/design.less +166 -160
  293. package/lib/lowcode/painter/style/display.less +17 -17
  294. package/lib/lowcode/painter/style/dragdrop.less +10 -10
  295. package/lib/lowcode/painter/style/fields-setting.less +25 -25
  296. package/lib/lowcode/painter/style/font-editor.less +9 -9
  297. package/lib/lowcode/painter/style/fullscreen-editor.less +17 -17
  298. package/lib/lowcode/painter/style/icon-selector.less +22 -22
  299. package/lib/lowcode/painter/style/icon.less +10 -10
  300. package/lib/lowcode/painter/style/impexp.less +7 -7
  301. package/lib/lowcode/painter/style/index.less +6 -6
  302. package/lib/lowcode/painter/style/layout-ratio.less +51 -51
  303. package/lib/lowcode/painter/style/list-editor.less +95 -95
  304. package/lib/lowcode/painter/style/number-input.less +17 -17
  305. package/lib/lowcode/painter/style/outline.less +28 -28
  306. package/lib/lowcode/painter/style/page-layout-display.less +27 -27
  307. package/lib/lowcode/painter/style/page-vars.less +25 -25
  308. package/lib/lowcode/painter/style/panel-attrs.less +43 -43
  309. package/lib/lowcode/painter/style/panel-item.less +54 -54
  310. package/lib/lowcode/painter/style/panel.less +98 -98
  311. package/lib/lowcode/painter/style/pop-confirm.less +17 -17
  312. package/lib/lowcode/painter/style/pop-form.less +19 -19
  313. package/lib/lowcode/painter/style/radio.less +24 -24
  314. package/lib/lowcode/painter/style/ribbon.less +5 -5
  315. package/lib/lowcode/painter/style/rule-input.less +12 -12
  316. package/lib/lowcode/painter/style/split-display.less +18 -18
  317. package/lib/lowcode/painter/style/style-panel.less +37 -37
  318. package/lib/lowcode/painter/style/tabitems.less +90 -90
  319. package/lib/lowcode/painter/style/treedragdrop.less +19 -19
  320. package/lib/lowcode/view/lc-components/Box/index.js +4 -4
  321. package/lib/lowcode/view/lc-components/Box/index.less +14 -14
  322. package/lib/lowcode/view/lc-components/Box/meta.json +40 -40
  323. package/lib/lowcode/view/lc-components/Button/index.js +33 -33
  324. package/lib/lowcode/view/lc-components/Button/meta.json +127 -127
  325. package/lib/lowcode/view/lc-components/Button/style.less +2 -2
  326. package/lib/lowcode/view/lc-components/CardList/meta.json +154 -153
  327. package/lib/lowcode/view/lc-components/Dialog/FunctionDesign.js +13 -5
  328. package/lib/lowcode/view/lc-components/Dialog/index.js +28 -18
  329. package/lib/lowcode/view/lc-components/Dialog/index.less +12 -8
  330. package/lib/lowcode/view/lc-components/Dialog/meta.json +204 -150
  331. package/lib/lowcode/view/lc-components/Drawer/FunctionDesign.js +52 -8
  332. package/lib/lowcode/view/lc-components/Drawer/index.js +148 -33
  333. package/lib/lowcode/view/lc-components/Drawer/index.less +13 -10
  334. package/lib/lowcode/view/lc-components/Drawer/meta.json +242 -131
  335. package/lib/lowcode/view/lc-components/FieldColor/meta.json +157 -157
  336. package/lib/lowcode/view/lc-components/FieldComplex/meta.json +140 -140
  337. package/lib/lowcode/view/lc-components/FieldDate/meta.json +141 -141
  338. package/lib/lowcode/view/lc-components/FieldDict/meta.json +138 -138
  339. package/lib/lowcode/view/lc-components/FieldEditor/meta.json +138 -138
  340. package/lib/lowcode/view/lc-components/FieldGroup/meta.json +167 -167
  341. package/lib/lowcode/view/lc-components/FieldNumber/meta.json +143 -143
  342. package/lib/lowcode/view/lc-components/FieldRadio/meta.json +115 -115
  343. package/lib/lowcode/view/lc-components/FieldRegion/meta.json +121 -121
  344. package/lib/lowcode/view/lc-components/FieldSelect/meta.json +152 -152
  345. package/lib/lowcode/view/lc-components/FieldString/meta.json +152 -152
  346. package/lib/lowcode/view/lc-components/FieldSwitch/meta.json +125 -125
  347. package/lib/lowcode/view/lc-components/FieldTextarea/meta.json +143 -143
  348. package/lib/lowcode/view/lc-components/FieldUpload/meta.json +165 -165
  349. package/lib/lowcode/view/lc-components/FieldUser/meta.json +176 -176
  350. package/lib/lowcode/view/lc-components/FieldYear/meta.json +129 -129
  351. package/lib/lowcode/view/lc-components/Form/FunctionDesign.js +2 -1
  352. package/lib/lowcode/view/lc-components/Form/index.js +42 -33
  353. package/lib/lowcode/view/lc-components/Form/meta.json +645 -644
  354. package/lib/lowcode/view/lc-components/GroupTree/FunctionDesign.js +17 -0
  355. package/lib/lowcode/view/lc-components/GroupTree/FunctionLive.js +17 -0
  356. package/lib/lowcode/view/lc-components/GroupTree/FunctionPreview.js +17 -0
  357. package/lib/lowcode/view/lc-components/GroupTree/index.js +209 -0
  358. package/lib/lowcode/view/lc-components/GroupTree/meta.json +89 -0
  359. package/lib/lowcode/view/lc-components/Iframe/meta.json +33 -32
  360. package/lib/lowcode/view/lc-components/ImEx/index.js +25 -25
  361. package/lib/lowcode/view/lc-components/ImEx/index.less +7 -7
  362. package/lib/lowcode/view/lc-components/ImEx/meta.json +134 -134
  363. package/lib/lowcode/view/lc-components/Image/meta.json +115 -114
  364. package/lib/lowcode/view/lc-components/JSX/RuntimeComp.js +4 -4
  365. package/lib/lowcode/view/lc-components/JSX/meta.json +28 -28
  366. package/lib/lowcode/view/lc-components/Layout/index.js +16 -16
  367. package/lib/lowcode/view/lc-components/Layout/index.less +5 -5
  368. package/lib/lowcode/view/lc-components/Layout/meta.json +107 -107
  369. package/lib/lowcode/view/lc-components/Link/meta.json +113 -112
  370. package/lib/lowcode/view/lc-components/Page/meta.json +61 -61
  371. package/lib/lowcode/view/lc-components/PageContent/meta.json +9 -9
  372. package/lib/lowcode/view/lc-components/PageFooter/meta.json +9 -9
  373. package/lib/lowcode/view/lc-components/PageHeader/meta.json +9 -9
  374. package/lib/lowcode/view/lc-components/PageLayout/meta.json +59 -59
  375. package/lib/lowcode/view/lc-components/Section/index.less +7 -7
  376. package/lib/lowcode/view/lc-components/Section/meta.json +108 -108
  377. package/lib/lowcode/view/lc-components/Split/meta.json +53 -53
  378. package/lib/lowcode/view/lc-components/Table/index.js +149 -148
  379. package/lib/lowcode/view/lc-components/Table/meta.json +450 -450
  380. package/lib/lowcode/view/lc-components/Tabs/index.js +23 -23
  381. package/lib/lowcode/view/lc-components/Tabs/meta.json +113 -113
  382. package/lib/lowcode/view/lc-components/Text/meta.json +56 -56
  383. package/lib/lowcode/view/lc-components/Tree/index.js +102 -107
  384. package/lib/lowcode/view/lc-components/Tree/index.less +4 -4
  385. package/lib/lowcode/view/lc-components/Tree/meta.json +357 -357
  386. package/lib/lowcode/view/style/canvas.less +5 -5
  387. package/lib/lowcode/view/style/loading.less +98 -98
  388. package/lib/lowcode/view/style/page.less +7 -7
  389. package/lib/upload/FilesWall/index.js +13 -13
  390. package/lib/upload/FilesWall/index.less +74 -74
  391. package/lib/upload/Form/index.less +7 -7
  392. package/lib/upload/FormItem/index.js +15 -15
  393. package/lib/utils/form.js +21 -21
  394. package/lib/utils/grid.js +2 -2
  395. package/lowcode.js +1 -1
  396. package/package.json +175 -175
  397. package/upload.js +1 -1
  398. package/utils.js +1 -1
  399. package/es/lowcode/view/lc-components/Form/index.less +0 -5
  400. package/lib/lowcode/view/lc-components/Form/index.less +0 -5
@@ -27,7 +27,6 @@ var _RuntimeComp = _interopRequireDefault(require("../JSX/RuntimeComp"));
27
27
  var _useCombinedRefs = _interopRequireDefault(require("../../../engine/tools/useCombinedRefs"));
28
28
  var _formPropsDefault = _interopRequireDefault(require("../../../engine/meta/form.props.default.json"));
29
29
  var _constants = require("../../../constants");
30
- var _index2 = _interopRequireDefault(require("./index.less"));
31
30
  var _excluded = ["advance", "state", "render"];
32
31
  var _I18N_PREFIX_ = 'lc.form.validator';
33
32
  var Header = function Header(_ref2) {
@@ -64,7 +63,7 @@ var getMthodParams = function getMthodParams(methodStr) {
64
63
  return [];
65
64
  };
66
65
  var LCForm = /*#__PURE__*/(0, _react.forwardRef)(function (_ref3, ref) {
67
- var _ctx$state2, _promiseRef$current2;
66
+ var _ctx$state2;
68
67
  var id = _ref3.id,
69
68
  className = _ref3.className,
70
69
  blocks = _ref3.blocks,
@@ -73,6 +72,7 @@ var LCForm = /*#__PURE__*/(0, _react.forwardRef)(function (_ref3, ref) {
73
72
  readOnly = _ref3.readOnly,
74
73
  showSave = _ref3.showSave,
75
74
  saveTitle = _ref3.saveTitle,
75
+ affixBarZIndex = _ref3.affixBarZIndex,
76
76
  getContainer = _ref3.getContainer,
77
77
  settingLayout = _ref3.settingLayout,
78
78
  renderFormLeft = _ref3.renderFormLeft,
@@ -107,23 +107,28 @@ var LCForm = /*#__PURE__*/(0, _react.forwardRef)(function (_ref3, ref) {
107
107
  });
108
108
  (0, _react.useImperativeHandle)(apiRef, function () {
109
109
  return {
110
- /**
111
- * 获取表格实例
112
- * @method
110
+ /**
111
+ * 获取表格实例
112
+ * @method
113
113
  */
114
114
  getInstance: function getInstance() {
115
115
  return formRef.current;
116
116
  },
117
- /**
118
- * 提交表格数据
119
- * @method
117
+ /**
118
+ * 提交表格数据
119
+ * @method
120
120
  */
121
- submit: function submit() {
122
- return new Promise(function (resolve) {
121
+ submit: function submit(_formMode) {
122
+ return new Promise(function (resolve, reject) {
123
123
  var _ctx$state;
124
- promiseRef.current = resolve;
124
+ promiseRef.current = {
125
+ resolve: resolve,
126
+ reject: reject
127
+ };
125
128
  var instance = formRef.current;
126
- var _ref5 = ((_ctx$state = ctx.state) === null || _ctx$state === void 0 ? void 0 : _ctx$state[id]) || initData || _initData || {},
129
+ var _ref5 = _formMode ? {
130
+ formMode: _formMode
131
+ } : ((_ctx$state = ctx.state) === null || _ctx$state === void 0 ? void 0 : _ctx$state[id]) || initData || _initData || {},
127
132
  formMode = _ref5.formMode;
128
133
  if (formMode === 'add') {
129
134
  instance.onAdd();
@@ -132,22 +137,22 @@ var LCForm = /*#__PURE__*/(0, _react.forwardRef)(function (_ref3, ref) {
132
137
  }
133
138
  });
134
139
  },
135
- /**
136
- * @typedef {Object} Field
137
- * @property {Object} target - 字段引用
138
- * @property {boolean} disabled - 字段不可维护
139
- * @property {boolean} required - 字段必填
140
- * @property {any} value - 字段值
140
+ /**
141
+ * @typedef {Object} Field
142
+ * @property {Object} target - 字段引用
143
+ * @property {boolean} disabled - 字段不可维护
144
+ * @property {boolean} required - 字段必填
145
+ * @property {any} value - 字段值
141
146
  */
142
- /**
143
- * @typedef {Object} Block
144
- * @property {Object} target - 区块引用
145
- * @property {function(fieldName): Field} getField - 获取区块下的表单域
147
+ /**
148
+ * @typedef {Object} Block
149
+ * @property {Object} target - 区块引用
150
+ * @property {function(fieldName): Field} getField - 获取区块下的表单域
146
151
  */
147
- /**
148
- * 获取区块
149
- * @param {*} blockId - 区块ID
150
- * @returns {Block}
152
+ /**
153
+ * 获取区块
154
+ * @param {*} blockId - 区块ID
155
+ * @returns {Block}
151
156
  */
152
157
  getBlock: function getBlock(blockId) {
153
158
  var instance = formRef.current;
@@ -571,7 +576,7 @@ var LCForm = /*#__PURE__*/(0, _react.forwardRef)(function (_ref3, ref) {
571
576
  wrapperRef: wrapperRef,
572
577
  id: id,
573
578
  ldId: id,
574
- className: (0, _classnames.default)(_index2.default['lc-component-form'], (0, _defineProperty2.default)({}, className, !!className)),
579
+ className: (0, _classnames.default)('lc-component-form', (0, _defineProperty2.default)({}, className, !!className)),
575
580
  renderFormList: renderFormList,
576
581
  renderFormExtra: renderFormExtra,
577
582
  mainFormLdId: "block_main",
@@ -581,6 +586,7 @@ var LCForm = /*#__PURE__*/(0, _react.forwardRef)(function (_ref3, ref) {
581
586
  showSaveBtn: showSave,
582
587
  saveBtnTitle: saveTitle,
583
588
  affixLayout: settingLayout,
589
+ affixBarZIndex: affixBarZIndex,
584
590
  renderAffixLeft: function renderAffixLeft() {
585
591
  return renderAffix(renderFormLeft);
586
592
  },
@@ -593,15 +599,18 @@ var LCForm = /*#__PURE__*/(0, _react.forwardRef)(function (_ref3, ref) {
593
599
  onChildChange: onChildChange,
594
600
  setVerifyRules: setVerifyRules,
595
601
  getContainer: (0, _lodash.isNil)(getContainer) ? null : ctx.componentMap.get(getContainer).api.getSelfDom,
596
- afterSubmitLoading: function afterSubmitLoading() {
602
+ afterSubmitLoading: function afterSubmitLoading(res) {
597
603
  var _promiseRef$current;
598
- for (var _len5 = arguments.length, rest = new Array(_len5), _key5 = 0; _key5 < _len5; _key5++) {
599
- rest[_key5] = arguments[_key5];
600
- }
601
- return (_promiseRef$current = promiseRef.current) === null || _promiseRef$current === void 0 ? void 0 : _promiseRef$current.call.apply(_promiseRef$current, [promiseRef].concat(rest));
604
+ (_promiseRef$current = promiseRef.current) === null || _promiseRef$current === void 0 || _promiseRef$current.resolve(res);
605
+ promiseRef.current = null;
602
606
  },
603
607
  afterInit: afterInit,
604
- validateErrorCallback: (_promiseRef$current2 = promiseRef.current) === null || _promiseRef$current2 === void 0 ? void 0 : _promiseRef$current2.call(promiseRef)
608
+ validateErrorCallback: function validateErrorCallback() {
609
+ var _promiseRef$current2;
610
+ (_promiseRef$current2 = promiseRef.current) === null || _promiseRef$current2 === void 0 || _promiseRef$current2.reject();
611
+ promiseRef.current = null;
612
+ },
613
+ showConfigBtn: false
605
614
  }));
606
615
  });
607
616
  LCForm.defaultProps = (0, _helper.omitBadProps)(_formPropsDefault.default);