@luck-design-biz/luckda 0.0.25-21 → 0.0.25-22

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 (859) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +40 -40
  3. package/es/components/Builder/index.js +0 -0
  4. package/es/components/ComplexItem/index.js +0 -0
  5. package/es/components/ComplexItem/service.js +0 -0
  6. package/es/components/IconFont/index.js +0 -0
  7. package/es/components/LDActions/index.js +0 -0
  8. package/es/components/LDActions/index.less +68 -68
  9. package/es/components/LdAutoForm/index.js +0 -0
  10. package/es/components/LdCard/index.js +0 -0
  11. package/es/components/LdCard/model.js +0 -0
  12. package/es/components/LdCom/index.js +0 -0
  13. package/es/components/LdFormList/index.js +0 -0
  14. package/es/components/LdFormList/model.js +0 -0
  15. package/es/components/LdGrid/index.js +4 -4
  16. package/es/components/LdGrid/model.js +0 -0
  17. package/es/components/LdGridForm/index.js +0 -0
  18. package/es/components/LdGridForm/index.less +7 -7
  19. package/es/components/LdInfoPanel/index.js +0 -0
  20. package/es/components/LdPop/index.js +0 -0
  21. package/es/components/LdTree/index.js +36 -14
  22. package/es/components/LdTree/index.less +40 -40
  23. package/es/helper/FromItems.js +0 -0
  24. package/es/helper/action.js +6 -6
  25. package/es/helper/form.js +14 -14
  26. package/es/helper/index.less +7 -7
  27. package/es/helper/ldBuilder.js +0 -0
  28. package/es/helper/ldComBuild.js +0 -0
  29. package/es/helper/props_config.js +0 -0
  30. package/es/index.js +0 -0
  31. package/es/locales/zh-CN.js +0 -0
  32. package/es/lowcode/constants/api-url.js +109 -84
  33. package/es/lowcode/constants/event-topics.js +0 -0
  34. package/es/lowcode/constants/index.js +0 -0
  35. package/es/lowcode/engine/factory/DataFactory.js +0 -0
  36. package/es/lowcode/engine/factory/panel-item-factory/CheckboxStrategy.js +0 -0
  37. package/es/lowcode/engine/factory/panel-item-factory/DynamicStrategy.js +0 -0
  38. package/es/lowcode/engine/factory/panel-item-factory/GroupStrategy.js +0 -0
  39. package/es/lowcode/engine/factory/panel-item-factory/NumberStrategy.js +0 -0
  40. package/es/lowcode/engine/factory/panel-item-factory/RadioStrategy.js +0 -0
  41. package/es/lowcode/engine/factory/panel-item-factory/SegmentedStrategy.js +0 -0
  42. package/es/lowcode/engine/factory/panel-item-factory/SelectStrategy.js +0 -0
  43. package/es/lowcode/engine/factory/panel-item-factory/Strategy.js +0 -0
  44. package/es/lowcode/engine/factory/panel-item-factory/StringStrategy.js +0 -0
  45. package/es/lowcode/engine/factory/panel-item-factory/SwitchStrategy.js +0 -0
  46. package/es/lowcode/engine/factory/panel-item-factory/index.js +0 -0
  47. package/es/lowcode/engine/launcher.js +0 -0
  48. package/es/lowcode/engine/meta/box.props.default.json +0 -0
  49. package/es/lowcode/engine/meta/box.props.json +0 -0
  50. package/es/lowcode/engine/meta/button.props.default.json +0 -0
  51. package/es/lowcode/engine/meta/button.props.json +0 -0
  52. package/es/lowcode/engine/meta/cardlist.props.default.json +0 -0
  53. package/es/lowcode/engine/meta/cardlist.props.json +0 -0
  54. package/es/lowcode/engine/meta/components-list.json +0 -0
  55. package/es/lowcode/engine/meta/dialog.props.default.json +0 -0
  56. package/es/lowcode/engine/meta/dialog.props.json +0 -0
  57. package/es/lowcode/engine/meta/drawer.props.default.json +0 -0
  58. package/es/lowcode/engine/meta/drawer.props.json +0 -0
  59. package/es/lowcode/engine/meta/fieldcolor.props.default.json +3 -0
  60. package/es/lowcode/engine/meta/fieldcolor.props.json +13 -0
  61. package/es/lowcode/engine/meta/fieldcomplex.props.default.json +3 -0
  62. package/es/lowcode/engine/meta/fieldcomplex.props.json +13 -0
  63. package/es/lowcode/engine/meta/fielddate.props.default.json +3 -0
  64. package/es/lowcode/engine/meta/fielddate.props.json +13 -0
  65. package/es/lowcode/engine/meta/fielddict.props.default.json +3 -0
  66. package/es/lowcode/engine/meta/fielddict.props.json +13 -0
  67. package/es/lowcode/engine/meta/fieldeditor.props.default.json +3 -0
  68. package/es/lowcode/engine/meta/fieldeditor.props.json +13 -0
  69. package/es/lowcode/engine/meta/fieldgroup.props.default.json +3 -0
  70. package/es/lowcode/engine/meta/fieldgroup.props.json +13 -0
  71. package/es/lowcode/engine/meta/fieldnumber.props.default.json +3 -0
  72. package/es/lowcode/engine/meta/fieldnumber.props.json +13 -0
  73. package/es/lowcode/engine/meta/fieldradio.props.default.json +3 -0
  74. package/es/lowcode/engine/meta/fieldradio.props.json +13 -0
  75. package/es/lowcode/engine/meta/fieldregion.props.default.json +3 -0
  76. package/es/lowcode/engine/meta/fieldregion.props.json +13 -0
  77. package/es/lowcode/engine/meta/fieldselect.props.default.json +3 -0
  78. package/es/lowcode/engine/meta/fieldselect.props.json +13 -0
  79. package/es/lowcode/engine/meta/fieldstring.props.default.json +3 -0
  80. package/es/lowcode/engine/meta/fieldstring.props.json +13 -0
  81. package/es/lowcode/engine/meta/fieldswitch.props.default.json +3 -0
  82. package/es/lowcode/engine/meta/fieldswitch.props.json +13 -0
  83. package/es/lowcode/engine/meta/fieldtextarea.props.default.json +3 -0
  84. package/es/lowcode/engine/meta/fieldtextarea.props.json +13 -0
  85. package/es/lowcode/engine/meta/fieldupload.props.default.json +3 -0
  86. package/es/lowcode/engine/meta/fieldupload.props.json +13 -0
  87. package/es/lowcode/engine/meta/fielduser.props.default.json +3 -0
  88. package/es/lowcode/engine/meta/fielduser.props.json +13 -0
  89. package/es/lowcode/engine/meta/fieldyear.props.default.json +3 -0
  90. package/es/lowcode/engine/meta/fieldyear.props.json +13 -0
  91. package/es/lowcode/engine/meta/form.props.default.json +0 -0
  92. package/es/lowcode/engine/meta/form.props.json +0 -0
  93. package/es/lowcode/engine/meta/iframe.props.default.json +0 -0
  94. package/es/lowcode/engine/meta/iframe.props.json +0 -0
  95. package/es/lowcode/engine/meta/image.props.default.json +0 -0
  96. package/es/lowcode/engine/meta/image.props.json +0 -0
  97. package/es/lowcode/engine/meta/imex.props.default.json +0 -0
  98. package/es/lowcode/engine/meta/imex.props.json +0 -0
  99. package/es/lowcode/engine/meta/js-editor/auto-complete.json +20 -20
  100. package/es/lowcode/engine/meta/jsx.props.default.json +0 -0
  101. package/es/lowcode/engine/meta/jsx.props.json +0 -0
  102. package/es/lowcode/engine/meta/layout.props.default.json +0 -0
  103. package/es/lowcode/engine/meta/layout.props.json +0 -0
  104. package/es/lowcode/engine/meta/link.props.default.json +0 -0
  105. package/es/lowcode/engine/meta/link.props.json +0 -0
  106. package/es/lowcode/engine/meta/page.props.default.json +0 -0
  107. package/es/lowcode/engine/meta/page.props.json +0 -0
  108. package/es/lowcode/engine/meta/pagecontent.props.default.json +0 -0
  109. package/es/lowcode/engine/meta/pagecontent.props.json +0 -0
  110. package/es/lowcode/engine/meta/pagefooter.props.default.json +0 -0
  111. package/es/lowcode/engine/meta/pagefooter.props.json +0 -0
  112. package/es/lowcode/engine/meta/pageheader.props.default.json +0 -0
  113. package/es/lowcode/engine/meta/pageheader.props.json +0 -0
  114. package/es/lowcode/engine/meta/pagelayout.props.default.json +0 -0
  115. package/es/lowcode/engine/meta/pagelayout.props.json +0 -0
  116. package/es/lowcode/engine/meta/section.props.default.json +0 -0
  117. package/es/lowcode/engine/meta/section.props.json +0 -0
  118. package/es/lowcode/engine/meta/split.props.default.json +0 -0
  119. package/es/lowcode/engine/meta/split.props.json +0 -0
  120. package/es/lowcode/engine/meta/table.props.default.json +0 -0
  121. package/es/lowcode/engine/meta/table.props.json +0 -0
  122. package/es/lowcode/engine/meta/tabs.props.default.json +0 -0
  123. package/es/lowcode/engine/meta/tabs.props.json +0 -0
  124. package/es/lowcode/engine/meta/text.props.default.json +0 -0
  125. package/es/lowcode/engine/meta/text.props.json +0 -0
  126. package/es/lowcode/engine/meta/tree.props.default.json +0 -0
  127. package/es/lowcode/engine/meta/tree.props.json +0 -0
  128. package/es/lowcode/engine/provider/ContextProvider/index.js +63 -56
  129. package/es/lowcode/engine/provider/ContextProvider/usePageVar.js +38 -0
  130. package/es/lowcode/engine/provider/EventBusProvider.js +0 -0
  131. package/es/lowcode/engine/provider/RemoteSourceProvider.js +0 -0
  132. package/es/lowcode/engine/tools/dataProcess.js +76 -76
  133. package/es/lowcode/engine/tools/diff.js +0 -0
  134. package/es/lowcode/engine/tools/helper.js +0 -0
  135. package/es/lowcode/engine/tools/useCanvasRender.js +0 -0
  136. package/es/lowcode/engine/tools/useCombinedRefs.js +0 -0
  137. package/es/lowcode/engine/tools/usePageDataStore.js +0 -0
  138. package/es/lowcode/engine/tools/usePromiseState.js +0 -0
  139. package/es/lowcode/engine/tools/useTodo.js +0 -0
  140. package/es/lowcode/index.js +0 -0
  141. package/es/lowcode/painter/Components.js +2 -2
  142. package/es/lowcode/painter/Design.js +0 -0
  143. package/es/lowcode/painter/DesignOperator.js +0 -0
  144. package/es/lowcode/painter/DesignToolbar.js +7 -8
  145. package/es/lowcode/painter/I18n.js +0 -0
  146. package/es/lowcode/painter/Outline.js +0 -0
  147. package/es/lowcode/painter/Panel.js +0 -0
  148. package/es/lowcode/painter/Ribbon.js +0 -0
  149. package/es/lowcode/painter/components/ActionBindModal.js +0 -0
  150. package/es/lowcode/painter/components/AdvancePanel.js +0 -0
  151. package/es/lowcode/painter/components/AttrsPanel.js +0 -0
  152. package/es/lowcode/painter/components/Collapse.js +26 -26
  153. package/es/lowcode/painter/components/ColorInput.js +24 -24
  154. package/es/lowcode/painter/components/DragDrop/DragDropContext.js +0 -0
  155. package/es/lowcode/painter/components/DragDrop/DragDropWrapper.js +0 -0
  156. package/es/lowcode/painter/components/DragDrop/Overlay.js +0 -0
  157. package/es/lowcode/painter/components/DragDrop/TreeDragDropWrapper.js +0 -0
  158. package/es/lowcode/painter/components/FieldSelector.js +0 -0
  159. package/es/lowcode/painter/components/ListEditor.js +24 -24
  160. package/es/lowcode/painter/components/NumberInput.js +28 -28
  161. package/es/lowcode/painter/components/PanelItem.js +24 -24
  162. package/es/lowcode/painter/components/PopConfirm.js +8 -8
  163. package/es/lowcode/painter/components/PopForm.js +27 -27
  164. package/es/lowcode/painter/components/PreviewIframe.js +0 -0
  165. package/es/lowcode/painter/components/RuleInput.js +30 -30
  166. package/es/lowcode/painter/components/SortBox.js +22 -22
  167. package/es/lowcode/painter/components/TreeEditor.js +0 -0
  168. package/es/lowcode/painter/components/code-editor/BaseEditor.js +54 -33
  169. package/es/lowcode/painter/components/code-editor/CssEditor.js +25 -25
  170. package/es/lowcode/painter/components/code-editor/FullScreenEditor.js +23 -23
  171. package/es/lowcode/painter/components/code-editor/JSEditor.js +20 -20
  172. package/es/lowcode/painter/components/code-editor/JsonEditor.js +25 -25
  173. package/es/lowcode/painter/components/code-editor/index.js +0 -0
  174. package/es/lowcode/painter/components/field-setting/BatchSetting.js +0 -0
  175. package/es/lowcode/painter/components/field-setting/CheckFrontRules.js +0 -0
  176. package/es/lowcode/painter/components/field-setting/CheckRules.js +0 -0
  177. package/es/lowcode/painter/components/field-setting/FieldAttrs.js +0 -0
  178. package/es/lowcode/painter/components/field-setting/FieldAttrsModal.js +0 -0
  179. package/es/lowcode/painter/components/field-setting/FieldDefaultValue.js +0 -0
  180. package/es/lowcode/painter/components/field-setting/FieldRulesModal.js +0 -0
  181. package/es/lowcode/painter/components/field-setting/SettingUI.js +0 -0
  182. package/es/lowcode/painter/components/field-setting/index.js +0 -0
  183. package/es/lowcode/painter/components/field-setting/meta/frontRules.js +0 -0
  184. package/es/lowcode/painter/index.js +0 -0
  185. package/es/lowcode/painter/panel-section/ActionsColumnWidth.js +0 -0
  186. package/es/lowcode/painter/panel-section/ActionsEditor/ActionEditor.js +0 -0
  187. package/es/lowcode/painter/panel-section/ActionsEditor/index.js +0 -0
  188. package/es/lowcode/painter/panel-section/BlockEditor/index.js +0 -0
  189. package/es/lowcode/painter/panel-section/BlocksEditor/BlockEditorItem.js +0 -0
  190. package/es/lowcode/painter/panel-section/BlocksEditor/index.js +0 -0
  191. package/es/lowcode/painter/panel-section/ButtonType.js +0 -0
  192. package/es/lowcode/painter/panel-section/ComponentSelector.js +0 -0
  193. package/es/lowcode/painter/panel-section/DataSetSelector.js +0 -0
  194. package/es/lowcode/painter/panel-section/FieldState.js +62 -0
  195. package/es/lowcode/painter/panel-section/FieldsSetting.js +0 -0
  196. package/es/lowcode/painter/panel-section/I18nInput.js +0 -0
  197. package/es/lowcode/painter/panel-section/Icon.js +23 -23
  198. package/es/lowcode/painter/panel-section/IconConditionSelector.js +0 -0
  199. package/es/lowcode/painter/panel-section/IconSelector.js +16 -16
  200. package/es/lowcode/painter/panel-section/ImpExp.js +0 -0
  201. package/es/lowcode/painter/panel-section/ImpExpAlone.js +0 -0
  202. package/es/lowcode/painter/panel-section/JSEditor.js +0 -0
  203. package/es/lowcode/painter/panel-section/LayoutRatio.js +21 -21
  204. package/es/lowcode/painter/panel-section/PageLayoutDisplay.js +0 -0
  205. package/es/lowcode/painter/panel-section/SerialsSelector.js +0 -0
  206. package/es/lowcode/painter/panel-section/SplitDisplay.js +0 -0
  207. package/es/lowcode/painter/panel-section/StylePanel/BackGround.js +2 -2
  208. package/es/lowcode/painter/panel-section/StylePanel/Border.js +2 -2
  209. package/es/lowcode/painter/panel-section/StylePanel/BorderRadius.js +2 -2
  210. package/es/lowcode/painter/panel-section/StylePanel/BorderRadiusSelector.js +2 -2
  211. package/es/lowcode/painter/panel-section/StylePanel/BorderSelector.js +2 -2
  212. package/es/lowcode/painter/panel-section/StylePanel/Display.js +2 -2
  213. package/es/lowcode/painter/panel-section/StylePanel/DisplaySvg.js +0 -0
  214. package/es/lowcode/painter/panel-section/StylePanel/Font.js +2 -2
  215. package/es/lowcode/painter/panel-section/StylePanel/FontEditor.js +2 -2
  216. package/es/lowcode/painter/panel-section/StylePanel/GapSelector.js +2 -2
  217. package/es/lowcode/painter/panel-section/StylePanel/HighLightPanel.js +2 -2
  218. package/es/lowcode/painter/panel-section/StylePanel/HighLigthtSpan.js +2 -2
  219. package/es/lowcode/painter/panel-section/StylePanel/HightLightSvg.js +2 -2
  220. package/es/lowcode/painter/panel-section/StylePanel/MainPanel.js +2 -2
  221. package/es/lowcode/painter/panel-section/StylePanel/Margin.js +2 -2
  222. package/es/lowcode/painter/panel-section/StylePanel/Opacity.js +2 -2
  223. package/es/lowcode/painter/panel-section/StylePanel/Padding.js +2 -2
  224. package/es/lowcode/painter/panel-section/StylePanel/Pointer.js +2 -2
  225. package/es/lowcode/painter/panel-section/StylePanel/Shadow.js +2 -2
  226. package/es/lowcode/painter/panel-section/StylePanel/Size.js +2 -2
  227. package/es/lowcode/painter/panel-section/StylePanel/StyleContext.js +2 -2
  228. package/es/lowcode/painter/panel-section/StylePanel/StyleRow.js +2 -2
  229. package/es/lowcode/painter/panel-section/StylePanel/WidthHeight.js +2 -2
  230. package/es/lowcode/painter/panel-section/StylePanel/index.js +15 -15
  231. package/es/lowcode/painter/panel-section/TabItems.js +0 -0
  232. package/es/lowcode/painter/panel-section/TableTopFilter.js +0 -0
  233. package/es/lowcode/painter/panel-section/TableZebra.js +0 -0
  234. package/es/lowcode/painter/panel-section/TreeRootEditor.js +0 -0
  235. package/es/lowcode/painter/panel-section/WidthHeight.js +0 -0
  236. package/es/lowcode/painter/services/I18n.js +0 -0
  237. package/es/lowcode/painter/style/action-bind-modal.less +102 -102
  238. package/es/lowcode/painter/style/actions-editor.less +15 -15
  239. package/es/lowcode/painter/style/border-editor.less +36 -36
  240. package/es/lowcode/painter/style/border-radius-selector.less +42 -42
  241. package/es/lowcode/painter/style/border-selector.less +39 -39
  242. package/es/lowcode/painter/style/button-type.less +5 -5
  243. package/es/lowcode/painter/style/collapse.less +28 -28
  244. package/es/lowcode/painter/style/color-input.less +19 -19
  245. package/es/lowcode/painter/style/components.less +91 -91
  246. package/es/lowcode/painter/style/design.less +159 -159
  247. package/es/lowcode/painter/style/display.less +17 -17
  248. package/es/lowcode/painter/style/dragdrop.less +10 -10
  249. package/es/lowcode/painter/style/fields-setting.less +25 -25
  250. package/es/lowcode/painter/style/font-editor.less +9 -9
  251. package/es/lowcode/painter/style/fullscreen-editor.less +17 -17
  252. package/es/lowcode/painter/style/icon-selector.less +22 -22
  253. package/es/lowcode/painter/style/icon.less +10 -10
  254. package/es/lowcode/painter/style/impexp.less +7 -7
  255. package/es/lowcode/painter/style/index.less +6 -6
  256. package/es/lowcode/painter/style/layout-ratio.less +51 -51
  257. package/es/lowcode/painter/style/list-editor.less +95 -95
  258. package/es/lowcode/painter/style/number-input.less +17 -17
  259. package/es/lowcode/painter/style/outline.less +28 -28
  260. package/es/lowcode/painter/style/page-layout-display.less +27 -27
  261. package/es/lowcode/painter/style/panel-attrs.less +43 -43
  262. package/es/lowcode/painter/style/panel-item.less +54 -54
  263. package/es/lowcode/painter/style/panel.less +98 -98
  264. package/es/lowcode/painter/style/pop-confirm.less +17 -17
  265. package/es/lowcode/painter/style/pop-form.less +19 -19
  266. package/es/lowcode/painter/style/radio.less +24 -24
  267. package/es/lowcode/painter/style/ribbon.less +5 -5
  268. package/es/lowcode/painter/style/rule-input.less +12 -12
  269. package/es/lowcode/painter/style/split-display.less +18 -18
  270. package/es/lowcode/painter/style/style-panel.less +37 -37
  271. package/es/lowcode/painter/style/tabitems.less +90 -90
  272. package/es/lowcode/painter/style/treedragdrop.less +19 -19
  273. package/es/lowcode/preview/index.js +0 -0
  274. package/es/lowcode/view/Canvas.js +0 -0
  275. package/es/lowcode/view/Loading.js +0 -0
  276. package/es/lowcode/view/Page.js +0 -0
  277. package/es/lowcode/view/index.js +0 -0
  278. package/es/lowcode/view/lc-components/Box/FunctionDesign.js +0 -0
  279. package/es/lowcode/view/lc-components/Box/FunctionLive.js +0 -0
  280. package/es/lowcode/view/lc-components/Box/FunctionPreview.js +0 -0
  281. package/es/lowcode/view/lc-components/Box/index.js +4 -4
  282. package/es/lowcode/view/lc-components/Box/index.less +14 -14
  283. package/es/lowcode/view/lc-components/Box/meta.json +40 -40
  284. package/es/lowcode/view/lc-components/Button/FunctionDesign.js +0 -0
  285. package/es/lowcode/view/lc-components/Button/FunctionLive.js +0 -0
  286. package/es/lowcode/view/lc-components/Button/FunctionPreview.js +0 -0
  287. package/es/lowcode/view/lc-components/Button/index.js +33 -33
  288. package/es/lowcode/view/lc-components/Button/meta.json +127 -127
  289. package/es/lowcode/view/lc-components/Button/style.less +2 -2
  290. package/es/lowcode/view/lc-components/CardList/FunctionDesign.js +0 -0
  291. package/es/lowcode/view/lc-components/CardList/FunctionLive.js +0 -0
  292. package/es/lowcode/view/lc-components/CardList/FunctionPreview.js +0 -0
  293. package/es/lowcode/view/lc-components/CardList/index.js +0 -0
  294. package/es/lowcode/view/lc-components/CardList/meta.json +153 -153
  295. package/es/lowcode/view/lc-components/Dialog/FunctionDesign.js +0 -0
  296. package/es/lowcode/view/lc-components/Dialog/FunctionLive.js +0 -0
  297. package/es/lowcode/view/lc-components/Dialog/FunctionPreview.js +0 -0
  298. package/es/lowcode/view/lc-components/Dialog/index.js +13 -13
  299. package/es/lowcode/view/lc-components/Dialog/index.less +3 -3
  300. package/es/lowcode/view/lc-components/Dialog/meta.json +150 -150
  301. package/es/lowcode/view/lc-components/Drawer/FunctionDesign.js +0 -0
  302. package/es/lowcode/view/lc-components/Drawer/FunctionLive.js +0 -0
  303. package/es/lowcode/view/lc-components/Drawer/FunctionPreview.js +0 -0
  304. package/es/lowcode/view/lc-components/Drawer/index.js +12 -12
  305. package/es/lowcode/view/lc-components/Drawer/index.less +9 -9
  306. package/es/lowcode/view/lc-components/Drawer/meta.json +131 -131
  307. package/es/lowcode/view/lc-components/FieldColor/meta.json +157 -146
  308. package/es/lowcode/view/lc-components/FieldComplex/meta.json +133 -122
  309. package/es/lowcode/view/lc-components/FieldDate/meta.json +139 -128
  310. package/es/lowcode/view/lc-components/FieldDict/meta.json +138 -127
  311. package/es/lowcode/view/lc-components/FieldEditor/meta.json +138 -127
  312. package/es/lowcode/view/lc-components/FieldGroup/meta.json +167 -156
  313. package/es/lowcode/view/lc-components/FieldNumber/meta.json +142 -131
  314. package/es/lowcode/view/lc-components/FieldRadio/meta.json +115 -104
  315. package/es/lowcode/view/lc-components/FieldRegion/meta.json +121 -110
  316. package/es/lowcode/view/lc-components/FieldSelect/meta.json +152 -141
  317. package/es/lowcode/view/lc-components/FieldString/meta.json +152 -141
  318. package/es/lowcode/view/lc-components/FieldSwitch/meta.json +125 -114
  319. package/es/lowcode/view/lc-components/FieldTextarea/meta.json +143 -132
  320. package/es/lowcode/view/lc-components/FieldUpload/meta.json +165 -154
  321. package/es/lowcode/view/lc-components/FieldUser/meta.json +176 -165
  322. package/es/lowcode/view/lc-components/FieldYear/meta.json +129 -118
  323. package/es/lowcode/view/lc-components/Form/FunctionDesign.js +0 -0
  324. package/es/lowcode/view/lc-components/Form/FunctionLive.js +0 -0
  325. package/es/lowcode/view/lc-components/Form/FunctionPreview.js +0 -0
  326. package/es/lowcode/view/lc-components/Form/index.js +71 -48
  327. package/es/lowcode/view/lc-components/Form/index.less +4 -4
  328. package/es/lowcode/view/lc-components/Form/meta.json +610 -610
  329. package/es/lowcode/view/lc-components/Iframe/FunctionDesign.js +0 -0
  330. package/es/lowcode/view/lc-components/Iframe/FunctionLive.js +0 -0
  331. package/es/lowcode/view/lc-components/Iframe/FunctionPreview.js +0 -0
  332. package/es/lowcode/view/lc-components/Iframe/index.js +0 -0
  333. package/es/lowcode/view/lc-components/Iframe/meta.json +32 -32
  334. package/es/lowcode/view/lc-components/ImEx/FunctionDesign.js +0 -0
  335. package/es/lowcode/view/lc-components/ImEx/FunctionLive.js +0 -0
  336. package/es/lowcode/view/lc-components/ImEx/FunctionPreview.js +0 -0
  337. package/es/lowcode/view/lc-components/ImEx/index.js +25 -25
  338. package/es/lowcode/view/lc-components/ImEx/index.less +7 -7
  339. package/es/lowcode/view/lc-components/ImEx/meta.json +113 -113
  340. package/es/lowcode/view/lc-components/Image/FunctionDesign.js +0 -0
  341. package/es/lowcode/view/lc-components/Image/FunctionLive.js +0 -0
  342. package/es/lowcode/view/lc-components/Image/FunctionPreview.js +0 -0
  343. package/es/lowcode/view/lc-components/Image/index.js +0 -0
  344. package/es/lowcode/view/lc-components/Image/meta.json +114 -114
  345. package/es/lowcode/view/lc-components/JSX/FunctionDesign.js +0 -0
  346. package/es/lowcode/view/lc-components/JSX/FunctionLive.js +0 -0
  347. package/es/lowcode/view/lc-components/JSX/FunctionPreview.js +0 -0
  348. package/es/lowcode/view/lc-components/JSX/RuntimeComp.js +4 -4
  349. package/es/lowcode/view/lc-components/JSX/index.js +0 -0
  350. package/es/lowcode/view/lc-components/JSX/meta.json +28 -28
  351. package/es/lowcode/view/lc-components/Layout/FunctionDesign.js +0 -0
  352. package/es/lowcode/view/lc-components/Layout/FunctionLive.js +0 -0
  353. package/es/lowcode/view/lc-components/Layout/FunctionPreview.js +0 -0
  354. package/es/lowcode/view/lc-components/Layout/index.js +16 -16
  355. package/es/lowcode/view/lc-components/Layout/index.less +5 -5
  356. package/es/lowcode/view/lc-components/Layout/meta.json +107 -107
  357. package/es/lowcode/view/lc-components/Link/FunctionDesign.js +0 -0
  358. package/es/lowcode/view/lc-components/Link/FunctionLive.js +0 -0
  359. package/es/lowcode/view/lc-components/Link/FunctionPreview.js +0 -0
  360. package/es/lowcode/view/lc-components/Link/index.js +0 -0
  361. package/es/lowcode/view/lc-components/Link/meta.json +112 -112
  362. package/es/lowcode/view/lc-components/Page/meta.json +55 -55
  363. package/es/lowcode/view/lc-components/PageContent/index.js +0 -0
  364. package/es/lowcode/view/lc-components/PageContent/meta.json +9 -9
  365. package/es/lowcode/view/lc-components/PageFooter/index.js +0 -0
  366. package/es/lowcode/view/lc-components/PageFooter/meta.json +9 -9
  367. package/es/lowcode/view/lc-components/PageHeader/index.js +0 -0
  368. package/es/lowcode/view/lc-components/PageHeader/meta.json +9 -9
  369. package/es/lowcode/view/lc-components/PageLayout/FunctionDesign.js +0 -0
  370. package/es/lowcode/view/lc-components/PageLayout/FunctionLive.js +0 -0
  371. package/es/lowcode/view/lc-components/PageLayout/FunctionPreview.js +0 -0
  372. package/es/lowcode/view/lc-components/PageLayout/index.js +0 -0
  373. package/es/lowcode/view/lc-components/PageLayout/meta.json +47 -47
  374. package/es/lowcode/view/lc-components/PageModal/index.js +0 -0
  375. package/es/lowcode/view/lc-components/Section/FunctionDesign.js +0 -0
  376. package/es/lowcode/view/lc-components/Section/FunctionLive.js +0 -0
  377. package/es/lowcode/view/lc-components/Section/FunctionPreview.js +0 -0
  378. package/es/lowcode/view/lc-components/Section/index.js +0 -0
  379. package/es/lowcode/view/lc-components/Section/index.less +7 -7
  380. package/es/lowcode/view/lc-components/Section/meta.json +107 -107
  381. package/es/lowcode/view/lc-components/Split/FunctionDesign.js +0 -0
  382. package/es/lowcode/view/lc-components/Split/FunctionLive.js +0 -0
  383. package/es/lowcode/view/lc-components/Split/FunctionPreview.js +0 -0
  384. package/es/lowcode/view/lc-components/Split/index.js +0 -0
  385. package/es/lowcode/view/lc-components/Split/meta.json +53 -53
  386. package/es/lowcode/view/lc-components/Table/FunctionDesign.js +0 -0
  387. package/es/lowcode/view/lc-components/Table/FunctionLive.js +0 -0
  388. package/es/lowcode/view/lc-components/Table/FunctionPreview.js +0 -0
  389. package/es/lowcode/view/lc-components/Table/components/TopFilter.js +0 -0
  390. package/es/lowcode/view/lc-components/Table/components/TopImex.js +0 -0
  391. package/es/lowcode/view/lc-components/Table/index.js +144 -144
  392. package/es/lowcode/view/lc-components/Table/meta.json +450 -450
  393. package/es/lowcode/view/lc-components/Tabs/FunctionDesign.js +0 -0
  394. package/es/lowcode/view/lc-components/Tabs/FunctionLive.js +0 -0
  395. package/es/lowcode/view/lc-components/Tabs/FunctionPreview.js +0 -0
  396. package/es/lowcode/view/lc-components/Tabs/index.js +23 -23
  397. package/es/lowcode/view/lc-components/Tabs/meta.json +113 -113
  398. package/es/lowcode/view/lc-components/Text/FunctionDesign.js +0 -0
  399. package/es/lowcode/view/lc-components/Text/FunctionLive.js +0 -0
  400. package/es/lowcode/view/lc-components/Text/FunctionPreview.js +0 -0
  401. package/es/lowcode/view/lc-components/Text/index.js +0 -0
  402. package/es/lowcode/view/lc-components/Text/meta.json +66 -66
  403. package/es/lowcode/view/lc-components/Tree/FunctionDesign.js +0 -0
  404. package/es/lowcode/view/lc-components/Tree/FunctionLive.js +0 -0
  405. package/es/lowcode/view/lc-components/Tree/FunctionPreview.js +0 -0
  406. package/es/lowcode/view/lc-components/Tree/index.js +4 -4
  407. package/es/lowcode/view/lc-components/Tree/index.less +4 -4
  408. package/es/lowcode/view/lc-components/Tree/meta.json +357 -357
  409. package/es/lowcode/view/lc-components/Wrapper.js +0 -0
  410. package/es/lowcode/view/style/canvas.less +5 -5
  411. package/es/lowcode/view/style/loading.less +84 -84
  412. package/es/lowcode/view/style/page.less +7 -7
  413. package/es/services.js +0 -0
  414. package/es/upload/FilesWall/file.png +0 -0
  415. package/es/upload/FilesWall/index.js +13 -13
  416. package/es/upload/FilesWall/index.less +74 -74
  417. package/es/upload/Form/gridForm.js +0 -0
  418. package/es/upload/Form/index.js +0 -0
  419. package/es/upload/Form/index.less +7 -7
  420. package/es/upload/FormItem/index.js +15 -15
  421. package/es/upload/GridCell/index.js +0 -0
  422. package/es/upload/index.js +0 -0
  423. package/es/utils/action.js +0 -0
  424. package/es/utils/form.js +21 -21
  425. package/es/utils/grid.js +0 -0
  426. package/es/utils/index.js +0 -0
  427. package/lib/components/Builder/index.js +0 -0
  428. package/lib/components/ComplexItem/index.js +0 -0
  429. package/lib/components/ComplexItem/service.js +0 -0
  430. package/lib/components/IconFont/index.js +0 -0
  431. package/lib/components/LDActions/index.js +0 -0
  432. package/lib/components/LDActions/index.less +68 -68
  433. package/lib/components/LdAutoForm/index.js +0 -0
  434. package/lib/components/LdCard/index.js +0 -0
  435. package/lib/components/LdCard/model.js +0 -0
  436. package/lib/components/LdCom/index.js +0 -0
  437. package/lib/components/LdFormList/index.js +0 -0
  438. package/lib/components/LdFormList/model.js +0 -0
  439. package/lib/components/LdGrid/index.js +4 -4
  440. package/lib/components/LdGrid/model.js +0 -0
  441. package/lib/components/LdGridForm/index.js +0 -0
  442. package/lib/components/LdGridForm/index.less +7 -7
  443. package/lib/components/LdInfoPanel/index.js +0 -0
  444. package/lib/components/LdPop/index.js +0 -0
  445. package/lib/components/LdTree/index.js +34 -12
  446. package/lib/components/LdTree/index.less +40 -40
  447. package/lib/helper/FromItems.js +0 -0
  448. package/lib/helper/action.js +6 -6
  449. package/lib/helper/form.js +14 -14
  450. package/lib/helper/index.less +7 -7
  451. package/lib/helper/ldBuilder.js +0 -0
  452. package/lib/helper/ldComBuild.js +0 -0
  453. package/lib/helper/props_config.js +0 -0
  454. package/lib/index.js +0 -0
  455. package/lib/locales/zh-CN.js +0 -0
  456. package/lib/lowcode/constants/api-url.js +109 -84
  457. package/lib/lowcode/constants/event-topics.js +0 -0
  458. package/lib/lowcode/constants/index.js +0 -0
  459. package/lib/lowcode/engine/factory/DataFactory.js +0 -0
  460. package/lib/lowcode/engine/factory/panel-item-factory/CheckboxStrategy.js +0 -0
  461. package/lib/lowcode/engine/factory/panel-item-factory/DynamicStrategy.js +0 -0
  462. package/lib/lowcode/engine/factory/panel-item-factory/GroupStrategy.js +0 -0
  463. package/lib/lowcode/engine/factory/panel-item-factory/NumberStrategy.js +0 -0
  464. package/lib/lowcode/engine/factory/panel-item-factory/RadioStrategy.js +0 -0
  465. package/lib/lowcode/engine/factory/panel-item-factory/SegmentedStrategy.js +0 -0
  466. package/lib/lowcode/engine/factory/panel-item-factory/SelectStrategy.js +0 -0
  467. package/lib/lowcode/engine/factory/panel-item-factory/Strategy.js +0 -0
  468. package/lib/lowcode/engine/factory/panel-item-factory/StringStrategy.js +0 -0
  469. package/lib/lowcode/engine/factory/panel-item-factory/SwitchStrategy.js +0 -0
  470. package/lib/lowcode/engine/factory/panel-item-factory/index.js +0 -0
  471. package/lib/lowcode/engine/launcher.js +0 -0
  472. package/lib/lowcode/engine/meta/box.props.default.json +0 -0
  473. package/lib/lowcode/engine/meta/box.props.json +0 -0
  474. package/lib/lowcode/engine/meta/button.props.default.json +0 -0
  475. package/lib/lowcode/engine/meta/button.props.json +0 -0
  476. package/lib/lowcode/engine/meta/cardlist.props.default.json +0 -0
  477. package/lib/lowcode/engine/meta/cardlist.props.json +0 -0
  478. package/lib/lowcode/engine/meta/components-list.json +0 -0
  479. package/lib/lowcode/engine/meta/dialog.props.default.json +0 -0
  480. package/lib/lowcode/engine/meta/dialog.props.json +0 -0
  481. package/lib/lowcode/engine/meta/drawer.props.default.json +0 -0
  482. package/lib/lowcode/engine/meta/drawer.props.json +0 -0
  483. package/lib/lowcode/engine/meta/fieldcolor.props.default.json +3 -0
  484. package/lib/lowcode/engine/meta/fieldcolor.props.json +13 -0
  485. package/lib/lowcode/engine/meta/fieldcomplex.props.default.json +3 -0
  486. package/lib/lowcode/engine/meta/fieldcomplex.props.json +13 -0
  487. package/lib/lowcode/engine/meta/fielddate.props.default.json +3 -0
  488. package/lib/lowcode/engine/meta/fielddate.props.json +13 -0
  489. package/lib/lowcode/engine/meta/fielddict.props.default.json +3 -0
  490. package/lib/lowcode/engine/meta/fielddict.props.json +13 -0
  491. package/lib/lowcode/engine/meta/fieldeditor.props.default.json +3 -0
  492. package/lib/lowcode/engine/meta/fieldeditor.props.json +13 -0
  493. package/lib/lowcode/engine/meta/fieldgroup.props.default.json +3 -0
  494. package/lib/lowcode/engine/meta/fieldgroup.props.json +13 -0
  495. package/lib/lowcode/engine/meta/fieldnumber.props.default.json +3 -0
  496. package/lib/lowcode/engine/meta/fieldnumber.props.json +13 -0
  497. package/lib/lowcode/engine/meta/fieldradio.props.default.json +3 -0
  498. package/lib/lowcode/engine/meta/fieldradio.props.json +13 -0
  499. package/lib/lowcode/engine/meta/fieldregion.props.default.json +3 -0
  500. package/lib/lowcode/engine/meta/fieldregion.props.json +13 -0
  501. package/lib/lowcode/engine/meta/fieldselect.props.default.json +3 -0
  502. package/lib/lowcode/engine/meta/fieldselect.props.json +13 -0
  503. package/lib/lowcode/engine/meta/fieldstring.props.default.json +3 -0
  504. package/lib/lowcode/engine/meta/fieldstring.props.json +13 -0
  505. package/lib/lowcode/engine/meta/fieldswitch.props.default.json +3 -0
  506. package/lib/lowcode/engine/meta/fieldswitch.props.json +13 -0
  507. package/lib/lowcode/engine/meta/fieldtextarea.props.default.json +3 -0
  508. package/lib/lowcode/engine/meta/fieldtextarea.props.json +13 -0
  509. package/lib/lowcode/engine/meta/fieldupload.props.default.json +3 -0
  510. package/lib/lowcode/engine/meta/fieldupload.props.json +13 -0
  511. package/lib/lowcode/engine/meta/fielduser.props.default.json +3 -0
  512. package/lib/lowcode/engine/meta/fielduser.props.json +13 -0
  513. package/lib/lowcode/engine/meta/fieldyear.props.default.json +3 -0
  514. package/lib/lowcode/engine/meta/fieldyear.props.json +13 -0
  515. package/lib/lowcode/engine/meta/form.props.default.json +0 -0
  516. package/lib/lowcode/engine/meta/form.props.json +0 -0
  517. package/lib/lowcode/engine/meta/iframe.props.default.json +0 -0
  518. package/lib/lowcode/engine/meta/iframe.props.json +0 -0
  519. package/lib/lowcode/engine/meta/image.props.default.json +0 -0
  520. package/lib/lowcode/engine/meta/image.props.json +0 -0
  521. package/lib/lowcode/engine/meta/imex.props.default.json +0 -0
  522. package/lib/lowcode/engine/meta/imex.props.json +0 -0
  523. package/lib/lowcode/engine/meta/js-editor/auto-complete.json +20 -20
  524. package/lib/lowcode/engine/meta/jsx.props.default.json +0 -0
  525. package/lib/lowcode/engine/meta/jsx.props.json +0 -0
  526. package/lib/lowcode/engine/meta/layout.props.default.json +0 -0
  527. package/lib/lowcode/engine/meta/layout.props.json +0 -0
  528. package/lib/lowcode/engine/meta/link.props.default.json +0 -0
  529. package/lib/lowcode/engine/meta/link.props.json +0 -0
  530. package/lib/lowcode/engine/meta/page.props.default.json +0 -0
  531. package/lib/lowcode/engine/meta/page.props.json +0 -0
  532. package/lib/lowcode/engine/meta/pagecontent.props.default.json +0 -0
  533. package/lib/lowcode/engine/meta/pagecontent.props.json +0 -0
  534. package/lib/lowcode/engine/meta/pagefooter.props.default.json +0 -0
  535. package/lib/lowcode/engine/meta/pagefooter.props.json +0 -0
  536. package/lib/lowcode/engine/meta/pageheader.props.default.json +0 -0
  537. package/lib/lowcode/engine/meta/pageheader.props.json +0 -0
  538. package/lib/lowcode/engine/meta/pagelayout.props.default.json +0 -0
  539. package/lib/lowcode/engine/meta/pagelayout.props.json +0 -0
  540. package/lib/lowcode/engine/meta/section.props.default.json +0 -0
  541. package/lib/lowcode/engine/meta/section.props.json +0 -0
  542. package/lib/lowcode/engine/meta/split.props.default.json +0 -0
  543. package/lib/lowcode/engine/meta/split.props.json +0 -0
  544. package/lib/lowcode/engine/meta/table.props.default.json +0 -0
  545. package/lib/lowcode/engine/meta/table.props.json +0 -0
  546. package/lib/lowcode/engine/meta/tabs.props.default.json +0 -0
  547. package/lib/lowcode/engine/meta/tabs.props.json +0 -0
  548. package/lib/lowcode/engine/meta/text.props.default.json +0 -0
  549. package/lib/lowcode/engine/meta/text.props.json +0 -0
  550. package/lib/lowcode/engine/meta/tree.props.default.json +0 -0
  551. package/lib/lowcode/engine/meta/tree.props.json +0 -0
  552. package/lib/lowcode/engine/provider/ContextProvider/index.js +63 -56
  553. package/lib/lowcode/engine/provider/ContextProvider/{usePageState.js → usePageVar.js} +21 -4
  554. package/lib/lowcode/engine/provider/EventBusProvider.js +0 -0
  555. package/lib/lowcode/engine/provider/RemoteSourceProvider.js +0 -0
  556. package/lib/lowcode/engine/tools/dataProcess.js +76 -76
  557. package/lib/lowcode/engine/tools/diff.js +0 -0
  558. package/lib/lowcode/engine/tools/helper.js +0 -0
  559. package/lib/lowcode/engine/tools/useCanvasRender.js +0 -0
  560. package/lib/lowcode/engine/tools/useCombinedRefs.js +0 -0
  561. package/lib/lowcode/engine/tools/usePageDataStore.js +0 -0
  562. package/lib/lowcode/engine/tools/usePromiseState.js +0 -0
  563. package/lib/lowcode/engine/tools/useTodo.js +0 -0
  564. package/lib/lowcode/index.js +0 -0
  565. package/lib/lowcode/painter/Components.js +2 -2
  566. package/lib/lowcode/painter/Design.js +0 -0
  567. package/lib/lowcode/painter/DesignOperator.js +0 -0
  568. package/lib/lowcode/painter/DesignToolbar.js +6 -7
  569. package/lib/lowcode/painter/I18n.js +0 -0
  570. package/lib/lowcode/painter/Outline.js +0 -0
  571. package/lib/lowcode/painter/Panel.js +0 -0
  572. package/lib/lowcode/painter/Ribbon.js +0 -0
  573. package/lib/lowcode/painter/components/ActionBindModal.js +0 -0
  574. package/lib/lowcode/painter/components/AdvancePanel.js +0 -0
  575. package/lib/lowcode/painter/components/AttrsPanel.js +0 -0
  576. package/lib/lowcode/painter/components/Collapse.js +26 -26
  577. package/lib/lowcode/painter/components/ColorInput.js +24 -24
  578. package/lib/lowcode/painter/components/DragDrop/DragDropContext.js +0 -0
  579. package/lib/lowcode/painter/components/DragDrop/DragDropWrapper.js +0 -0
  580. package/lib/lowcode/painter/components/DragDrop/Overlay.js +0 -0
  581. package/lib/lowcode/painter/components/DragDrop/TreeDragDropWrapper.js +0 -0
  582. package/lib/lowcode/painter/components/FieldSelector.js +0 -0
  583. package/lib/lowcode/painter/components/ListEditor.js +24 -24
  584. package/lib/lowcode/painter/components/NumberInput.js +28 -28
  585. package/lib/lowcode/painter/components/PanelItem.js +24 -24
  586. package/lib/lowcode/painter/components/PopConfirm.js +8 -8
  587. package/lib/lowcode/painter/components/PopForm.js +27 -27
  588. package/lib/lowcode/painter/components/PreviewIframe.js +0 -0
  589. package/lib/lowcode/painter/components/RuleInput.js +30 -30
  590. package/lib/lowcode/painter/components/SortBox.js +22 -22
  591. package/lib/lowcode/painter/components/TreeEditor.js +0 -0
  592. package/lib/lowcode/painter/components/code-editor/BaseEditor.js +54 -33
  593. package/lib/lowcode/painter/components/code-editor/CssEditor.js +25 -25
  594. package/lib/lowcode/painter/components/code-editor/FullScreenEditor.js +23 -23
  595. package/lib/lowcode/painter/components/code-editor/JSEditor.js +20 -20
  596. package/lib/lowcode/painter/components/code-editor/JsonEditor.js +25 -25
  597. package/lib/lowcode/painter/components/code-editor/index.js +0 -0
  598. package/lib/lowcode/painter/components/field-setting/BatchSetting.js +0 -0
  599. package/lib/lowcode/painter/components/field-setting/CheckFrontRules.js +0 -0
  600. package/lib/lowcode/painter/components/field-setting/CheckRules.js +0 -0
  601. package/lib/lowcode/painter/components/field-setting/FieldAttrs.js +0 -0
  602. package/lib/lowcode/painter/components/field-setting/FieldAttrsModal.js +0 -0
  603. package/lib/lowcode/painter/components/field-setting/FieldDefaultValue.js +0 -0
  604. package/lib/lowcode/painter/components/field-setting/FieldRulesModal.js +0 -0
  605. package/lib/lowcode/painter/components/field-setting/SettingUI.js +0 -0
  606. package/lib/lowcode/painter/components/field-setting/index.js +0 -0
  607. package/lib/lowcode/painter/components/field-setting/meta/frontRules.js +0 -0
  608. package/lib/lowcode/painter/index.js +0 -0
  609. package/lib/lowcode/painter/panel-section/ActionsColumnWidth.js +0 -0
  610. package/lib/lowcode/painter/panel-section/ActionsEditor/ActionEditor.js +0 -0
  611. package/lib/lowcode/painter/panel-section/ActionsEditor/index.js +0 -0
  612. package/lib/lowcode/painter/panel-section/BlockEditor/index.js +0 -0
  613. package/lib/lowcode/painter/panel-section/BlocksEditor/BlockEditorItem.js +0 -0
  614. package/lib/lowcode/painter/panel-section/BlocksEditor/index.js +0 -0
  615. package/lib/lowcode/painter/panel-section/ButtonType.js +0 -0
  616. package/lib/lowcode/painter/panel-section/ComponentSelector.js +0 -0
  617. package/lib/lowcode/painter/panel-section/DataSetSelector.js +0 -0
  618. package/lib/lowcode/painter/panel-section/FieldState.js +70 -0
  619. package/lib/lowcode/painter/panel-section/FieldsSetting.js +0 -0
  620. package/lib/lowcode/painter/panel-section/I18nInput.js +0 -0
  621. package/lib/lowcode/painter/panel-section/Icon.js +23 -23
  622. package/lib/lowcode/painter/panel-section/IconConditionSelector.js +0 -0
  623. package/lib/lowcode/painter/panel-section/IconSelector.js +16 -16
  624. package/lib/lowcode/painter/panel-section/ImpExp.js +0 -0
  625. package/lib/lowcode/painter/panel-section/ImpExpAlone.js +0 -0
  626. package/lib/lowcode/painter/panel-section/JSEditor.js +0 -0
  627. package/lib/lowcode/painter/panel-section/LayoutRatio.js +21 -21
  628. package/lib/lowcode/painter/panel-section/PageLayoutDisplay.js +0 -0
  629. package/lib/lowcode/painter/panel-section/SerialsSelector.js +0 -0
  630. package/lib/lowcode/painter/panel-section/SplitDisplay.js +0 -0
  631. package/lib/lowcode/painter/panel-section/StylePanel/BackGround.js +2 -2
  632. package/lib/lowcode/painter/panel-section/StylePanel/Border.js +2 -2
  633. package/lib/lowcode/painter/panel-section/StylePanel/BorderRadius.js +2 -2
  634. package/lib/lowcode/painter/panel-section/StylePanel/BorderRadiusSelector.js +2 -2
  635. package/lib/lowcode/painter/panel-section/StylePanel/BorderSelector.js +2 -2
  636. package/lib/lowcode/painter/panel-section/StylePanel/Display.js +2 -2
  637. package/lib/lowcode/painter/panel-section/StylePanel/DisplaySvg.js +0 -0
  638. package/lib/lowcode/painter/panel-section/StylePanel/Font.js +2 -2
  639. package/lib/lowcode/painter/panel-section/StylePanel/FontEditor.js +2 -2
  640. package/lib/lowcode/painter/panel-section/StylePanel/GapSelector.js +2 -2
  641. package/lib/lowcode/painter/panel-section/StylePanel/HighLightPanel.js +2 -2
  642. package/lib/lowcode/painter/panel-section/StylePanel/HighLigthtSpan.js +2 -2
  643. package/lib/lowcode/painter/panel-section/StylePanel/HightLightSvg.js +2 -2
  644. package/lib/lowcode/painter/panel-section/StylePanel/MainPanel.js +2 -2
  645. package/lib/lowcode/painter/panel-section/StylePanel/Margin.js +2 -2
  646. package/lib/lowcode/painter/panel-section/StylePanel/Opacity.js +2 -2
  647. package/lib/lowcode/painter/panel-section/StylePanel/Padding.js +2 -2
  648. package/lib/lowcode/painter/panel-section/StylePanel/Pointer.js +2 -2
  649. package/lib/lowcode/painter/panel-section/StylePanel/Shadow.js +2 -2
  650. package/lib/lowcode/painter/panel-section/StylePanel/Size.js +2 -2
  651. package/lib/lowcode/painter/panel-section/StylePanel/StyleContext.js +2 -2
  652. package/lib/lowcode/painter/panel-section/StylePanel/StyleRow.js +2 -2
  653. package/lib/lowcode/painter/panel-section/StylePanel/WidthHeight.js +2 -2
  654. package/lib/lowcode/painter/panel-section/StylePanel/index.js +15 -15
  655. package/lib/lowcode/painter/panel-section/TabItems.js +0 -0
  656. package/lib/lowcode/painter/panel-section/TableTopFilter.js +0 -0
  657. package/lib/lowcode/painter/panel-section/TableZebra.js +0 -0
  658. package/lib/lowcode/painter/panel-section/TreeRootEditor.js +0 -0
  659. package/lib/lowcode/painter/panel-section/WidthHeight.js +0 -0
  660. package/lib/lowcode/painter/services/I18n.js +0 -0
  661. package/lib/lowcode/painter/style/action-bind-modal.less +102 -102
  662. package/lib/lowcode/painter/style/actions-editor.less +15 -15
  663. package/lib/lowcode/painter/style/border-editor.less +36 -36
  664. package/lib/lowcode/painter/style/border-radius-selector.less +42 -42
  665. package/lib/lowcode/painter/style/border-selector.less +39 -39
  666. package/lib/lowcode/painter/style/button-type.less +5 -5
  667. package/lib/lowcode/painter/style/collapse.less +28 -28
  668. package/lib/lowcode/painter/style/color-input.less +19 -19
  669. package/lib/lowcode/painter/style/components.less +91 -91
  670. package/lib/lowcode/painter/style/design.less +159 -159
  671. package/lib/lowcode/painter/style/display.less +17 -17
  672. package/lib/lowcode/painter/style/dragdrop.less +10 -10
  673. package/lib/lowcode/painter/style/fields-setting.less +25 -25
  674. package/lib/lowcode/painter/style/font-editor.less +9 -9
  675. package/lib/lowcode/painter/style/fullscreen-editor.less +17 -17
  676. package/lib/lowcode/painter/style/icon-selector.less +22 -22
  677. package/lib/lowcode/painter/style/icon.less +10 -10
  678. package/lib/lowcode/painter/style/impexp.less +7 -7
  679. package/lib/lowcode/painter/style/index.less +6 -6
  680. package/lib/lowcode/painter/style/layout-ratio.less +51 -51
  681. package/lib/lowcode/painter/style/list-editor.less +95 -95
  682. package/lib/lowcode/painter/style/number-input.less +17 -17
  683. package/lib/lowcode/painter/style/outline.less +28 -28
  684. package/lib/lowcode/painter/style/page-layout-display.less +27 -27
  685. package/lib/lowcode/painter/style/panel-attrs.less +43 -43
  686. package/lib/lowcode/painter/style/panel-item.less +54 -54
  687. package/lib/lowcode/painter/style/panel.less +98 -98
  688. package/lib/lowcode/painter/style/pop-confirm.less +17 -17
  689. package/lib/lowcode/painter/style/pop-form.less +19 -19
  690. package/lib/lowcode/painter/style/radio.less +24 -24
  691. package/lib/lowcode/painter/style/ribbon.less +5 -5
  692. package/lib/lowcode/painter/style/rule-input.less +12 -12
  693. package/lib/lowcode/painter/style/split-display.less +18 -18
  694. package/lib/lowcode/painter/style/style-panel.less +37 -37
  695. package/lib/lowcode/painter/style/tabitems.less +90 -90
  696. package/lib/lowcode/painter/style/treedragdrop.less +19 -19
  697. package/lib/lowcode/preview/index.js +0 -0
  698. package/lib/lowcode/view/Canvas.js +0 -0
  699. package/lib/lowcode/view/Loading.js +0 -0
  700. package/lib/lowcode/view/Page.js +0 -0
  701. package/lib/lowcode/view/index.js +0 -0
  702. package/lib/lowcode/view/lc-components/Box/FunctionDesign.js +0 -0
  703. package/lib/lowcode/view/lc-components/Box/FunctionLive.js +0 -0
  704. package/lib/lowcode/view/lc-components/Box/FunctionPreview.js +0 -0
  705. package/lib/lowcode/view/lc-components/Box/index.js +4 -4
  706. package/lib/lowcode/view/lc-components/Box/index.less +14 -14
  707. package/lib/lowcode/view/lc-components/Box/meta.json +40 -40
  708. package/lib/lowcode/view/lc-components/Button/FunctionDesign.js +0 -0
  709. package/lib/lowcode/view/lc-components/Button/FunctionLive.js +0 -0
  710. package/lib/lowcode/view/lc-components/Button/FunctionPreview.js +0 -0
  711. package/lib/lowcode/view/lc-components/Button/index.js +33 -33
  712. package/lib/lowcode/view/lc-components/Button/meta.json +127 -127
  713. package/lib/lowcode/view/lc-components/Button/style.less +2 -2
  714. package/lib/lowcode/view/lc-components/CardList/FunctionDesign.js +0 -0
  715. package/lib/lowcode/view/lc-components/CardList/FunctionLive.js +0 -0
  716. package/lib/lowcode/view/lc-components/CardList/FunctionPreview.js +0 -0
  717. package/lib/lowcode/view/lc-components/CardList/index.js +0 -0
  718. package/lib/lowcode/view/lc-components/CardList/meta.json +153 -153
  719. package/lib/lowcode/view/lc-components/Dialog/FunctionDesign.js +0 -0
  720. package/lib/lowcode/view/lc-components/Dialog/FunctionLive.js +0 -0
  721. package/lib/lowcode/view/lc-components/Dialog/FunctionPreview.js +0 -0
  722. package/lib/lowcode/view/lc-components/Dialog/index.js +13 -13
  723. package/lib/lowcode/view/lc-components/Dialog/index.less +3 -3
  724. package/lib/lowcode/view/lc-components/Dialog/meta.json +150 -150
  725. package/lib/lowcode/view/lc-components/Drawer/FunctionDesign.js +0 -0
  726. package/lib/lowcode/view/lc-components/Drawer/FunctionLive.js +0 -0
  727. package/lib/lowcode/view/lc-components/Drawer/FunctionPreview.js +0 -0
  728. package/lib/lowcode/view/lc-components/Drawer/index.js +12 -12
  729. package/lib/lowcode/view/lc-components/Drawer/index.less +9 -9
  730. package/lib/lowcode/view/lc-components/Drawer/meta.json +131 -131
  731. package/lib/lowcode/view/lc-components/FieldColor/meta.json +157 -146
  732. package/lib/lowcode/view/lc-components/FieldComplex/meta.json +133 -122
  733. package/lib/lowcode/view/lc-components/FieldDate/meta.json +139 -128
  734. package/lib/lowcode/view/lc-components/FieldDict/meta.json +138 -127
  735. package/lib/lowcode/view/lc-components/FieldEditor/meta.json +138 -127
  736. package/lib/lowcode/view/lc-components/FieldGroup/meta.json +167 -156
  737. package/lib/lowcode/view/lc-components/FieldNumber/meta.json +142 -131
  738. package/lib/lowcode/view/lc-components/FieldRadio/meta.json +115 -104
  739. package/lib/lowcode/view/lc-components/FieldRegion/meta.json +121 -110
  740. package/lib/lowcode/view/lc-components/FieldSelect/meta.json +152 -141
  741. package/lib/lowcode/view/lc-components/FieldString/meta.json +152 -141
  742. package/lib/lowcode/view/lc-components/FieldSwitch/meta.json +125 -114
  743. package/lib/lowcode/view/lc-components/FieldTextarea/meta.json +143 -132
  744. package/lib/lowcode/view/lc-components/FieldUpload/meta.json +165 -154
  745. package/lib/lowcode/view/lc-components/FieldUser/meta.json +176 -165
  746. package/lib/lowcode/view/lc-components/FieldYear/meta.json +129 -118
  747. package/lib/lowcode/view/lc-components/Form/FunctionDesign.js +0 -0
  748. package/lib/lowcode/view/lc-components/Form/FunctionLive.js +0 -0
  749. package/lib/lowcode/view/lc-components/Form/FunctionPreview.js +0 -0
  750. package/lib/lowcode/view/lc-components/Form/index.js +70 -47
  751. package/lib/lowcode/view/lc-components/Form/index.less +4 -4
  752. package/lib/lowcode/view/lc-components/Form/meta.json +610 -610
  753. package/lib/lowcode/view/lc-components/Iframe/FunctionDesign.js +0 -0
  754. package/lib/lowcode/view/lc-components/Iframe/FunctionLive.js +0 -0
  755. package/lib/lowcode/view/lc-components/Iframe/FunctionPreview.js +0 -0
  756. package/lib/lowcode/view/lc-components/Iframe/index.js +0 -0
  757. package/lib/lowcode/view/lc-components/Iframe/meta.json +32 -32
  758. package/lib/lowcode/view/lc-components/ImEx/FunctionDesign.js +0 -0
  759. package/lib/lowcode/view/lc-components/ImEx/FunctionLive.js +0 -0
  760. package/lib/lowcode/view/lc-components/ImEx/FunctionPreview.js +0 -0
  761. package/lib/lowcode/view/lc-components/ImEx/index.js +25 -25
  762. package/lib/lowcode/view/lc-components/ImEx/index.less +7 -7
  763. package/lib/lowcode/view/lc-components/ImEx/meta.json +113 -113
  764. package/lib/lowcode/view/lc-components/Image/FunctionDesign.js +0 -0
  765. package/lib/lowcode/view/lc-components/Image/FunctionLive.js +0 -0
  766. package/lib/lowcode/view/lc-components/Image/FunctionPreview.js +0 -0
  767. package/lib/lowcode/view/lc-components/Image/index.js +0 -0
  768. package/lib/lowcode/view/lc-components/Image/meta.json +114 -114
  769. package/lib/lowcode/view/lc-components/JSX/FunctionDesign.js +0 -0
  770. package/lib/lowcode/view/lc-components/JSX/FunctionLive.js +0 -0
  771. package/lib/lowcode/view/lc-components/JSX/FunctionPreview.js +0 -0
  772. package/lib/lowcode/view/lc-components/JSX/RuntimeComp.js +4 -4
  773. package/lib/lowcode/view/lc-components/JSX/index.js +0 -0
  774. package/lib/lowcode/view/lc-components/JSX/meta.json +28 -28
  775. package/lib/lowcode/view/lc-components/Layout/FunctionDesign.js +0 -0
  776. package/lib/lowcode/view/lc-components/Layout/FunctionLive.js +0 -0
  777. package/lib/lowcode/view/lc-components/Layout/FunctionPreview.js +0 -0
  778. package/lib/lowcode/view/lc-components/Layout/index.js +16 -16
  779. package/lib/lowcode/view/lc-components/Layout/index.less +5 -5
  780. package/lib/lowcode/view/lc-components/Layout/meta.json +107 -107
  781. package/lib/lowcode/view/lc-components/Link/FunctionDesign.js +0 -0
  782. package/lib/lowcode/view/lc-components/Link/FunctionLive.js +0 -0
  783. package/lib/lowcode/view/lc-components/Link/FunctionPreview.js +0 -0
  784. package/lib/lowcode/view/lc-components/Link/index.js +0 -0
  785. package/lib/lowcode/view/lc-components/Link/meta.json +112 -112
  786. package/lib/lowcode/view/lc-components/Page/meta.json +55 -55
  787. package/lib/lowcode/view/lc-components/PageContent/index.js +0 -0
  788. package/lib/lowcode/view/lc-components/PageContent/meta.json +9 -9
  789. package/lib/lowcode/view/lc-components/PageFooter/index.js +0 -0
  790. package/lib/lowcode/view/lc-components/PageFooter/meta.json +9 -9
  791. package/lib/lowcode/view/lc-components/PageHeader/index.js +0 -0
  792. package/lib/lowcode/view/lc-components/PageHeader/meta.json +9 -9
  793. package/lib/lowcode/view/lc-components/PageLayout/FunctionDesign.js +0 -0
  794. package/lib/lowcode/view/lc-components/PageLayout/FunctionLive.js +0 -0
  795. package/lib/lowcode/view/lc-components/PageLayout/FunctionPreview.js +0 -0
  796. package/lib/lowcode/view/lc-components/PageLayout/index.js +0 -0
  797. package/lib/lowcode/view/lc-components/PageLayout/meta.json +47 -47
  798. package/lib/lowcode/view/lc-components/PageModal/index.js +0 -0
  799. package/lib/lowcode/view/lc-components/Section/FunctionDesign.js +0 -0
  800. package/lib/lowcode/view/lc-components/Section/FunctionLive.js +0 -0
  801. package/lib/lowcode/view/lc-components/Section/FunctionPreview.js +0 -0
  802. package/lib/lowcode/view/lc-components/Section/index.js +0 -0
  803. package/lib/lowcode/view/lc-components/Section/index.less +7 -7
  804. package/lib/lowcode/view/lc-components/Section/meta.json +107 -107
  805. package/lib/lowcode/view/lc-components/Split/FunctionDesign.js +0 -0
  806. package/lib/lowcode/view/lc-components/Split/FunctionLive.js +0 -0
  807. package/lib/lowcode/view/lc-components/Split/FunctionPreview.js +0 -0
  808. package/lib/lowcode/view/lc-components/Split/index.js +0 -0
  809. package/lib/lowcode/view/lc-components/Split/meta.json +53 -53
  810. package/lib/lowcode/view/lc-components/Table/FunctionDesign.js +0 -0
  811. package/lib/lowcode/view/lc-components/Table/FunctionLive.js +0 -0
  812. package/lib/lowcode/view/lc-components/Table/FunctionPreview.js +0 -0
  813. package/lib/lowcode/view/lc-components/Table/components/TopFilter.js +0 -0
  814. package/lib/lowcode/view/lc-components/Table/components/TopImex.js +0 -0
  815. package/lib/lowcode/view/lc-components/Table/index.js +144 -144
  816. package/lib/lowcode/view/lc-components/Table/meta.json +450 -450
  817. package/lib/lowcode/view/lc-components/Tabs/FunctionDesign.js +0 -0
  818. package/lib/lowcode/view/lc-components/Tabs/FunctionLive.js +0 -0
  819. package/lib/lowcode/view/lc-components/Tabs/FunctionPreview.js +0 -0
  820. package/lib/lowcode/view/lc-components/Tabs/index.js +23 -23
  821. package/lib/lowcode/view/lc-components/Tabs/meta.json +113 -113
  822. package/lib/lowcode/view/lc-components/Text/FunctionDesign.js +0 -0
  823. package/lib/lowcode/view/lc-components/Text/FunctionLive.js +0 -0
  824. package/lib/lowcode/view/lc-components/Text/FunctionPreview.js +0 -0
  825. package/lib/lowcode/view/lc-components/Text/index.js +0 -0
  826. package/lib/lowcode/view/lc-components/Text/meta.json +66 -66
  827. package/lib/lowcode/view/lc-components/Tree/FunctionDesign.js +0 -0
  828. package/lib/lowcode/view/lc-components/Tree/FunctionLive.js +0 -0
  829. package/lib/lowcode/view/lc-components/Tree/FunctionPreview.js +0 -0
  830. package/lib/lowcode/view/lc-components/Tree/index.js +4 -4
  831. package/lib/lowcode/view/lc-components/Tree/index.less +4 -4
  832. package/lib/lowcode/view/lc-components/Tree/meta.json +357 -357
  833. package/lib/lowcode/view/lc-components/Wrapper.js +0 -0
  834. package/lib/lowcode/view/style/canvas.less +5 -5
  835. package/lib/lowcode/view/style/loading.less +84 -84
  836. package/lib/lowcode/view/style/page.less +7 -7
  837. package/lib/services.js +0 -0
  838. package/lib/upload/FilesWall/file.png +0 -0
  839. package/lib/upload/FilesWall/index.js +13 -13
  840. package/lib/upload/FilesWall/index.less +74 -74
  841. package/lib/upload/Form/gridForm.js +0 -0
  842. package/lib/upload/Form/index.js +0 -0
  843. package/lib/upload/Form/index.less +7 -7
  844. package/lib/upload/FormItem/index.js +15 -15
  845. package/lib/upload/GridCell/index.js +0 -0
  846. package/lib/upload/index.js +0 -0
  847. package/lib/utils/action.js +0 -0
  848. package/lib/utils/form.js +21 -21
  849. package/lib/utils/grid.js +0 -0
  850. package/lib/utils/index.js +0 -0
  851. package/lowcode.js +1 -1
  852. package/package.json +173 -173
  853. package/upload.js +1 -1
  854. package/utils.js +1 -1
  855. package/es/lowcode/engine/meta/fielddatadic.props.default.json +0 -16
  856. package/es/lowcode/engine/meta/fielddatadic.props.json +0 -73
  857. package/es/lowcode/engine/provider/ContextProvider/usePageState.js +0 -21
  858. package/lib/lowcode/engine/meta/fielddatadic.props.default.json +0 -16
  859. package/lib/lowcode/engine/meta/fielddatadic.props.json +0 -73
