@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
@@ -43,7 +43,7 @@ var LCTree = function LCTree(_ref) {
43
43
  defaultSelect = _ref.defaultSelect,
44
44
  props = _objectWithoutProperties(_ref, _excluded);
45
45
  var ctx = useContext();
46
- var boxRef = useRef();
46
+ var ref = useRef();
47
47
  var apiRef = useRef();
48
48
  var treeRef = useRef();
49
49
  var _useState = useState([]),
@@ -51,7 +51,7 @@ var LCTree = function LCTree(_ref) {
51
51
  selectedKeys = _useState2[0],
52
52
  setSelectedKeys = _useState2[1];
53
53
  var getTargetDom = useMemoizedFn(function () {
54
- return boxRef.current;
54
+ return ref.current;
55
55
  });
56
56
  useImperativeHandle(apiRef, function () {
57
57
  return {
@@ -146,18 +146,13 @@ var LCTree = function LCTree(_ref) {
146
146
  displayName: "Tree",
147
147
  getTargetDom: getTargetDom,
148
148
  api: apiRef
149
- }, /*#__PURE__*/React.createElement("div", {
150
- ref: boxRef,
151
- style: {
152
- width: width,
153
- height: height
154
- }
155
149
  }, /*#__PURE__*/React.createElement(LdTree, _extends({
156
- width: "100%",
157
- height: "100%",
150
+ width: width,
151
+ height: height,
158
152
  id: id,
159
153
  ldId: id,
160
154
  ref: treeRef,
155
+ boxRef: ref,
161
156
  className: classNames(styles['lc-component-tree'], _defineProperty({}, className, !!className)),
162
157
  dataSetKey: dataset === null || dataset === void 0 ? void 0 : dataset.code,
163
158
  showLine: showLine,
@@ -222,166 +217,166 @@ var LCTree = function LCTree(_ref) {
222
217
  selectedKeys: selectedKeys,
223
218
  onSelect: handleSelect,
224
219
  afterInit: afterInit
225
- }, events, props))));
220
+ }, events, props)));
226
221
  };
