@luck-design-biz/luckda 1.0.0-alpha → 1.0.1-10

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 (540) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +40 -40
  3. package/es/components/Builder/index.js +15 -3
  4. package/es/components/ComplexItem/index.js +65 -49
  5. package/es/components/LDActions/index.less +68 -68
  6. package/es/components/LdAutoForm/index.js +6 -4
  7. package/es/components/LdFormList/index.js +11 -10
  8. package/es/components/LdGrid/index.js +4 -4
  9. package/es/components/LdGridForm/index.js +40 -23
  10. package/es/components/LdGridForm/index.less +7 -7
  11. package/es/components/LdTree/index.less +40 -40
  12. package/es/helper/action.js +6 -6
  13. package/es/helper/form.js +15 -14
  14. package/es/helper/index.less +7 -7
  15. package/es/helper/ldBuilder.js +8 -3
  16. package/es/locales/zh-CN.js +41 -4
  17. package/es/lowcode/constants/api-url.js +87 -87
  18. package/es/lowcode/constants/event-topics.js +0 -2
  19. package/es/lowcode/engine/launcher.js +3 -1
  20. package/es/lowcode/engine/meta/box.props.json +3 -3
  21. package/es/lowcode/engine/meta/button.props.default.json +1 -1
  22. package/es/lowcode/engine/meta/button.props.json +2 -2
  23. package/es/lowcode/engine/meta/cardlist.props.default.json +1 -0
  24. package/es/lowcode/engine/meta/cardlist.props.json +2 -1
  25. package/es/lowcode/engine/meta/components-list.json +6 -126
  26. package/es/lowcode/engine/meta/dialog.props.default.json +4 -2
  27. package/es/lowcode/engine/meta/dialog.props.json +76 -20
  28. package/es/lowcode/engine/meta/drawer.props.default.json +15 -4
  29. package/es/lowcode/engine/meta/drawer.props.json +144 -24
  30. package/es/lowcode/engine/meta/fieldcomplex.props.default.json +1 -0
  31. package/es/lowcode/engine/meta/fieldcomplex.props.json +7 -0
  32. package/es/lowcode/engine/meta/fielddatadic.props.default.json +16 -0
  33. package/es/lowcode/engine/meta/fielddatadic.props.json +73 -0
  34. package/es/lowcode/engine/meta/fielddate.props.default.json +2 -0
  35. package/es/lowcode/engine/meta/fielddate.props.json +4 -2
  36. package/es/lowcode/engine/meta/fieldnumber.props.default.json +1 -0
  37. package/es/lowcode/engine/meta/fieldnumber.props.json +3 -2
  38. package/es/lowcode/engine/meta/fielduser.props.default.json +1 -1
  39. package/es/lowcode/engine/meta/fielduser.props.json +1 -1
  40. package/es/lowcode/engine/meta/form.props.default.json +14 -4
  41. package/es/lowcode/engine/meta/form.props.json +53 -14
  42. package/es/lowcode/engine/meta/grouptree.props.default.json +16 -0
  43. package/es/lowcode/engine/meta/grouptree.props.json +89 -0
  44. package/es/lowcode/engine/meta/iframe.props.default.json +2 -1
  45. package/es/lowcode/engine/meta/iframe.props.json +3 -2
  46. package/es/lowcode/engine/meta/image.props.default.json +2 -1
  47. package/es/lowcode/engine/meta/image.props.json +3 -2
  48. package/es/lowcode/engine/meta/imex.props.default.json +2 -1
  49. package/es/lowcode/engine/meta/imex.props.json +27 -6
  50. package/es/lowcode/engine/meta/js-editor/auto-complete.json +65 -42
  51. package/es/lowcode/engine/meta/jsx.props.default.json +1 -1
  52. package/es/lowcode/engine/meta/jsx.props.json +1 -1
  53. package/es/lowcode/engine/meta/layout.props.default.json +1 -1
  54. package/es/lowcode/engine/meta/layout.props.json +5 -5
  55. package/es/lowcode/engine/meta/link.props.default.json +2 -1
  56. package/es/lowcode/engine/meta/link.props.json +3 -2
  57. package/es/lowcode/engine/meta/page.props.json +6 -0
  58. package/es/lowcode/engine/meta/pagelayout.props.default.json +1 -1
  59. package/es/lowcode/engine/meta/pagelayout.props.json +1 -1
  60. package/es/lowcode/engine/meta/section.props.json +2 -1
  61. package/es/lowcode/engine/meta/split.props.default.json +1 -1
  62. package/es/lowcode/engine/meta/split.props.json +1 -1
  63. package/es/lowcode/engine/meta/table.props.json +3 -3
  64. package/es/lowcode/engine/meta/text.props.default.json +4 -2
  65. package/es/lowcode/engine/meta/text.props.json +8 -6
  66. package/es/lowcode/engine/meta/tree.props.json +2 -2
  67. package/es/lowcode/engine/provider/ContextProvider/index.js +83 -66
  68. package/es/lowcode/engine/provider/ContextProvider/router.js +43 -0
  69. package/es/lowcode/engine/{tools → provider/ContextProvider}/usePageDataStore.js +9 -7
  70. package/es/lowcode/engine/provider/ContextProvider/usePageVar.js +38 -15
  71. package/es/lowcode/engine/{tools → provider/ContextProvider}/useTodo.js +5 -7
  72. package/es/lowcode/engine/provider/ContextProvider/utils.js +157 -0
  73. package/es/lowcode/engine/provider/RemoteSourceProvider.js +1 -2
  74. package/es/lowcode/engine/tools/dataProcess.js +76 -76
  75. package/es/lowcode/engine/tools/helper.js +28 -2
  76. package/es/lowcode/engine/tools/initDS.js +263 -0
  77. package/es/lowcode/engine/tools/useCanvasRender.js +13 -1
  78. package/es/lowcode/engine/tools/useCombinedRefs.js +3 -2
  79. package/es/lowcode/painter/Components.js +2 -2
  80. package/es/lowcode/painter/Design.js +1 -0
  81. package/es/lowcode/painter/DesignOperator.js +25 -11
  82. package/es/lowcode/painter/Panel.js +2 -2
  83. package/es/lowcode/painter/components/AdvancePanel.js +3 -3
  84. package/es/lowcode/painter/components/Collapse.js +31 -28
  85. package/es/lowcode/painter/components/ColorInput.js +24 -24
  86. package/es/lowcode/painter/components/ListEditor.js +24 -24
  87. package/es/lowcode/painter/components/NumberInput.js +29 -29
  88. package/es/lowcode/painter/components/PanelItem.js +24 -24
  89. package/es/lowcode/painter/components/PopConfirm.js +8 -8
  90. package/es/lowcode/painter/components/PopForm.js +27 -27
  91. package/es/lowcode/painter/components/RuleInput.js +30 -30
  92. package/es/lowcode/painter/components/SortBox.js +22 -22
  93. package/es/lowcode/painter/components/TipIcon.js +16 -0
  94. package/es/lowcode/painter/components/VarEditor.js +456 -0
  95. package/es/lowcode/painter/components/code-editor/BaseEditor.js +32 -32
  96. package/es/lowcode/painter/components/code-editor/CssEditor.js +25 -25
  97. package/es/lowcode/painter/components/code-editor/FullScreenEditor.js +25 -25
  98. package/es/lowcode/painter/components/code-editor/JSEditor.js +23 -21
  99. package/es/lowcode/painter/components/code-editor/JsonEditor.js +25 -25
  100. package/es/lowcode/painter/components/code-editor/VisionEditor.js +81 -0
  101. package/es/lowcode/painter/components/field-setting/SettingUI.js +47 -5
  102. package/es/lowcode/painter/components/field-setting/index.js +27 -13
  103. package/es/lowcode/painter/components/field-setting/meta/frontRules.js +2 -1
  104. package/es/lowcode/painter/index.js +1 -0
  105. package/es/lowcode/painter/panel-section/BlockEditor/index.js +20 -6
  106. package/es/lowcode/painter/panel-section/BlocksEditor/index.js +2 -2
  107. package/es/lowcode/painter/panel-section/ComplexPop.js +242 -0
  108. package/es/lowcode/painter/panel-section/DataSetSelector.js +8 -0
  109. package/es/lowcode/painter/panel-section/FieldsSetting.js +30 -4
  110. package/es/lowcode/painter/panel-section/GroupClassSelector.js +55 -0
  111. package/es/lowcode/painter/panel-section/I18nInput.js +4 -2
  112. package/es/lowcode/painter/panel-section/Icon.js +32 -27
  113. package/es/lowcode/painter/panel-section/IconConditionSelector.js +7 -7
  114. package/es/lowcode/painter/panel-section/IconSelector.js +17 -17
  115. package/es/lowcode/painter/panel-section/ImpExp.js +1 -27
  116. package/es/lowcode/painter/panel-section/ImpExpAlone.js +1 -2
  117. package/es/lowcode/painter/panel-section/LayoutRatio.js +22 -21
  118. package/es/lowcode/painter/panel-section/PageVars.js +300 -0
  119. package/es/lowcode/painter/panel-section/StylePanel/BackGround.js +2 -2
  120. package/es/lowcode/painter/panel-section/StylePanel/Border.js +2 -2
  121. package/es/lowcode/painter/panel-section/StylePanel/BorderRadius.js +2 -2
  122. package/es/lowcode/painter/panel-section/StylePanel/BorderRadiusSelector.js +2 -2
  123. package/es/lowcode/painter/panel-section/StylePanel/BorderSelector.js +2 -2
  124. package/es/lowcode/painter/panel-section/StylePanel/Display.js +2 -2
  125. package/es/lowcode/painter/panel-section/StylePanel/Font.js +2 -2
  126. package/es/lowcode/painter/panel-section/StylePanel/FontEditor.js +2 -2
  127. package/es/lowcode/painter/panel-section/StylePanel/GapSelector.js +2 -2
  128. package/es/lowcode/painter/panel-section/StylePanel/HighLightPanel.js +2 -2
  129. package/es/lowcode/painter/panel-section/StylePanel/HighLigthtSpan.js +2 -2
  130. package/es/lowcode/painter/panel-section/StylePanel/HightLightSvg.js +2 -2
  131. package/es/lowcode/painter/panel-section/StylePanel/MainPanel.js +2 -2
  132. package/es/lowcode/painter/panel-section/StylePanel/Margin.js +2 -2
  133. package/es/lowcode/painter/panel-section/StylePanel/Opacity.js +2 -2
  134. package/es/lowcode/painter/panel-section/StylePanel/Padding.js +2 -2
  135. package/es/lowcode/painter/panel-section/StylePanel/Pointer.js +2 -2
  136. package/es/lowcode/painter/panel-section/StylePanel/Shadow.js +2 -2
  137. package/es/lowcode/painter/panel-section/StylePanel/Size.js +2 -2
  138. package/es/lowcode/painter/panel-section/StylePanel/StyleContext.js +6 -5
  139. package/es/lowcode/painter/panel-section/StylePanel/StyleRow.js +2 -2
  140. package/es/lowcode/painter/panel-section/StylePanel/WidthHeight.js +2 -2
  141. package/es/lowcode/painter/panel-section/StylePanel/index.js +15 -15
  142. package/es/lowcode/painter/panel-section/TabItems.js +6 -42
  143. package/es/lowcode/painter/panel-section/TextContent.js +79 -0
  144. package/es/lowcode/painter/services/complexPop.js +21 -0
  145. package/es/lowcode/painter/style/action-bind-modal.less +102 -102
  146. package/es/lowcode/painter/style/actions-editor.less +15 -15
  147. package/es/lowcode/painter/style/border-editor.less +36 -36
  148. package/es/lowcode/painter/style/border-radius-selector.less +42 -42
  149. package/es/lowcode/painter/style/border-selector.less +39 -39
  150. package/es/lowcode/painter/style/button-type.less +5 -5
  151. package/es/lowcode/painter/style/collapse.less +28 -28
  152. package/es/lowcode/painter/style/color-input.less +19 -19
  153. package/es/lowcode/painter/style/components.less +91 -91
  154. package/es/lowcode/painter/style/design.less +166 -160
  155. package/es/lowcode/painter/style/display.less +17 -17
  156. package/es/lowcode/painter/style/dragdrop.less +10 -10
  157. package/es/lowcode/painter/style/fields-setting.less +25 -25
  158. package/es/lowcode/painter/style/font-editor.less +9 -9
  159. package/es/lowcode/painter/style/fullscreen-editor.less +17 -17
  160. package/es/lowcode/painter/style/icon-selector.less +22 -22
  161. package/es/lowcode/painter/style/icon.less +10 -10
  162. package/es/lowcode/painter/style/impexp.less +7 -7
  163. package/es/lowcode/painter/style/index.less +6 -6
  164. package/es/lowcode/painter/style/layout-ratio.less +51 -51
  165. package/es/lowcode/painter/style/list-editor.less +95 -95
  166. package/es/lowcode/painter/style/number-input.less +17 -17
  167. package/es/lowcode/painter/style/outline.less +28 -28
  168. package/es/lowcode/painter/style/page-layout-display.less +27 -27
  169. package/es/lowcode/painter/style/page-vars.less +25 -0
  170. package/es/lowcode/painter/style/panel-attrs.less +43 -43
  171. package/es/lowcode/painter/style/panel-item.less +54 -54
  172. package/es/lowcode/painter/style/panel.less +98 -98
  173. package/es/lowcode/painter/style/pop-confirm.less +17 -17
  174. package/es/lowcode/painter/style/pop-form.less +19 -19
  175. package/es/lowcode/painter/style/radio.less +24 -24
  176. package/es/lowcode/painter/style/ribbon.less +5 -5
  177. package/es/lowcode/painter/style/rule-input.less +12 -12
  178. package/es/lowcode/painter/style/split-display.less +18 -18
  179. package/es/lowcode/painter/style/style-panel.less +37 -37
  180. package/es/lowcode/painter/style/tabitems.less +90 -90
  181. package/es/lowcode/painter/style/treedragdrop.less +19 -19
  182. package/es/lowcode/preview/index.js +1 -0
  183. package/es/lowcode/view/Canvas.js +24 -22
  184. package/es/lowcode/view/Loading.js +5 -7
  185. package/es/lowcode/view/Page.js +37 -15
  186. package/es/lowcode/view/index.js +1 -0
  187. package/es/lowcode/view/lc-components/Box/index.js +22 -7
  188. package/es/lowcode/view/lc-components/Box/index.less +14 -14
  189. package/es/lowcode/view/lc-components/Box/meta.json +40 -40
  190. package/es/lowcode/view/lc-components/Button/index.js +40 -40
  191. package/es/lowcode/view/lc-components/Button/meta.json +127 -127
  192. package/es/lowcode/view/lc-components/Button/style.less +2 -2
  193. package/es/lowcode/view/lc-components/CardList/meta.json +154 -153
  194. package/es/lowcode/view/lc-components/Dialog/FunctionDesign.js +14 -6
  195. package/es/lowcode/view/lc-components/Dialog/index.js +34 -25
  196. package/es/lowcode/view/lc-components/Dialog/index.less +12 -8
  197. package/es/lowcode/view/lc-components/Dialog/meta.json +204 -150
  198. package/es/lowcode/view/lc-components/Drawer/FunctionDesign.js +51 -8
  199. package/es/lowcode/view/lc-components/Drawer/index.js +149 -34
  200. package/es/lowcode/view/lc-components/Drawer/index.less +13 -10
  201. package/es/lowcode/view/lc-components/Drawer/meta.json +242 -131
  202. package/es/lowcode/view/lc-components/FieldColor/meta.json +157 -157
  203. package/es/lowcode/view/lc-components/FieldComplex/meta.json +140 -133
  204. package/es/lowcode/view/lc-components/FieldDate/meta.json +141 -139
  205. package/es/lowcode/view/lc-components/FieldDict/meta.json +138 -138
  206. package/es/lowcode/view/lc-components/FieldEditor/meta.json +138 -138
  207. package/es/lowcode/view/lc-components/FieldGroup/meta.json +167 -167
  208. package/es/lowcode/view/lc-components/FieldNumber/meta.json +143 -142
  209. package/es/lowcode/view/lc-components/FieldRadio/meta.json +115 -115
  210. package/es/lowcode/view/lc-components/FieldRegion/meta.json +121 -121
  211. package/es/lowcode/view/lc-components/FieldSelect/meta.json +152 -152
  212. package/es/lowcode/view/lc-components/FieldString/meta.json +152 -152
  213. package/es/lowcode/view/lc-components/FieldSwitch/meta.json +125 -125
  214. package/es/lowcode/view/lc-components/FieldTextarea/meta.json +143 -143
  215. package/es/lowcode/view/lc-components/FieldUpload/meta.json +165 -165
  216. package/es/lowcode/view/lc-components/FieldUser/meta.json +176 -176
  217. package/es/lowcode/view/lc-components/FieldYear/meta.json +129 -129
  218. package/es/lowcode/view/lc-components/Form/FunctionDesign.js +2 -1
  219. package/es/lowcode/view/lc-components/Form/index.js +76 -51
  220. package/es/lowcode/view/lc-components/Form/meta.json +645 -610
  221. package/es/lowcode/view/lc-components/GroupTree/FunctionDesign.js +10 -0
  222. package/es/lowcode/view/lc-components/GroupTree/FunctionLive.js +10 -0
  223. package/es/lowcode/view/lc-components/GroupTree/FunctionPreview.js +10 -0
  224. package/es/lowcode/view/lc-components/GroupTree/index.js +201 -0
  225. package/es/lowcode/view/lc-components/GroupTree/meta.json +89 -0
  226. package/es/lowcode/view/lc-components/Iframe/meta.json +33 -32
  227. package/es/lowcode/view/lc-components/ImEx/index.js +199 -128
  228. package/es/lowcode/view/lc-components/ImEx/index.less +7 -7
  229. package/es/lowcode/view/lc-components/ImEx/meta.json +134 -113
  230. package/es/lowcode/view/lc-components/Image/meta.json +115 -114
  231. package/es/lowcode/view/lc-components/JSX/RuntimeComp.js +4 -4
  232. package/es/lowcode/view/lc-components/JSX/meta.json +28 -28
  233. package/es/lowcode/view/lc-components/Layout/index.js +38 -21
  234. package/es/lowcode/view/lc-components/Layout/index.less +5 -5
  235. package/es/lowcode/view/lc-components/Layout/meta.json +107 -107
  236. package/es/lowcode/view/lc-components/Link/meta.json +113 -112
  237. package/es/lowcode/view/lc-components/Page/meta.json +61 -55
  238. package/es/lowcode/view/lc-components/PageContent/meta.json +9 -9
  239. package/es/lowcode/view/lc-components/PageFooter/meta.json +9 -9
  240. package/es/lowcode/view/lc-components/PageHeader/meta.json +9 -9
  241. package/es/lowcode/view/lc-components/PageLayout/FunctionDesign.js +5 -1
  242. package/es/lowcode/view/lc-components/PageLayout/meta.json +59 -59
  243. package/es/lowcode/view/lc-components/Section/index.js +2 -6
  244. package/es/lowcode/view/lc-components/Section/index.less +7 -7
  245. package/es/lowcode/view/lc-components/Section/meta.json +108 -107
  246. package/es/lowcode/view/lc-components/Split/index.js +19 -4
  247. package/es/lowcode/view/lc-components/Split/meta.json +53 -53
  248. package/es/lowcode/view/lc-components/Table/index.js +175 -148
  249. package/es/lowcode/view/lc-components/Table/meta.json +450 -450
  250. package/es/lowcode/view/lc-components/Tabs/index.js +42 -39
  251. package/es/lowcode/view/lc-components/Tabs/meta.json +113 -113
  252. package/es/lowcode/view/lc-components/Text/index.js +9 -2
  253. package/es/lowcode/view/lc-components/Text/meta.json +56 -56
  254. package/es/lowcode/view/lc-components/Tree/index.js +102 -107
  255. package/es/lowcode/view/lc-components/Tree/index.less +4 -4
  256. package/es/lowcode/view/lc-components/Tree/meta.json +357 -357
  257. package/es/lowcode/view/lc-components/Wrapper.js +17 -2
  258. package/es/lowcode/view/style/canvas.less +5 -5
  259. package/es/lowcode/view/style/loading.less +98 -84
  260. package/es/lowcode/view/style/page.less +7 -7
  261. package/es/services.js +19 -0
  262. package/es/upload/FilesWall/index.js +13 -13
  263. package/es/upload/FilesWall/index.less +74 -74
  264. package/es/upload/Form/gridForm.js +17 -7
  265. package/es/upload/Form/index.less +7 -7
  266. package/es/upload/FormItem/index.js +18 -18
  267. package/es/utils/form.js +25 -25
  268. package/es/utils/grid.js +5 -4
  269. package/lib/components/Builder/index.js +13 -1
  270. package/lib/components/ComplexItem/index.js +62 -47
  271. package/lib/components/LDActions/index.less +68 -68
  272. package/lib/components/LdAutoForm/index.js +5 -3
  273. package/lib/components/LdFormList/index.js +12 -11
  274. package/lib/components/LdGrid/index.js +4 -4
  275. package/lib/components/LdGridForm/index.js +40 -23
  276. package/lib/components/LdGridForm/index.less +7 -7
  277. package/lib/components/LdTree/index.less +40 -40
  278. package/lib/helper/action.js +6 -6
  279. package/lib/helper/form.js +15 -14
  280. package/lib/helper/index.less +7 -7
  281. package/lib/helper/ldBuilder.js +8 -3
  282. package/lib/locales/zh-CN.js +41 -4
  283. package/lib/lowcode/constants/api-url.js +87 -87
  284. package/lib/lowcode/constants/event-topics.js +1 -3
  285. package/lib/lowcode/engine/launcher.js +3 -1
  286. package/lib/lowcode/engine/meta/box.props.json +3 -3
  287. package/lib/lowcode/engine/meta/button.props.default.json +1 -1
  288. package/lib/lowcode/engine/meta/button.props.json +2 -2
  289. package/lib/lowcode/engine/meta/cardlist.props.default.json +1 -0
  290. package/lib/lowcode/engine/meta/cardlist.props.json +2 -1
  291. package/lib/lowcode/engine/meta/components-list.json +6 -126
  292. package/lib/lowcode/engine/meta/dialog.props.default.json +4 -2
  293. package/lib/lowcode/engine/meta/dialog.props.json +76 -20
  294. package/lib/lowcode/engine/meta/drawer.props.default.json +15 -4
  295. package/lib/lowcode/engine/meta/drawer.props.json +144 -24
  296. package/lib/lowcode/engine/meta/fieldcomplex.props.default.json +1 -0
  297. package/lib/lowcode/engine/meta/fieldcomplex.props.json +7 -0
  298. package/lib/lowcode/engine/meta/fielddatadic.props.default.json +16 -0
  299. package/lib/lowcode/engine/meta/fielddatadic.props.json +73 -0
  300. package/lib/lowcode/engine/meta/fielddate.props.default.json +2 -0
  301. package/lib/lowcode/engine/meta/fielddate.props.json +4 -2
  302. package/lib/lowcode/engine/meta/fieldnumber.props.default.json +1 -0
  303. package/lib/lowcode/engine/meta/fieldnumber.props.json +3 -2
  304. package/lib/lowcode/engine/meta/fielduser.props.default.json +1 -1
  305. package/lib/lowcode/engine/meta/fielduser.props.json +1 -1
  306. package/lib/lowcode/engine/meta/form.props.default.json +14 -4
  307. package/lib/lowcode/engine/meta/form.props.json +53 -14
  308. package/lib/lowcode/engine/meta/grouptree.props.default.json +16 -0
  309. package/lib/lowcode/engine/meta/grouptree.props.json +89 -0
  310. package/lib/lowcode/engine/meta/iframe.props.default.json +2 -1
  311. package/lib/lowcode/engine/meta/iframe.props.json +3 -2
  312. package/lib/lowcode/engine/meta/image.props.default.json +2 -1
  313. package/lib/lowcode/engine/meta/image.props.json +3 -2
  314. package/lib/lowcode/engine/meta/imex.props.default.json +2 -1
  315. package/lib/lowcode/engine/meta/imex.props.json +27 -6
  316. package/lib/lowcode/engine/meta/js-editor/auto-complete.json +65 -42
  317. package/lib/lowcode/engine/meta/jsx.props.default.json +1 -1
  318. package/lib/lowcode/engine/meta/jsx.props.json +1 -1
  319. package/lib/lowcode/engine/meta/layout.props.default.json +1 -1
  320. package/lib/lowcode/engine/meta/layout.props.json +5 -5
  321. package/lib/lowcode/engine/meta/link.props.default.json +2 -1
  322. package/lib/lowcode/engine/meta/link.props.json +3 -2
  323. package/lib/lowcode/engine/meta/page.props.json +6 -0
  324. package/lib/lowcode/engine/meta/pagelayout.props.default.json +1 -1
  325. package/lib/lowcode/engine/meta/pagelayout.props.json +1 -1
  326. package/lib/lowcode/engine/meta/section.props.json +2 -1
  327. package/lib/lowcode/engine/meta/split.props.default.json +1 -1
  328. package/lib/lowcode/engine/meta/split.props.json +1 -1
  329. package/lib/lowcode/engine/meta/table.props.json +3 -3
  330. package/lib/lowcode/engine/meta/text.props.default.json +4 -2
  331. package/lib/lowcode/engine/meta/text.props.json +8 -6
  332. package/lib/lowcode/engine/meta/tree.props.json +2 -2
  333. package/lib/lowcode/engine/provider/ContextProvider/index.js +81 -64
  334. package/lib/lowcode/engine/provider/ContextProvider/router.js +57 -0
  335. package/lib/lowcode/engine/{tools → provider/ContextProvider}/usePageDataStore.js +9 -7
  336. package/lib/lowcode/engine/provider/ContextProvider/usePageVar.js +38 -16
  337. package/lib/lowcode/engine/{tools → provider/ContextProvider}/useTodo.js +5 -7
  338. package/lib/lowcode/engine/provider/ContextProvider/utils.js +170 -0
  339. package/lib/lowcode/engine/provider/RemoteSourceProvider.js +2 -3
  340. package/lib/lowcode/engine/tools/dataProcess.js +76 -76
  341. package/lib/lowcode/engine/tools/helper.js +29 -2
  342. package/lib/lowcode/engine/tools/initDS.js +270 -0
  343. package/lib/lowcode/engine/tools/useCanvasRender.js +13 -1
  344. package/lib/lowcode/engine/tools/useCombinedRefs.js +2 -1
  345. package/lib/lowcode/painter/Components.js +2 -2
  346. package/lib/lowcode/painter/Design.js +1 -0
  347. package/lib/lowcode/painter/DesignOperator.js +24 -10
  348. package/lib/lowcode/painter/Panel.js +2 -2
  349. package/lib/lowcode/painter/components/AdvancePanel.js +3 -3
  350. package/lib/lowcode/painter/components/Collapse.js +31 -28
  351. package/lib/lowcode/painter/components/ColorInput.js +24 -24
  352. package/lib/lowcode/painter/components/ListEditor.js +24 -24
  353. package/lib/lowcode/painter/components/NumberInput.js +29 -29
  354. package/lib/lowcode/painter/components/PanelItem.js +24 -24
  355. package/lib/lowcode/painter/components/PopConfirm.js +8 -8
  356. package/lib/lowcode/painter/components/PopForm.js +27 -27
  357. package/lib/lowcode/painter/components/RuleInput.js +30 -30
  358. package/lib/lowcode/painter/components/SortBox.js +22 -22
  359. package/lib/lowcode/painter/components/TipIcon.js +23 -0
  360. package/lib/lowcode/painter/components/VarEditor.js +463 -0
  361. package/lib/lowcode/painter/components/code-editor/BaseEditor.js +32 -32
  362. package/lib/lowcode/painter/components/code-editor/CssEditor.js +25 -25
  363. package/lib/lowcode/painter/components/code-editor/FullScreenEditor.js +25 -25
  364. package/lib/lowcode/painter/components/code-editor/JSEditor.js +23 -21
  365. package/lib/lowcode/painter/components/code-editor/JsonEditor.js +25 -25
  366. package/lib/lowcode/painter/components/code-editor/VisionEditor.js +88 -0
  367. package/lib/lowcode/painter/components/field-setting/SettingUI.js +46 -4
  368. package/lib/lowcode/painter/components/field-setting/index.js +27 -13
  369. package/lib/lowcode/painter/components/field-setting/meta/frontRules.js +2 -1
  370. package/lib/lowcode/painter/index.js +1 -0
  371. package/lib/lowcode/painter/panel-section/BlockEditor/index.js +19 -5
  372. package/lib/lowcode/painter/panel-section/BlocksEditor/index.js +2 -2
  373. package/lib/lowcode/painter/panel-section/ComplexPop.js +250 -0
  374. package/lib/lowcode/painter/panel-section/DataSetSelector.js +8 -0
  375. package/lib/lowcode/painter/panel-section/FieldsSetting.js +30 -4
  376. package/lib/lowcode/painter/panel-section/GroupClassSelector.js +63 -0
  377. package/lib/lowcode/painter/panel-section/I18nInput.js +4 -2
  378. package/lib/lowcode/painter/panel-section/Icon.js +31 -26
  379. package/lib/lowcode/painter/panel-section/IconConditionSelector.js +6 -6
  380. package/lib/lowcode/painter/panel-section/IconSelector.js +17 -17
  381. package/lib/lowcode/painter/panel-section/ImpExp.js +0 -26
  382. package/lib/lowcode/painter/panel-section/ImpExpAlone.js +0 -1
  383. package/lib/lowcode/painter/panel-section/LayoutRatio.js +22 -21
  384. package/lib/lowcode/painter/panel-section/PageVars.js +308 -0
  385. package/lib/lowcode/painter/panel-section/StylePanel/BackGround.js +2 -2
  386. package/lib/lowcode/painter/panel-section/StylePanel/Border.js +2 -2
  387. package/lib/lowcode/painter/panel-section/StylePanel/BorderRadius.js +2 -2
  388. package/lib/lowcode/painter/panel-section/StylePanel/BorderRadiusSelector.js +2 -2
  389. package/lib/lowcode/painter/panel-section/StylePanel/BorderSelector.js +2 -2
  390. package/lib/lowcode/painter/panel-section/StylePanel/Display.js +2 -2
  391. package/lib/lowcode/painter/panel-section/StylePanel/Font.js +2 -2
  392. package/lib/lowcode/painter/panel-section/StylePanel/FontEditor.js +2 -2
  393. package/lib/lowcode/painter/panel-section/StylePanel/GapSelector.js +2 -2
  394. package/lib/lowcode/painter/panel-section/StylePanel/HighLightPanel.js +2 -2
  395. package/lib/lowcode/painter/panel-section/StylePanel/HighLigthtSpan.js +2 -2
  396. package/lib/lowcode/painter/panel-section/StylePanel/HightLightSvg.js +2 -2
  397. package/lib/lowcode/painter/panel-section/StylePanel/MainPanel.js +2 -2
  398. package/lib/lowcode/painter/panel-section/StylePanel/Margin.js +2 -2
  399. package/lib/lowcode/painter/panel-section/StylePanel/Opacity.js +2 -2
  400. package/lib/lowcode/painter/panel-section/StylePanel/Padding.js +2 -2
  401. package/lib/lowcode/painter/panel-section/StylePanel/Pointer.js +2 -2
  402. package/lib/lowcode/painter/panel-section/StylePanel/Shadow.js +2 -2
  403. package/lib/lowcode/painter/panel-section/StylePanel/Size.js +2 -2
  404. package/lib/lowcode/painter/panel-section/StylePanel/StyleContext.js +6 -5
  405. package/lib/lowcode/painter/panel-section/StylePanel/StyleRow.js +2 -2
  406. package/lib/lowcode/painter/panel-section/StylePanel/WidthHeight.js +2 -2
  407. package/lib/lowcode/painter/panel-section/StylePanel/index.js +15 -15
  408. package/lib/lowcode/painter/panel-section/TabItems.js +6 -42
  409. package/lib/lowcode/painter/panel-section/TextContent.js +87 -0
  410. package/lib/lowcode/painter/services/complexPop.js +28 -0
  411. package/lib/lowcode/painter/style/action-bind-modal.less +102 -102
  412. package/lib/lowcode/painter/style/actions-editor.less +15 -15
  413. package/lib/lowcode/painter/style/border-editor.less +36 -36
  414. package/lib/lowcode/painter/style/border-radius-selector.less +42 -42
  415. package/lib/lowcode/painter/style/border-selector.less +39 -39
  416. package/lib/lowcode/painter/style/button-type.less +5 -5
  417. package/lib/lowcode/painter/style/collapse.less +28 -28
  418. package/lib/lowcode/painter/style/color-input.less +19 -19
  419. package/lib/lowcode/painter/style/components.less +91 -91
  420. package/lib/lowcode/painter/style/design.less +166 -160
  421. package/lib/lowcode/painter/style/display.less +17 -17
  422. package/lib/lowcode/painter/style/dragdrop.less +10 -10
  423. package/lib/lowcode/painter/style/fields-setting.less +25 -25
  424. package/lib/lowcode/painter/style/font-editor.less +9 -9
  425. package/lib/lowcode/painter/style/fullscreen-editor.less +17 -17
  426. package/lib/lowcode/painter/style/icon-selector.less +22 -22
  427. package/lib/lowcode/painter/style/icon.less +10 -10
  428. package/lib/lowcode/painter/style/impexp.less +7 -7
  429. package/lib/lowcode/painter/style/index.less +6 -6
  430. package/lib/lowcode/painter/style/layout-ratio.less +51 -51
  431. package/lib/lowcode/painter/style/list-editor.less +95 -95
  432. package/lib/lowcode/painter/style/number-input.less +17 -17
  433. package/lib/lowcode/painter/style/outline.less +28 -28
  434. package/lib/lowcode/painter/style/page-layout-display.less +27 -27
  435. package/lib/lowcode/painter/style/page-vars.less +25 -0
  436. package/lib/lowcode/painter/style/panel-attrs.less +43 -43
  437. package/lib/lowcode/painter/style/panel-item.less +54 -54
  438. package/lib/lowcode/painter/style/panel.less +98 -98
  439. package/lib/lowcode/painter/style/pop-confirm.less +17 -17
  440. package/lib/lowcode/painter/style/pop-form.less +19 -19
  441. package/lib/lowcode/painter/style/radio.less +24 -24
  442. package/lib/lowcode/painter/style/ribbon.less +5 -5
  443. package/lib/lowcode/painter/style/rule-input.less +12 -12
  444. package/lib/lowcode/painter/style/split-display.less +18 -18
  445. package/lib/lowcode/painter/style/style-panel.less +37 -37
  446. package/lib/lowcode/painter/style/tabitems.less +90 -90
  447. package/lib/lowcode/painter/style/treedragdrop.less +19 -19
  448. package/lib/lowcode/preview/index.js +1 -0
  449. package/lib/lowcode/view/Canvas.js +24 -22
  450. package/lib/lowcode/view/Loading.js +5 -7
  451. package/lib/lowcode/view/Page.js +35 -13
  452. package/lib/lowcode/view/index.js +1 -0
  453. package/lib/lowcode/view/lc-components/Box/index.js +21 -6
  454. package/lib/lowcode/view/lc-components/Box/index.less +14 -14
  455. package/lib/lowcode/view/lc-components/Box/meta.json +40 -40
  456. package/lib/lowcode/view/lc-components/Button/index.js +38 -38
  457. package/lib/lowcode/view/lc-components/Button/meta.json +127 -127
  458. package/lib/lowcode/view/lc-components/Button/style.less +2 -2
  459. package/lib/lowcode/view/lc-components/CardList/meta.json +154 -153
  460. package/lib/lowcode/view/lc-components/Dialog/FunctionDesign.js +13 -5
  461. package/lib/lowcode/view/lc-components/Dialog/index.js +34 -25
  462. package/lib/lowcode/view/lc-components/Dialog/index.less +12 -8
  463. package/lib/lowcode/view/lc-components/Dialog/meta.json +204 -150
  464. package/lib/lowcode/view/lc-components/Drawer/FunctionDesign.js +52 -8
  465. package/lib/lowcode/view/lc-components/Drawer/index.js +148 -33
  466. package/lib/lowcode/view/lc-components/Drawer/index.less +13 -10
  467. package/lib/lowcode/view/lc-components/Drawer/meta.json +242 -131
  468. package/lib/lowcode/view/lc-components/FieldColor/meta.json +157 -157
  469. package/lib/lowcode/view/lc-components/FieldComplex/meta.json +140 -133
  470. package/lib/lowcode/view/lc-components/FieldDate/meta.json +141 -139
  471. package/lib/lowcode/view/lc-components/FieldDict/meta.json +138 -138
  472. package/lib/lowcode/view/lc-components/FieldEditor/meta.json +138 -138
  473. package/lib/lowcode/view/lc-components/FieldGroup/meta.json +167 -167
  474. package/lib/lowcode/view/lc-components/FieldNumber/meta.json +143 -142
  475. package/lib/lowcode/view/lc-components/FieldRadio/meta.json +115 -115
  476. package/lib/lowcode/view/lc-components/FieldRegion/meta.json +121 -121
  477. package/lib/lowcode/view/lc-components/FieldSelect/meta.json +152 -152
  478. package/lib/lowcode/view/lc-components/FieldString/meta.json +152 -152
  479. package/lib/lowcode/view/lc-components/FieldSwitch/meta.json +125 -125
  480. package/lib/lowcode/view/lc-components/FieldTextarea/meta.json +143 -143
  481. package/lib/lowcode/view/lc-components/FieldUpload/meta.json +165 -165
  482. package/lib/lowcode/view/lc-components/FieldUser/meta.json +176 -176
  483. package/lib/lowcode/view/lc-components/FieldYear/meta.json +129 -129
  484. package/lib/lowcode/view/lc-components/Form/FunctionDesign.js +2 -1
  485. package/lib/lowcode/view/lc-components/Form/index.js +75 -50
  486. package/lib/lowcode/view/lc-components/Form/meta.json +645 -610
  487. package/lib/lowcode/view/lc-components/GroupTree/FunctionDesign.js +17 -0
  488. package/lib/lowcode/view/lc-components/GroupTree/FunctionLive.js +17 -0
  489. package/lib/lowcode/view/lc-components/GroupTree/FunctionPreview.js +17 -0
  490. package/lib/lowcode/view/lc-components/GroupTree/index.js +209 -0
  491. package/lib/lowcode/view/lc-components/GroupTree/meta.json +89 -0
  492. package/lib/lowcode/view/lc-components/Iframe/meta.json +33 -32
  493. package/lib/lowcode/view/lc-components/ImEx/index.js +197 -126
  494. package/lib/lowcode/view/lc-components/ImEx/index.less +7 -7
  495. package/lib/lowcode/view/lc-components/ImEx/meta.json +134 -113
  496. package/lib/lowcode/view/lc-components/Image/meta.json +115 -114
  497. package/lib/lowcode/view/lc-components/JSX/RuntimeComp.js +4 -4
  498. package/lib/lowcode/view/lc-components/JSX/meta.json +28 -28
  499. package/lib/lowcode/view/lc-components/Layout/index.js +37 -20
  500. package/lib/lowcode/view/lc-components/Layout/index.less +5 -5
  501. package/lib/lowcode/view/lc-components/Layout/meta.json +107 -107
  502. package/lib/lowcode/view/lc-components/Link/meta.json +113 -112
  503. package/lib/lowcode/view/lc-components/Page/meta.json +61 -55
  504. package/lib/lowcode/view/lc-components/PageContent/meta.json +9 -9
  505. package/lib/lowcode/view/lc-components/PageFooter/meta.json +9 -9
  506. package/lib/lowcode/view/lc-components/PageHeader/meta.json +9 -9
  507. package/lib/lowcode/view/lc-components/PageLayout/FunctionDesign.js +5 -1
  508. package/lib/lowcode/view/lc-components/PageLayout/meta.json +59 -59
  509. package/lib/lowcode/view/lc-components/Section/index.js +2 -6
  510. package/lib/lowcode/view/lc-components/Section/index.less +7 -7
  511. package/lib/lowcode/view/lc-components/Section/meta.json +108 -107
  512. package/lib/lowcode/view/lc-components/Split/index.js +18 -3
  513. package/lib/lowcode/view/lc-components/Split/meta.json +53 -53
  514. package/lib/lowcode/view/lc-components/Table/index.js +176 -149
  515. package/lib/lowcode/view/lc-components/Table/meta.json +450 -450
  516. package/lib/lowcode/view/lc-components/Tabs/index.js +40 -37
  517. package/lib/lowcode/view/lc-components/Tabs/meta.json +113 -113
  518. package/lib/lowcode/view/lc-components/Text/index.js +8 -1
  519. package/lib/lowcode/view/lc-components/Text/meta.json +56 -56
  520. package/lib/lowcode/view/lc-components/Tree/index.js +102 -107
  521. package/lib/lowcode/view/lc-components/Tree/index.less +4 -4
  522. package/lib/lowcode/view/lc-components/Tree/meta.json +357 -357
  523. package/lib/lowcode/view/lc-components/Wrapper.js +16 -1
  524. package/lib/lowcode/view/style/canvas.less +5 -5
  525. package/lib/lowcode/view/style/loading.less +98 -84
  526. package/lib/lowcode/view/style/page.less +7 -7
  527. package/lib/services.js +20 -0
  528. package/lib/upload/FilesWall/index.js +13 -13
  529. package/lib/upload/FilesWall/index.less +74 -74
  530. package/lib/upload/Form/gridForm.js +17 -7
  531. package/lib/upload/Form/index.less +7 -7
  532. package/lib/upload/FormItem/index.js +18 -18
  533. package/lib/utils/form.js +24 -24
  534. package/lib/utils/grid.js +4 -3
  535. package/lowcode.js +1 -1
  536. package/package.json +175 -175
  537. package/upload.js +1 -1
  538. package/utils.js +1 -1
  539. package/es/lowcode/view/lc-components/Form/index.less +0 -5
  540. package/lib/lowcode/view/lc-components/Form/index.less +0 -5
