@luck-design-biz/luckda 0.0.25-11 → 0.0.25-12

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 (434) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +40 -40
  3. package/es/components/LDActions/index.less +68 -68
  4. package/es/components/LdAutoForm/index.js +24 -2
  5. package/es/components/LdFormList/index.js +4 -2
  6. package/es/components/LdGrid/index.js +6 -5
  7. package/es/components/LdGridForm/index.js +5 -1
  8. package/es/components/LdGridForm/index.less +7 -7
  9. package/es/components/LdTree/index.js +27 -5
  10. package/es/components/LdTree/index.less +40 -40
  11. package/es/helper/action.js +6 -6
  12. package/es/helper/form.js +15 -15
  13. package/es/helper/index.less +7 -7
  14. package/es/index.js +0 -1
  15. package/es/lowcode/constants/api-url.js +84 -84
  16. package/es/lowcode/constants/event-topics.js +1 -0
  17. package/es/lowcode/engine/factory/panel-item-factory/StringStrategy.js +1 -1
  18. package/es/lowcode/engine/launcher.js +5 -0
  19. package/es/lowcode/engine/meta/box.props.default.json +1 -1
  20. package/es/lowcode/engine/meta/box.props.json +1 -1
  21. package/es/lowcode/engine/meta/components-list.json +6 -6
  22. package/es/lowcode/engine/meta/fieldcolor.props.json +9 -3
  23. package/es/lowcode/engine/meta/fieldcomplex.props.json +7 -1
  24. package/es/lowcode/engine/meta/fielddatadic.props.default.json +16 -0
  25. package/es/lowcode/engine/meta/fielddatadic.props.json +73 -0
  26. package/es/lowcode/engine/meta/fielddate.props.json +7 -1
  27. package/es/lowcode/engine/meta/fielddict.props.json +7 -1
  28. package/es/lowcode/engine/meta/fieldeditor.props.json +7 -1
  29. package/es/lowcode/engine/meta/fieldgroup.props.json +7 -1
  30. package/es/lowcode/engine/meta/fieldnumber.props.json +8 -2
  31. package/es/lowcode/engine/meta/fieldradio.props.json +9 -3
  32. package/es/lowcode/engine/meta/fieldregion.props.json +9 -3
  33. package/es/lowcode/engine/meta/fieldselect.props.json +9 -3
  34. package/es/lowcode/engine/meta/fieldstring.props.default.json +0 -4
  35. package/es/lowcode/engine/meta/fieldstring.props.json +14 -12
  36. package/es/lowcode/engine/meta/fieldswitch.props.json +8 -2
  37. package/es/lowcode/engine/meta/fieldtextarea.props.json +11 -5
  38. package/es/lowcode/engine/meta/fieldupload.props.json +8 -2
  39. package/es/lowcode/engine/meta/fielduser.props.json +7 -1
  40. package/es/lowcode/engine/meta/fieldyear.props.json +8 -2
  41. package/es/lowcode/engine/meta/form.props.json +22 -2
  42. package/es/lowcode/engine/meta/js-editor/auto-complete.json +17 -17
  43. package/es/lowcode/engine/meta/page.props.json +6 -6
  44. package/es/lowcode/engine/provider/ContextProvider/index.js +34 -34
  45. package/es/lowcode/engine/provider/RemoteSourceProvider.js +30 -8
  46. package/es/lowcode/engine/tools/dataProcess.js +76 -76
  47. package/es/lowcode/engine/tools/helper.js +60 -3
  48. package/es/lowcode/engine/tools/usePageDataStore.js +10 -5
  49. package/es/lowcode/index.js +1 -4
  50. package/es/lowcode/painter/Components.js +2 -2
  51. package/es/lowcode/painter/Design.js +4 -4
  52. package/es/lowcode/painter/DesignOperator.js +1 -1
  53. package/es/lowcode/painter/DesignToolbar.js +7 -4
  54. package/es/lowcode/painter/components/ActionBindModal.js +7 -1
  55. package/es/lowcode/painter/components/Collapse.js +26 -26
  56. package/es/lowcode/painter/components/ColorInput.js +24 -24
  57. package/es/lowcode/painter/components/ListEditor.js +24 -24
  58. package/es/lowcode/painter/components/NumberInput.js +28 -28
  59. package/es/lowcode/painter/components/PanelItem.js +24 -24
  60. package/es/lowcode/painter/components/PopConfirm.js +8 -8
  61. package/es/lowcode/painter/components/PopForm.js +27 -27
  62. package/es/lowcode/painter/components/RuleInput.js +30 -31
  63. package/es/lowcode/painter/components/SortBox.js +22 -22
  64. package/es/lowcode/painter/components/code-editor/BaseEditor.js +32 -32
  65. package/es/lowcode/painter/components/code-editor/CssEditor.js +25 -25
  66. package/es/lowcode/painter/components/code-editor/FullScreenEditor.js +23 -23
  67. package/es/lowcode/painter/components/code-editor/JSEditor.js +44 -34
  68. package/es/lowcode/painter/components/code-editor/JsonEditor.js +25 -25
  69. package/es/lowcode/painter/panel-section/ActionsEditor/index.js +3 -1
  70. package/es/lowcode/painter/panel-section/ComponentSelector.js +36 -0
  71. package/es/lowcode/painter/panel-section/I18nInput.js +2 -1
  72. package/es/lowcode/painter/panel-section/Icon.js +23 -23
  73. package/es/lowcode/painter/panel-section/IconSelector.js +16 -16
  74. package/es/lowcode/painter/panel-section/LayoutRatio.js +21 -21
  75. package/es/lowcode/painter/panel-section/SplitDisplay.js +3 -2
  76. package/es/lowcode/painter/panel-section/StylePanel/BackGround.js +2 -2
  77. package/es/lowcode/painter/panel-section/StylePanel/Border.js +2 -2
  78. package/es/lowcode/painter/panel-section/StylePanel/BorderRadius.js +2 -2
  79. package/es/lowcode/painter/panel-section/StylePanel/BorderRadiusSelector.js +2 -2
  80. package/es/lowcode/painter/panel-section/StylePanel/BorderSelector.js +2 -2
  81. package/es/lowcode/painter/panel-section/StylePanel/Display.js +2 -2
  82. package/es/lowcode/painter/panel-section/StylePanel/Font.js +2 -2
  83. package/es/lowcode/painter/panel-section/StylePanel/FontEditor.js +2 -2
  84. package/es/lowcode/painter/panel-section/StylePanel/GapSelector.js +2 -2
  85. package/es/lowcode/painter/panel-section/StylePanel/HighLightPanel.js +2 -2
  86. package/es/lowcode/painter/panel-section/StylePanel/HighLigthtSpan.js +2 -2
  87. package/es/lowcode/painter/panel-section/StylePanel/HightLightSvg.js +2 -2
  88. package/es/lowcode/painter/panel-section/StylePanel/MainPanel.js +2 -2
  89. package/es/lowcode/painter/panel-section/StylePanel/Margin.js +2 -2
  90. package/es/lowcode/painter/panel-section/StylePanel/Opacity.js +2 -2
  91. package/es/lowcode/painter/panel-section/StylePanel/Padding.js +2 -2
  92. package/es/lowcode/painter/panel-section/StylePanel/Pointer.js +2 -2
  93. package/es/lowcode/painter/panel-section/StylePanel/Shadow.js +2 -2
  94. package/es/lowcode/painter/panel-section/StylePanel/Size.js +2 -2
  95. package/es/lowcode/painter/panel-section/StylePanel/StyleContext.js +2 -2
  96. package/es/lowcode/painter/panel-section/StylePanel/StyleRow.js +2 -2
  97. package/es/lowcode/painter/panel-section/StylePanel/WidthHeight.js +2 -2
  98. package/es/lowcode/painter/panel-section/StylePanel/index.js +15 -15
  99. package/es/lowcode/painter/panel-section/TreeRootEditor.js +10 -2
  100. package/es/lowcode/painter/style/action-bind-modal.less +102 -102
  101. package/es/lowcode/painter/style/actions-editor.less +15 -15
  102. package/es/lowcode/painter/style/border-editor.less +36 -36
  103. package/es/lowcode/painter/style/border-radius-selector.less +42 -42
  104. package/es/lowcode/painter/style/border-selector.less +39 -39
  105. package/es/lowcode/painter/style/button-type.less +5 -5
  106. package/es/lowcode/painter/style/collapse.less +28 -28
  107. package/es/lowcode/painter/style/color-input.less +19 -19
  108. package/es/lowcode/painter/style/components.less +91 -91
  109. package/es/lowcode/painter/style/design.less +158 -155
  110. package/es/lowcode/painter/style/display.less +17 -17
  111. package/es/lowcode/painter/style/dragdrop.less +10 -10
  112. package/es/lowcode/painter/style/fields-setting.less +25 -25
  113. package/es/lowcode/painter/style/font-editor.less +9 -9
  114. package/es/lowcode/painter/style/fullscreen-editor.less +17 -17
  115. package/es/lowcode/painter/style/icon-selector.less +22 -22
  116. package/es/lowcode/painter/style/icon.less +10 -10
  117. package/es/lowcode/painter/style/impexp.less +7 -7
  118. package/es/lowcode/painter/style/index.less +6 -6
  119. package/es/lowcode/painter/style/layout-ratio.less +51 -51
  120. package/es/lowcode/painter/style/list-editor.less +95 -95
  121. package/es/lowcode/painter/style/number-input.less +17 -17
  122. package/es/lowcode/painter/style/outline.less +28 -28
  123. package/es/lowcode/painter/style/page-layout-display.less +27 -27
  124. package/es/lowcode/painter/style/panel-attrs.less +43 -43
  125. package/es/lowcode/painter/style/panel-item.less +54 -54
  126. package/es/lowcode/painter/style/panel.less +98 -98
  127. package/es/lowcode/painter/style/pop-confirm.less +17 -17
  128. package/es/lowcode/painter/style/pop-form.less +19 -19
  129. package/es/lowcode/painter/style/radio.less +24 -24
  130. package/es/lowcode/painter/style/ribbon.less +5 -5
  131. package/es/lowcode/painter/style/rule-input.less +12 -12
  132. package/es/lowcode/painter/style/split-display.less +18 -18
  133. package/es/lowcode/painter/style/style-panel.less +37 -37
  134. package/es/lowcode/painter/style/tabitems.less +90 -90
  135. package/es/lowcode/painter/style/treedragdrop.less +19 -19
  136. package/es/lowcode/view/Canvas.js +20 -6
  137. package/es/lowcode/view/Page.js +3 -4
  138. package/es/lowcode/view/lc-components/Box/FunctionDesign.js +7 -2
  139. package/es/lowcode/view/lc-components/Box/index.js +4 -4
  140. package/es/lowcode/view/lc-components/Box/index.less +14 -14
  141. package/es/lowcode/view/lc-components/Box/meta.json +40 -40
  142. package/es/lowcode/view/lc-components/Button/index.js +33 -33
  143. package/es/lowcode/view/lc-components/Button/meta.json +127 -127
  144. package/es/lowcode/view/lc-components/Button/style.less +2 -2
  145. package/es/lowcode/view/lc-components/CardList/meta.json +153 -153
  146. package/es/lowcode/view/lc-components/Dialog/index.js +16 -13
  147. package/es/lowcode/view/lc-components/Dialog/index.less +3 -3
  148. package/es/lowcode/view/lc-components/Dialog/meta.json +150 -150
  149. package/es/lowcode/view/lc-components/Drawer/index.js +15 -12
  150. package/es/lowcode/view/lc-components/Drawer/index.less +9 -9
  151. package/es/lowcode/view/lc-components/Drawer/meta.json +131 -131
  152. package/es/lowcode/view/lc-components/FieldColor/meta.json +69 -63
  153. package/es/lowcode/view/lc-components/FieldComplex/meta.json +45 -39
  154. package/es/lowcode/view/lc-components/FieldDate/meta.json +51 -45
  155. package/es/lowcode/view/lc-components/FieldDict/meta.json +50 -44
  156. package/es/lowcode/view/lc-components/FieldEditor/meta.json +50 -44
  157. package/es/lowcode/view/lc-components/FieldGroup/meta.json +79 -73
  158. package/es/lowcode/view/lc-components/FieldNumber/meta.json +54 -48
  159. package/es/lowcode/view/lc-components/FieldRadio/meta.json +26 -20
  160. package/es/lowcode/view/lc-components/FieldRegion/meta.json +32 -26
  161. package/es/lowcode/view/lc-components/FieldSelect/meta.json +64 -58
  162. package/es/lowcode/view/lc-components/FieldString/meta.json +64 -62
  163. package/es/lowcode/view/lc-components/FieldSwitch/meta.json +37 -31
  164. package/es/lowcode/view/lc-components/FieldTextarea/meta.json +55 -49
  165. package/es/lowcode/view/lc-components/FieldUpload/meta.json +77 -71
  166. package/es/lowcode/view/lc-components/FieldUser/meta.json +88 -82
  167. package/es/lowcode/view/lc-components/FieldYear/meta.json +41 -35
  168. package/es/lowcode/view/lc-components/Form/index.js +116 -23
  169. package/es/lowcode/view/lc-components/Form/index.less +4 -4
  170. package/es/lowcode/view/lc-components/Form/meta.json +616 -605
  171. package/es/lowcode/view/lc-components/Iframe/meta.json +32 -32
  172. package/es/lowcode/view/lc-components/ImEx/index.js +29 -29
  173. package/es/lowcode/view/lc-components/ImEx/index.less +7 -7
  174. package/es/lowcode/view/lc-components/ImEx/meta.json +113 -113
  175. package/es/lowcode/view/lc-components/Image/meta.json +114 -114
  176. package/es/{components/LdRuntimeCom/index.js → lowcode/view/lc-components/JSX/RuntimeComp.js} +12 -15
  177. package/es/lowcode/view/lc-components/JSX/index.js +5 -6
  178. package/es/lowcode/view/lc-components/JSX/meta.json +28 -28
  179. package/es/lowcode/view/lc-components/Layout/index.js +19 -17
  180. package/es/lowcode/view/lc-components/Layout/index.less +5 -5
  181. package/es/lowcode/view/lc-components/Layout/meta.json +107 -107
  182. package/es/lowcode/view/lc-components/Link/index.js +3 -0
  183. package/es/lowcode/view/lc-components/Link/meta.json +112 -112
  184. package/es/lowcode/view/lc-components/Page/meta.json +49 -49
  185. package/es/lowcode/view/lc-components/PageContent/index.js +3 -1
  186. package/es/lowcode/view/lc-components/PageContent/meta.json +9 -9
  187. package/es/lowcode/view/lc-components/PageFooter/index.js +3 -0
  188. package/es/lowcode/view/lc-components/PageFooter/meta.json +9 -9
  189. package/es/lowcode/view/lc-components/PageHeader/index.js +3 -0
  190. package/es/lowcode/view/lc-components/PageHeader/meta.json +9 -9
  191. package/es/lowcode/view/lc-components/PageLayout/index.js +3 -0
  192. package/es/lowcode/view/lc-components/PageLayout/meta.json +47 -47
  193. package/es/lowcode/view/lc-components/Section/index.js +6 -3
  194. package/es/lowcode/view/lc-components/Section/index.less +7 -7
  195. package/es/lowcode/view/lc-components/Section/meta.json +107 -107
  196. package/es/lowcode/view/lc-components/Split/index.js +3 -0
  197. package/es/lowcode/view/lc-components/Split/meta.json +53 -53
  198. package/es/lowcode/view/lc-components/Table/index.js +160 -167
  199. package/es/lowcode/view/lc-components/Table/meta.json +405 -405
  200. package/es/lowcode/view/lc-components/Tabs/index.js +25 -25
  201. package/es/lowcode/view/lc-components/Tabs/meta.json +113 -113
  202. package/es/lowcode/view/lc-components/Text/index.js +3 -0
  203. package/es/lowcode/view/lc-components/Text/meta.json +66 -66
  204. package/es/lowcode/view/lc-components/Tree/index.js +96 -96
  205. package/es/lowcode/view/lc-components/Tree/index.less +4 -4
  206. package/es/lowcode/view/lc-components/Tree/meta.json +363 -363
  207. package/es/lowcode/view/lc-components/Wrapper.js +1 -0
  208. package/es/lowcode/view/style/canvas.less +5 -5
  209. package/es/lowcode/view/style/loading.less +84 -84
  210. package/es/lowcode/view/style/page.less +7 -7
  211. package/es/upload/FilesWall/index.js +13 -13
  212. package/es/upload/FilesWall/index.less +74 -74
  213. package/es/upload/Form/index.less +7 -7
  214. package/es/upload/FormItem/index.js +15 -15
  215. package/es/utils/form.js +21 -21
  216. package/es/utils/grid.js +1 -1
  217. package/lib/components/LDActions/index.less +68 -68
  218. package/lib/components/LdAutoForm/index.js +23 -1
  219. package/lib/components/LdFormList/index.js +4 -2
  220. package/lib/components/LdGrid/index.js +6 -5
  221. package/lib/components/LdGridForm/index.js +5 -1
  222. package/lib/components/LdGridForm/index.less +7 -7
  223. package/lib/components/LdTree/index.js +25 -3
  224. package/lib/components/LdTree/index.less +40 -40
  225. package/lib/helper/action.js +6 -6
  226. package/lib/helper/form.js +15 -15
  227. package/lib/helper/index.less +7 -7
  228. package/lib/index.js +1 -9
  229. package/lib/lowcode/constants/api-url.js +84 -84
  230. package/lib/lowcode/constants/event-topics.js +2 -1
  231. package/lib/lowcode/engine/factory/panel-item-factory/StringStrategy.js +1 -1
  232. package/lib/lowcode/engine/launcher.js +11 -0
  233. package/lib/lowcode/engine/meta/box.props.default.json +1 -1
  234. package/lib/lowcode/engine/meta/box.props.json +1 -1
  235. package/lib/lowcode/engine/meta/components-list.json +6 -6
  236. package/lib/lowcode/engine/meta/fieldcolor.props.json +9 -3
  237. package/lib/lowcode/engine/meta/fieldcomplex.props.json +7 -1
  238. package/lib/lowcode/engine/meta/fielddatadic.props.default.json +16 -0
  239. package/lib/lowcode/engine/meta/fielddatadic.props.json +73 -0
  240. package/lib/lowcode/engine/meta/fielddate.props.json +7 -1
  241. package/lib/lowcode/engine/meta/fielddict.props.json +7 -1
  242. package/lib/lowcode/engine/meta/fieldeditor.props.json +7 -1
  243. package/lib/lowcode/engine/meta/fieldgroup.props.json +7 -1
  244. package/lib/lowcode/engine/meta/fieldnumber.props.json +8 -2
  245. package/lib/lowcode/engine/meta/fieldradio.props.json +9 -3
  246. package/lib/lowcode/engine/meta/fieldregion.props.json +9 -3
  247. package/lib/lowcode/engine/meta/fieldselect.props.json +9 -3
  248. package/lib/lowcode/engine/meta/fieldstring.props.default.json +0 -4
  249. package/lib/lowcode/engine/meta/fieldstring.props.json +14 -12
  250. package/lib/lowcode/engine/meta/fieldswitch.props.json +8 -2
  251. package/lib/lowcode/engine/meta/fieldtextarea.props.json +11 -5
  252. package/lib/lowcode/engine/meta/fieldupload.props.json +8 -2
  253. package/lib/lowcode/engine/meta/fielduser.props.json +7 -1
  254. package/lib/lowcode/engine/meta/fieldyear.props.json +8 -2
  255. package/lib/lowcode/engine/meta/form.props.json +22 -2
  256. package/lib/lowcode/engine/meta/js-editor/auto-complete.json +17 -17
  257. package/lib/lowcode/engine/meta/page.props.json +6 -6
  258. package/lib/lowcode/engine/provider/ContextProvider/index.js +34 -34
  259. package/lib/lowcode/engine/provider/RemoteSourceProvider.js +30 -8
  260. package/lib/lowcode/engine/tools/dataProcess.js +76 -76
  261. package/lib/lowcode/engine/tools/helper.js +61 -2
  262. package/lib/lowcode/engine/tools/usePageDataStore.js +9 -4
  263. package/lib/lowcode/index.js +1 -5
  264. package/lib/lowcode/painter/Components.js +2 -2
  265. package/lib/lowcode/painter/Design.js +4 -4
  266. package/lib/lowcode/painter/DesignOperator.js +1 -1
  267. package/lib/lowcode/painter/DesignToolbar.js +7 -4
  268. package/lib/lowcode/painter/components/ActionBindModal.js +6 -0
  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/ListEditor.js +24 -24
  272. package/lib/lowcode/painter/components/NumberInput.js +28 -28
  273. package/lib/lowcode/painter/components/PanelItem.js +24 -24
  274. package/lib/lowcode/painter/components/PopConfirm.js +8 -8
  275. package/lib/lowcode/painter/components/PopForm.js +27 -27
  276. package/lib/lowcode/painter/components/RuleInput.js +30 -31
  277. package/lib/lowcode/painter/components/SortBox.js +22 -22
  278. package/lib/lowcode/painter/components/code-editor/BaseEditor.js +32 -32
  279. package/lib/lowcode/painter/components/code-editor/CssEditor.js +25 -25
  280. package/lib/lowcode/painter/components/code-editor/FullScreenEditor.js +23 -23
  281. package/lib/lowcode/painter/components/code-editor/JSEditor.js +44 -34
  282. package/lib/lowcode/painter/components/code-editor/JsonEditor.js +25 -25
  283. package/lib/lowcode/painter/panel-section/ActionsEditor/index.js +3 -1
  284. package/lib/lowcode/painter/panel-section/ComponentSelector.js +43 -0
  285. package/lib/lowcode/painter/panel-section/I18nInput.js +2 -1
  286. package/lib/lowcode/painter/panel-section/Icon.js +23 -23
  287. package/lib/lowcode/painter/panel-section/IconSelector.js +16 -16
  288. package/lib/lowcode/painter/panel-section/LayoutRatio.js +21 -21
  289. package/lib/lowcode/painter/panel-section/SplitDisplay.js +3 -2
  290. package/lib/lowcode/painter/panel-section/StylePanel/BackGround.js +2 -2
  291. package/lib/lowcode/painter/panel-section/StylePanel/Border.js +2 -2
  292. package/lib/lowcode/painter/panel-section/StylePanel/BorderRadius.js +2 -2
  293. package/lib/lowcode/painter/panel-section/StylePanel/BorderRadiusSelector.js +2 -2
  294. package/lib/lowcode/painter/panel-section/StylePanel/BorderSelector.js +2 -2
  295. package/lib/lowcode/painter/panel-section/StylePanel/Display.js +2 -2
  296. package/lib/lowcode/painter/panel-section/StylePanel/Font.js +2 -2
  297. package/lib/lowcode/painter/panel-section/StylePanel/FontEditor.js +2 -2
  298. package/lib/lowcode/painter/panel-section/StylePanel/GapSelector.js +2 -2
  299. package/lib/lowcode/painter/panel-section/StylePanel/HighLightPanel.js +2 -2
  300. package/lib/lowcode/painter/panel-section/StylePanel/HighLigthtSpan.js +2 -2
  301. package/lib/lowcode/painter/panel-section/StylePanel/HightLightSvg.js +2 -2
  302. package/lib/lowcode/painter/panel-section/StylePanel/MainPanel.js +2 -2
  303. package/lib/lowcode/painter/panel-section/StylePanel/Margin.js +2 -2
  304. package/lib/lowcode/painter/panel-section/StylePanel/Opacity.js +2 -2
  305. package/lib/lowcode/painter/panel-section/StylePanel/Padding.js +2 -2
  306. package/lib/lowcode/painter/panel-section/StylePanel/Pointer.js +2 -2
  307. package/lib/lowcode/painter/panel-section/StylePanel/Shadow.js +2 -2
  308. package/lib/lowcode/painter/panel-section/StylePanel/Size.js +2 -2
  309. package/lib/lowcode/painter/panel-section/StylePanel/StyleContext.js +2 -2
  310. package/lib/lowcode/painter/panel-section/StylePanel/StyleRow.js +2 -2
  311. package/lib/lowcode/painter/panel-section/StylePanel/WidthHeight.js +2 -2
  312. package/lib/lowcode/painter/panel-section/StylePanel/index.js +15 -15
  313. package/lib/lowcode/painter/panel-section/TreeRootEditor.js +10 -2
  314. package/lib/lowcode/painter/style/action-bind-modal.less +102 -102
  315. package/lib/lowcode/painter/style/actions-editor.less +15 -15
  316. package/lib/lowcode/painter/style/border-editor.less +36 -36
  317. package/lib/lowcode/painter/style/border-radius-selector.less +42 -42
  318. package/lib/lowcode/painter/style/border-selector.less +39 -39
  319. package/lib/lowcode/painter/style/button-type.less +5 -5
  320. package/lib/lowcode/painter/style/collapse.less +28 -28
  321. package/lib/lowcode/painter/style/color-input.less +19 -19
  322. package/lib/lowcode/painter/style/components.less +91 -91
  323. package/lib/lowcode/painter/style/design.less +158 -155
  324. package/lib/lowcode/painter/style/display.less +17 -17
  325. package/lib/lowcode/painter/style/dragdrop.less +10 -10
  326. package/lib/lowcode/painter/style/fields-setting.less +25 -25
  327. package/lib/lowcode/painter/style/font-editor.less +9 -9
  328. package/lib/lowcode/painter/style/fullscreen-editor.less +17 -17
  329. package/lib/lowcode/painter/style/icon-selector.less +22 -22
  330. package/lib/lowcode/painter/style/icon.less +10 -10
  331. package/lib/lowcode/painter/style/impexp.less +7 -7
  332. package/lib/lowcode/painter/style/index.less +6 -6
  333. package/lib/lowcode/painter/style/layout-ratio.less +51 -51
  334. package/lib/lowcode/painter/style/list-editor.less +95 -95
  335. package/lib/lowcode/painter/style/number-input.less +17 -17
  336. package/lib/lowcode/painter/style/outline.less +28 -28
  337. package/lib/lowcode/painter/style/page-layout-display.less +27 -27
  338. package/lib/lowcode/painter/style/panel-attrs.less +43 -43
  339. package/lib/lowcode/painter/style/panel-item.less +54 -54
  340. package/lib/lowcode/painter/style/panel.less +98 -98
  341. package/lib/lowcode/painter/style/pop-confirm.less +17 -17
  342. package/lib/lowcode/painter/style/pop-form.less +19 -19
  343. package/lib/lowcode/painter/style/radio.less +24 -24
  344. package/lib/lowcode/painter/style/ribbon.less +5 -5
  345. package/lib/lowcode/painter/style/rule-input.less +12 -12
  346. package/lib/lowcode/painter/style/split-display.less +18 -18
  347. package/lib/lowcode/painter/style/style-panel.less +37 -37
  348. package/lib/lowcode/painter/style/tabitems.less +90 -90
  349. package/lib/lowcode/painter/style/treedragdrop.less +19 -19
  350. package/lib/lowcode/view/Canvas.js +20 -5
  351. package/lib/lowcode/view/Page.js +3 -4
  352. package/lib/lowcode/view/lc-components/Box/FunctionDesign.js +7 -2
  353. package/lib/lowcode/view/lc-components/Box/index.js +4 -4
  354. package/lib/lowcode/view/lc-components/Box/index.less +14 -14
  355. package/lib/lowcode/view/lc-components/Box/meta.json +40 -40
  356. package/lib/lowcode/view/lc-components/Button/index.js +33 -33
  357. package/lib/lowcode/view/lc-components/Button/meta.json +127 -127
  358. package/lib/lowcode/view/lc-components/Button/style.less +2 -2
  359. package/lib/lowcode/view/lc-components/CardList/meta.json +153 -153
  360. package/lib/lowcode/view/lc-components/Dialog/index.js +16 -13
  361. package/lib/lowcode/view/lc-components/Dialog/index.less +3 -3
  362. package/lib/lowcode/view/lc-components/Dialog/meta.json +150 -150
  363. package/lib/lowcode/view/lc-components/Drawer/index.js +15 -12
  364. package/lib/lowcode/view/lc-components/Drawer/index.less +9 -9
  365. package/lib/lowcode/view/lc-components/Drawer/meta.json +131 -131
  366. package/lib/lowcode/view/lc-components/FieldColor/meta.json +69 -63
  367. package/lib/lowcode/view/lc-components/FieldComplex/meta.json +45 -39
  368. package/lib/lowcode/view/lc-components/FieldDate/meta.json +51 -45
  369. package/lib/lowcode/view/lc-components/FieldDict/meta.json +50 -44
  370. package/lib/lowcode/view/lc-components/FieldEditor/meta.json +50 -44
  371. package/lib/lowcode/view/lc-components/FieldGroup/meta.json +79 -73
  372. package/lib/lowcode/view/lc-components/FieldNumber/meta.json +54 -48
  373. package/lib/lowcode/view/lc-components/FieldRadio/meta.json +26 -20
  374. package/lib/lowcode/view/lc-components/FieldRegion/meta.json +32 -26
  375. package/lib/lowcode/view/lc-components/FieldSelect/meta.json +64 -58
  376. package/lib/lowcode/view/lc-components/FieldString/meta.json +64 -62
  377. package/lib/lowcode/view/lc-components/FieldSwitch/meta.json +37 -31
  378. package/lib/lowcode/view/lc-components/FieldTextarea/meta.json +55 -49
  379. package/lib/lowcode/view/lc-components/FieldUpload/meta.json +77 -71
  380. package/lib/lowcode/view/lc-components/FieldUser/meta.json +88 -82
  381. package/lib/lowcode/view/lc-components/FieldYear/meta.json +41 -35
  382. package/lib/lowcode/view/lc-components/Form/index.js +115 -22
  383. package/lib/lowcode/view/lc-components/Form/index.less +4 -4
  384. package/lib/lowcode/view/lc-components/Form/meta.json +616 -605
  385. package/lib/lowcode/view/lc-components/Iframe/meta.json +32 -32
  386. package/lib/lowcode/view/lc-components/ImEx/index.js +29 -29
  387. package/lib/lowcode/view/lc-components/ImEx/index.less +7 -7
  388. package/lib/lowcode/view/lc-components/ImEx/meta.json +113 -113
  389. package/lib/lowcode/view/lc-components/Image/meta.json +114 -114
  390. package/lib/{components/LdRuntimeCom/index.js → lowcode/view/lc-components/JSX/RuntimeComp.js} +13 -16
  391. package/lib/lowcode/view/lc-components/JSX/index.js +5 -6
  392. package/lib/lowcode/view/lc-components/JSX/meta.json +28 -28
  393. package/lib/lowcode/view/lc-components/Layout/index.js +19 -17
  394. package/lib/lowcode/view/lc-components/Layout/index.less +5 -5
  395. package/lib/lowcode/view/lc-components/Layout/meta.json +107 -107
  396. package/lib/lowcode/view/lc-components/Link/index.js +3 -0
  397. package/lib/lowcode/view/lc-components/Link/meta.json +112 -112
  398. package/lib/lowcode/view/lc-components/Page/meta.json +49 -49
  399. package/lib/lowcode/view/lc-components/PageContent/index.js +2 -0
  400. package/lib/lowcode/view/lc-components/PageContent/meta.json +9 -9
  401. package/lib/lowcode/view/lc-components/PageFooter/index.js +3 -0
  402. package/lib/lowcode/view/lc-components/PageFooter/meta.json +9 -9
  403. package/lib/lowcode/view/lc-components/PageHeader/index.js +3 -0
  404. package/lib/lowcode/view/lc-components/PageHeader/meta.json +9 -9
  405. package/lib/lowcode/view/lc-components/PageLayout/index.js +3 -0
  406. package/lib/lowcode/view/lc-components/PageLayout/meta.json +47 -47
  407. package/lib/lowcode/view/lc-components/Section/index.js +6 -3
  408. package/lib/lowcode/view/lc-components/Section/index.less +7 -7
  409. package/lib/lowcode/view/lc-components/Section/meta.json +107 -107
  410. package/lib/lowcode/view/lc-components/Split/index.js +3 -0
  411. package/lib/lowcode/view/lc-components/Split/meta.json +53 -53
  412. package/lib/lowcode/view/lc-components/Table/index.js +160 -167
  413. package/lib/lowcode/view/lc-components/Table/meta.json +405 -405
  414. package/lib/lowcode/view/lc-components/Tabs/index.js +25 -25
  415. package/lib/lowcode/view/lc-components/Tabs/meta.json +113 -113
  416. package/lib/lowcode/view/lc-components/Text/index.js +3 -0
  417. package/lib/lowcode/view/lc-components/Text/meta.json +66 -66
  418. package/lib/lowcode/view/lc-components/Tree/index.js +96 -96
  419. package/lib/lowcode/view/lc-components/Tree/index.less +4 -4
  420. package/lib/lowcode/view/lc-components/Tree/meta.json +363 -363
  421. package/lib/lowcode/view/lc-components/Wrapper.js +1 -0
  422. package/lib/lowcode/view/style/canvas.less +5 -5
  423. package/lib/lowcode/view/style/loading.less +84 -84
  424. package/lib/lowcode/view/style/page.less +7 -7
  425. package/lib/upload/FilesWall/index.js +13 -13
  426. package/lib/upload/FilesWall/index.less +74 -74
  427. package/lib/upload/Form/index.less +7 -7
  428. package/lib/upload/FormItem/index.js +15 -15
  429. package/lib/utils/form.js +21 -21
  430. package/lib/utils/grid.js +1 -1
  431. package/lowcode.js +1 -1
  432. package/package.json +3 -5
  433. package/upload.js +1 -1
  434. package/utils.js +1 -1
