@luck-design-biz/luckda 1.0.2 → 1.0.3-13tl

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 (450) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +40 -40
  3. package/es/components/LDActions/index.js +1 -0
  4. package/es/components/LDActions/index.less +70 -70
  5. package/es/components/LdFormList/index.js +6 -4
  6. package/es/components/LdGrid/index.js +5 -8
  7. package/es/components/LdGridForm/index.less +7 -7
  8. package/es/components/LdTree/index.less +42 -42
  9. package/es/helper/action.js +8 -6
  10. package/es/helper/form.js +14 -14
  11. package/es/helper/index.less +7 -7
  12. package/es/locales/zh-CN.js +22 -3
  13. package/es/lowcode/constants/api-url.js +410 -268
  14. package/es/lowcode/constants/event-topics.js +2 -0
  15. package/es/lowcode/engine/meta/box.props.default.json +1 -1
  16. package/es/lowcode/engine/meta/box.props.json +1 -1
  17. package/es/lowcode/engine/meta/button.api.json +0 -0
  18. package/es/lowcode/engine/meta/cardlist.props.json +3 -5
  19. package/es/lowcode/engine/meta/components-list.json +6 -6
  20. package/es/lowcode/engine/meta/dialog.props.default.json +4 -1
  21. package/es/lowcode/engine/meta/dialog.props.json +24 -4
  22. package/es/lowcode/engine/meta/drawer.props.json +1 -1
  23. package/es/lowcode/engine/meta/fielddate.props.json +0 -1
  24. package/es/lowcode/engine/meta/fieldeditor.props.json +0 -1
  25. package/es/lowcode/engine/meta/fieldgroup.props.json +0 -1
  26. package/es/lowcode/engine/meta/fieldyear.props.json +0 -1
  27. package/es/lowcode/engine/meta/form.props.json +3 -19
  28. package/es/lowcode/engine/meta/grouptree.props.json +0 -1
  29. package/es/lowcode/engine/meta/js-editor/auto-complete.json +30 -30
  30. package/es/lowcode/engine/meta/jsx.props.default.json +1 -2
  31. package/es/lowcode/engine/meta/jsx.props.json +4 -3
  32. package/es/lowcode/engine/meta/layout.props.default.json +1 -1
  33. package/es/lowcode/engine/meta/layout.props.json +1 -1
  34. package/es/lowcode/engine/meta/section.props.json +2 -2
  35. package/es/lowcode/engine/meta/table.props.json +0 -7
  36. package/es/lowcode/engine/meta/tabs.props.json +1 -1
  37. package/es/lowcode/engine/meta/tree.props.json +1 -5
  38. package/es/lowcode/engine/provider/ContextProvider/index.js +44 -44
  39. package/es/lowcode/engine/provider/ContextProvider/router.js +21 -1
  40. package/es/lowcode/engine/provider/ContextProvider/usePageDataStore.js +16 -16
  41. package/es/lowcode/engine/tools/dataProcess.js +76 -76
  42. package/es/lowcode/painter/Components.js +3 -3
  43. package/es/lowcode/painter/DesignOperator.js +10 -4
  44. package/es/lowcode/painter/DesignToolbar.js +27 -28
  45. package/es/lowcode/painter/History.js +300 -0
  46. package/es/lowcode/painter/Panel.js +1 -1
  47. package/es/lowcode/painter/Ribbon.js +38 -2
  48. package/es/lowcode/painter/components/AdvancePanel.js +30 -37
  49. package/es/lowcode/painter/components/Collapse.js +26 -26
  50. package/es/lowcode/painter/components/ColorInput.js +24 -24
  51. package/es/lowcode/painter/components/DragDrop/DragDropContext.js +10 -3
  52. package/es/lowcode/painter/components/ListEditor.js +24 -24
  53. package/es/lowcode/painter/components/NumberInput.js +28 -28
  54. package/es/lowcode/painter/components/PanelItem.js +24 -24
  55. package/es/lowcode/painter/components/PopConfirm.js +8 -8
  56. package/es/lowcode/painter/components/PopForm.js +27 -27
  57. package/es/lowcode/painter/components/RuleInput.js +30 -30
  58. package/es/lowcode/painter/components/SortBox.js +22 -22
  59. package/es/lowcode/painter/components/TreeEditor.js +76 -8
  60. package/es/lowcode/painter/components/code-editor/BaseEditor.js +43 -35
  61. package/es/lowcode/painter/components/code-editor/CssEditor.js +25 -25
  62. package/es/lowcode/painter/components/code-editor/DiffEditor.js +41 -0
  63. package/es/lowcode/painter/components/code-editor/FullScreenEditor.js +23 -23
  64. package/es/lowcode/painter/components/code-editor/JSEditor.js +20 -20
  65. package/es/lowcode/painter/components/code-editor/JsonEditor.js +25 -25
  66. package/es/lowcode/painter/components/field-setting/FieldAttrs.js +2 -2
  67. package/es/lowcode/painter/components/field-setting/SettingUI.js +0 -1
  68. package/es/lowcode/painter/panel-section/ConditionCheck.js +71 -0
  69. package/es/lowcode/painter/panel-section/DialogSize.js +76 -0
  70. package/es/lowcode/painter/panel-section/DialogWidthHeight.js +60 -0
  71. package/es/lowcode/painter/panel-section/FieldState.js +11 -2
  72. package/es/lowcode/painter/panel-section/Icon.js +23 -23
  73. package/es/lowcode/painter/panel-section/IconConditionSelector.js +0 -1
  74. package/es/lowcode/painter/panel-section/IconSelector.js +16 -16
  75. package/es/lowcode/painter/panel-section/JSEditor/ToolBar.js +171 -0
  76. package/es/lowcode/painter/panel-section/JSEditor/index.js +171 -0
  77. package/es/lowcode/painter/panel-section/LayoutRatio.js +21 -21
  78. package/es/lowcode/painter/panel-section/PageLayoutDisplay.js +7 -2
  79. package/es/lowcode/painter/panel-section/StylePanel/BackGround.js +2 -2
  80. package/es/lowcode/painter/panel-section/StylePanel/Border.js +2 -2
  81. package/es/lowcode/painter/panel-section/StylePanel/BorderRadius.js +2 -2
  82. package/es/lowcode/painter/panel-section/StylePanel/BorderRadiusSelector.js +2 -2
  83. package/es/lowcode/painter/panel-section/StylePanel/BorderSelector.js +2 -2
  84. package/es/lowcode/painter/panel-section/StylePanel/Display.js +2 -2
  85. package/es/lowcode/painter/panel-section/StylePanel/Font.js +2 -2
  86. package/es/lowcode/painter/panel-section/StylePanel/FontEditor.js +2 -2
  87. package/es/lowcode/painter/panel-section/StylePanel/GapSelector.js +2 -2
  88. package/es/lowcode/painter/panel-section/StylePanel/HighLightPanel.js +2 -2
  89. package/es/lowcode/painter/panel-section/StylePanel/HighLigthtSpan.js +2 -2
  90. package/es/lowcode/painter/panel-section/StylePanel/HightLightSvg.js +2 -2
  91. package/es/lowcode/painter/panel-section/StylePanel/MainPanel.js +39 -21
  92. package/es/lowcode/painter/panel-section/StylePanel/Margin.js +2 -2
  93. package/es/lowcode/painter/panel-section/StylePanel/Opacity.js +2 -2
  94. package/es/lowcode/painter/panel-section/StylePanel/Padding.js +2 -2
  95. package/es/lowcode/painter/panel-section/StylePanel/Pointer.js +2 -2
  96. package/es/lowcode/painter/panel-section/StylePanel/Shadow.js +2 -2
  97. package/es/lowcode/painter/panel-section/StylePanel/Size.js +2 -2
  98. package/es/lowcode/painter/panel-section/StylePanel/StyleContext.js +2 -2
  99. package/es/lowcode/painter/panel-section/StylePanel/StyleRow.js +2 -2
  100. package/es/lowcode/painter/panel-section/StylePanel/WidthHeight.js +2 -2
  101. package/es/lowcode/painter/panel-section/StylePanel/index.js +15 -15
  102. package/es/lowcode/painter/panel-section/TableZebra.js +5 -1
  103. package/es/lowcode/painter/panel-section/TextContent.js +10 -2
  104. package/es/lowcode/painter/style/action-bind-modal.less +104 -104
  105. package/es/lowcode/painter/style/actions-editor.less +15 -15
  106. package/es/lowcode/painter/style/border-editor.less +36 -36
  107. package/es/lowcode/painter/style/border-radius-selector.less +42 -42
  108. package/es/lowcode/painter/style/border-selector.less +39 -39
  109. package/es/lowcode/painter/style/button-type.less +5 -5
  110. package/es/lowcode/painter/style/collapse.less +28 -28
  111. package/es/lowcode/painter/style/color-input.less +19 -19
  112. package/es/lowcode/painter/style/components.less +91 -91
  113. package/es/lowcode/painter/style/design.less +178 -178
  114. package/es/lowcode/painter/style/display.less +17 -17
  115. package/es/lowcode/painter/style/dragdrop.less +56 -56
  116. package/es/lowcode/painter/style/fields-setting.less +25 -25
  117. package/es/lowcode/painter/style/font-editor.less +9 -9
  118. package/es/lowcode/painter/style/fullscreen-editor.less +17 -17
  119. package/es/lowcode/painter/style/history.less +46 -0
  120. package/es/lowcode/painter/style/icon-selector.less +22 -22
  121. package/es/lowcode/painter/style/icon.less +10 -10
  122. package/es/lowcode/painter/style/impexp.less +7 -7
  123. package/es/lowcode/painter/style/index.less +6 -6
  124. package/es/lowcode/painter/style/layout-ratio.less +51 -51
  125. package/es/lowcode/painter/style/list-editor.less +97 -97
  126. package/es/lowcode/painter/style/number-input.less +19 -19
  127. package/es/lowcode/painter/style/outline.less +30 -30
  128. package/es/lowcode/painter/style/page-layout-display.less +27 -27
  129. package/es/lowcode/painter/style/page-vars.less +25 -25
  130. package/es/lowcode/painter/style/panel-attrs.less +47 -47
  131. package/es/lowcode/painter/style/panel-item.less +54 -54
  132. package/es/lowcode/painter/style/panel.less +100 -100
  133. package/es/lowcode/painter/style/pop-confirm.less +17 -17
  134. package/es/lowcode/painter/style/pop-form.less +19 -19
  135. package/es/lowcode/painter/style/radio.less +24 -24
  136. package/es/lowcode/painter/style/ribbon.less +7 -7
  137. package/es/lowcode/painter/style/rule-input.less +12 -12
  138. package/es/lowcode/painter/style/split-display.less +18 -18
  139. package/es/lowcode/painter/style/style-panel.less +37 -37
  140. package/es/lowcode/painter/style/tabitems.less +90 -90
  141. package/es/lowcode/painter/svg/code.svg +3 -3
  142. package/es/lowcode/painter/svg/expect.svg +9 -9
  143. package/es/lowcode/view/ErrorBoundary.js +80 -0
  144. package/es/lowcode/view/Page.js +3 -3
  145. package/es/lowcode/view/lc-components/Box/FunctionDesign.js +4 -2
  146. package/es/lowcode/view/lc-components/Box/index.js +4 -4
  147. package/es/lowcode/view/lc-components/Box/index.less +14 -14
  148. package/es/lowcode/view/lc-components/Box/meta.json +40 -40
  149. package/es/lowcode/view/lc-components/Button/index.js +33 -33
  150. package/es/lowcode/view/lc-components/Button/meta.json +127 -127
  151. package/es/lowcode/view/lc-components/Button/style.less +2 -2
  152. package/es/lowcode/view/lc-components/CardList/index.js +123 -123
  153. package/es/lowcode/view/lc-components/CardList/meta.json +332 -334
  154. package/es/lowcode/view/lc-components/Dialog/index.js +25 -18
  155. package/es/lowcode/view/lc-components/Dialog/index.less +12 -12
  156. package/es/lowcode/view/lc-components/Dialog/meta.json +224 -204
  157. package/es/lowcode/view/lc-components/Drawer/index.js +16 -16
  158. package/es/lowcode/view/lc-components/Drawer/index.less +13 -13
  159. package/es/lowcode/view/lc-components/Drawer/meta.json +242 -242
  160. package/es/lowcode/view/lc-components/FieldColor/meta.json +157 -157
  161. package/es/lowcode/view/lc-components/FieldComplex/meta.json +140 -140
  162. package/es/lowcode/view/lc-components/FieldDate/meta.json +140 -141
  163. package/es/lowcode/view/lc-components/FieldDict/meta.json +138 -138
  164. package/es/lowcode/view/lc-components/FieldEditor/meta.json +137 -138
  165. package/es/lowcode/view/lc-components/FieldGroup/meta.json +166 -167
  166. package/es/lowcode/view/lc-components/FieldNumber/meta.json +143 -143
  167. package/es/lowcode/view/lc-components/FieldRadio/meta.json +115 -115
  168. package/es/lowcode/view/lc-components/FieldRegion/meta.json +121 -121
  169. package/es/lowcode/view/lc-components/FieldSelect/meta.json +152 -152
  170. package/es/lowcode/view/lc-components/FieldString/meta.json +152 -152
  171. package/es/lowcode/view/lc-components/FieldSwitch/meta.json +125 -125
  172. package/es/lowcode/view/lc-components/FieldTextarea/meta.json +143 -143
  173. package/es/lowcode/view/lc-components/FieldUpload/meta.json +165 -165
  174. package/es/lowcode/view/lc-components/FieldUser/meta.json +176 -176
  175. package/es/lowcode/view/lc-components/FieldYear/meta.json +128 -129
  176. package/es/lowcode/view/lc-components/Form/index.js +32 -39
  177. package/es/lowcode/view/lc-components/Form/meta.json +629 -645
  178. package/es/lowcode/view/lc-components/GroupTree/index.js +25 -25
  179. package/es/lowcode/view/lc-components/GroupTree/index.less +11 -11
  180. package/es/lowcode/view/lc-components/GroupTree/meta.json +82 -83
  181. package/es/lowcode/view/lc-components/Iframe/meta.json +31 -31
  182. package/es/lowcode/view/lc-components/ImEx/index.js +25 -25
  183. package/es/lowcode/view/lc-components/ImEx/index.less +7 -7
  184. package/es/lowcode/view/lc-components/ImEx/meta.json +134 -134
  185. package/es/lowcode/view/lc-components/Image/index.less +27 -27
  186. package/es/lowcode/view/lc-components/Image/meta.json +149 -149
  187. package/es/lowcode/view/lc-components/JSX/RuntimeComp.js +36 -20
  188. package/es/lowcode/view/lc-components/JSX/meta.json +29 -28
  189. package/es/lowcode/view/lc-components/Layout/index.js +16 -16
  190. package/es/lowcode/view/lc-components/Layout/index.less +5 -5
  191. package/es/lowcode/view/lc-components/Layout/meta.json +107 -107
  192. package/es/lowcode/view/lc-components/Link/index.less +15 -15
  193. package/es/lowcode/view/lc-components/Link/meta.json +112 -112
  194. package/es/lowcode/view/lc-components/Page/meta.json +61 -61
  195. package/es/lowcode/view/lc-components/PageContent/meta.json +9 -9
  196. package/es/lowcode/view/lc-components/PageFooter/meta.json +9 -9
  197. package/es/lowcode/view/lc-components/PageHeader/meta.json +9 -9
  198. package/es/lowcode/view/lc-components/PageLayout/index.js +1 -1
  199. package/es/lowcode/view/lc-components/PageLayout/meta.json +59 -59
  200. package/es/lowcode/view/lc-components/Section/index.less +7 -7
  201. package/es/lowcode/view/lc-components/Section/meta.json +108 -108
  202. package/es/lowcode/view/lc-components/Split/meta.json +53 -53
  203. package/es/lowcode/view/lc-components/Table/components/TopImex.js +33 -16
  204. package/es/lowcode/view/lc-components/Table/index.js +152 -151
  205. package/es/lowcode/view/lc-components/Table/meta.json +443 -450
  206. package/es/lowcode/view/lc-components/Tabs/index.js +23 -23
  207. package/es/lowcode/view/lc-components/Tabs/meta.json +113 -113
  208. package/es/lowcode/view/lc-components/Text/meta.json +56 -56
  209. package/es/lowcode/view/lc-components/Tree/index.js +96 -96
  210. package/es/lowcode/view/lc-components/Tree/index.less +4 -4
  211. package/es/lowcode/view/lc-components/Tree/meta.json +353 -357
  212. package/es/lowcode/view/lc-components/Wrapper.js +2 -0
  213. package/es/lowcode/view/style/canvas.less +5 -5
  214. package/es/lowcode/view/style/loading.less +98 -98
  215. package/es/lowcode/view/style/page.less +7 -7
  216. package/es/upload/FilesWall/index.js +29 -19
  217. package/es/upload/FilesWall/index.less +74 -74
  218. package/es/upload/Form/gridForm.js +16 -6
  219. package/es/upload/Form/index.less +7 -7
  220. package/es/upload/FormItem/index.js +31 -19
  221. package/es/utils/form.js +25 -24
  222. package/es/utils/grid.js +10 -2
  223. package/lib/components/LDActions/index.js +1 -0
  224. package/lib/components/LDActions/index.less +70 -70
  225. package/lib/components/LdFormList/index.js +6 -4
  226. package/lib/components/LdGrid/index.js +5 -8
  227. package/lib/components/LdGridForm/index.less +7 -7
  228. package/lib/components/LdTree/index.less +42 -42
  229. package/lib/helper/action.js +8 -6
  230. package/lib/helper/form.js +14 -14
  231. package/lib/helper/index.less +7 -7
  232. package/lib/locales/zh-CN.js +22 -3
  233. package/lib/lowcode/constants/api-url.js +411 -270
  234. package/lib/lowcode/constants/event-topics.js +3 -1
  235. package/lib/lowcode/engine/meta/box.props.default.json +1 -1
  236. package/lib/lowcode/engine/meta/box.props.json +1 -1
  237. package/lib/lowcode/engine/meta/button.api.json +0 -0
  238. package/lib/lowcode/engine/meta/cardlist.props.json +3 -5
  239. package/lib/lowcode/engine/meta/components-list.json +6 -6
  240. package/lib/lowcode/engine/meta/dialog.props.default.json +4 -1
  241. package/lib/lowcode/engine/meta/dialog.props.json +24 -4
  242. package/lib/lowcode/engine/meta/drawer.props.json +1 -1
  243. package/lib/lowcode/engine/meta/fielddate.props.json +0 -1
  244. package/lib/lowcode/engine/meta/fieldeditor.props.json +0 -1
  245. package/lib/lowcode/engine/meta/fieldgroup.props.json +0 -1
  246. package/lib/lowcode/engine/meta/fieldyear.props.json +0 -1
  247. package/lib/lowcode/engine/meta/form.props.json +3 -19
  248. package/lib/lowcode/engine/meta/grouptree.props.json +0 -1
  249. package/lib/lowcode/engine/meta/js-editor/auto-complete.json +30 -30
  250. package/lib/lowcode/engine/meta/jsx.props.default.json +1 -2
  251. package/lib/lowcode/engine/meta/jsx.props.json +4 -3
  252. package/lib/lowcode/engine/meta/layout.props.default.json +1 -1
  253. package/lib/lowcode/engine/meta/layout.props.json +1 -1
  254. package/lib/lowcode/engine/meta/section.props.json +2 -2
  255. package/lib/lowcode/engine/meta/table.props.json +0 -7
  256. package/lib/lowcode/engine/meta/tabs.props.json +1 -1
  257. package/lib/lowcode/engine/meta/tree.props.json +1 -5
  258. package/lib/lowcode/engine/provider/ContextProvider/index.js +44 -44
  259. package/lib/lowcode/engine/provider/ContextProvider/router.js +22 -1
  260. package/lib/lowcode/engine/provider/ContextProvider/usePageDataStore.js +16 -16
  261. package/lib/lowcode/engine/tools/dataProcess.js +76 -76
  262. package/lib/lowcode/painter/Components.js +3 -3
  263. package/lib/lowcode/painter/DesignOperator.js +10 -4
  264. package/lib/lowcode/painter/DesignToolbar.js +27 -28
  265. package/lib/lowcode/painter/History.js +308 -0
  266. package/lib/lowcode/painter/Panel.js +1 -1
  267. package/lib/lowcode/painter/Ribbon.js +38 -2
  268. package/lib/lowcode/painter/components/AdvancePanel.js +29 -36
  269. package/lib/lowcode/painter/components/Collapse.js +26 -26
  270. package/lib/lowcode/painter/components/ColorInput.js +24 -24
  271. package/lib/lowcode/painter/components/DragDrop/DragDropContext.js +10 -3
  272. package/lib/lowcode/painter/components/ListEditor.js +24 -24
  273. package/lib/lowcode/painter/components/NumberInput.js +28 -28
  274. package/lib/lowcode/painter/components/PanelItem.js +24 -24
  275. package/lib/lowcode/painter/components/PopConfirm.js +8 -8
  276. package/lib/lowcode/painter/components/PopForm.js +27 -27
  277. package/lib/lowcode/painter/components/RuleInput.js +30 -30
  278. package/lib/lowcode/painter/components/SortBox.js +22 -22
  279. package/lib/lowcode/painter/components/TreeEditor.js +76 -8
  280. package/lib/lowcode/painter/components/code-editor/BaseEditor.js +43 -35
  281. package/lib/lowcode/painter/components/code-editor/CssEditor.js +25 -25
  282. package/lib/lowcode/painter/components/code-editor/DiffEditor.js +49 -0
  283. package/lib/lowcode/painter/components/code-editor/FullScreenEditor.js +23 -23
  284. package/lib/lowcode/painter/components/code-editor/JSEditor.js +20 -20
  285. package/lib/lowcode/painter/components/code-editor/JsonEditor.js +25 -25
  286. package/lib/lowcode/painter/components/field-setting/FieldAttrs.js +2 -2
  287. package/lib/lowcode/painter/components/field-setting/SettingUI.js +0 -1
  288. package/lib/lowcode/painter/panel-section/ConditionCheck.js +79 -0
  289. package/lib/lowcode/painter/panel-section/DialogSize.js +83 -0
  290. package/lib/lowcode/painter/panel-section/DialogWidthHeight.js +67 -0
  291. package/lib/lowcode/painter/panel-section/FieldState.js +11 -2
  292. package/lib/lowcode/painter/panel-section/Icon.js +23 -23
  293. package/lib/lowcode/painter/panel-section/IconConditionSelector.js +0 -1
  294. package/lib/lowcode/painter/panel-section/IconSelector.js +16 -16
  295. package/lib/lowcode/painter/panel-section/JSEditor/ToolBar.js +178 -0
  296. package/lib/lowcode/painter/panel-section/JSEditor/index.js +179 -0
  297. package/lib/lowcode/painter/panel-section/LayoutRatio.js +21 -21
  298. package/lib/lowcode/painter/panel-section/PageLayoutDisplay.js +7 -2
  299. package/lib/lowcode/painter/panel-section/StylePanel/BackGround.js +2 -2
  300. package/lib/lowcode/painter/panel-section/StylePanel/Border.js +2 -2
  301. package/lib/lowcode/painter/panel-section/StylePanel/BorderRadius.js +2 -2
  302. package/lib/lowcode/painter/panel-section/StylePanel/BorderRadiusSelector.js +2 -2
  303. package/lib/lowcode/painter/panel-section/StylePanel/BorderSelector.js +2 -2
  304. package/lib/lowcode/painter/panel-section/StylePanel/Display.js +2 -2
  305. package/lib/lowcode/painter/panel-section/StylePanel/Font.js +2 -2
  306. package/lib/lowcode/painter/panel-section/StylePanel/FontEditor.js +2 -2
  307. package/lib/lowcode/painter/panel-section/StylePanel/GapSelector.js +2 -2
  308. package/lib/lowcode/painter/panel-section/StylePanel/HighLightPanel.js +2 -2
  309. package/lib/lowcode/painter/panel-section/StylePanel/HighLigthtSpan.js +2 -2
  310. package/lib/lowcode/painter/panel-section/StylePanel/HightLightSvg.js +2 -2
  311. package/lib/lowcode/painter/panel-section/StylePanel/MainPanel.js +39 -21
  312. package/lib/lowcode/painter/panel-section/StylePanel/Margin.js +2 -2
  313. package/lib/lowcode/painter/panel-section/StylePanel/Opacity.js +2 -2
  314. package/lib/lowcode/painter/panel-section/StylePanel/Padding.js +2 -2
  315. package/lib/lowcode/painter/panel-section/StylePanel/Pointer.js +2 -2
  316. package/lib/lowcode/painter/panel-section/StylePanel/Shadow.js +2 -2
  317. package/lib/lowcode/painter/panel-section/StylePanel/Size.js +2 -2
  318. package/lib/lowcode/painter/panel-section/StylePanel/StyleContext.js +2 -2
  319. package/lib/lowcode/painter/panel-section/StylePanel/StyleRow.js +2 -2
  320. package/lib/lowcode/painter/panel-section/StylePanel/WidthHeight.js +2 -2
  321. package/lib/lowcode/painter/panel-section/StylePanel/index.js +15 -15
  322. package/lib/lowcode/painter/panel-section/TableZebra.js +5 -1
  323. package/lib/lowcode/painter/panel-section/TextContent.js +9 -1
  324. package/lib/lowcode/painter/style/action-bind-modal.less +104 -104
  325. package/lib/lowcode/painter/style/actions-editor.less +15 -15
  326. package/lib/lowcode/painter/style/border-editor.less +36 -36
  327. package/lib/lowcode/painter/style/border-radius-selector.less +42 -42
  328. package/lib/lowcode/painter/style/border-selector.less +39 -39
  329. package/lib/lowcode/painter/style/button-type.less +5 -5
  330. package/lib/lowcode/painter/style/collapse.less +28 -28
  331. package/lib/lowcode/painter/style/color-input.less +19 -19
  332. package/lib/lowcode/painter/style/components.less +91 -91
  333. package/lib/lowcode/painter/style/design.less +178 -178
  334. package/lib/lowcode/painter/style/display.less +17 -17
  335. package/lib/lowcode/painter/style/dragdrop.less +56 -56
  336. package/lib/lowcode/painter/style/fields-setting.less +25 -25
  337. package/lib/lowcode/painter/style/font-editor.less +9 -9
  338. package/lib/lowcode/painter/style/fullscreen-editor.less +17 -17
  339. package/lib/lowcode/painter/style/history.less +46 -0
  340. package/lib/lowcode/painter/style/icon-selector.less +22 -22
  341. package/lib/lowcode/painter/style/icon.less +10 -10
  342. package/lib/lowcode/painter/style/impexp.less +7 -7
  343. package/lib/lowcode/painter/style/index.less +6 -6
  344. package/lib/lowcode/painter/style/layout-ratio.less +51 -51
  345. package/lib/lowcode/painter/style/list-editor.less +97 -97
  346. package/lib/lowcode/painter/style/number-input.less +19 -19
  347. package/lib/lowcode/painter/style/outline.less +30 -30
  348. package/lib/lowcode/painter/style/page-layout-display.less +27 -27
  349. package/lib/lowcode/painter/style/page-vars.less +25 -25
  350. package/lib/lowcode/painter/style/panel-attrs.less +47 -47
  351. package/lib/lowcode/painter/style/panel-item.less +54 -54
  352. package/lib/lowcode/painter/style/panel.less +100 -100
  353. package/lib/lowcode/painter/style/pop-confirm.less +17 -17
  354. package/lib/lowcode/painter/style/pop-form.less +19 -19
  355. package/lib/lowcode/painter/style/radio.less +24 -24
  356. package/lib/lowcode/painter/style/ribbon.less +7 -7
  357. package/lib/lowcode/painter/style/rule-input.less +12 -12
  358. package/lib/lowcode/painter/style/split-display.less +18 -18
  359. package/lib/lowcode/painter/style/style-panel.less +37 -37
  360. package/lib/lowcode/painter/style/tabitems.less +90 -90
  361. package/lib/lowcode/painter/svg/code.svg +3 -3
  362. package/lib/lowcode/painter/svg/expect.svg +9 -9
  363. package/lib/lowcode/view/ErrorBoundary.js +88 -0
  364. package/lib/lowcode/view/Page.js +4 -4
  365. package/lib/lowcode/view/lc-components/Box/FunctionDesign.js +4 -2
  366. package/lib/lowcode/view/lc-components/Box/index.js +4 -4
  367. package/lib/lowcode/view/lc-components/Box/index.less +14 -14
  368. package/lib/lowcode/view/lc-components/Box/meta.json +40 -40
  369. package/lib/lowcode/view/lc-components/Button/index.js +33 -33
  370. package/lib/lowcode/view/lc-components/Button/meta.json +127 -127
  371. package/lib/lowcode/view/lc-components/Button/style.less +2 -2
  372. package/lib/lowcode/view/lc-components/CardList/index.js +123 -123
  373. package/lib/lowcode/view/lc-components/CardList/meta.json +332 -334
  374. package/lib/lowcode/view/lc-components/Dialog/index.js +23 -16
  375. package/lib/lowcode/view/lc-components/Dialog/index.less +12 -12
  376. package/lib/lowcode/view/lc-components/Dialog/meta.json +224 -204
  377. package/lib/lowcode/view/lc-components/Drawer/index.js +14 -14
  378. package/lib/lowcode/view/lc-components/Drawer/index.less +13 -13
  379. package/lib/lowcode/view/lc-components/Drawer/meta.json +242 -242
  380. package/lib/lowcode/view/lc-components/FieldColor/meta.json +157 -157
  381. package/lib/lowcode/view/lc-components/FieldComplex/meta.json +140 -140
  382. package/lib/lowcode/view/lc-components/FieldDate/meta.json +140 -141
  383. package/lib/lowcode/view/lc-components/FieldDict/meta.json +138 -138
  384. package/lib/lowcode/view/lc-components/FieldEditor/meta.json +137 -138
  385. package/lib/lowcode/view/lc-components/FieldGroup/meta.json +166 -167
  386. package/lib/lowcode/view/lc-components/FieldNumber/meta.json +143 -143
  387. package/lib/lowcode/view/lc-components/FieldRadio/meta.json +115 -115
  388. package/lib/lowcode/view/lc-components/FieldRegion/meta.json +121 -121
  389. package/lib/lowcode/view/lc-components/FieldSelect/meta.json +152 -152
  390. package/lib/lowcode/view/lc-components/FieldString/meta.json +152 -152
  391. package/lib/lowcode/view/lc-components/FieldSwitch/meta.json +125 -125
  392. package/lib/lowcode/view/lc-components/FieldTextarea/meta.json +143 -143
  393. package/lib/lowcode/view/lc-components/FieldUpload/meta.json +165 -165
  394. package/lib/lowcode/view/lc-components/FieldUser/meta.json +176 -176
  395. package/lib/lowcode/view/lc-components/FieldYear/meta.json +128 -129
  396. package/lib/lowcode/view/lc-components/Form/index.js +32 -39
  397. package/lib/lowcode/view/lc-components/Form/meta.json +629 -645
  398. package/lib/lowcode/view/lc-components/GroupTree/index.js +25 -25
  399. package/lib/lowcode/view/lc-components/GroupTree/index.less +11 -11
  400. package/lib/lowcode/view/lc-components/GroupTree/meta.json +82 -83
  401. package/lib/lowcode/view/lc-components/Iframe/meta.json +31 -31
  402. package/lib/lowcode/view/lc-components/ImEx/index.js +25 -25
  403. package/lib/lowcode/view/lc-components/ImEx/index.less +7 -7
  404. package/lib/lowcode/view/lc-components/ImEx/meta.json +134 -134
  405. package/lib/lowcode/view/lc-components/Image/index.less +27 -27
  406. package/lib/lowcode/view/lc-components/Image/meta.json +149 -149
  407. package/lib/lowcode/view/lc-components/JSX/RuntimeComp.js +37 -20
  408. package/lib/lowcode/view/lc-components/JSX/meta.json +29 -28
  409. package/lib/lowcode/view/lc-components/Layout/index.js +16 -16
  410. package/lib/lowcode/view/lc-components/Layout/index.less +5 -5
  411. package/lib/lowcode/view/lc-components/Layout/meta.json +107 -107
  412. package/lib/lowcode/view/lc-components/Link/index.less +15 -15
  413. package/lib/lowcode/view/lc-components/Link/meta.json +112 -112
  414. package/lib/lowcode/view/lc-components/Page/meta.json +61 -61
  415. package/lib/lowcode/view/lc-components/PageContent/meta.json +9 -9
  416. package/lib/lowcode/view/lc-components/PageFooter/meta.json +9 -9
  417. package/lib/lowcode/view/lc-components/PageHeader/meta.json +9 -9
  418. package/lib/lowcode/view/lc-components/PageLayout/index.js +1 -1
  419. package/lib/lowcode/view/lc-components/PageLayout/meta.json +59 -59
  420. package/lib/lowcode/view/lc-components/Section/index.less +7 -7
  421. package/lib/lowcode/view/lc-components/Section/meta.json +108 -108
  422. package/lib/lowcode/view/lc-components/Split/meta.json +53 -53
  423. package/lib/lowcode/view/lc-components/Table/components/TopImex.js +32 -15
  424. package/lib/lowcode/view/lc-components/Table/index.js +152 -151
  425. package/lib/lowcode/view/lc-components/Table/meta.json +443 -450
  426. package/lib/lowcode/view/lc-components/Tabs/index.js +23 -23
  427. package/lib/lowcode/view/lc-components/Tabs/meta.json +113 -113
  428. package/lib/lowcode/view/lc-components/Text/meta.json +56 -56
  429. package/lib/lowcode/view/lc-components/Tree/index.js +96 -96
  430. package/lib/lowcode/view/lc-components/Tree/index.less +4 -4
  431. package/lib/lowcode/view/lc-components/Tree/meta.json +353 -357
  432. package/lib/lowcode/view/lc-components/Wrapper.js +2 -0
  433. package/lib/lowcode/view/style/canvas.less +5 -5
  434. package/lib/lowcode/view/style/loading.less +98 -98
  435. package/lib/lowcode/view/style/page.less +7 -7
  436. package/lib/upload/FilesWall/index.js +26 -16
  437. package/lib/upload/FilesWall/index.less +74 -74
  438. package/lib/upload/Form/gridForm.js +13 -3
  439. package/lib/upload/Form/index.less +7 -7
  440. package/lib/upload/FormItem/index.js +30 -18
  441. package/lib/utils/form.js +24 -23
  442. package/lib/utils/grid.js +11 -3
  443. package/lowcode.js +1 -1
  444. package/package.json +175 -176
  445. package/upload.js +1 -1
  446. package/utils.js +1 -1
  447. package/es/lowcode/painter/panel-section/JSEditor.js +0 -49
  448. package/es/lowcode/view/errorBoundary.js +0 -61
  449. package/lib/lowcode/painter/panel-section/JSEditor.js +0 -57
  450. package/lib/lowcode/view/errorBoundary.js +0 -69