@@ -6,7 +6,7 @@ import { useMemoizedFn, useUpdateEffect } from 'ahooks';
6
6
  import diff from "../../tools/diff";
7
7
  import { useLDEventBus } from "../EventBusProvider";
8
8
  import RemoteSourceProvider, { RemoteSourceContext } from "../RemoteSourceProvider";
9
- import usePageState from "./usePageState";
9
+ import usePageVar from "./usePageVar";
10
10
  import useTodo from "../../tools/useTodo";
11
11
  import * as topics from "../../../constants/event-topics";
12
12
  export var Context = /*#__PURE__*/createContext(null);
@@ -28,17 +28,19 @@ export default (function (_ref) {
28
28
  callBehavior = _useTodo2[1],
29
29
  loading = _useTodo2[2];
30
30
 
31
- /**
32
- * 页面公共资源
31
+ /**
32
+ * 页面状态
33
33
  */
34
- var _usePageState = usePageState(null),
35
- state = _usePageState.state,
36
- prevState = _usePageState.prevState,
37
- setState = _usePageState.setState,
38
- getState = _usePageState.getState;
34
+ var _usePageVar = usePageVar(null, null),
35
+ state = _usePageVar.state,
36
+ prevState = _usePageVar.prevState,
37
+ setState = _usePageVar.setState,
38
+ getState = _usePageVar.getState,
39
+ global = _usePageVar.global,
40
+ setGlobal = _usePageVar.setGlobal;
39
41
 
40
- /**
41
- * 组件列表
42
+ /**
43
+ * 组件列表
42
44
  */
43
45
  var _componentList = useRef([]);
44
46
  var _privateGetter = useRef({
@@ -50,18 +52,18 @@ export default (function (_ref) {
50
52
  }
51
53
  });
52
54
 
53
- /**
54
- * 注册组件
55
- * id:string 组件id
56
- * component:ReactNode 组件
55
+ /**
56
+ * 注册组件
57
+ * id:string 组件id
58
+ * component:ReactNode 组件
57
59
  */
58
60
  var _register = useMemoizedFn(function (id, component) {
59
61
  _componentList.current.push([id, component]);
60
62
  });
61
63
 
62
- /**
63
- * 注销组件
64
- * id:string 组件id
64
+ /**
65
+ * 注销组件
66
+ * id:string 组件id
65
67
  */
66
68
  var _unregister = useMemoizedFn(function (id) {
67
69
  _componentList.current = _componentList.current.filter(function (_ref2) {
@@ -71,10 +73,10 @@ export default (function (_ref) {
71
73
  });
72
74
  });
73
75
 
74
- /**
75
- * 根据组件id获取组件
76
- * compId:string 组件id
77
- * return:ReactNode
76
+ /**
77
+ * 根据组件id获取组件
78
+ * compId:string 组件id
79
+ * return:ReactNode
78
80
  */
79
81
  var getElementById = useMemoizedFn(function (compId) {
80
82
  var _componentList$curren;
@@ -85,10 +87,10 @@ export default (function (_ref) {
85
87
  })) === null || _componentList$curren === void 0 ? void 0 : _componentList$curren[1];
86
88
  });
87
89
 
88
- /**
89
- * 根据组件id获取父组件
90
- * compId:string 组件id
91
- * return:ReactNode
90
+ /**
91
+ * 根据组件id获取父组件
92
+ * compId:string 组件id
93
+ * return:ReactNode
92
94
  */
93
95
  var getParentElement = useMemoizedFn(function (compId) {
94
96
  var compMap = new Map(_componentList.current);
@@ -98,9 +100,9 @@ export default (function (_ref) {
98
100
  return compMap(_parentId);
99
101
  });
100
102
 
101
- /**
102
- * 获取url参数
103
- * return:object
103
+ /**
104
+ * 获取url参数
105
+ * return:object
104
106
  */
105
107
  var getUrlParams = useMemoizedFn(function () {
106
108
  return history.location.query;
@@ -116,53 +118,53 @@ export default (function (_ref) {
116
118
  var ctx = new Proxy(_objectSpread({
117
119
  _register: _register,
118
120
  _unregister: _unregister,
119
- /**
120
- * @property {boolean} loading - loading状态
121
+ /**
122
+ * @property {boolean} loading - loading状态
121
123
  */
122
124
  loading: loading,
123
- /**
124
- * @property {object} history - 当前路由信息
125
+ /**
126
+ * @property {object} history - 当前路由信息
125
127
  */
126
128
  history: history,
127
- /**
128
- * @method - 执行行为接口
129
- * @param {object} evns - moduleCode: 模块编码,datasetCode:数据集编码,behaviorKey:行为key
130
- * @param {object} params - 链接参数
131
- * @param {object} data - body参数
129
+ /**
130
+ * @method - 执行行为接口
131
+ * @param {object} evns - moduleCode: 模块编码,datasetCode:数据集编码,behaviorKey:行为key
132
+ * @param {object} params - 链接参数
133
+ * @param {object} data - body参数
132
134
  */
133
135
  callBehavior: callBehavior,
134
- /**
135
- * @property {object} topics - 内置的事件话题
136
+ /**
137
+ * @property {object} topics - 内置的事件话题
136
138
  */
137
139
  topics: topics,
138
- /**
139
- * @property {string} PRIMARY_KEY - 主键key
140
+ /**
141
+ * @property {string} PRIMARY_KEY - 主键key
140
142
  */
141
143
  PRIMARY_KEY: window.appConfig.constraintKeys.PRIMARY,
142
144
  PARENT_KEY: window.appConfig.constraintKeys.PARENT,
143
- /**
144
- * @method - 根据组件ID获取实例
145
- * @param {string} compId - 组件ID
146
- * @return {object} target - 组件实例
145
+ /**
146
+ * @method - 根据组件ID获取实例
147
+ * @param {string} compId - 组件ID
148
+ * @return {object} target - 组件实例
147
149
  */
148
150
  getElementById: getElementById,
149
- /**
150
- * @method - 根据组件ID获取父组件实例
151
- * @param {string} compId - 组件ID
152
- * @return {object} target - 父组件实例
151
+ /**
152
+ * @method - 根据组件ID获取父组件实例
153
+ * @param {string} compId - 组件ID
154
+ * @return {object} target - 父组件实例
153
155
  */
154
156
  getParentElement: getParentElement,
155
- /**
156
- * @method - 执行行为池
157
- * @param {object} actionPool - 行为池
158
- * @param {object} args - 参数
157
+ /**
158
+ * @method - 执行行为池
159
+ * @param {object} actionPool - 行为池
160
+ * @param {object} args - 参数
159
161
  */
160
162
  doAction: function doAction(actionPool, args) {
161
163
  return todo(this, actionPool, args);
162
164
  },
163
- /**
164
- * @method - 获取URL参数
165
- * @return {object} params - url参数
165
+ /**
166
+ * @method - 获取URL参数
167
+ * @return {object} params - url参数
166
168
  */
167
169
  getUrlParams: getUrlParams
168
170
  }, eventBus), {
@@ -172,6 +174,8 @@ export default (function (_ref) {
172
174
  return (_privateGetter$curren = _privateGetter.current) === null || _privateGetter$curren === void 0 ? void 0 : _privateGetter$curren[property]();
173
175
  } else if (property === 'state') {
174
176
  return getState();
177
+ } else if (property === 'global') {
178
+ return global.current;
175
179
  }
176
180
  return Reflect.get(target, property, receiver);
177
181
  },
@@ -181,6 +185,9 @@ export default (function (_ref) {
181
185
  } else if (property === 'state') {
182
186
  setState(receiver);
183
187
  return true;
188
+ } else if (property === 'global') {
189
+ setGlobal(receiver);
190
+ return true;
184
191
  } else {
185
192
  return Reflect.set(target, property, receiver);
186
193
  }
@@ -0,0 +1,38 @@
1
+ import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
2
+ import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
3
+ import { useRef } from 'react';
4
+ import { usePrevious, useGetState, useMemoizedFn } from 'ahooks';
5
+ import { forOwn, isNil, isString, isObject } from 'lodash';
6
+ var usePageVar = function usePageVar(defaultState, defaultGlobal) {
7
+ var globalRef = useRef(defaultGlobal);
8
+ var _useGetState = useGetState(defaultState),
9
+ _useGetState2 = _slicedToArray(_useGetState, 3),
10
+ state = _useGetState2[0],
11
+ setState = _useGetState2[1],
12
+ getState = _useGetState2[2];
13
+ var prevState = usePrevious(state);
14
+ var setPageState = useMemoizedFn(function (newState) {
15
+ setState(_objectSpread(_objectSpread({}, prevState), newState));
16
+ });
17
+ var setGlobal = useMemoizedFn(function (newGlobal) {
18
+ if (isNil(globalRef.current)) {
19
+ globalRef.current = {};
20
+ }
21
+ if (isString(newGlobal)) {
22
+ globalRef.current[newGlobal] = newGlobal;
23
+ } else if (isObject(newGlobal)) {
24
+ forOwn(newGlobal, function (value, key) {
25
+ globalRef.current[key] = value;
26
+ });
27
+ }
28
+ });
29
+ return {
30
+ state: state,
31
+ prevState: prevState,
32
+ setState: setPageState,
33
+ getState: getState,
34
+ global: globalRef,
35
+ setGlobal: setGlobal
36
+ };
37
+ };
38
+ export default usePageVar;
File without changes
@@ -5,10 +5,10 @@ import _typeof from "@babel/runtime/helpers/esm/typeof";
5
5
  import * as LZString from 'lz-string';
6
6
  import { LC_BUILDIN_UNIT_KEY } from "../../constants";
7
7
 
8
- /**
9
- * 数据压缩
10
- * @param {JSON} data
11
- * @returns 加密后的字符串
8
+ /**
9
+ * 数据压缩
10
+ * @param {JSON} data
11
+ * @returns 加密后的字符串
12
12
  */
13
13
  export function compress(data) {
14
14
  // 将对象转换为JSON字符串
@@ -17,10 +17,10 @@ export function compress(data) {
17
17
  return LZString.compressToBase64(jsonString);
18
18
  }
19
19
 
20
- /**
21
- * 数据解压
22
- * @param {string} compressedData
23
- * @returns {json}
20
+ /**
21
+ * 数据解压
22
+ * @param {string} compressedData
23
+ * @returns {json}
24
24
  */
25
25
  export function decompress(compressedData) {
26
26
  // 使用LZ-String解压数据
@@ -29,13 +29,13 @@ export function decompress(compressedData) {
29
29
  return JSON.parse(jsonString);
30
30
  }
31
31
 
32
- /**
33
- * 查找指定ID的节点及其父节点。
34
- *
35
- * @param {string} id - 要查找的节点ID。
36
- * @param {Object} current - 当前遍历的JSON对象。
37
- * @param {Object|null} parent - 当前节点的父节点。
38
- * @returns {{node: Object|null, parent: Object|null}} 查找结果,包含节点和其父节点。
32
+ /**
33
+ * 查找指定ID的节点及其父节点。
34
+ *
35
+ * @param {string} id - 要查找的节点ID。
36
+ * @param {Object} current - 当前遍历的JSON对象。
37
+ * @param {Object|null} parent - 当前节点的父节点。
38
+ * @returns {{node: Object|null, parent: Object|null}} 查找结果,包含节点和其父节点。
39
39
  */
40
40
  export function findNodeAndParent(id, current) {
41
41
  var parent = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;
@@ -69,13 +69,13 @@ export function findNodeAndParent(id, current) {
69
69
  };
70
70
  }
71
71
 
72
- /**
73
- * 对指定的JSON结构进行节点的添加、修改或删除操作。
74
- *
75
- * @param {Object} json - 要操作的JSON对象。
76
- * @param {string|null} path - 要操作的节点路径,使用'/'分隔。
77
- * @param {string} id - 操作节点的唯一标识符。
78
- * @param {Object|null} data - 要添加或修改的数据。如果为null,表示删除操作。
72
+ /**
73
+ * 对指定的JSON结构进行节点的添加、修改或删除操作。
74
+ *
75
+ * @param {Object} json - 要操作的JSON对象。
76
+ * @param {string|null} path - 要操作的节点路径,使用'/'分隔。
77
+ * @param {string} id - 操作节点的唯一标识符。
78
+ * @param {Object|null} data - 要添加或修改的数据。如果为null,表示删除操作。
79
79
  */
80
80
  function process(json, path, id, data) {
81
81
  if (!json) {
@@ -141,25 +141,25 @@ function process(json, path, id, data) {
141
141
  }
142
142
  }
143
143
 
144
- /**
145
- * 对指定的JSON结构进行节点的添加操作。
146
- *
147
- * @param {Object} json - 要操作的JSON对象。
148
- * @param {string} parentId - 父节点的唯一标识符。
149
- * @param {string} id - 操作节点的唯一标识符。
150
- * @param {Object|null} data - 要添加或修改的数据。如果为null,表示删除操作。
144
+ /**
145
+ * 对指定的JSON结构进行节点的添加操作。
146
+ *
147
+ * @param {Object} json - 要操作的JSON对象。
148
+ * @param {string} parentId - 父节点的唯一标识符。
149
+ * @param {string} id - 操作节点的唯一标识符。
150
+ * @param {Object|null} data - 要添加或修改的数据。如果为null,表示删除操作。
151
151
  */
152
152
  export function add(json, parentId, id, data) {
153
153
  process(json, getPathById(json, parentId), id, data);
154
154
  }
155
155
 
156
- /**
157
- * 移动指定的节点到另一个节点的指定位置。
158
- *
159
- * @param {Object} json - 要操作的JSON对象。
160
- * @param {string} sid - 被移动的节点id
161
- * @param {string} tid - 目标节点id
162
- * @param {string} action - 'left': 往节点前面插入,'right':往节点后面插,'inside':往节点子节点插
156
+ /**
157
+ * 移动指定的节点到另一个节点的指定位置。
158
+ *
159
+ * @param {Object} json - 要操作的JSON对象。
160
+ * @param {string} sid - 被移动的节点id
161
+ * @param {string} tid - 目标节点id
162
+ * @param {string} action - 'left': 往节点前面插入,'right':往节点后面插,'inside':往节点子节点插
163
163
  */
164
164
  export function move(json, sid, tid, action) {
165
165
  // 验证节点存在性
@@ -215,34 +215,34 @@ export function move(json, sid, tid, action) {
215
215
  }
216
216
  }
217
217
 
218
- /**
219
- * 对指定的JSON结构进行节点的修改操作。
220
- *
221
- * @param {Object} json - 要操作的JSON对象。
222
- * @param {string} id - 操作节点的唯一标识符。
223
- * @param {Object|null} data - 要添加或修改的数据。如果为null,表示删除操作。
218
+ /**
219
+ * 对指定的JSON结构进行节点的修改操作。
220
+ *
221
+ * @param {Object} json - 要操作的JSON对象。
222
+ * @param {string} id - 操作节点的唯一标识符。
223
+ * @param {Object|null} data - 要添加或修改的数据。如果为null,表示删除操作。
224
224
  */
225
225
  export function modifyById(json, id, data) {
226
226
  process(json, null, id, data);
227
227
  }
228
228
 
229
- /**
230
- * 删除指定id的节点。
231
- *
232
- * @param {Object} json - JSON对象。
233
- * @param {string} id - 要删除的节点ID。
229
+ /**
230
+ * 删除指定id的节点。
231
+ *
232
+ * @param {Object} json - JSON对象。
233
+ * @param {string} id - 要删除的节点ID。
234
234
  */
235
235
  export function deleteById(json, id) {
236
236
  process(json, null, id);
237
237
  }
238
238
 
239
- /**
240
- * 根据ID在给定的JSON结构中查找节点的路径。
241
- *
242
- * @param {Object} json - 要搜索的JSON对象。
243
- * @param {string} id - 要查找的节点ID。
244
- * @param {string} currentPath - 当前递归到的路径,用于构建返回的路径字符串。
245
- * @returns {string|null} 如果找到节点,返回节点的路径;否则返回null。
239
+ /**
240
+ * 根据ID在给定的JSON结构中查找节点的路径。
241
+ *
242
+ * @param {Object} json - 要搜索的JSON对象。
243
+ * @param {string} id - 要查找的节点ID。
244
+ * @param {string} currentPath - 当前递归到的路径,用于构建返回的路径字符串。
245
+ * @returns {string|null} 如果找到节点,返回节点的路径;否则返回null。
246
246
  */
247
247
  export function getPathById(json, id) {
248
248
  var currentPath = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : '';
@@ -262,28 +262,28 @@ export function getPathById(json, id) {
262
262
  return null;
263
263
  }
264
264
 
265
- /**
266
- * 在给定的JSON结构中搜索具有特定id的节点,并返回包含该节点及其所有父节点的props属性的路径数组。
267
- *
268
- * @param {Object} data - 待搜索的JSON对象,它代表了一个复杂的树状结构,每个节点都可能有props和children属性。
269
- * @param {string} targetId - 需要找到的目标节点的id。
270
- * @returns {Array<Object>} 一个包含目标节点及其所有父节点的props属性的数组。如果未找到目标节点,则返回空数组。
271
- *
272
- * @example
273
- * const data = {
274
- * props: {
275
- * id: 'page_root',
276
- * type: 'Page',
277
- * name: '页面',
278
- * hasHeder: true,
279
- * hasFooter: true,
280
- * },
281
- * // ...其他节点
282
- * };
283
- *
284
- * const path = getPathNodesById(data, 'form_jknbjkun');
285
- * console.log(path);
286
- * // 输出目标节点及其所有父节点的props属性的数组
265
+ /**
266
+ * 在给定的JSON结构中搜索具有特定id的节点,并返回包含该节点及其所有父节点的props属性的路径数组。
267
+ *
268
+ * @param {Object} data - 待搜索的JSON对象,它代表了一个复杂的树状结构,每个节点都可能有props和children属性。
269
+ * @param {string} targetId - 需要找到的目标节点的id。
270
+ * @returns {Array<Object>} 一个包含目标节点及其所有父节点的props属性的数组。如果未找到目标节点,则返回空数组。
271
+ *
272
+ * @example
273
+ * const data = {
274
+ * props: {
275
+ * id: 'page_root',
276
+ * type: 'Page',
277
+ * name: '页面',
278
+ * hasHeder: true,
279
+ * hasFooter: true,
280
+ * },
281
+ * // ...其他节点
282
+ * };
283
+ *
284
+ * const path = getPathNodesById(data, 'form_jknbjkun');
285
+ * console.log(path);
286
+ * // 输出目标节点及其所有父节点的props属性的数组
287
287
  */
288
288
  export function getPathNodesById(data, targetId) {
289
289
  // 初始化结果数组
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -87,8 +87,8 @@ var CompItem = function CompItem(_ref2) {
87
87
  }, /*#__PURE__*/React.createElement("span", null, item.name)));
88
88
  };
89
89
 
90
- /**
91
- * 组件清单
90
+ /**
91
+ * 组件清单
92
92
  */
93
93
  var Components = function Components(_ref3) {
94
94
  var _ref3$dataset = _ref3.dataset,
File without changes
File without changes
@@ -17,9 +17,8 @@ import JsonEditor from "../painter/components/code-editor/JsonEditor";
17
17
  import PreviewIframe from "./components/PreviewIframe";
18
18
  import { LC_BUILDIN_UNIT_KEY, COOKIE_VIRTUAL_ACCOUNT_KEY } from "../constants";
19
19
  import styles from "./style/design.less";
20
- import { fetchClearCache, fetchUpdatePageData } from "../constants/api-url";
20
+ import { fetchClearCache, fetchUpdatePageData, fetchSearchUser } from "../constants/api-url";
21
21
  import { getLDMetaAttr } from "../engine/tools/helper";
22
- import { readAllUser } from '@luck-design-biz/base/lib/sys/services';
23
22
  var DesignToolbar = function DesignToolbar(_ref) {
24
23
  var locale = _ref.locale,
25
24
  onLangChange = _ref.onLangChange;
@@ -168,19 +167,19 @@ var DesignToolbar = function DesignToolbar(_ref) {
168
167
  });
169
168
  var _useDebounceFn = useDebounceFn( /*#__PURE__*/function () {
170
169
  var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(value) {
171
- var _yield$readAllUser, code, list, detail;
170
+ var _yield$fetchSearchUse, code, list, detail;
172
171
  return _regeneratorRuntime().wrap(function _callee2$(_context2) {
173
172
  while (1) switch (_context2.prev = _context2.next) {
174
173
  case 0:
175
174
  _context2.next = 2;
176
- return readAllUser({
175
+ return fetchSearchUser({
177
176
  sname: value
178
177
  });
179
178
  case 2:
180
- _yield$readAllUser = _context2.sent;
181
- code = _yield$readAllUser.code;
182
- list = _yield$readAllUser.list;
183
- detail = _yield$readAllUser.detail;
179
+ _yield$fetchSearchUse = _context2.sent;
180
+ code = _yield$fetchSearchUse.code;
181
+ list = _yield$fetchSearchUse.list;
182
+ detail = _yield$fetchSearchUse.detail;
184
183
  if (code === 1) {
185
184
  setUserOptions(list.map(function (id) {
186
185
  var item = detail[id];
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -4,32 +4,32 @@ import { useMemoizedFn, useCreation } from 'ahooks';
4
4
  import styles from "../style/collapse.less";
5
5
  import { Icon, Tooltip } from 'luck-design/antd';
6
6
 
7
- /**
8
- * Collapse 组件是一个可折叠区域的实现,用于显示或隐藏内容。它支持自定义标签、描述以及默认的折叠状态。
9
- * 该组件还可以通过 `next` 函数来自定义点击操作,而不是简单地切换折叠状态。
10
- * 提供的工具提示可以显示额外信息,如字段名和描述,以帮助用户更好地理解折叠内容的作用。
11
- *
12
- * @component
13
- * @example
14
- * <Collapse
15
- * field="exampleField"
16
- * label="示例标签"
17
- * desc="这是一个用于演示的折叠组件"
18
- * defaultCollapsed={true}
19
- * next={() => console.log('Custom next function executed')}
20
- * >
21
- * <p>这里是可折叠的内容</p>
22
- * </Collapse>
23
- *
24
- * @param {Object} props - 组件的属性。
25
- * @param {React.ReactNode} children - 折叠区域展开时显示的内容。
26
- * @param {string} [props.field] - 与折叠内容相关联的字段名。
27
- * @param {string} props.label - 折叠区域的标签名称。
28
- * @param {string} [props.desc] - 关于折叠内容的描述信息。
29
- * @param {boolean} [props.defaultCollapsed=false] - 折叠区域的默认状态。如果为 true,则默认为折叠状态。
30
- * @param {Function} [props.next] - 点击操作的自定义函数。如果提供,点击时将执行此函数,而不是切换折叠状态。
31
- *
32
- * @returns {ReactElement} 返回一个 React 元素,表示一个具有可折叠功能的容器。
7
+ /**
8
+ * Collapse 组件是一个可折叠区域的实现,用于显示或隐藏内容。它支持自定义标签、描述以及默认的折叠状态。
9
+ * 该组件还可以通过 `next` 函数来自定义点击操作,而不是简单地切换折叠状态。
10
+ * 提供的工具提示可以显示额外信息,如字段名和描述,以帮助用户更好地理解折叠内容的作用。
11
+ *
12
+ * @component
13
+ * @example
14
+ * <Collapse
15
+ * field="exampleField"
16
+ * label="示例标签"
17
+ * desc="这是一个用于演示的折叠组件"
18
+ * defaultCollapsed={true}
19
+ * next={() => console.log('Custom next function executed')}
20
+ * >
21
+ * <p>这里是可折叠的内容</p>
22
+ * </Collapse>
23
+ *
24
+ * @param {Object} props - 组件的属性。
25
+ * @param {React.ReactNode} children - 折叠区域展开时显示的内容。
26
+ * @param {string} [props.field] - 与折叠内容相关联的字段名。
27
+ * @param {string} props.label - 折叠区域的标签名称。
28
+ * @param {string} [props.desc] - 关于折叠内容的描述信息。
29
+ * @param {boolean} [props.defaultCollapsed=false] - 折叠区域的默认状态。如果为 true,则默认为折叠状态。
30
+ * @param {Function} [props.next] - 点击操作的自定义函数。如果提供,点击时将执行此函数,而不是切换折叠状态。
31
+ *
32
+ * @returns {ReactElement} 返回一个 React 元素,表示一个具有可折叠功能的容器。
33
33
  */
34
34
  export default function (_ref) {
35
35
  var children = _ref.children,