@@ -14,17 +14,17 @@ var API_PREFIX_PAGE = "".concat(api.LUCKDA_HOST, "/page");
14
14
  var API_PREFIX_MODULE = "".concat(api.LUCKDA_HOST, "/module");
15
15
  var API_RREFIX_DATASET = "".concat(API_PREFIX_MODULE, "/dataset");
16
16
 
17
- /**
18
- * 通过菜单编码获取page相关数据
19
- * @param {{code: string}} -code: 菜单编码
17
+ /**
18
+ * 通过菜单编码获取page相关数据
19
+ * @param {{code: string}} -code: 菜单编码
20
20
  */
21
21
  export function fetchPageData(_x) {
22
22
  return _fetchPageData.apply(this, arguments);
23
23
  }
24
24
 
25
- /**
26
- * 获取design时模块数据
27
- * @param {{moduleCode: string}} params
25
+ /**
26
+ * 获取design时模块数据
27
+ * @param {{moduleCode: string}} params
28
28
  */
29
29
  function _fetchPageData() {
30
30
  _fetchPageData = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
@@ -46,11 +46,11 @@ export function fetchDesignModlueData(_x2, _x3) {
46
46
  return _fetchDesignModlueData.apply(this, arguments);
47
47
  }
48
48
 
49
- /**
50
- * 获取preview时模块数据
51
- * @param {*} dmCode
52
- * @param {*} params
53
- * @returns
49
+ /**
50
+ * 获取preview时模块数据
51
+ * @param {*} dmCode
52
+ * @param {*} params
53
+ * @returns
54
54
  */
55
55
  function _fetchDesignModlueData() {
56
56
  _fetchDesignModlueData = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(_, params) {
@@ -72,9 +72,9 @@ export function fetchPreviewModlueData(_x4, _x5) {
72
72
  return _fetchPreviewModlueData.apply(this, arguments);
73
73
  }
74
74
 
75
- /**
76
- * 获取live时模块数据
77
- * @param {{moduleCode: string}} params
75
+ /**
76
+ * 获取live时模块数据
77
+ * @param {{moduleCode: string}} params
78
78
  */
79
79
  function _fetchPreviewModlueData() {
80
80
  _fetchPreviewModlueData = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(dmCode, params) {
@@ -96,9 +96,9 @@ export function fetchModlueData(_x6, _x7) {
96
96
  return _fetchModlueData.apply(this, arguments);
97
97
  }
98
98
 
99
- /**
100
- * 获取数据模型下的所有数据集
101
- * @param {{ dataModelKey }} params
99
+ /**
100
+ * 获取数据模型下的所有数据集
101
+ * @param {{ dataModelKey }} params
102
102
  */
103
103
  function _fetchModlueData() {
104
104
  _fetchModlueData = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4(dmCode, params) {
@@ -120,9 +120,9 @@ export function fetchAllDataset(_x8) {
120
120
  return _fetchAllDataset.apply(this, arguments);
121
121
  }
122
122
 
123
- /**
124
- * 向模块中添加数据集
125
- * @data {{ uid, dataModelKey, addList: { code, datasetUid }}} body数据
123
+ /**
124
+ * 向模块中添加数据集
125
+ * @data {{ uid, dataModelKey, addList: { code, datasetUid }}} body数据
126
126
  */
127
127
  function _fetchAllDataset() {
128
128
  _fetchAllDataset = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee5(params) {
@@ -144,9 +144,9 @@ export function fetchAddDataset(_x9) {
144
144
  return _fetchAddDataset.apply(this, arguments);
145
145
  }
146
146
 
147
- /**
148
- * 获取数据集下的所有字段
149
- * @param {{datasetUid}} params
147
+ /**
148
+ * 获取数据集下的所有字段
149
+ * @param {{datasetUid}} params
150
150
  */
151
151
  function _fetchAddDataset() {
152
152
  _fetchAddDataset = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee6(data) {
@@ -169,10 +169,10 @@ export function fetchFieldsByDataset(_x10) {
169
169
  return _fetchFieldsByDataset.apply(this, arguments);
170
170
  }
171
171
 
172
- /**
173
- * 获取字段配置条件
174
- * @param {{moduleId,datasetId,moduleFieldId}} params
175
- * @returns
172
+ /**
173
+ * 获取字段配置条件
174
+ * @param {{moduleId,datasetId,moduleFieldId}} params
175
+ * @returns
176
176
  */
177
177
  function _fetchFieldsByDataset() {
178
178
  _fetchFieldsByDataset = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee7(params) {
@@ -194,9 +194,9 @@ export function fetchFieldCondition(_x11) {
194
194
  return _fetchFieldCondition.apply(this, arguments);
195
195
  }
196
196
 
197
- /**
198
- * 更新是否标题字段
199
- * @param {{moduleId,datasetId,moduleFieldId}} params
197
+ /**
198
+ * 更新是否标题字段
199
+ * @param {{moduleId,datasetId,moduleFieldId}} params
200
200
  */
201
201
  function _fetchFieldCondition() {
202
202
  _fetchFieldCondition = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee8(params) {
@@ -218,10 +218,10 @@ export function fetchUpdateTitleField(_x12) {
218
218
  return _fetchUpdateTitleField.apply(this, arguments);
219
219
  }
220
220
 
221
- /**
222
- * 更新是否唯一校验
223
- * @param {*} data
224
- * @returns
221
+ /**
222
+ * 更新是否唯一校验
223
+ * @param {*} data
224
+ * @returns
225
225
  */
226
226
  function _fetchUpdateTitleField() {
227
227
  _fetchUpdateTitleField = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee9(data) {
@@ -244,9 +244,9 @@ export function fetchUpdateUniqueField(_x13) {
244
244
  return _fetchUpdateUniqueField.apply(this, arguments);
245
245
  }
246
246
 
247
- /**
248
- * 新增字段属性
249
- * @param {*} data
247
+ /**
248
+ * 新增字段属性
249
+ * @param {*} data
250
250
  */
251
251
  function _fetchUpdateUniqueField() {
252
252
  _fetchUpdateUniqueField = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee10(data) {
@@ -269,9 +269,9 @@ export function fetchAddFieldAttrs(_x14) {
269
269
  return _fetchAddFieldAttrs.apply(this, arguments);
270
270
  }
271
271
 
272
- /**
273
- * 删除字段属性
274
- * @param {*} data
272
+ /**
273
+ * 删除字段属性
274
+ * @param {*} data
275
275
  */
276
276
  function _fetchAddFieldAttrs() {
277
277
  _fetchAddFieldAttrs = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee11(data) {
@@ -294,9 +294,9 @@ export function fetchDelAttrs(_x15) {
294
294
  return _fetchDelAttrs.apply(this, arguments);
295
295
  }
296
296
 
297
- /**
298
- * 更新字段属性
299
- * @param {*} params
297
+ /**
298
+ * 更新字段属性
299
+ * @param {*} params
300
300
  */
301
301
  function _fetchDelAttrs() {
302
302
  _fetchDelAttrs = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee12(data) {
@@ -319,10 +319,10 @@ export function fetchUpdateFieldAttrs(_x16) {
319
319
  return _fetchUpdateFieldAttrs.apply(this, arguments);
320
320
  }
321
321
 
322
- /**
323
- * 读取字段配置的属性
324
- * @param {{uid, scope}} params
325
- * @returns
322
+ /**
323
+ * 读取字段配置的属性
324
+ * @param {{uid, scope}} params
325
+ * @returns
326
326
  */
327
327
  function _fetchUpdateFieldAttrs() {
328
328
  _fetchUpdateFieldAttrs = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee13(data) {
@@ -345,10 +345,10 @@ export function fetchAttrs(_x17) {
345
345
  return _fetchAttrs.apply(this, arguments);
346
346
  }
347
347
 
348
- /**
349
- * 读取所有行为
350
- * @param {{uid}} params
351
- * @returns
348
+ /**
349
+ * 读取所有行为
350
+ * @param {{uid}} params
351
+ * @returns
352
352
  */
353
353
  function _fetchAttrs() {
354
354
  _fetchAttrs = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee14(params) {
@@ -370,10 +370,10 @@ export function fetchAllBehavior(_x18) {
370
370
  return _fetchAllBehavior.apply(this, arguments);
371
371
  }
372
372
 
373
- /**
374
- * 读取所有资源串
375
- * @param {{uid}} params
376
- * @returns
373
+ /**
374
+ * 读取所有资源串
375
+ * @param {{uid}} params
376
+ * @returns
377
377
  */
378
378
  function _fetchAllBehavior() {
379
379
  _fetchAllBehavior = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee15(params) {
@@ -395,10 +395,10 @@ export function fetchAllSerials(_x19) {
395
395
  return _fetchAllSerials.apply(this, arguments);
396
396
  }
397
397
 
398
- /**
399
- * 读取导入导出数据源
400
- * @param {{moduleCode, behaviorMode:[IMPORT, EXPORT]}} params
401
- * @returns
398
+ /**
399
+ * 读取导入导出数据源
400
+ * @param {{moduleCode, behaviorMode:[IMPORT, EXPORT]}} params
401
+ * @returns
402
402
  */
403
403
  function _fetchAllSerials() {
404
404
  _fetchAllSerials = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee16(params) {
@@ -440,20 +440,20 @@ export function getBehaviorUrl() {
440
440
  return "".concat(api.API_HOST, "/").concat(mdCode, "/to/behavior/call");
441
441
  }
442
442
 
443
- /**
444
- * 执行行为
445
- * @param {*} params
446
- * @param {*} data
447
- * @returns
443
+ /**
444
+ * 执行行为
445
+ * @param {*} params
446
+ * @param {*} data
447
+ * @returns
448
448
  */
449
449
  export function fetchCallBehavior(_x21, _x22) {
450
450
  return _fetchCallBehavior.apply(this, arguments);
451
451
  }
452
452
 
453
- /**
454
- * 清除当前模块缓存
455
- * @param {{moduleCode}} params
456
- * @returns
453
+ /**
454
+ * 清除当前模块缓存
455
+ * @param {{moduleCode}} params
456
+ * @returns
457
457
  */
458
458
  function _fetchCallBehavior() {
459
459
  _fetchCallBehavior = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee18(params, data) {
@@ -480,10 +480,10 @@ export function fetchClearCache(_x23) {
480
480
  return _fetchClearCache.apply(this, arguments);
481
481
  }
482
482
 
483
- /**
484
- * 更新页面配置数据
485
- * @param {*} data
486
- * @returns
483
+ /**
484
+ * 更新页面配置数据
485
+ * @param {*} data
486
+ * @returns
487
487
  */
488
488
  function _fetchClearCache() {
489
489
  _fetchClearCache = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee19(params) {
@@ -505,10 +505,10 @@ export function fetchUpdatePageData(_x24) {
505
505
  return _fetchUpdatePageData.apply(this, arguments);
506
506
  }
507
507
 
508
- /**
509
- * 获取数据字典
510
- * @param {{snamealias}} params
511
- * @returns
508
+ /**
509
+ * 获取数据字典
510
+ * @param {{snamealias}} params
511
+ * @returns
512
512
  */
513
513
  function _fetchUpdatePageData() {
514
514
  _fetchUpdatePageData = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee20(data) {
@@ -531,10 +531,10 @@ export function fetchDataDic(_x25) {
531
531
  return _fetchDataDic.apply(this, arguments);
532
532
  }
533
533
 
534
- /**
535
- * 导出excel
536
- * @param {*} data
537
- * @returns
534
+ /**
535
+ * 导出excel
536
+ * @param {*} data
537
+ * @returns
538
538
  */
539
539
  function _fetchDataDic() {
540
540
  _fetchDataDic = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee21(params) {
@@ -556,10 +556,10 @@ export function exportExcel(_x26, _x27) {
556
556
  return _exportExcel.apply(this, arguments);
557
557
  }
558
558
 
559
- /**
560
- * 导入
561
- * @param {*} params, data
562
- * @returns
559
+ /**
560
+ * 导入
561
+ * @param {*} params, data
562
+ * @returns
563
563
  */
564
564
  function _exportExcel() {
565
565
  _exportExcel = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee22(params, data) {
@@ -1,5 +1,6 @@
1
1
  /******************************** 通用Topic开始 ********************************/
2
2
 
3
+ export var PAGE_LOAD_MOUNT = 'page-load-mount';
3
4
  // 组件的加载完成事件
4
5
  export var COMPONENT_MOUNT = 'component-mount';
5
6
  // 组件的卸载事件
@@ -14,7 +14,7 @@ var StringComp = function StringComp(_ref) {
14
14
  size = _ref.size,
15
15
  disabled = _ref.disabled;
16
16
  var handleChange = useRef(debounce(function (newValue) {
17
- onChange(newValue);
17
+ onChange(newValue.trim());
18
18
  }, 400));
19
19
  return /*#__PURE__*/React.createElement(Input, {
20
20
  onChange: function onChange(e) {
@@ -0,0 +1,5 @@
1
+ import { loadScript } from "./tools/helper";
2
+ export default function launcher() {
3
+ console.log('%c LuckdaLowCodeEngine %c v'.concat(BIZ_VERSION, ' '), 'padding: 2px 1px; border-radius: 3px 0 0 3px; color: #fff; background: #606060; font-weight: bold;', 'padding: 2px 1px; border-radius: 0 3px 3px 0; color: #fff; background: #42c02e; font-weight: bold;');
4
+ window.loadScript = loadScript;
5
+ }
@@ -6,7 +6,7 @@
6
6
  "group": "container",
7
7
  "groupName": "布局",
8
8
  "order": 3,
9
- "css": "height:60px; width: auto; background-color: #fff;",
9
+ "css": "height:100%; width: auto; background-color: #fff;",
10
10
  "advance": {
11
11
  "events": {}
12
12
  }
@@ -14,7 +14,7 @@
14
14
  "disabled": true
15
15
  }
16
16
  ],
17
- "css": "height:60px; width: auto; background-color: #fff;",
17
+ "css": "height:100%; width: auto; background-color: #fff;",
18
18
  "advance": {
19
19
  "events": [
20
20
  {
@@ -171,18 +171,18 @@
171
171
  "desc": "用于在当前文档中嵌入另一个独立的 HTML 文档、网页或其他类型的媒体内容。它提供了一种将外部内容嵌入到网页中的方法。",
172
172
  "icon": "icon-iframe"
173
173
  },
174
- {
175
- "component": "Image",
176
- "name": "图片",
177
- "desc": "用于显示图像或照片。以便用户可以轻松地创建具有自定义图片样式和布局的界面。",
178
- "icon": "icon-image"
179
- },
180
174
  {
181
175
  "component": "ImEx",
182
176
  "name": "导入导出",
183
177
  "desc": "支持导入导出数据的按钮组件。",
184
178
  "icon": "icon-imex"
185
179
  },
180
+ {
181
+ "component": "Image",
182
+ "name": "图片",
183
+ "desc": "用于显示图像或照片。以便用户可以轻松地创建具有自定义图片样式和布局的界面。",
184
+ "icon": "icon-image"
185
+ },
186
186
  {
187
187
  "component": "JSX",
188
188
  "name": "jsx代码段",
@@ -40,11 +40,17 @@
40
40
  ],
41
41
  "advance": {
42
42
  "events": [
43
+ {
44
+ "key": "onValueChange",
45
+ "name": "数据变化事件",
46
+ "desc": "在数据变化事件时,执行方法",
47
+ "func": "function onValueChange(value, field, data, formProps) {\n\t\n}"
48
+ },
43
49
  {
44
50
  "key": "onChange",
45
- "name": "色值变化事件",
46
- "desc": "在色值变化时,执行方法",
47
- "func": "function onChange(colors) {\n\t\n}"
51
+ "name": "值变化事件(onChange)",
52
+ "desc": "原生onChange事件,在值发生变化时,执行方法",
53
+ "func": "function onChange(color) {\n\t\n}"
48
54
  },
49
55
  {
50
56
  "key": "onOpen",
@@ -17,9 +17,15 @@
17
17
  "advance": {
18
18
  "events": [
19
19
  {
20
- "key": "onChange",
20
+ "key": "onValueChange",
21
21
  "name": "数据变化事件",
22
22
  "desc": "在数据变化事件时,执行方法",
23
+ "func": "function onValueChange(value, field, data, formProps) {\n\t\n}"
24
+ },
25
+ {
26
+ "key": "onChange",
27
+ "name": "值变化事件(onChange)",
28
+ "desc": "原生onChange事件,在值发生变化时,执行方法",
23
29
  "func": "function onChange(value, option) {\n\t\n}"
24
30
  },
25
31
  {
@@ -0,0 +1,16 @@
1
+ {
2
+ "component": "FieldDatadic",
3
+ "name": "数据字典",
4
+ "group": "field",
5
+ "desc": "数据字典类型表单项",
6
+ "icon": "icon-fieldstring",
7
+ "groupName": "表单项",
8
+ "order": 1,
9
+ "display": "select",
10
+ "multiple": false,
11
+ "isTree": false,
12
+ "allowClear": false,
13
+ "advance": {
14
+ "events": {}
15
+ }
16
+ }
@@ -0,0 +1,73 @@
1
+ {
2
+ "component": "FieldDatadic",
3
+ "name": "数据字典",
4
+ "group": "field",
5
+ "desc": "数据字典类型表单项",
6
+ "icon": "icon-fieldstring",
7
+ "groupName": "表单项",
8
+ "order": 1,
9
+ "props": [
10
+ {
11
+ "key": "alias",
12
+ "name": "字典key",
13
+ "type": "string"
14
+ },
15
+ {
16
+ "key": "valueField",
17
+ "name": "实际值字段",
18
+ "type": "string"
19
+ },
20
+ {
21
+ "key": "labelField",
22
+ "name": "翻译值字段",
23
+ "type": "string"
24
+ },
25
+ {
26
+ "key": "display",
27
+ "name": "展现形式",
28
+ "type": "segmented",
29
+ "options": [
30
+ {
31
+ "label": "Select",
32
+ "value": "select"
33
+ },
34
+ {
35
+ "label": "Radio",
36
+ "value": "radio"
37
+ }
38
+ ],
39
+ "default": "select"
40
+ },
41
+ {
42
+ "key": "multiple",
43
+ "name": "多选",
44
+ "desc": "仅在展现形式为Select时有效",
45
+ "type": "switch",
46
+ "default": false
47
+ },
48
+ {
49
+ "key": "isTree",
50
+ "name": "树形结构",
51
+ "desc": "用于规定树形结构的数据字典,仅在展现形式为Select时有效",
52
+ "type": "switch",
53
+ "default": false
54
+ },
55
+ {
56
+ "key": "allowClear",
57
+ "name": "允许清除",
58
+ "desc": "仅在展现形式为Select时有效",
59
+ "type": "switch",
60
+ "default": false
61
+ }
62
+ ],
63
+ "advance": {
64
+ "events": [
65
+ {
66
+ "key": "onChange",
67
+ "name": "数据变化事件",
68
+ "desc": "在数据变化事件时,执行方法",
69
+ "func": "function onChange(data) {\n\t\n}"
70
+ }
71
+ ]
72
+ }
73
+ }
@@ -37,9 +37,15 @@
37
37
  "advance": {
38
38
  "events": [
39
39
  {
40
- "key": "onChange",
40
+ "key": "onValueChange",
41
41
  "name": "数据变化事件",
42
42
  "desc": "在数据变化事件时,执行方法",
43
+ "func": "function onValueChange(value, field, data, formProps) {\n\t\n}"
44
+ },
45
+ {
46
+ "key": "onChange",
47
+ "name": "值变化事件(onChange)",
48
+ "desc": "原生onChange事件,在值发生变化时,执行方法",
43
49
  "func": "function onChange(data, dataString) {\n\t\n}"
44
50
  }
45
51
  ]
@@ -34,9 +34,15 @@
34
34
  "advance": {
35
35
  "events": [
36
36
  {
37
- "key": "onChange",
37
+ "key": "onValueChange",
38
38
  "name": "数据变化事件",
39
39
  "desc": "在数据变化事件时,执行方法",
40
+ "func": "function onValueChange(value, field, data, formProps) {\n\t\n}"
41
+ },
42
+ {
43
+ "key": "onChange",
44
+ "name": "值变化事件(onChange)",
45
+ "desc": "原生onChange事件,在值发生变化时,执行方法",
40
46
  "func": "function onChange(data) {\n\t\n}"
41
47
  }
42
48
  ]
@@ -28,9 +28,15 @@
28
28
  "advance": {
29
29
  "events": [
30
30
  {
31
- "key": "onChange",
31
+ "key": "onValueChange",
32
32
  "name": "数据变化事件",
33
33
  "desc": "在数据变化事件时,执行方法",
34
+ "func": "function onValueChange(value, field, data, formProps) {\n\t\n}"
35
+ },
36
+ {
37
+ "key": "onChange",
38
+ "name": "值变化事件(onChange)",
39
+ "desc": "原生onChange事件,在值发生变化时,执行方法",
34
40
  "func": "function onChange(value, extra) {\n\t\n}"
35
41
  },
36
42
  {
@@ -51,9 +51,15 @@
51
51
  "advance": {
52
52
  "events": [
53
53
  {
54
- "key": "onChange",
54
+ "key": "onValueChange",
55
55
  "name": "数据变化事件",
56
56
  "desc": "在数据变化事件时,执行方法",
57
+ "func": "function onValueChange(value, field, data, formProps) {\n\t\n}"
58
+ },
59
+ {
60
+ "key": "onChange",
61
+ "name": "值变化事件(onChange)",
62
+ "desc": "原生onChange事件,在值发生变化时,执行方法",
57
63
  "func": "function onChange(value, extra) {\n\t\n}"
58
64
  },
59
65
  {
@@ -38,10 +38,16 @@
38
38
  "advance": {
39
39
  "events": [
40
40
  {
41
- "key": "onChange",
41
+ "key": "onValueChange",
42
42
  "name": "数据变化事件",
43
43
  "desc": "在数据变化事件时,执行方法",
44
- "func": "function onChange(val) {\n\t\n}"
44
+ "func": "function onValueChange(value, field, data, formProps) {\n\t\n}"
45
+ },
46
+ {
47
+ "key": "onChange",
48
+ "name": "值变化事件(onChange)",
49
+ "desc": "原生onChange事件,在值发生变化时,执行方法",
50
+ "func": "function onChange(value) {\n\t\n}"
45
51
  }
46
52
  ]
47
53
  }
@@ -10,10 +10,16 @@
10
10
  "advance": {
11
11
  "events": [
12
12
  {
13
- "key": "onChange",
13
+ "key": "onValueChange",
14
14
  "name": "数据变化事件",
15
- "desc": "选中 option时,调用此函数",
16
- "func": "function onChange(event) {\n\t\n}"
15
+ "desc": "在数据变化事件时,执行方法",
16
+ "func": "function onValueChange(value, field, data, formProps) {\n\t\n}"
17
+ },
18
+ {
19
+ "key": "onChange",
20
+ "name": "值变化事件(onChange)",
21
+ "desc": "原生onChange事件,在值发生变化时,执行方法",
22
+ "func": "function onChange(e) {\n\t\n}"
17
23
  }
18
24
  ]
19
25
  }
@@ -10,10 +10,16 @@
10
10
  "advance": {
11
11
  "events": [
12
12
  {
13
- "key": "onChange",
13
+ "key": "onValueChange",
14
14
  "name": "数据变化事件",
15
- "desc": "选中 option时,调用此函数",
16
- "func": "function onChange(value,option) {\n\t\n}"
15
+ "desc": "在数据变化事件时,执行方法",
16
+ "func": "function onValueChange(value, field, data, formProps) {\n\t\n}"
17
+ },
18
+ {
19
+ "key": "onChange",
20
+ "name": "值变化事件(onChange)",
21
+ "desc": "原生onChange事件,在值发生变化时,执行方法",
22
+ "func": "function onChange(value, option) {\n\t\n}"
17
23
  },
18
24
  {
19
25
  "key": "onPopupVisibleChange",
@@ -24,10 +24,16 @@
24
24
  "advance": {
25
25
  "events": [
26
26
  {
27
- "key": "onChange",
27
+ "key": "onValueChange",
28
28
  "name": "数据变化事件",
29
- "desc": "选中 option,或 input 的 value 变化(combobox 模式下)时,调用此函数",
30
- "func": "function onChange(value,option) {\n\t\n}"
29
+ "desc": "在数据变化事件时,执行方法",
30
+ "func": "function onValueChange(value, field, data, formProps) {\n\t\n}"
31
+ },
32
+ {
33
+ "key": "onChange",
34
+ "name": "值变化事件(onChange)",
35
+ "desc": "原生onChange事件,在值发生变化时,执行方法",
36
+ "func": "function onChange(value, option) {\n\t\n}"
31
37
  },
32
38
  {
33
39
  "key": "onSelect",