@@ -30,6 +30,8 @@ export var COMPONENT_MODAL_TOGGLE = 'component-modal-toggle';
30
30
  export var COMPONENT_DRAG_OVER = 'component-drag-over';
31
31
  // 组件拖放完成时的事件
32
32
  export var COMPONENT_DRAG_END = 'component-drag-end';
33
+ // 保存事件
34
+ export var DESIGN_OPERATE_SAVE = 'design-operate-save';
33
35
 
34
36
  /******************************* Design Topic结束 *******************************/
35
37
 
@@ -6,7 +6,7 @@
6
6
  "group": "container",
7
7
  "groupName": "布局",
8
8
  "order": 3,
9
- "css": "height:100%; width: auto; background-color: #fff;",
9
+ "css": "height:auto; width: auto;",
10
10
  "advance": {
11
11
  "events": {}
12
12
  }
@@ -14,7 +14,7 @@
14
14
  "disabled": true
15
15
  }
16
16
  ],
17
- "css": "height:100%; width: auto; background-color: #fff;",
17
+ "css": "height:auto; width: auto;",
18
18
  "advance": {
19
19
  "events": [
20
20
  {
File without changes
@@ -98,7 +98,6 @@
98
98
  "name": "图标地址",
99
99
  "type": "_JSEditor",
100
100
  "defaultCode": "function avatarUrl(record) { \n return null; \n}",
101
- "mustConfirm": true,
102
101
  "wrapper": "collapse",
103
102
  "wrapperProps": {
104
103
  "suppressIcon": true
@@ -115,7 +114,7 @@
115
114
  "name": "标题内容",
116
115
  "type": "_JSEditor",
117
116
  "defaultCode": "function renderTitle(record) { \n return record.sname; \n}",
118
- "mustConfirm": true,
117
+ "isjsx": true,
119
118
  "wrapper": "collapse",
120
119
  "wrapperProps": {
121
120
  "suppressIcon": true
@@ -138,7 +137,7 @@
138
137
  "name": "描述内容",
139
138
  "type": "_JSEditor",
140
139
  "defaultCode": "function renderDescribe(record) { \n return record.describe; \n}",
141
- "mustConfirm": true,
140
+ "isjsx": true,
142
141
  "wrapper": "collapse",
143
142
  "wrapperProps": {
144
143
  "suppressIcon": true
@@ -149,7 +148,7 @@
149
148
  "name": "自定义",
150
149
  "type": "_JSEditor",
151
150
  "defaultCode": "function renderContent(record) { \n return null; \n}",
152
- "mustConfirm": true,
151
+ "isjsx": true,
153
152
  "wrapper": "collapse",
154
153
  "wrapperProps": {
155
154
  "suppressIcon": true
@@ -232,7 +231,6 @@
232
231
  "name": "不可选卡片",
233
232
  "type": "_JSEditor",
234
233
  "defaultCode": "function disabledCheckbox(record) { \n return false; \n}",
235
- "mustConfirm": true,
236
234
  "wrapper": "collapse",
237
235
  "wrapperProps": {
238
236
  "suppressIcon": true
@@ -69,18 +69,18 @@
69
69
  "desc": "用于在当前文档中嵌入另一个独立的 HTML 文档、网页或其他类型的媒体内容。它提供了一种将外部内容嵌入到网页中的方法。",
70
70
  "icon": "icon-iframe"
71
71
  },
72
- {
73
- "component": "Image",
74
- "name": "图片",
75
- "desc": "用于显示图像或照片。以便用户可以轻松地创建具有自定义图片样式和布局的界面。",
76
- "icon": "icon-image"
77
- },
78
72
  {
79
73
  "component": "ImEx",
80
74
  "name": "导入导出",
81
75
  "desc": "支持导入导出数据的按钮组件。",
82
76
  "icon": "icon-imex"
83
77
  },
78
+ {
79
+ "component": "Image",
80
+ "name": "图片",
81
+ "desc": "用于显示图像或照片。以便用户可以轻松地创建具有自定义图片样式和布局的界面。",
82
+ "icon": "icon-image"
83
+ },
84
84
  {
85
85
  "component": "JSX",
86
86
  "name": "jsx代码段",
@@ -7,6 +7,7 @@
7
7
  "groupName": "基础",
8
8
  "order": 1,
9
9
  "title": "对话框",
10
+ "size": "custom",
10
11
  "width": "700px",
11
12
  "height": "50vh",
12
13
  "padding": 16,
@@ -14,7 +15,9 @@
14
15
  "mask": true,
15
16
  "closable": true,
16
17
  "destroyOnClose": true,
17
- "footer": true,
18
+ "footer": {
19
+ "checked": true
20
+ },
18
21
  "okText": "确定",
19
22
  "cancelText": "取消",
20
23
  "btnGroup": {
@@ -20,10 +20,16 @@
20
20
  "type": "_I18nInput",
21
21
  "default": "对话框"
22
22
  },
23
+ {
24
+ "key": "size",
25
+ "name": "#展现尺寸",
26
+ "type": "_DialogSize",
27
+ "default": "custom"
28
+ },
23
29
  {
24
30
  "key": "width",
25
31
  "name": "对话框宽度",
26
- "type": "_WidthHeight",
32
+ "type": "_DialogWidthHeight",
27
33
  "options": [
28
34
  {
29
35
  "label": "px",
@@ -42,12 +48,18 @@
42
48
  "value": "auto"
43
49
  }
44
50
  ],
51
+ "sizeOptions": {
52
+ "small": "540px",
53
+ "default": "700px",
54
+ "large": "1150px",
55
+ "full": "100vw"
56
+ },
45
57
  "default": "700px"
46
58
  },
47
59
  {
48
60
  "key": "height",
49
61
  "name": "内容区高度",
50
- "type": "_WidthHeight",
62
+ "type": "_DialogWidthHeight",
51
63
  "options": [
52
64
  {
53
65
  "label": "px",
@@ -62,6 +74,12 @@
62
74
  "value": "auto"
63
75
  }
64
76
  ],
77
+ "sizeOptions": {
78
+ "small": "40vh",
79
+ "default": "60vh",
80
+ "large": "85vh",
81
+ "full": "100vh"
82
+ },
65
83
  "default": "50vh"
66
84
  },
67
85
  {
@@ -142,8 +160,10 @@
142
160
  "key": "footer",
143
161
  "name": "显示footer",
144
162
  "desc": "是否显示底部按钮区域",
145
- "type": "switch",
146
- "default": true
163
+ "type": "_ConditionCheck",
164
+ "default": {
165
+ "checked": true
166
+ }
147
167
  },
148
168
  {
149
169
  "key": "okText",
@@ -180,7 +180,7 @@
180
180
  "key": "footer",
181
181
  "name": "显示footer",
182
182
  "desc": "是否显示底部按钮区域",
183
- "type": "switch",
183
+ "type": "_ConditionCheck",
184
184
  "default": true
185
185
  },
186
186
  {
@@ -34,7 +34,6 @@
34
34
  "name": "不可选日期",
35
35
  "type": "_JSEditor",
36
36
  "defaultCode": "function disabledDate(currentDate) {return true}",
37
- "mustConfirm": true,
38
37
  "wrapper": "collapse",
39
38
  "wrapperProps": {
40
39
  "suppressIcon": true
@@ -23,7 +23,6 @@
23
23
  "name": "编辑类",
24
24
  "type": "_JSEditor",
25
25
  "defaultCode": "function plugins() { \n return ['autolink', 'lists', 'link', 'image', 'table', 'fullscreen']; \n}",
26
- "mustConfirm": true,
27
26
  "wrapper": "collapse",
28
27
  "wrapperProps": {
29
28
  "suppressIcon": true
@@ -46,7 +46,6 @@
46
46
  "name": "禁止选择",
47
47
  "type": "_JSEditor",
48
48
  "defaultCode": "function suppressSelect(rowData) { \n return false; \n}",
49
- "mustConfirm": true,
50
49
  "wrapper": "collapse",
51
50
  "wrapperProps": {
52
51
  "suppressIcon": true
@@ -22,7 +22,6 @@
22
22
  "name": "不可选日期",
23
23
  "type": "_JSEditor",
24
24
  "defaultCode": "function disabledDate(currentDate) {return true}",
25
- "mustConfirm": true,
26
25
  "wrapper": "collapse",
27
26
  "wrapperProps": {
28
27
  "suppressIcon": true
@@ -83,7 +83,7 @@
83
83
  "name": "按钮区域左侧渲染",
84
84
  "type": "_JSEditor",
85
85
  "defaultCode": "function renderFormLeft() { \n return null; \n}",
86
- "mustConfirm": true,
86
+ "isjsx": true,
87
87
  "wrapper": "collapse",
88
88
  "wrapperProps": {
89
89
  "suppressIcon": true
@@ -94,7 +94,7 @@
94
94
  "name": "按钮区域右侧渲染",
95
95
  "type": "_JSEditor",
96
96
  "defaultCode": "function renderFormRight() { \n return null; \n}",
97
- "mustConfirm": true,
97
+ "isjsx": true,
98
98
  "wrapper": "collapse",
99
99
  "wrapperProps": {
100
100
  "suppressIcon": true
@@ -273,7 +273,6 @@
273
273
  "desc": "格式化新增时默认数据",
274
274
  "type": "_JSEditor",
275
275
  "defaultCode": "function defaultDataSourceFormat(defaultValues) { \n return {}; \n}",
276
- "mustConfirm": true,
277
276
  "wrapper": "collapse",
278
277
  "wrapperProps": {
279
278
  "suppressIcon": true
@@ -285,7 +284,6 @@
285
284
  "desc": "格式化单表提交数据",
286
285
  "type": "_JSEditor",
287
286
  "defaultCode": "function dataSourceFormat(dataSetKey, values, submitData) { \n return { [dataSetKey]: submitData }; \n}",
288
- "mustConfirm": true,
289
287
  "wrapper": "collapse",
290
288
  "wrapperProps": {
291
289
  "suppressIcon": true
@@ -390,7 +388,6 @@
390
388
  "desc": "重写操列",
391
389
  "type": "_JSEditor",
392
390
  "defaultCode": "function actionsColumnReset(data, index, actions, params) { \n \t \n}",
393
- "mustConfirm": true,
394
391
  "wrapper": "collapse",
395
392
  "wrapperProps": {
396
393
  "suppressIcon": true
@@ -404,7 +401,6 @@
404
401
  "desc": "格式化新增时默认数据",
405
402
  "type": "_JSEditor",
406
403
  "defaultCode": "function defaultDataSourceFormat(defaultValues) { \n return {}; \n}",
407
- "mustConfirm": true,
408
404
  "wrapper": "collapse",
409
405
  "wrapperProps": {
410
406
  "suppressIcon": true
@@ -416,7 +412,6 @@
416
412
  "desc": "格式化单表提交数据",
417
413
  "type": "_JSEditor",
418
414
  "defaultCode": "function dataSourceFormat(dataSetKey, values, submitData, behaviorKey) { \n return { [dataSetKey]: { [`${behaviorKey}List`]: submitData } }; \n}",
419
- "mustConfirm": true,
420
415
  "wrapper": "collapse",
421
416
  "wrapperProps": {
422
417
  "suppressIcon": true
@@ -428,7 +423,6 @@
428
423
  "desc": "重置表格列",
429
424
  "type": "_JSEditor",
430
425
  "defaultCode": "function columnsReset(columns) { \n return columns; \n}",
431
- "mustConfirm": true,
432
426
  "wrapper": "collapse",
433
427
  "wrapperProps": {
434
428
  "suppressIcon": true
@@ -440,7 +434,6 @@
440
434
  "desc": "加载完成回调",
441
435
  "type": "_JSEditor",
442
436
  "defaultCode": "function onGridFormReady(ref, params, gridForm) { \n\t\n}",
443
- "mustConfirm": true,
444
437
  "wrapper": "collapse",
445
438
  "wrapperProps": {
446
439
  "suppressIcon": true
@@ -516,7 +509,6 @@
516
509
  "desc": "重写操作列",
517
510
  "type": "_JSEditor",
518
511
  "defaultCode": "function actionsColumnReset(data, index, actions, params) { \n \t \n}",
519
- "mustConfirm": true,
520
512
  "wrapper": "collapse",
521
513
  "wrapperProps": {
522
514
  "suppressIcon": true
@@ -530,7 +522,6 @@
530
522
  "desc": "格式化新增时默认数据",
531
523
  "type": "_JSEditor",
532
524
  "defaultCode": "function defaultDataSourceFormat(defaultValues) { \n return {}; \n}",
533
- "mustConfirm": true,
534
525
  "wrapper": "collapse",
535
526
  "wrapperProps": {
536
527
  "suppressIcon": true
@@ -542,7 +533,6 @@
542
533
  "desc": "格式化单表提交数据",
543
534
  "type": "_JSEditor",
544
535
  "defaultCode": "function dataSourceFormat(dataSetKey, values, submitData, behaviorKey) { \n return { [dataSetKey]: { [`${behaviorKey}List`]: submitData } }; \n}",
545
- "mustConfirm": true,
546
536
  "wrapper": "collapse",
547
537
  "wrapperProps": {
548
538
  "suppressIcon": true
@@ -554,7 +544,6 @@
554
544
  "desc": "重置表格列",
555
545
  "type": "_JSEditor",
556
546
  "defaultCode": "function columnsReset(columns) { \n return columns; \n}",
557
- "mustConfirm": true,
558
547
  "wrapper": "collapse",
559
548
  "wrapperProps": {
560
549
  "suppressIcon": true
@@ -566,7 +555,6 @@
566
555
  "desc": "加载完成回调",
567
556
  "type": "_JSEditor",
568
557
  "defaultCode": "function onGridFormReady(ref, params, gridForm) { \n\t\n}",
569
- "mustConfirm": true,
570
558
  "wrapper": "collapse",
571
559
  "wrapperProps": {
572
560
  "suppressIcon": true
@@ -620,7 +608,6 @@
620
608
  "name": "自定义操作列",
621
609
  "type": "_JSEditor",
622
610
  "defaultCode": "function resetActions(data, index, actionList, params) { \n return actionList; \n}",
623
- "mustConfirm": true,
624
611
  "wrapper": "collapse",
625
612
  "wrapperProps": {
626
613
  "suppressIcon": true
@@ -631,7 +618,6 @@
631
618
  "name": "禁止上传类型",
632
619
  "type": "_JSEditor",
633
620
  "defaultCode": "function forbiddenTypes() { \n return []; \n}",
634
- "mustConfirm": true,
635
621
  "wrapper": "collapse",
636
622
  "wrapperProps": {
637
623
  "suppressIcon": true
@@ -642,7 +628,6 @@
642
628
  "name": "上传前置事件",
643
629
  "type": "_JSEditor",
644
630
  "defaultCode": "function beforeUpload(file, fileList) { \n return true; \n}",
645
- "mustConfirm": true,
646
631
  "wrapper": "collapse",
647
632
  "wrapperProps": {
648
633
  "suppressIcon": true
@@ -653,7 +638,6 @@
653
638
  "name": "上传事件回调",
654
639
  "type": "_JSEditor",
655
640
  "defaultCode": "function onUploadChange(event) { \n\t\n}",
656
- "mustConfirm": true,
657
641
  "wrapper": "collapse",
658
642
  "wrapperProps": {
659
643
  "suppressIcon": true
@@ -677,7 +661,7 @@
677
661
  "key": "beforeSave",
678
662
  "name": "保存前置事件",
679
663
  "desc": "保存前置事件,promise,返回false取消执行",
680
- "func": "function beforeSave(values, data) {\n return values; \n}"
664
+ "func": "function beforeSave(values, data) {\n return new Promise(resolve=>resolve(values)); \n}"
681
665
  },
682
666
  {
683
667
  "key": "onSaveCallback",
@@ -50,7 +50,6 @@
50
50
  "desc": "返回默认选中的数据主键",
51
51
  "type": "_JSEditor",
52
52
  "defaultCode": "function defaultSelect(treeData, firstNode) { \n return firstNode.id; \n}",
53
- "mustConfirm": true,
54
53
  "wrapper": "collapse",
55
54
  "wrapperProps": {
56
55
  "suppressIcon": true
@@ -17,13 +17,13 @@
17
17
  "label": "getInstance",
18
18
  "kind": "method",
19
19
  "insertText": "getInstance",
20
- "documentation": " /**\r\n * 获取表格实例\r\n * @method\r\n */\r"
20
+ "documentation": " /**\n * 获取表格实例\n * @method\n */"
21
21
  },
22
22
  {
23
23
  "label": "refresh",
24
24
  "kind": "method",
25
25
  "insertText": "refresh",
26
- "documentation": " /**\r\n * 刷新表格\r\n * @method\r\n */\r"
26
+ "documentation": " /**\n * 刷新表格\n * @method\n */"
27
27
  }
28
28
  ]
29
29
  },
@@ -35,25 +35,25 @@
35
35
  "label": "open",
36
36
  "kind": "property",
37
37
  "insertText": "open",
38
- "documentation": " /**\r\n * 弹窗打开状态\r\n * @property\r\n */\r"
38
+ "documentation": " /**\n * 弹窗打开状态\n * @property\n */"
39
39
  },
40
40
  {
41
41
  "label": "doOpen",
42
42
  "kind": "method",
43
43
  "insertText": "doOpen",
44
- "documentation": " /**\r\n * 打开弹窗\r\n * @method\r\n */\r"
44
+ "documentation": " /**\n * 打开弹窗\n * @method\n */"
45
45
  },
46
46
  {
47
47
  "label": "doClose",
48
48
  "kind": "method",
49
49
  "insertText": "doClose",
50
- "documentation": " /**\r\n * 关闭弹窗\r\n * @method\r\n */\r"
50
+ "documentation": " /**\n * 关闭弹窗\n * @method\n */"
51
51
  },
52
52
  {
53
53
  "label": "setTitle",
54
54
  "kind": "method",
55
55
  "insertText": "setTitle(title)",
56
- "documentation": " /**\r\n * 设置弹窗标题\r\n * @method\r\n * @param {stirng} title -标题\r\n */\r"
56
+ "documentation": " /**\n * 设置弹窗标题\n * @method\n * @param {stirng} title -标题\n */"
57
57
  }
58
58
  ]
59
59
  },
@@ -65,25 +65,25 @@
65
65
  "label": "open",
66
66
  "kind": "property",
67
67
  "insertText": "open",
68
- "documentation": " /**\r\n * 弹窗打开状态\r\n * @property\r\n */\r"
68
+ "documentation": " /**\n * 弹窗打开状态\n * @property\n */"
69
69
  },
70
70
  {
71
71
  "label": "doOpen",
72
72
  "kind": "method",
73
73
  "insertText": "doOpen",
74
- "documentation": " /**\r\n * 打开弹窗\r\n * @method\r\n */\r"
74
+ "documentation": " /**\n * 打开弹窗\n * @method\n */"
75
75
  },
76
76
  {
77
77
  "label": "doClose",
78
78
  "kind": "method",
79
79
  "insertText": "doClose",
80
- "documentation": " /**\r\n * 关闭弹窗\r\n * @method\r\n */\r"
80
+ "documentation": " /**\n * 关闭弹窗\n * @method\n */"
81
81
  },
82
82
  {
83
83
  "label": "setTitle",
84
84
  "kind": "method",
85
85
  "insertText": "setTitle(title)",
86
- "documentation": " /**\r\n * 设置弹窗标题\r\n * @method\r\n * @param {stirng} title -标题\r\n */\r"
86
+ "documentation": " /**\n * 设置弹窗标题\n * @method\n * @param {stirng} title -标题\n */"
87
87
  }
88
88
  ]
89
89
  },
@@ -95,13 +95,13 @@
95
95
  "label": "getInstance",
96
96
  "kind": "method",
97
97
  "insertText": "getInstance",
98
- "documentation": " /**\r\n * 获取表格实例\r\n * @method\r\n */\r"
98
+ "documentation": " /**\n * 获取表格实例\n * @method\n */"
99
99
  },
100
100
  {
101
101
  "label": "submit",
102
102
  "kind": "method",
103
103
  "insertText": "submit",
104
- "documentation": " /**\r\n * 提交表格数据\r\n * @method\r\n */\r"
104
+ "documentation": " /**\n * 提交表格数据\n * @method\n */"
105
105
  }
106
106
  ]
107
107
  },
@@ -116,13 +116,13 @@
116
116
  "completions": []
117
117
  },
118
118
  {
119
- "name": "Image",
120
- "triggerWord": "image",
119
+ "name": "ImEx",
120
+ "triggerWord": "imex",
121
121
  "completions": []
122
122
  },
123
123
  {
124
- "name": "ImEx",
125
- "triggerWord": "imex",
124
+ "name": "Image",
125
+ "triggerWord": "image",
126
126
  "completions": []
127
127
  },
128
128
  {
@@ -183,13 +183,13 @@
183
183
  "label": "getInstance",
184
184
  "kind": "method",
185
185
  "insertText": "getInstance",
186
- "documentation": " /**\r\n * 获取表格实例\r\n * @method\r\n */\r"
186
+ "documentation": " /**\n * 获取表格实例\n * @method\n */"
187
187
  },
188
188
  {
189
189
  "label": "refresh",
190
190
  "kind": "method",
191
191
  "insertText": "refresh",
192
- "documentation": " /**\r\n * 刷新表格\r\n * @method\r\n */\r"
192
+ "documentation": " /**\n * 刷新表格\n * @method\n */"
193
193
  }
194
194
  ]
195
195
  },
@@ -216,73 +216,73 @@
216
216
  "label": "loading",
217
217
  "kind": "property",
218
218
  "insertText": "loading",
219
- "documentation": " /**\r\n * @property {boolean} loading - loading状态\r\n */\r"
219
+ "documentation": " /**\n * @property {boolean} loading - loading状态\n */"
220
220
  },
221
221
  {
222
222
  "label": "topics",
223
223
  "kind": "property",
224
224
  "insertText": "topics",
225
- "documentation": " /**\r\n * @property {object} topics - 内置的事件话题\r\n */\r"
225
+ "documentation": " /**\n * @property {object} topics - 内置的事件话题\n */"
226
226
  },
227
227
  {
228
228
  "label": "API_PREFIX",
229
229
  "kind": "property",
230
230
  "insertText": "API_PREFIX",
231
- "documentation": " /**\r\n * @property {object} topics - service api前缀\r\n */\r"
231
+ "documentation": " /**\n * @property {object} topics - service api前缀\n */"
232
232
  },
233
233
  {
234
234
  "label": "PRIMARY_KEY",
235
235
  "kind": "property",
236
236
  "insertText": "PRIMARY_KEY",
237
- "documentation": " /**\r\n * @property {string} PRIMARY_KEY - 主键key\r\n */\r"
237
+ "documentation": " /**\n * @property {string} PRIMARY_KEY - 主键key\n */"
238
238
  },
239
239
  {
240
240
  "label": "PARENT_KEY",
241
241
  "kind": "property",
242
242
  "insertText": "PARENT_KEY",
243
- "documentation": " /**\r\n * @property {string} PARENT_KEY - 树组件主键key\r\n */\r"
243
+ "documentation": " /**\n * @property {string} PARENT_KEY - 树组件主键key\n */"
244
244
  },
245
245
  {
246
246
  "label": "getElementById",
247
247
  "kind": "method",
248
248
  "insertText": "getElementById(compId)",
249
- "documentation": " /**\r\n * @method - 根据组件ID获取实例\r\n * @param {string} compId - 组件ID\r\n * @return {object} target - 组件实例\r\n */\r"
249
+ "documentation": " /**\n * @method - 根据组件ID获取实例\n * @param {string} compId - 组件ID\n * @return {object} target - 组件实例\n */"
250
250
  },
251
251
  {
252
252
  "label": "getParentElementById",
253
253
  "kind": "method",
254
254
  "insertText": "getParentElementById(compId)",
255
- "documentation": " /**\r\n * @method - 根据组件ID获取父组件实例\r\n * @param {string} compId - 组件ID\r\n * @return {object} target - 父组件实例\r\n */\r"
255
+ "documentation": " /**\n * @method - 根据组件ID获取父组件实例\n * @param {string} compId - 组件ID\n * @return {object} target - 父组件实例\n */"
256
256
  },
257
257
  {
258
258
  "label": "doAction",
259
259
  "kind": "method",
260
260
  "insertText": "doAction(actionPool, args)",
261
- "documentation": " /**\r\n * @method - 执行行为池\r\n * @param {object} actionPool - 行为池\r\n * @param {object} args - 参数\r\n */\r"
261
+ "documentation": " /**\n * @method - 执行行为池\n * @param {object} actionPool - 行为池\n * @param {object} args - 参数\n */"
262
262
  },
263
263
  {
264
264
  "label": "want",
265
265
  "kind": "method",
266
266
  "insertText": "want",
267
- "documentation": " /**\r\n * @method - 是否有权限\r\n * @return {string} wanted - 期望的资源串\r\n */\r"
267
+ "documentation": " /**\n * @method - 是否有权限\n * @return {string} wanted - 期望的资源串\n */"
268
268
  },
269
269
  {
270
270
  "label": "getBehaviorUrl",
271
271
  "kind": "method",
272
272
  "insertText": "getBehaviorUrl",
273
- "documentation": " /**\r\n * @method - 获取执行行为请求的接口URL\r\n * @return {string} BEHAVIOR_URL - 执行行为请求的接口URL\r\n */\r"
273
+ "documentation": " /**\n * @method - 获取执行行为请求的接口URL\n * @return {string} BEHAVIOR_URL - 执行行为请求的接口URL\n */"
274
274
  },
275
275
  {
276
276
  "label": "utils",
277
277
  "kind": "property",
278
278
  "insertText": "utils",
279
- "documentation": " /**\r\n * @property {Utils} 工具类\r\n */\r"
279
+ "documentation": " /**\n * @property {Utils} 工具类\n */"
280
280
  },
281
281
  {
282
282
  "label": "router",
283
283
  "kind": "property",
284
284
  "insertText": "router",
285
- "documentation": " /**\r\n * @property {Router} router - 路由\r\n */\r"
285
+ "documentation": " /**\n * @property {Router} router - 路由\n */"
286
286
  }
287
287
  ]
288
288
  }
@@ -6,6 +6,5 @@
6
6
  "group": "basic",
7
7
  "groupName": "基础",
8
8
  "order": 1,
9
- "css": "",
10
- "render": "function Component() {\n\treturn(\n\t\t<div>\n\t\t\t此为自定义代码组件,请使用 JSX 语法\n\t\t</div>\n\t)\n}"
9
+ "css": ""
11
10
  }
@@ -18,12 +18,13 @@
18
18
  "name": "编辑jsx代码",
19
19
  "desc": "编写可执行的完整jsx组件代码",
20
20
  "type": "_JSEditor",
21
- "default": "function Component() {\n\treturn(\n\t\t<div>\n\t\t\t此为自定义代码组件,请使用 JSX 语法\n\t\t</div>\n\t)\n}",
22
- "mustConfirm": true,
21
+ "defaultCode": "function Component() {\n\treturn(\n\t\t<div>\n\t\t\t此为自定义代码组件,请使用 JSX 语法\n\t\t</div>\n\t)\n}",
22
+ "isjsx": true,
23
23
  "wrapper": "collapse",
24
24
  "wrapperProps": {
25
25
  "suppressIcon": true
26
- }
26
+ },
27
+ "repositioning": true
27
28
  }
28
29
  ],
29
30
  "css": ""
@@ -6,7 +6,7 @@
6
6
  "groupName": "布局",
7
7
  "desc": "布局容器是一种提供列比例、列间距、行间距和样式等配置选项的元素,用于创建灵活的页面布局。它使用户能够轻松组织和排列组件,并实现各种复杂的布局需求。",
8
8
  "order": 1,
9
- "css": "background-color: transparent;",
9
+ "css": "height:auto; background-color: transparent;",
10
10
  "columnRatio": "12:3:9",
11
11
  "columnSpacing": 16,
12
12
  "lineSpacing": 16,
@@ -87,7 +87,7 @@
87
87
  "default": 16
88
88
  }
89
89
  ],
90
- "css": "background-color: transparent;",
90
+ "css": "height:auto; background-color: transparent;",
91
91
  "advance": {
92
92
  "events": [
93
93
  {