@@ -1,610 +1,645 @@
1
- {
2
- "component": "Form",
3
- "name": "复杂表单",
4
- "desc": "复杂表单组件是用于收集、验证和提交用户输入数据的重要组件。",
5
- "icon": "icon-form",
6
- "group": "advance",
7
- "groupName": "高级",
8
- "order": 1,
9
- "props": [
10
- {
11
- "key": "id",
12
- "name": "唯一标识",
13
- "type": "string",
14
- "disabled": true
15
- },
16
- {
17
- "key": "readOnly",
18
- "name": "只读",
19
- "desc": "是否只读",
20
- "type": "switch",
21
- "default": false
22
- },
23
- {
24
- "key": "ribbonSetting",
25
- "name": "功能区设置",
26
- "type": "group",
27
- "default": true,
28
- "next": {
29
- "name": "功能区设置",
30
- "props": [
31
- {
32
- "key": "showSave",
33
- "name": "保存按钮",
34
- "desc": "是否展示保存按钮",
35
- "type": "switch",
36
- "default": true
37
- },
38
- {
39
- "key": "saveTitle",
40
- "name": "保存按钮标题",
41
- "type": "_I18nInput",
42
- "default": "保存"
43
- },
44
- {
45
- "key": "settingLayout",
46
- "name": "按钮布局",
47
- "type": "segmented",
48
- "options": [
49
- {
50
- "label": "顶部",
51
- "value": "top"
52
- },
53
- {
54
- "label": "底部",
55
- "value": "bottom"
56
- }
57
- ],
58
- "default": "bottom"
59
- },
60
- {
61
- "key": "getContainer",
62
- "name": "挂载节点",
63
- "desc": "指定功能区挂载的页面节点",
64
- "type": "_ComponentSelector",
65
- "filter": [
66
- ["id", "page_root"],
67
- ["meta.group", "container"],
68
- ["meta.group", "build-in"]
69
- ]
70
- },
71
- {
72
- "key": "renderFormLeft",
73
- "name": "按钮区域左侧渲染",
74
- "type": "_JSEditor",
75
- "defaultCode": "function renderFormLeft() { \n return null; \n}",
76
- "mustConfirm": true,
77
- "wrapper": "collapse",
78
- "wrapperProps": {
79
- "suppressIcon": true
80
- }
81
- },
82
- {
83
- "key": "renderFormRight",
84
- "name": "按钮区域右侧渲染",
85
- "type": "_JSEditor",
86
- "defaultCode": "function renderFormRight() { \n return null; \n}",
87
- "mustConfirm": true,
88
- "wrapper": "collapse",
89
- "wrapperProps": {
90
- "suppressIcon": true
91
- }
92
- }
93
- ]
94
- }
95
- },
96
- {
97
- "key": "blocks",
98
- "name": "区块",
99
- "type": "_BlocksEditor",
100
- "default": [
101
- {
102
- "id": "block_main",
103
- "name": "主区块",
104
- "type": "auto",
105
- "serialEffect": "disable",
106
- "mode": ["add", "update", "edit", "info"],
107
- "cols": 4,
108
- "readOnly": false,
109
- "order": 1
110
- }
111
- ],
112
- "wrapper": "hidden",
113
- "innerProps": [
114
- {
115
- "key": "dataset",
116
- "name": "数据集",
117
- "desc": "选择系统中的可用树形数据集",
118
- "type": "_DataSetSelector",
119
- "component": "form",
120
- "next": {
121
- "name": "字段配置",
122
- "props": [
123
- {
124
- "key": "fields",
125
- "name": "#字段配置器",
126
- "type": "_FieldsSetting"
127
- }
128
- ]
129
- }
130
- },
131
- {
132
- "key": "name",
133
- "name": "区块名称",
134
- "type": "_I18nInput"
135
- },
136
- {
137
- "key": "serial",
138
- "name": "资源串",
139
- "type": "_SerialsSelector"
140
- },
141
- {
142
- "key": "serialEffect",
143
- "name": "资源串效果",
144
- "type": "segmented",
145
- "options": [
146
- {
147
- "label": "禁用",
148
- "value": "disable"
149
- },
150
- {
151
- "label": "隐藏",
152
- "value": "hidden"
153
- }
154
- ],
155
- "default": "hidden"
156
- },
157
- {
158
- "key": "mode",
159
- "name": "适用模式",
160
- "type": "checkbox",
161
- "options": [
162
- {
163
- "label": "add",
164
- "value": "add"
165
- },
166
- {
167
- "label": "update",
168
- "value": "update"
169
- },
170
- {
171
- "label": "edit",
172
- "value": "edit"
173
- },
174
- {
175
- "label": "info",
176
- "value": "info"
177
- }
178
- ]
179
- },
180
- {
181
- "key": "header",
182
- "name": "表头类型",
183
- "type": "select",
184
- "options": [
185
- {
186
- "label": "折叠面板",
187
- "value": "collapse"
188
- },
189
- {
190
- "label": "分隔线",
191
- "value": "divider"
192
- },
193
- {
194
- "label": "无",
195
- "value": false
196
- }
197
- ],
198
- "default": "collapse"
199
- },
200
- {
201
- "key": "blockSettings",
202
- "name": "区块详细设计",
203
- "type": "_BlockEditor",
204
- "wrapper": "hidden",
205
- "default": {
206
- "form": { "readOnly": false, "col": 4 },
207
- "table": {
208
- "readOnly": false,
209
- "suppressPreset": false,
210
- "height": "100%",
211
- "bordered": false,
212
- "popTitleKey": "title",
213
- "draggable": false,
214
- "orderByAdd": "asc",
215
- "suppressActions": false,
216
- "actionsColumnWidth": 160
217
- },
218
- "uploadForm": {
219
- "readOnly": false,
220
- "suppressPreset": false,
221
- "height": "300px",
222
- "bordered": false,
223
- "showNote": false,
224
- "zipName": "download",
225
- "useResetActions": false
226
- }
227
- },
228
- "next": {
229
- "name": "区块详细设计",
230
- "_auto_props": [
231
- {
232
- "key": "readOnly",
233
- "name": "只读",
234
- "type": "switch",
235
- "default": false
236
- },
237
- {
238
- "key": "cols",
239
- "name": "默认列数",
240
- "type": "number",
241
- "default": 4
242
- },
243
- {
244
- "key": "defaultDataSourceFormat",
245
- "name": "格式化默认数据",
246
- "desc": "格式化新增时默认数据",
247
- "type": "_JSEditor",
248
- "defaultCode": "function defaultDataSourceFormat(defaultValues) { \n return defaultValues; \n}",
249
- "mustConfirm": true,
250
- "wrapper": "collapse",
251
- "wrapperProps": { "suppressIcon": true }
252
- },
253
- {
254
- "key": "dataSourceFormat",
255
- "name": "格式化数据",
256
- "desc": "格式化单表提交数据",
257
- "type": "_JSEditor",
258
- "defaultCode": "function dataSourceFormat(dataSetKey, values, submitData) { \n return { [dataSetKey]: submitData }; \n}",
259
- "mustConfirm": true,
260
- "wrapper": "collapse",
261
- "wrapperProps": { "suppressIcon": true }
262
- }
263
- ],
264
- "_grid_props": [
265
- {
266
- "key": "readOnly",
267
- "name": "只读",
268
- "type": "switch"
269
- },
270
- {
271
- "key": "suppressPreset",
272
- "name": "关闭预设",
273
- "type": "switch"
274
- },
275
- {
276
- "key": "height",
277
- "name": "高度",
278
- "type": "_WidthHeight"
279
- },
280
- {
281
- "key": "bordered",
282
- "name": "边框线",
283
- "type": "switch"
284
- },
285
- {
286
- "key": "draggable",
287
- "name": "拖拽排序",
288
- "type": "switch"
289
- },
290
- {
291
- "key": "orderByAdd",
292
- "name": "排序方式",
293
- "type": "segmented",
294
- "options": [
295
- {
296
- "label": "升序",
297
- "value": "asc"
298
- },
299
- {
300
- "label": "降序",
301
- "value": "desc"
302
- }
303
- ]
304
- },
305
- {
306
- "key": "actionsColumn",
307
- "name": "操作列",
308
- "type": "group",
309
- "props": [
310
- {
311
- "key": "suppressActions",
312
- "name": "隐藏操作列",
313
- "type": "switch"
314
- },
315
- {
316
- "key": "actionsColumnWidth",
317
- "name": "列宽",
318
- "type": "_ActionsColumnWidth",
319
- "convertInt": true,
320
- "options": [{ "label": "px", "value": "px" }]
321
- },
322
- {
323
- "key": "actionsColumnReset",
324
- "name": "重写操列",
325
- "desc": "重写操列",
326
- "type": "_JSEditor",
327
- "defaultCode": "function actionsColumnReset(data, index, actions, params) { \n \t \n}",
328
- "mustConfirm": true,
329
- "wrapper": "collapse",
330
- "wrapperProps": { "suppressIcon": true }
331
- }
332
- ]
333
- },
334
- {
335
- "key": "defaultDataSourceFormat",
336
- "name": "格式化默认数据",
337
- "desc": "格式化新增时默认数据",
338
- "type": "_JSEditor",
339
- "defaultCode": "function defaultDataSourceFormat(defaultValues) { \n return defaultValues; \n}",
340
- "mustConfirm": true,
341
- "wrapper": "collapse",
342
- "wrapperProps": { "suppressIcon": true }
343
- },
344
- {
345
- "key": "dataSourceFormat",
346
- "name": "格式化数据",
347
- "desc": "格式化单表提交数据",
348
- "type": "_JSEditor",
349
- "defaultCode": "function dataSourceFormat(dataSetKey, values, submitData, behaviorKey) { \n return { [dataSetKey]: { [`${behaviorKey}List`]: submitData } }; \n}",
350
- "mustConfirm": true,
351
- "wrapper": "collapse",
352
- "wrapperProps": { "suppressIcon": true }
353
- },
354
- {
355
- "key": "columnsReset",
356
- "name": "重置表格列",
357
- "desc": "重置表格列",
358
- "type": "_JSEditor",
359
- "defaultCode": "function columnsReset(columns) { \n return columns; \n}",
360
- "mustConfirm": true,
361
- "wrapper": "collapse",
362
- "wrapperProps": { "suppressIcon": true }
363
- },
364
- {
365
- "key": "onGridFormReady",
366
- "name": "加载完成回调",
367
- "desc": "加载完成回调",
368
- "type": "_JSEditor",
369
- "defaultCode": "function onGridFormReady(ref, params, gridForm) { \n\t\n}",
370
- "mustConfirm": true,
371
- "wrapper": "collapse",
372
- "wrapperProps": { "suppressIcon": true }
373
- }
374
- ],
375
- "_writer_props": [
376
- {
377
- "key": "readOnly",
378
- "name": "只读",
379
- "type": "switch"
380
- },
381
- {
382
- "key": "suppressPreset",
383
- "name": "关闭预设",
384
- "type": "switch"
385
- },
386
- {
387
- "key": "height",
388
- "name": "高度",
389
- "type": "_WidthHeight"
390
- },
391
- {
392
- "key": "bordered",
393
- "name": "边框线",
394
- "type": "switch"
395
- },
396
- {
397
- "key": "draggable",
398
- "name": "拖拽排序",
399
- "type": "switch"
400
- },
401
- {
402
- "key": "orderByAdd",
403
- "name": "排序方式",
404
- "type": "segmented",
405
- "options": [
406
- {
407
- "label": "升序",
408
- "value": "asc"
409
- },
410
- {
411
- "label": "降序",
412
- "value": "desc"
413
- }
414
- ]
415
- },
416
- {
417
- "key": "actionsColumn",
418
- "name": "操作列",
419
- "type": "group",
420
- "props": [
421
- {
422
- "key": "suppressActions",
423
- "name": "隐藏操作列",
424
- "type": "switch"
425
- },
426
- {
427
- "key": "actionsColumnWidth",
428
- "name": "列宽",
429
- "type": "_ActionsColumnWidth",
430
- "convertInt": true,
431
- "options": [{ "label": "px", "value": "px" }]
432
- },
433
- {
434
- "key": "actionsColumnReset",
435
- "name": "重写操作列",
436
- "desc": "重写操作列",
437
- "type": "_JSEditor",
438
- "defaultCode": "function actionsColumnReset(data, index, actions, params) { \n \t \n}",
439
- "mustConfirm": true,
440
- "wrapper": "collapse",
441
- "wrapperProps": { "suppressIcon": true }
442
- }
443
- ]
444
- },
445
- {
446
- "key": "defaultDataSourceFormat",
447
- "name": "格式化默认数据",
448
- "desc": "格式化新增时默认数据",
449
- "type": "_JSEditor",
450
- "defaultCode": "function defaultDataSourceFormat(defaultValues) { \n return defaultValues; \n}",
451
- "mustConfirm": true,
452
- "wrapper": "collapse",
453
- "wrapperProps": { "suppressIcon": true }
454
- },
455
- {
456
- "key": "dataSourceFormat",
457
- "name": "格式化数据",
458
- "desc": "格式化单表提交数据",
459
- "type": "_JSEditor",
460
- "defaultCode": "function dataSourceFormat(dataSetKey, values, submitData, behaviorKey) { \n return { [dataSetKey]: { [`${behaviorKey}List`]: submitData } }; \n}",
461
- "mustConfirm": true,
462
- "wrapper": "collapse",
463
- "wrapperProps": { "suppressIcon": true }
464
- },
465
- {
466
- "key": "columnsReset",
467
- "name": "重置表格列",
468
- "desc": "重置表格列",
469
- "type": "_JSEditor",
470
- "defaultCode": "function columnsReset(columns) { \n return columns; \n}",
471
- "mustConfirm": true,
472
- "wrapper": "collapse",
473
- "wrapperProps": { "suppressIcon": true }
474
- },
475
- {
476
- "key": "onGridFormReady",
477
- "name": "加载完成回调",
478
- "desc": "加载完成回调",
479
- "type": "_JSEditor",
480
- "defaultCode": "function onGridFormReady(ref, params, gridForm) { \n\t\n}",
481
- "mustConfirm": true,
482
- "wrapper": "collapse",
483
- "wrapperProps": { "suppressIcon": true }
484
- }
485
- ],
486
- "_uploadForm_props": [
487
- {
488
- "key": "readOnly",
489
- "name": "只读",
490
- "type": "switch"
491
- },
492
- {
493
- "key": "suppressPreset",
494
- "name": "关闭预设",
495
- "type": "switch"
496
- },
497
- {
498
- "key": "height",
499
- "name": "高度",
500
- "type": "_WidthHeight"
501
- },
502
- {
503
- "key": "bordered",
504
- "name": "边框线",
505
- "type": "switch"
506
- },
507
- {
508
- "key": "showNote",
509
- "name": "开启备注",
510
- "type": "switch"
511
- },
512
- {
513
- "key": "zipName",
514
- "name": "压缩包命名",
515
- "type": "_I18nInput"
516
- },
517
- {
518
- "key": "uploadUrl",
519
- "name": "上传地址",
520
- "desc": "自定义上传地址,不填使用默认上传地址",
521
- "type": "string"
522
- },
523
- {
524
- "key": "useResetActions",
525
- "name": "默认操作列",
526
- "type": "switch"
527
- },
528
- {
529
- "key": "resetActions",
530
- "name": "自定义操作列",
531
- "type": "_JSEditor",
532
- "defaultCode": "function resetActions(data, index, actionList, params) { \n return actionList; \n}",
533
- "mustConfirm": true,
534
- "wrapper": "collapse",
535
- "wrapperProps": { "suppressIcon": true }
536
- },
537
- {
538
- "key": "forbiddenTypes",
539
- "name": "禁止上传类型",
540
- "type": "_JSEditor",
541
- "defaultCode": "function forbiddenTypes() { \n return []; \n}",
542
- "mustConfirm": true,
543
- "wrapper": "collapse",
544
- "wrapperProps": { "suppressIcon": true }
545
- },
546
- {
547
- "key": "beforeUpload",
548
- "name": "上传前置事件",
549
- "type": "_JSEditor",
550
- "defaultCode": "function beforeUpload(file, fileList) { \n return true; \n}",
551
- "mustConfirm": true,
552
- "wrapper": "collapse",
553
- "wrapperProps": { "suppressIcon": true }
554
- },
555
- {
556
- "key": "onUploadChange",
557
- "name": "上传事件回调",
558
- "type": "_JSEditor",
559
- "defaultCode": "function onUploadChange(event) { \n\t\n}",
560
- "mustConfirm": true,
561
- "wrapper": "collapse",
562
- "wrapperProps": { "suppressIcon": true }
563
- }
564
- ]
565
- }
566
- }
567
- ]
568
- }
569
- ],
570
- "advance": {
571
- "events": [
572
- {
573
- "key": "onMount",
574
- "name": "组件首次渲染时",
575
- "desc": "在组件首次渲染时,执行方法",
576
- "func": "function onMount(instance) {\n\t\n}"
577
- },
578
- {
579
- "key": "beforeSave",
580
- "name": "保存前置事件",
581
- "desc": "保存前置事件,promise,返回false取消执行",
582
- "func": "function beforeSave(values, data) {\n return values; \n}"
583
- },
584
- {
585
- "key": "onSaveCallback",
586
- "name": "保存后回调",
587
- "desc": "保存后回调事件",
588
- "func": "function onSaveCallback(success, mainKey, res) {\n\t\n}"
589
- },
590
- {
591
- "key": "onUnmount",
592
- "name": "组件卸载时",
593
- "desc": "在组件卸载时,执行方法",
594
- "func": "function onUnmount(api, instance) {\n\t\n}"
595
- },
596
- {
597
- "key": "onValueChange",
598
- "name": "参数变化的事件",
599
- "desc": "参数变化时,执行方法",
600
- "func": "function onValueChange(change, data) {\n\t\n}"
601
- },
602
- {
603
- "key": "onChildChange",
604
- "name": "表单内容发生改变时的回调",
605
- "desc": "表单内容发生改变时的回调",
606
- "func": "function onChildChange(instance) {\n\t\n}"
607
- }
608
- ]
609
- }
610
- }
1
+ {
2
+ "component": "Form",
3
+ "name": "复杂表单",
4
+ "desc": "复杂表单组件是用于收集、验证和提交用户输入数据的重要组件。",
5
+ "icon": "icon-form",
6
+ "group": "advance",
7
+ "groupName": "高级",
8
+ "order": 1,
9
+ "props": [
10
+ {
11
+ "key": "id",
12
+ "name": "唯一标识",
13
+ "type": "string",
14
+ "disabled": true
15
+ },
16
+ {
17
+ "key": "readOnly",
18
+ "name": "只读",
19
+ "desc": "是否只读",
20
+ "type": "switch",
21
+ "default": false
22
+ },
23
+ {
24
+ "key": "ribbonSetting",
25
+ "name": "功能区设置",
26
+ "type": "group",
27
+ "default": true,
28
+ "next": {
29
+ "name": "功能区设置",
30
+ "props": [
31
+ {
32
+ "key": "showSave",
33
+ "name": "保存按钮",
34
+ "desc": "是否展示保存按钮",
35
+ "type": "switch",
36
+ "default": true
37
+ },
38
+ {
39
+ "key": "saveTitle",
40
+ "name": "保存按钮标题",
41
+ "type": "_I18nInput",
42
+ "default": "保存"
43
+ },
44
+ {
45
+ "key": "settingLayout",
46
+ "name": "按钮布局",
47
+ "type": "segmented",
48
+ "options": [
49
+ {
50
+ "label": "顶部",
51
+ "value": "top"
52
+ },
53
+ {
54
+ "label": "底部",
55
+ "value": "bottom"
56
+ }
57
+ ],
58
+ "default": "bottom"
59
+ },
60
+ {
61
+ "key": "getContainer",
62
+ "name": "挂载节点",
63
+ "desc": "指定功能区挂载的页面节点",
64
+ "type": "_ComponentSelector",
65
+ "filter": [
66
+ ["id", "page_root"],
67
+ ["meta.group", "container"],
68
+ ["meta.group", "build-in"]
69
+ ],
70
+ "default": "page_content"
71
+ },
72
+ {
73
+ "key": "renderFormLeft",
74
+ "name": "按钮区域左侧渲染",
75
+ "type": "_JSEditor",
76
+ "defaultCode": "function renderFormLeft() { \n return null; \n}",
77
+ "mustConfirm": true,
78
+ "wrapper": "collapse",
79
+ "wrapperProps": {
80
+ "suppressIcon": true
81
+ }
82
+ },
83
+ {
84
+ "key": "renderFormRight",
85
+ "name": "按钮区域右侧渲染",
86
+ "type": "_JSEditor",
87
+ "defaultCode": "function renderFormRight() { \n return null; \n}",
88
+ "mustConfirm": true,
89
+ "wrapper": "collapse",
90
+ "wrapperProps": {
91
+ "suppressIcon": true
92
+ }
93
+ }
94
+ ]
95
+ }
96
+ },
97
+ {
98
+ "key": "blocks",
99
+ "name": "区块",
100
+ "type": "_BlocksEditor",
101
+ "default": [
102
+ {
103
+ "id": "block_main",
104
+ "name": "主区块",
105
+ "type": "auto",
106
+ "serialEffect": "disable",
107
+ "mode": ["add", "update", "edit", "info"],
108
+ "cols": 4,
109
+ "readOnly": false,
110
+ "order": 1
111
+ }
112
+ ],
113
+ "wrapper": "hidden",
114
+ "innerProps": [
115
+ {
116
+ "key": "dataset",
117
+ "name": "数据集",
118
+ "desc": "选择系统中的可用数据集",
119
+ "type": "_DataSetSelector",
120
+ "component": "form",
121
+ "next": {
122
+ "name": "字段配置",
123
+ "props": [
124
+ {
125
+ "key": "fields",
126
+ "name": "#字段配置器",
127
+ "type": "_FieldsSetting"
128
+ }
129
+ ]
130
+ }
131
+ },
132
+ {
133
+ "key": "name",
134
+ "name": "区块名称",
135
+ "type": "_I18nInput"
136
+ },
137
+ {
138
+ "key": "serial",
139
+ "name": "资源串",
140
+ "type": "_SerialsSelector"
141
+ },
142
+ {
143
+ "key": "serialEffect",
144
+ "name": "资源串效果",
145
+ "type": "segmented",
146
+ "options": [
147
+ {
148
+ "label": "禁用",
149
+ "value": "disable"
150
+ },
151
+ {
152
+ "label": "隐藏",
153
+ "value": "hidden"
154
+ }
155
+ ],
156
+ "default": "hidden"
157
+ },
158
+ {
159
+ "key": "mode",
160
+ "name": "适用模式",
161
+ "type": "checkbox",
162
+ "options": [
163
+ {
164
+ "label": "add",
165
+ "value": "add"
166
+ },
167
+ {
168
+ "label": "update",
169
+ "value": "update"
170
+ },
171
+ {
172
+ "label": "edit",
173
+ "value": "edit"
174
+ },
175
+ {
176
+ "label": "info",
177
+ "value": "info"
178
+ }
179
+ ]
180
+ },
181
+ {
182
+ "key": "header",
183
+ "name": "表头类型",
184
+ "type": "select",
185
+ "options": [
186
+ {
187
+ "label": "折叠面板",
188
+ "value": "collapse"
189
+ },
190
+ {
191
+ "label": "分隔线",
192
+ "value": "divider"
193
+ },
194
+ {
195
+ "label": "无",
196
+ "value": false
197
+ }
198
+ ],
199
+ "default": "collapse"
200
+ },
201
+ {
202
+ "key": "blockSettings",
203
+ "name": "区块详细设计",
204
+ "type": "_BlockEditor",
205
+ "wrapper": "hidden",
206
+ "default": {
207
+ "auto": { "readOnly": false, "cols": 4 },
208
+ "grid": {
209
+ "readOnly": false,
210
+ "suppressPreset": false,
211
+ "height": "100%",
212
+ "bordered": false,
213
+ "draggable": false,
214
+ "orderByAdd": "asc",
215
+ "suppressActions": false,
216
+ "actionsColumnWidth": 160
217
+ },
218
+ "writer": {
219
+ "readOnly": false,
220
+ "suppressPreset": false,
221
+ "height": "100%",
222
+ "bordered": false,
223
+ "draggable": false,
224
+ "orderByAdd": "asc",
225
+ "suppressActions": false,
226
+ "actionsColumnWidth": 160
227
+ },
228
+ "uploadForm": {
229
+ "readOnly": false,
230
+ "suppressPreset": false,
231
+ "height": "300px",
232
+ "bordered": false,
233
+ "showNote": false,
234
+ "zipName": "download",
235
+ "useResetActions": false
236
+ }
237
+ },
238
+ "next": {
239
+ "name": "区块详细设计",
240
+ "_auto_props": [
241
+ {
242
+ "key": "readOnly",
243
+ "name": "只读",
244
+ "type": "switch",
245
+ "default": false
246
+ },
247
+ {
248
+ "key": "cols",
249
+ "name": "默认列数",
250
+ "type": "number",
251
+ "default": 4
252
+ },
253
+ {
254
+ "key": "defaultDataSourceFormat",
255
+ "name": "格式化默认数据",
256
+ "desc": "格式化新增时默认数据",
257
+ "type": "_JSEditor",
258
+ "defaultCode": "function defaultDataSourceFormat(defaultValues) { \n return {}; \n}",
259
+ "mustConfirm": true,
260
+ "wrapper": "collapse",
261
+ "wrapperProps": { "suppressIcon": true }
262
+ },
263
+ {
264
+ "key": "dataSourceFormat",
265
+ "name": "格式化数据",
266
+ "desc": "格式化单表提交数据",
267
+ "type": "_JSEditor",
268
+ "defaultCode": "function dataSourceFormat(dataSetKey, values, submitData) { \n return { [dataSetKey]: submitData }; \n}",
269
+ "mustConfirm": true,
270
+ "wrapper": "collapse",
271
+ "wrapperProps": { "suppressIcon": true }
272
+ }
273
+ ],
274
+ "_grid_props": [
275
+ {
276
+ "key": "height",
277
+ "name": "高度",
278
+ "type": "_WidthHeight"
279
+ },
280
+ {
281
+ "key": "readOnly",
282
+ "name": "只读",
283
+ "type": "switch"
284
+ },
285
+ {
286
+ "key": "suppressPreset",
287
+ "name": "关闭预设",
288
+ "type": "switch"
289
+ },
290
+ {
291
+ "key": "bordered",
292
+ "name": "边框线",
293
+ "type": "switch"
294
+ },
295
+ {
296
+ "key": "draggable",
297
+ "name": "拖拽排序",
298
+ "type": "switch"
299
+ },
300
+ {
301
+ "key": "suppressbatch",
302
+ "name": "关闭批量",
303
+ "type": "switch"
304
+ },
305
+ {
306
+ "key": "orderByAdd",
307
+ "name": "排序方式",
308
+ "type": "segmented",
309
+ "options": [
310
+ {
311
+ "label": "升序",
312
+ "value": "asc"
313
+ },
314
+ {
315
+ "label": "降序",
316
+ "value": "desc"
317
+ }
318
+ ]
319
+ },
320
+ {
321
+ "key": "operates",
322
+ "name": "基础操作",
323
+ "type": "checkbox",
324
+ "options": [
325
+ {
326
+ "label": "添加",
327
+ "value": "add"
328
+ },
329
+ {
330
+ "label": "删除",
331
+ "value": "delete"
332
+ },
333
+ {
334
+ "label": "修改",
335
+ "value": "update"
336
+ }
337
+ ],
338
+ "defaultValue": ["add", "delete", "update"]
339
+ },
340
+ {
341
+ "key": "actionsColumn",
342
+ "name": "操作列",
343
+ "type": "group",
344
+ "props": [
345
+ {
346
+ "key": "suppressActions",
347
+ "name": "隐藏操作列",
348
+ "type": "switch"
349
+ },
350
+ {
351
+ "key": "actionsColumnWidth",
352
+ "name": "列宽",
353
+ "type": "_ActionsColumnWidth",
354
+ "convertInt": true,
355
+ "options": [{ "label": "px", "value": "px" }]
356
+ },
357
+ {
358
+ "key": "actionsColumnReset",
359
+ "name": "重写操列",
360
+ "desc": "重写操列",
361
+ "type": "_JSEditor",
362
+ "defaultCode": "function actionsColumnReset(data, index, actions, params) { \n \t \n}",
363
+ "mustConfirm": true,
364
+ "wrapper": "collapse",
365
+ "wrapperProps": { "suppressIcon": true }
366
+ }
367
+ ]
368
+ },
369
+ {
370
+ "key": "defaultDataSourceFormat",
371
+ "name": "格式化默认数据",
372
+ "desc": "格式化新增时默认数据",
373
+ "type": "_JSEditor",
374
+ "defaultCode": "function defaultDataSourceFormat(defaultValues) { \n return {}; \n}",
375
+ "mustConfirm": true,
376
+ "wrapper": "collapse",
377
+ "wrapperProps": { "suppressIcon": true }
378
+ },
379
+ {
380
+ "key": "dataSourceFormat",
381
+ "name": "格式化数据",
382
+ "desc": "格式化单表提交数据",
383
+ "type": "_JSEditor",
384
+ "defaultCode": "function dataSourceFormat(dataSetKey, values, submitData, behaviorKey) { \n return { [dataSetKey]: { [`${behaviorKey}List`]: submitData } }; \n}",
385
+ "mustConfirm": true,
386
+ "wrapper": "collapse",
387
+ "wrapperProps": { "suppressIcon": true }
388
+ },
389
+ {
390
+ "key": "columnsReset",
391
+ "name": "重置表格列",
392
+ "desc": "重置表格列",
393
+ "type": "_JSEditor",
394
+ "defaultCode": "function columnsReset(columns) { \n return columns; \n}",
395
+ "mustConfirm": true,
396
+ "wrapper": "collapse",
397
+ "wrapperProps": { "suppressIcon": true }
398
+ },
399
+ {
400
+ "key": "onGridFormReady",
401
+ "name": "加载完成回调",
402
+ "desc": "加载完成回调",
403
+ "type": "_JSEditor",
404
+ "defaultCode": "function onGridFormReady(ref, params, gridForm) { \n\t\n}",
405
+ "mustConfirm": true,
406
+ "wrapper": "collapse",
407
+ "wrapperProps": { "suppressIcon": true }
408
+ }
409
+ ],
410
+ "_writer_props": [
411
+ {
412
+ "key": "readOnly",
413
+ "name": "只读",
414
+ "type": "switch"
415
+ },
416
+ {
417
+ "key": "suppressPreset",
418
+ "name": "关闭预设",
419
+ "type": "switch"
420
+ },
421
+ {
422
+ "key": "height",
423
+ "name": "高度",
424
+ "type": "_WidthHeight"
425
+ },
426
+ {
427
+ "key": "bordered",
428
+ "name": "边框线",
429
+ "type": "switch"
430
+ },
431
+ {
432
+ "key": "draggable",
433
+ "name": "拖拽排序",
434
+ "type": "switch"
435
+ },
436
+ {
437
+ "key": "orderByAdd",
438
+ "name": "排序方式",
439
+ "type": "segmented",
440
+ "options": [
441
+ {
442
+ "label": "升序",
443
+ "value": "asc"
444
+ },
445
+ {
446
+ "label": "降序",
447
+ "value": "desc"
448
+ }
449
+ ]
450
+ },
451
+ {
452
+ "key": "actionsColumn",
453
+ "name": "操作列",
454
+ "type": "group",
455
+ "props": [
456
+ {
457
+ "key": "suppressActions",
458
+ "name": "隐藏操作列",
459
+ "type": "switch"
460
+ },
461
+ {
462
+ "key": "actionsColumnWidth",
463
+ "name": "列宽",
464
+ "type": "_ActionsColumnWidth",
465
+ "convertInt": true,
466
+ "options": [{ "label": "px", "value": "px" }]
467
+ },
468
+ {
469
+ "key": "actionsColumnReset",
470
+ "name": "重写操作列",
471
+ "desc": "重写操作列",
472
+ "type": "_JSEditor",
473
+ "defaultCode": "function actionsColumnReset(data, index, actions, params) { \n \t \n}",
474
+ "mustConfirm": true,
475
+ "wrapper": "collapse",
476
+ "wrapperProps": { "suppressIcon": true }
477
+ }
478
+ ]
479
+ },
480
+ {
481
+ "key": "defaultDataSourceFormat",
482
+ "name": "格式化默认数据",
483
+ "desc": "格式化新增时默认数据",
484
+ "type": "_JSEditor",
485
+ "defaultCode": "function defaultDataSourceFormat(defaultValues) { \n return {}; \n}",
486
+ "mustConfirm": true,
487
+ "wrapper": "collapse",
488
+ "wrapperProps": { "suppressIcon": true }
489
+ },
490
+ {
491
+ "key": "dataSourceFormat",
492
+ "name": "格式化数据",
493
+ "desc": "格式化单表提交数据",
494
+ "type": "_JSEditor",
495
+ "defaultCode": "function dataSourceFormat(dataSetKey, values, submitData, behaviorKey) { \n return { [dataSetKey]: { [`${behaviorKey}List`]: submitData } }; \n}",
496
+ "mustConfirm": true,
497
+ "wrapper": "collapse",
498
+ "wrapperProps": { "suppressIcon": true }
499
+ },
500
+ {
501
+ "key": "columnsReset",
502
+ "name": "重置表格列",
503
+ "desc": "重置表格列",
504
+ "type": "_JSEditor",
505
+ "defaultCode": "function columnsReset(columns) { \n return columns; \n}",
506
+ "mustConfirm": true,
507
+ "wrapper": "collapse",
508
+ "wrapperProps": { "suppressIcon": true }
509
+ },
510
+ {
511
+ "key": "onGridFormReady",
512
+ "name": "加载完成回调",
513
+ "desc": "加载完成回调",
514
+ "type": "_JSEditor",
515
+ "defaultCode": "function onGridFormReady(ref, params, gridForm) { \n\t\n}",
516
+ "mustConfirm": true,
517
+ "wrapper": "collapse",
518
+ "wrapperProps": { "suppressIcon": true }
519
+ }
520
+ ],
521
+ "_uploadForm_props": [
522
+ {
523
+ "key": "readOnly",
524
+ "name": "只读",
525
+ "type": "switch"
526
+ },
527
+ {
528
+ "key": "suppressPreset",
529
+ "name": "关闭预设",
530
+ "type": "switch"
531
+ },
532
+ {
533
+ "key": "height",
534
+ "name": "高度",
535
+ "type": "_WidthHeight"
536
+ },
537
+ {
538
+ "key": "bordered",
539
+ "name": "边框线",
540
+ "type": "switch"
541
+ },
542
+ {
543
+ "key": "showNote",
544
+ "name": "开启备注",
545
+ "type": "switch"
546
+ },
547
+ {
548
+ "key": "zipName",
549
+ "name": "压缩包命名",
550
+ "type": "_I18nInput"
551
+ },
552
+ {
553
+ "key": "uploadUrl",
554
+ "name": "上传地址",
555
+ "desc": "自定义上传地址,不填使用默认上传地址",
556
+ "type": "string"
557
+ },
558
+ {
559
+ "key": "useResetActions",
560
+ "name": "默认操作列",
561
+ "type": "switch"
562
+ },
563
+ {
564
+ "key": "resetActions",
565
+ "name": "自定义操作列",
566
+ "type": "_JSEditor",
567
+ "defaultCode": "function resetActions(data, index, actionList, params) { \n return actionList; \n}",
568
+ "mustConfirm": true,
569
+ "wrapper": "collapse",
570
+ "wrapperProps": { "suppressIcon": true }
571
+ },
572
+ {
573
+ "key": "forbiddenTypes",
574
+ "name": "禁止上传类型",
575
+ "type": "_JSEditor",
576
+ "defaultCode": "function forbiddenTypes() { \n return []; \n}",
577
+ "mustConfirm": true,
578
+ "wrapper": "collapse",
579
+ "wrapperProps": { "suppressIcon": true }
580
+ },
581
+ {
582
+ "key": "beforeUpload",
583
+ "name": "上传前置事件",
584
+ "type": "_JSEditor",
585
+ "defaultCode": "function beforeUpload(file, fileList) { \n return true; \n}",
586
+ "mustConfirm": true,
587
+ "wrapper": "collapse",
588
+ "wrapperProps": { "suppressIcon": true }
589
+ },
590
+ {
591
+ "key": "onUploadChange",
592
+ "name": "上传事件回调",
593
+ "type": "_JSEditor",
594
+ "defaultCode": "function onUploadChange(event) { \n\t\n}",
595
+ "mustConfirm": true,
596
+ "wrapper": "collapse",
597
+ "wrapperProps": { "suppressIcon": true }
598
+ }
599
+ ]
600
+ }
601
+ }
602
+ ]
603
+ }
604
+ ],
605
+ "advance": {
606
+ "events": [
607
+ {
608
+ "key": "onMount",
609
+ "name": "组件首次渲染时",
610
+ "desc": "在组件首次渲染时,执行方法",
611
+ "func": "function onMount(instance) {\n\t\n}"
612
+ },
613
+ {
614
+ "key": "beforeSave",
615
+ "name": "保存前置事件",
616
+ "desc": "保存前置事件,promise,返回false取消执行",
617
+ "func": "function beforeSave(values, data) {\n return values; \n}"
618
+ },
619
+ {
620
+ "key": "onSaveCallback",
621
+ "name": "保存后回调",
622
+ "desc": "保存后回调事件",
623
+ "func": "function onSaveCallback(success, mainKey, res) {\n\t\n}"
624
+ },
625
+ {
626
+ "key": "onUnmount",
627
+ "name": "组件卸载时",
628
+ "desc": "在组件卸载时,执行方法",
629
+ "func": "function onUnmount(api, instance) {\n\t\n}"
630
+ },
631
+ {
632
+ "key": "onValueChange",
633
+ "name": "参数变化的事件",
634
+ "desc": "参数变化时,执行方法",
635
+ "func": "function onValueChange(change, data) {\n\t\n}"
636
+ },
637
+ {
638
+ "key": "onChildChange",
639
+ "name": "表单内容发生改变时的回调",
640
+ "desc": "表单内容发生改变时的回调",
641
+ "func": "function onChildChange(instance) {\n\t\n}"
642
+ }
643
+ ]
644
+ }
645
+ }