227
222
  LCTree.propTypes = {
228
- /**
229
- * @name 唯一标识
230
- * @type string
231
- * @disabled true
223
+ /**
224
+ * @name 唯一标识
225
+ * @type string
226
+ * @disabled true
232
227
  */
233
228
  id: PropTypes.string.isRequired,
234
- /**
235
- * @name 数据集
236
- * @type _DataSetSelector
229
+ /**
230
+ * @name 数据集
231
+ * @type _DataSetSelector
237
232
  */
238
233
  dataset: PropTypes.shape({
239
234
  code: PropTypes.string.isRequired,
240
235
  uid: PropTypes.string.isRequired
241
236
  }),
242
- /**
243
- * @name 标题
244
- * @type string
245
- * @disabled true
237
+ /**
238
+ * @name 标题
239
+ * @type string
240
+ * @disabled true
246
241
  */
247
242
  title: PropTypes.string,
248
- /**
249
- * @name 是否只读
250
- * @type boolean
243
+ /**
244
+ * @name 是否只读
245
+ * @type boolean
251
246
  */
252
247
  readOnly: PropTypes.bool,
253
- /**
254
- * @name 支持拖拽
255
- * @type boolean
248
+ /**
249
+ * @name 支持拖拽
250
+ * @type boolean
256
251
  */
257
252
  draggable: PropTypes.bool,
258
- /**
259
- * @name 异步加载
260
- * @type boolean
253
+ /**
254
+ * @name 异步加载
255
+ * @type boolean
261
256
  */
262
257
  asyncLoad: PropTypes.bool,
263
- /**
264
- * @name 异步加载Key
265
- * @type string
258
+ /**
259
+ * @name 异步加载Key
260
+ * @type string
266
261
  */
267
262
  iparentid: PropTypes.string,
268
- /**
269
- * @name 宽度
270
- * @type string
263
+ /**
264
+ * @name 宽度
265
+ * @type string
271
266
  */
272
267
  width: PropTypes.string,
273
- /**
274
- * @name 高度
275
- * @type string
268
+ /**
269
+ * @name 高度
270
+ * @type string
276
271
  */
277
272
  height: PropTypes.string,
278
- /**
279
- * @name 显示线
280
- * @type bool
273
+ /**
274
+ * @name 显示线
275
+ * @type bool
281
276
  */
282
277
  showLine: PropTypes.bool,
283
- /**
284
- * @name 展示字段
285
- * @type string
278
+ /**
279
+ * @name 展示字段
280
+ * @type string
286
281
  */
287
282
  treeNodeTitle: PropTypes.string,
288
- /**
289
- * @name 展示字段
290
- * @type string
283
+ /**
284
+ * @name 展示字段
285
+ * @type string
291
286
  */
292
287
  defaultExpandDeep: PropTypes.string,
293
- /**
294
- * @name 显示图标
295
- * @type bool
288
+ /**
289
+ * @name 显示图标
290
+ * @type bool
296
291
  */
297
292
  showIcon: PropTypes.bool,
298
- /**
299
- * @name 节点图标设置
300
- * @type array
293
+ /**
294
+ * @name 节点图标设置
295
+ * @type array
301
296
  */
302
297
  treeNodeIcon: PropTypes.array,
303
- /**
304
- * @name 是否显示根节点
305
- * @type bool
298
+ /**
299
+ * @name 是否显示根节点
300
+ * @type bool
306
301
  */
307
302
  showRootAdd: PropTypes.bool,
308
- /**
309
- * @name 是否只有唯一一个根节点
310
- * @type bool
303
+ /**
304
+ * @name 是否只有唯一一个根节点
305
+ * @type bool
311
306
  */
312
307
  onlyRoot: PropTypes.bool,
313
- /**
314
- * @name 根节点配置
315
- * @type object
308
+ /**
309
+ * @name 根节点配置
310
+ * @type object
316
311
  */
317
312
  rootAddSetting: PropTypes.object,
318
- /**
319
- * @name 节点操作项
320
- * @type object
313
+ /**
314
+ * @name 节点操作项
315
+ * @type object
321
316
  */
322
317
  actions: PropTypes.object,
323
- /**
324
- * @name 双击收缩节点
325
- * @type bool
318
+ /**
319
+ * @name 双击收缩节点
320
+ * @type bool
326
321
  */
327
322
  doubleClickExpand: PropTypes.bool,
328
- /**
329
- * @name 复选框
330
- * @type bool
323
+ /**
324
+ * @name 复选框
325
+ * @type bool
331
326
  */
332
327
  checkable: PropTypes.bool,
333
- /**
334
- * @name 节点是否有复选框
335
- * @type _JSEditor
336
- * @default "function treeNodeCheckable(item) { \n return true; \n}"
328
+ /**
329
+ * @name 节点是否有复选框
330
+ * @type _JSEditor
331
+ * @default "function treeNodeCheckable(item) { \n return true; \n}"
337
332
  */
338
333
  treeNodeCheckable: PropTypes.string,
339
- /**
340
- * @name 节点复选框是否禁用
341
- * @type _JSEditor
342
- * @default "function treeNodeDisableCheckbox(item) { \n return false; \n}"
334
+ /**
335
+ * @name 节点复选框是否禁用
336
+ * @type _JSEditor
337
+ * @default "function treeNodeDisableCheckbox(item) { \n return false; \n}"
343
338
  */
344
339
  treeNodeDisableCheckbox: PropTypes.string,
345
- /**
346
- * @name 节点是否禁用
347
- * @type _JSEditor
348
- * @default "function treeNodeDisable(item) { \n return false; \n}"
340
+ /**
341
+ * @name 节点是否禁用
342
+ * @type _JSEditor
343
+ * @default "function treeNodeDisable(item) { \n return false; \n}"
349
344
  */
350
345
  treeNodeDisable: PropTypes.string,
351
- /**
352
- * @name 节点定制渲染
353
- * @type _JSEditor
354
- * @default "function onTreeNodeRender(title, item) { \n return title; \n}"
346
+ /**
347
+ * @name 节点定制渲染
348
+ * @type _JSEditor
349
+ * @default "function onTreeNodeRender(title, item) { \n return title; \n}"
355
350
  */
356
351
  onTreeNodeRender: PropTypes.string,
357
- /**
358
- * @name 组件首次渲染时
359
- * @type _JSEditor
352
+ /**
353
+ * @name 组件首次渲染时
354
+ * @type _JSEditor
360
355
  */
361
356
  onMount: PropTypes.string,
362
- /**
363
- * @name 组件卸载时
364
- * @type _JSEditor
357
+ /**
358
+ * @name 组件卸载时
359
+ * @type _JSEditor
365
360
  */
366
361
  onUnmount: PropTypes.string,
367
- /**
368
- * @name 数据预处理
369
- * @type _JSEditor
362
+ /**
363
+ * @name 数据预处理
364
+ * @type _JSEditor
370
365
  */
371
366
  processDataSource: PropTypes.string,
372
- /**
373
- * @name 双击事件
374
- * @type _JSEditor
367
+ /**
368
+ * @name 双击事件
369
+ * @type _JSEditor
375
370
  */
376
371
  onDoubleClick: PropTypes.string,
377
- /**
378
- * @name 复选框选择事件
379
- * @type _JSEditor
372
+ /**
373
+ * @name 复选框选择事件
374
+ * @type _JSEditor
380
375
  */
381
376
  onCheck: PropTypes.string,
382
- /**
383
- * @name 选中事件
384
- * @type _JSEditor
377
+ /**
378
+ * @name 选中事件
379
+ * @type _JSEditor
385
380
  */
386
381
  onSelect: PropTypes.string
387
382
  };
@@ -1,5 +1,5 @@
1
- .lc-component-tree{
2
- }
3
- .lc-component-tree.runtime-tree {
4
-
1
+ .lc-component-tree{
2
+ }
3
+ .lc-component-tree.runtime-tree {
4
+
5
5
  }