@luck-design-biz/luckda 1.0.1-1 → 1.0.1-11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (400) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +40 -40
  3. package/es/components/LDActions/index.less +68 -68
  4. package/es/components/LdFormList/index.js +20 -6
  5. package/es/components/LdGrid/index.js +4 -4
  6. package/es/components/LdGridForm/index.js +40 -24
  7. package/es/components/LdGridForm/index.less +7 -7
  8. package/es/components/LdTree/index.less +40 -40
  9. package/es/helper/action.js +6 -6
  10. package/es/helper/form.js +14 -14
  11. package/es/helper/index.less +7 -7
  12. package/es/locales/zh-CN.js +3 -3
  13. package/es/lowcode/constants/api-url.js +87 -87
  14. package/es/lowcode/engine/meta/cardlist.props.default.json +1 -0
  15. package/es/lowcode/engine/meta/cardlist.props.json +2 -1
  16. package/es/lowcode/engine/meta/components-list.json +6 -126
  17. package/es/lowcode/engine/meta/dialog.props.default.json +4 -2
  18. package/es/lowcode/engine/meta/dialog.props.json +74 -18
  19. package/es/lowcode/engine/meta/drawer.props.default.json +15 -4
  20. package/es/lowcode/engine/meta/drawer.props.json +144 -24
  21. package/es/lowcode/engine/meta/fielddatadic.props.default.json +16 -0
  22. package/es/lowcode/engine/meta/fielddatadic.props.json +73 -0
  23. package/es/lowcode/engine/meta/form.props.default.json +1 -0
  24. package/es/lowcode/engine/meta/form.props.json +2 -1
  25. package/es/lowcode/engine/meta/grouptree.props.default.json +16 -0
  26. package/es/lowcode/engine/meta/grouptree.props.json +89 -0
  27. package/es/lowcode/engine/meta/iframe.props.default.json +1 -0
  28. package/es/lowcode/engine/meta/iframe.props.json +2 -1
  29. package/es/lowcode/engine/meta/image.props.default.json +1 -0
  30. package/es/lowcode/engine/meta/image.props.json +2 -1
  31. package/es/lowcode/engine/meta/imex.props.json +1 -1
  32. package/es/lowcode/engine/meta/js-editor/auto-complete.json +35 -30
  33. package/es/lowcode/engine/meta/link.props.default.json +1 -0
  34. package/es/lowcode/engine/meta/link.props.json +2 -1
  35. package/es/lowcode/engine/meta/table.props.json +1 -1
  36. package/es/lowcode/engine/meta/tree.props.json +2 -2
  37. package/es/lowcode/engine/provider/ContextProvider/index.js +44 -44
  38. package/es/lowcode/engine/tools/dataProcess.js +76 -76
  39. package/es/lowcode/engine/tools/helper.js +21 -0
  40. package/es/lowcode/engine/tools/useCanvasRender.js +13 -1
  41. package/es/lowcode/painter/Components.js +2 -2
  42. package/es/lowcode/painter/Design.js +1 -0
  43. package/es/lowcode/painter/DesignOperator.js +15 -10
  44. package/es/lowcode/painter/components/Collapse.js +26 -26
  45. package/es/lowcode/painter/components/ColorInput.js +24 -24
  46. package/es/lowcode/painter/components/ListEditor.js +24 -24
  47. package/es/lowcode/painter/components/NumberInput.js +29 -29
  48. package/es/lowcode/painter/components/PanelItem.js +24 -24
  49. package/es/lowcode/painter/components/PopConfirm.js +8 -8
  50. package/es/lowcode/painter/components/PopForm.js +27 -27
  51. package/es/lowcode/painter/components/RuleInput.js +30 -30
  52. package/es/lowcode/painter/components/SortBox.js +22 -22
  53. package/es/lowcode/painter/components/code-editor/BaseEditor.js +32 -32
  54. package/es/lowcode/painter/components/code-editor/CssEditor.js +25 -25
  55. package/es/lowcode/painter/components/code-editor/FullScreenEditor.js +23 -23
  56. package/es/lowcode/painter/components/code-editor/JSEditor.js +20 -20
  57. package/es/lowcode/painter/components/code-editor/JsonEditor.js +25 -25
  58. package/es/lowcode/painter/components/field-setting/SettingUI.js +8 -4
  59. package/es/lowcode/painter/panel-section/GroupClassSelector.js +55 -0
  60. package/es/lowcode/painter/panel-section/Icon.js +23 -23
  61. package/es/lowcode/painter/panel-section/IconSelector.js +16 -16
  62. package/es/lowcode/painter/panel-section/LayoutRatio.js +21 -21
  63. package/es/lowcode/painter/panel-section/PageVars.js +1 -1
  64. package/es/lowcode/painter/panel-section/StylePanel/BackGround.js +2 -2
  65. package/es/lowcode/painter/panel-section/StylePanel/Border.js +2 -2
  66. package/es/lowcode/painter/panel-section/StylePanel/BorderRadius.js +2 -2
  67. package/es/lowcode/painter/panel-section/StylePanel/BorderRadiusSelector.js +2 -2
  68. package/es/lowcode/painter/panel-section/StylePanel/BorderSelector.js +2 -2
  69. package/es/lowcode/painter/panel-section/StylePanel/Display.js +2 -2
  70. package/es/lowcode/painter/panel-section/StylePanel/Font.js +2 -2
  71. package/es/lowcode/painter/panel-section/StylePanel/FontEditor.js +2 -2
  72. package/es/lowcode/painter/panel-section/StylePanel/GapSelector.js +2 -2
  73. package/es/lowcode/painter/panel-section/StylePanel/HighLightPanel.js +2 -2
  74. package/es/lowcode/painter/panel-section/StylePanel/HighLigthtSpan.js +2 -2
  75. package/es/lowcode/painter/panel-section/StylePanel/HightLightSvg.js +2 -2
  76. package/es/lowcode/painter/panel-section/StylePanel/MainPanel.js +2 -2
  77. package/es/lowcode/painter/panel-section/StylePanel/Margin.js +2 -2
  78. package/es/lowcode/painter/panel-section/StylePanel/Opacity.js +2 -2
  79. package/es/lowcode/painter/panel-section/StylePanel/Padding.js +2 -2
  80. package/es/lowcode/painter/panel-section/StylePanel/Pointer.js +2 -2
  81. package/es/lowcode/painter/panel-section/StylePanel/Shadow.js +2 -2
  82. package/es/lowcode/painter/panel-section/StylePanel/Size.js +2 -2
  83. package/es/lowcode/painter/panel-section/StylePanel/StyleContext.js +2 -2
  84. package/es/lowcode/painter/panel-section/StylePanel/StyleRow.js +2 -2
  85. package/es/lowcode/painter/panel-section/StylePanel/WidthHeight.js +2 -2
  86. package/es/lowcode/painter/panel-section/StylePanel/index.js +15 -15
  87. package/es/lowcode/painter/style/action-bind-modal.less +102 -102
  88. package/es/lowcode/painter/style/actions-editor.less +15 -15
  89. package/es/lowcode/painter/style/border-editor.less +36 -36
  90. package/es/lowcode/painter/style/border-radius-selector.less +42 -42
  91. package/es/lowcode/painter/style/border-selector.less +39 -39
  92. package/es/lowcode/painter/style/button-type.less +5 -5
  93. package/es/lowcode/painter/style/collapse.less +28 -28
  94. package/es/lowcode/painter/style/color-input.less +19 -19
  95. package/es/lowcode/painter/style/components.less +91 -91
  96. package/es/lowcode/painter/style/design.less +166 -160
  97. package/es/lowcode/painter/style/display.less +17 -17
  98. package/es/lowcode/painter/style/dragdrop.less +10 -10
  99. package/es/lowcode/painter/style/fields-setting.less +25 -25
  100. package/es/lowcode/painter/style/font-editor.less +9 -9
  101. package/es/lowcode/painter/style/fullscreen-editor.less +17 -17
  102. package/es/lowcode/painter/style/icon-selector.less +22 -22
  103. package/es/lowcode/painter/style/icon.less +10 -10
  104. package/es/lowcode/painter/style/impexp.less +7 -7
  105. package/es/lowcode/painter/style/index.less +6 -6
  106. package/es/lowcode/painter/style/layout-ratio.less +51 -51
  107. package/es/lowcode/painter/style/list-editor.less +95 -95
  108. package/es/lowcode/painter/style/number-input.less +17 -17
  109. package/es/lowcode/painter/style/outline.less +28 -28
  110. package/es/lowcode/painter/style/page-layout-display.less +27 -27
  111. package/es/lowcode/painter/style/page-vars.less +25 -25
  112. package/es/lowcode/painter/style/panel-attrs.less +43 -43
  113. package/es/lowcode/painter/style/panel-item.less +54 -54
  114. package/es/lowcode/painter/style/panel.less +98 -98
  115. package/es/lowcode/painter/style/pop-confirm.less +17 -17
  116. package/es/lowcode/painter/style/pop-form.less +19 -19
  117. package/es/lowcode/painter/style/radio.less +24 -24
  118. package/es/lowcode/painter/style/ribbon.less +5 -5
  119. package/es/lowcode/painter/style/rule-input.less +12 -12
  120. package/es/lowcode/painter/style/split-display.less +18 -18
  121. package/es/lowcode/painter/style/style-panel.less +37 -37
  122. package/es/lowcode/painter/style/tabitems.less +90 -90
  123. package/es/lowcode/painter/style/treedragdrop.less +19 -19
  124. package/es/lowcode/view/lc-components/Box/index.js +4 -4
  125. package/es/lowcode/view/lc-components/Box/index.less +14 -14
  126. package/es/lowcode/view/lc-components/Box/meta.json +40 -40
  127. package/es/lowcode/view/lc-components/Button/index.js +33 -33
  128. package/es/lowcode/view/lc-components/Button/meta.json +127 -127
  129. package/es/lowcode/view/lc-components/Button/style.less +2 -2
  130. package/es/lowcode/view/lc-components/CardList/meta.json +154 -153
  131. package/es/lowcode/view/lc-components/Dialog/FunctionDesign.js +14 -6
  132. package/es/lowcode/view/lc-components/Dialog/index.js +28 -18
  133. package/es/lowcode/view/lc-components/Dialog/index.less +12 -8
  134. package/es/lowcode/view/lc-components/Dialog/meta.json +204 -150
  135. package/es/lowcode/view/lc-components/Drawer/FunctionDesign.js +51 -8
  136. package/es/lowcode/view/lc-components/Drawer/index.js +149 -34
  137. package/es/lowcode/view/lc-components/Drawer/index.less +13 -10
  138. package/es/lowcode/view/lc-components/Drawer/meta.json +242 -131
  139. package/es/lowcode/view/lc-components/FieldColor/meta.json +157 -157
  140. package/es/lowcode/view/lc-components/FieldComplex/meta.json +140 -140
  141. package/es/lowcode/view/lc-components/FieldDate/meta.json +141 -141
  142. package/es/lowcode/view/lc-components/FieldDict/meta.json +138 -138
  143. package/es/lowcode/view/lc-components/FieldEditor/meta.json +138 -138
  144. package/es/lowcode/view/lc-components/FieldGroup/meta.json +167 -167
  145. package/es/lowcode/view/lc-components/FieldNumber/meta.json +143 -143
  146. package/es/lowcode/view/lc-components/FieldRadio/meta.json +115 -115
  147. package/es/lowcode/view/lc-components/FieldRegion/meta.json +121 -121
  148. package/es/lowcode/view/lc-components/FieldSelect/meta.json +152 -152
  149. package/es/lowcode/view/lc-components/FieldString/meta.json +152 -152
  150. package/es/lowcode/view/lc-components/FieldSwitch/meta.json +125 -125
  151. package/es/lowcode/view/lc-components/FieldTextarea/meta.json +143 -143
  152. package/es/lowcode/view/lc-components/FieldUpload/meta.json +165 -165
  153. package/es/lowcode/view/lc-components/FieldUser/meta.json +176 -176
  154. package/es/lowcode/view/lc-components/FieldYear/meta.json +129 -129
  155. package/es/lowcode/view/lc-components/Form/FunctionDesign.js +2 -1
  156. package/es/lowcode/view/lc-components/Form/index.js +42 -33
  157. package/es/lowcode/view/lc-components/Form/meta.json +645 -644
  158. package/es/lowcode/view/lc-components/GroupTree/FunctionDesign.js +10 -0
  159. package/es/lowcode/view/lc-components/GroupTree/FunctionLive.js +10 -0
  160. package/es/lowcode/view/lc-components/GroupTree/FunctionPreview.js +10 -0
  161. package/es/lowcode/view/lc-components/GroupTree/index.js +201 -0
  162. package/es/lowcode/view/lc-components/GroupTree/meta.json +89 -0
  163. package/es/lowcode/view/lc-components/Iframe/meta.json +33 -32
  164. package/es/lowcode/view/lc-components/ImEx/index.js +25 -25
  165. package/es/lowcode/view/lc-components/ImEx/index.less +7 -7
  166. package/es/lowcode/view/lc-components/ImEx/meta.json +134 -134
  167. package/es/lowcode/view/lc-components/Image/meta.json +115 -114
  168. package/es/lowcode/view/lc-components/JSX/RuntimeComp.js +4 -4
  169. package/es/lowcode/view/lc-components/JSX/meta.json +28 -28
  170. package/es/lowcode/view/lc-components/Layout/index.js +16 -16
  171. package/es/lowcode/view/lc-components/Layout/index.less +5 -5
  172. package/es/lowcode/view/lc-components/Layout/meta.json +107 -107
  173. package/es/lowcode/view/lc-components/Link/meta.json +113 -112
  174. package/es/lowcode/view/lc-components/Page/meta.json +61 -61
  175. package/es/lowcode/view/lc-components/PageContent/meta.json +9 -9
  176. package/es/lowcode/view/lc-components/PageFooter/meta.json +9 -9
  177. package/es/lowcode/view/lc-components/PageHeader/meta.json +9 -9
  178. package/es/lowcode/view/lc-components/PageLayout/meta.json +59 -59
  179. package/es/lowcode/view/lc-components/Section/index.less +7 -7
  180. package/es/lowcode/view/lc-components/Section/meta.json +108 -108
  181. package/es/lowcode/view/lc-components/Split/meta.json +53 -53
  182. package/es/lowcode/view/lc-components/Table/index.js +149 -148
  183. package/es/lowcode/view/lc-components/Table/meta.json +450 -450
  184. package/es/lowcode/view/lc-components/Tabs/index.js +23 -23
  185. package/es/lowcode/view/lc-components/Tabs/meta.json +113 -113
  186. package/es/lowcode/view/lc-components/Text/meta.json +56 -56
  187. package/es/lowcode/view/lc-components/Tree/index.js +102 -107
  188. package/es/lowcode/view/lc-components/Tree/index.less +4 -4
  189. package/es/lowcode/view/lc-components/Tree/meta.json +357 -357
  190. package/es/lowcode/view/style/canvas.less +5 -5
  191. package/es/lowcode/view/style/loading.less +98 -98
  192. package/es/lowcode/view/style/page.less +7 -7
  193. package/es/upload/FilesWall/index.js +13 -13
  194. package/es/upload/FilesWall/index.less +74 -74
  195. package/es/upload/Form/index.less +7 -7
  196. package/es/upload/FormItem/index.js +15 -15
  197. package/es/utils/form.js +21 -21
  198. package/es/utils/grid.js +3 -3
  199. package/lib/components/LDActions/index.less +68 -68
  200. package/lib/components/LdFormList/index.js +19 -5
  201. package/lib/components/LdGrid/index.js +4 -4
  202. package/lib/components/LdGridForm/index.js +40 -24
  203. package/lib/components/LdGridForm/index.less +7 -7
  204. package/lib/components/LdTree/index.less +40 -40
  205. package/lib/helper/action.js +6 -6
  206. package/lib/helper/form.js +14 -14
  207. package/lib/helper/index.less +7 -7
  208. package/lib/locales/zh-CN.js +3 -3
  209. package/lib/lowcode/constants/api-url.js +87 -87
  210. package/lib/lowcode/engine/meta/cardlist.props.default.json +1 -0
  211. package/lib/lowcode/engine/meta/cardlist.props.json +2 -1
  212. package/lib/lowcode/engine/meta/components-list.json +6 -126
  213. package/lib/lowcode/engine/meta/dialog.props.default.json +4 -2
  214. package/lib/lowcode/engine/meta/dialog.props.json +74 -18
  215. package/lib/lowcode/engine/meta/drawer.props.default.json +15 -4
  216. package/lib/lowcode/engine/meta/drawer.props.json +144 -24
  217. package/lib/lowcode/engine/meta/fielddatadic.props.default.json +16 -0
  218. package/lib/lowcode/engine/meta/fielddatadic.props.json +73 -0
  219. package/lib/lowcode/engine/meta/form.props.default.json +1 -0
  220. package/lib/lowcode/engine/meta/form.props.json +2 -1
  221. package/lib/lowcode/engine/meta/grouptree.props.default.json +16 -0
  222. package/lib/lowcode/engine/meta/grouptree.props.json +89 -0
  223. package/lib/lowcode/engine/meta/iframe.props.default.json +1 -0
  224. package/lib/lowcode/engine/meta/iframe.props.json +2 -1
  225. package/lib/lowcode/engine/meta/image.props.default.json +1 -0
  226. package/lib/lowcode/engine/meta/image.props.json +2 -1
  227. package/lib/lowcode/engine/meta/imex.props.json +1 -1
  228. package/lib/lowcode/engine/meta/js-editor/auto-complete.json +35 -30
  229. package/lib/lowcode/engine/meta/link.props.default.json +1 -0
  230. package/lib/lowcode/engine/meta/link.props.json +2 -1
  231. package/lib/lowcode/engine/meta/table.props.json +1 -1
  232. package/lib/lowcode/engine/meta/tree.props.json +2 -2
  233. package/lib/lowcode/engine/provider/ContextProvider/index.js +44 -44
  234. package/lib/lowcode/engine/tools/dataProcess.js +76 -76
  235. package/lib/lowcode/engine/tools/helper.js +22 -0
  236. package/lib/lowcode/engine/tools/useCanvasRender.js +13 -1
  237. package/lib/lowcode/painter/Components.js +2 -2
  238. package/lib/lowcode/painter/Design.js +1 -0
  239. package/lib/lowcode/painter/DesignOperator.js +15 -10
  240. package/lib/lowcode/painter/components/Collapse.js +26 -26
  241. package/lib/lowcode/painter/components/ColorInput.js +24 -24
  242. package/lib/lowcode/painter/components/ListEditor.js +24 -24
  243. package/lib/lowcode/painter/components/NumberInput.js +29 -29
  244. package/lib/lowcode/painter/components/PanelItem.js +24 -24
  245. package/lib/lowcode/painter/components/PopConfirm.js +8 -8
  246. package/lib/lowcode/painter/components/PopForm.js +27 -27
  247. package/lib/lowcode/painter/components/RuleInput.js +30 -30
  248. package/lib/lowcode/painter/components/SortBox.js +22 -22
  249. package/lib/lowcode/painter/components/code-editor/BaseEditor.js +32 -32
  250. package/lib/lowcode/painter/components/code-editor/CssEditor.js +25 -25
  251. package/lib/lowcode/painter/components/code-editor/FullScreenEditor.js +23 -23
  252. package/lib/lowcode/painter/components/code-editor/JSEditor.js +20 -20
  253. package/lib/lowcode/painter/components/code-editor/JsonEditor.js +25 -25
  254. package/lib/lowcode/painter/components/field-setting/SettingUI.js +8 -4
  255. package/lib/lowcode/painter/panel-section/GroupClassSelector.js +63 -0
  256. package/lib/lowcode/painter/panel-section/Icon.js +23 -23
  257. package/lib/lowcode/painter/panel-section/IconSelector.js +16 -16
  258. package/lib/lowcode/painter/panel-section/LayoutRatio.js +21 -21
  259. package/lib/lowcode/painter/panel-section/PageVars.js +1 -1
  260. package/lib/lowcode/painter/panel-section/StylePanel/BackGround.js +2 -2
  261. package/lib/lowcode/painter/panel-section/StylePanel/Border.js +2 -2
  262. package/lib/lowcode/painter/panel-section/StylePanel/BorderRadius.js +2 -2
  263. package/lib/lowcode/painter/panel-section/StylePanel/BorderRadiusSelector.js +2 -2
  264. package/lib/lowcode/painter/panel-section/StylePanel/BorderSelector.js +2 -2
  265. package/lib/lowcode/painter/panel-section/StylePanel/Display.js +2 -2
  266. package/lib/lowcode/painter/panel-section/StylePanel/Font.js +2 -2
  267. package/lib/lowcode/painter/panel-section/StylePanel/FontEditor.js +2 -2
  268. package/lib/lowcode/painter/panel-section/StylePanel/GapSelector.js +2 -2
  269. package/lib/lowcode/painter/panel-section/StylePanel/HighLightPanel.js +2 -2
  270. package/lib/lowcode/painter/panel-section/StylePanel/HighLigthtSpan.js +2 -2
  271. package/lib/lowcode/painter/panel-section/StylePanel/HightLightSvg.js +2 -2
  272. package/lib/lowcode/painter/panel-section/StylePanel/MainPanel.js +2 -2
  273. package/lib/lowcode/painter/panel-section/StylePanel/Margin.js +2 -2
  274. package/lib/lowcode/painter/panel-section/StylePanel/Opacity.js +2 -2
  275. package/lib/lowcode/painter/panel-section/StylePanel/Padding.js +2 -2
  276. package/lib/lowcode/painter/panel-section/StylePanel/Pointer.js +2 -2
  277. package/lib/lowcode/painter/panel-section/StylePanel/Shadow.js +2 -2
  278. package/lib/lowcode/painter/panel-section/StylePanel/Size.js +2 -2
  279. package/lib/lowcode/painter/panel-section/StylePanel/StyleContext.js +2 -2
  280. package/lib/lowcode/painter/panel-section/StylePanel/StyleRow.js +2 -2
  281. package/lib/lowcode/painter/panel-section/StylePanel/WidthHeight.js +2 -2
  282. package/lib/lowcode/painter/panel-section/StylePanel/index.js +15 -15
  283. package/lib/lowcode/painter/style/action-bind-modal.less +102 -102
  284. package/lib/lowcode/painter/style/actions-editor.less +15 -15
  285. package/lib/lowcode/painter/style/border-editor.less +36 -36
  286. package/lib/lowcode/painter/style/border-radius-selector.less +42 -42
  287. package/lib/lowcode/painter/style/border-selector.less +39 -39
  288. package/lib/lowcode/painter/style/button-type.less +5 -5
  289. package/lib/lowcode/painter/style/collapse.less +28 -28
  290. package/lib/lowcode/painter/style/color-input.less +19 -19
  291. package/lib/lowcode/painter/style/components.less +91 -91
  292. package/lib/lowcode/painter/style/design.less +166 -160
  293. package/lib/lowcode/painter/style/display.less +17 -17
  294. package/lib/lowcode/painter/style/dragdrop.less +10 -10
  295. package/lib/lowcode/painter/style/fields-setting.less +25 -25
  296. package/lib/lowcode/painter/style/font-editor.less +9 -9
  297. package/lib/lowcode/painter/style/fullscreen-editor.less +17 -17
  298. package/lib/lowcode/painter/style/icon-selector.less +22 -22
  299. package/lib/lowcode/painter/style/icon.less +10 -10
  300. package/lib/lowcode/painter/style/impexp.less +7 -7
  301. package/lib/lowcode/painter/style/index.less +6 -6
  302. package/lib/lowcode/painter/style/layout-ratio.less +51 -51
  303. package/lib/lowcode/painter/style/list-editor.less +95 -95
  304. package/lib/lowcode/painter/style/number-input.less +17 -17
  305. package/lib/lowcode/painter/style/outline.less +28 -28
  306. package/lib/lowcode/painter/style/page-layout-display.less +27 -27
  307. package/lib/lowcode/painter/style/page-vars.less +25 -25
  308. package/lib/lowcode/painter/style/panel-attrs.less +43 -43
  309. package/lib/lowcode/painter/style/panel-item.less +54 -54
  310. package/lib/lowcode/painter/style/panel.less +98 -98
  311. package/lib/lowcode/painter/style/pop-confirm.less +17 -17
  312. package/lib/lowcode/painter/style/pop-form.less +19 -19
  313. package/lib/lowcode/painter/style/radio.less +24 -24
  314. package/lib/lowcode/painter/style/ribbon.less +5 -5
  315. package/lib/lowcode/painter/style/rule-input.less +12 -12
  316. package/lib/lowcode/painter/style/split-display.less +18 -18
  317. package/lib/lowcode/painter/style/style-panel.less +37 -37
  318. package/lib/lowcode/painter/style/tabitems.less +90 -90
  319. package/lib/lowcode/painter/style/treedragdrop.less +19 -19
  320. package/lib/lowcode/view/lc-components/Box/index.js +4 -4
  321. package/lib/lowcode/view/lc-components/Box/index.less +14 -14
  322. package/lib/lowcode/view/lc-components/Box/meta.json +40 -40
  323. package/lib/lowcode/view/lc-components/Button/index.js +33 -33
  324. package/lib/lowcode/view/lc-components/Button/meta.json +127 -127
  325. package/lib/lowcode/view/lc-components/Button/style.less +2 -2
  326. package/lib/lowcode/view/lc-components/CardList/meta.json +154 -153
  327. package/lib/lowcode/view/lc-components/Dialog/FunctionDesign.js +13 -5
  328. package/lib/lowcode/view/lc-components/Dialog/index.js +28 -18
  329. package/lib/lowcode/view/lc-components/Dialog/index.less +12 -8
  330. package/lib/lowcode/view/lc-components/Dialog/meta.json +204 -150
  331. package/lib/lowcode/view/lc-components/Drawer/FunctionDesign.js +52 -8
  332. package/lib/lowcode/view/lc-components/Drawer/index.js +148 -33
  333. package/lib/lowcode/view/lc-components/Drawer/index.less +13 -10
  334. package/lib/lowcode/view/lc-components/Drawer/meta.json +242 -131
  335. package/lib/lowcode/view/lc-components/FieldColor/meta.json +157 -157
  336. package/lib/lowcode/view/lc-components/FieldComplex/meta.json +140 -140
  337. package/lib/lowcode/view/lc-components/FieldDate/meta.json +141 -141
  338. package/lib/lowcode/view/lc-components/FieldDict/meta.json +138 -138
  339. package/lib/lowcode/view/lc-components/FieldEditor/meta.json +138 -138
  340. package/lib/lowcode/view/lc-components/FieldGroup/meta.json +167 -167
  341. package/lib/lowcode/view/lc-components/FieldNumber/meta.json +143 -143
  342. package/lib/lowcode/view/lc-components/FieldRadio/meta.json +115 -115
  343. package/lib/lowcode/view/lc-components/FieldRegion/meta.json +121 -121
  344. package/lib/lowcode/view/lc-components/FieldSelect/meta.json +152 -152
  345. package/lib/lowcode/view/lc-components/FieldString/meta.json +152 -152
  346. package/lib/lowcode/view/lc-components/FieldSwitch/meta.json +125 -125
  347. package/lib/lowcode/view/lc-components/FieldTextarea/meta.json +143 -143
  348. package/lib/lowcode/view/lc-components/FieldUpload/meta.json +165 -165
  349. package/lib/lowcode/view/lc-components/FieldUser/meta.json +176 -176
  350. package/lib/lowcode/view/lc-components/FieldYear/meta.json +129 -129
  351. package/lib/lowcode/view/lc-components/Form/FunctionDesign.js +2 -1
  352. package/lib/lowcode/view/lc-components/Form/index.js +42 -33
  353. package/lib/lowcode/view/lc-components/Form/meta.json +645 -644
  354. package/lib/lowcode/view/lc-components/GroupTree/FunctionDesign.js +17 -0
  355. package/lib/lowcode/view/lc-components/GroupTree/FunctionLive.js +17 -0
  356. package/lib/lowcode/view/lc-components/GroupTree/FunctionPreview.js +17 -0
  357. package/lib/lowcode/view/lc-components/GroupTree/index.js +209 -0
  358. package/lib/lowcode/view/lc-components/GroupTree/meta.json +89 -0
  359. package/lib/lowcode/view/lc-components/Iframe/meta.json +33 -32
  360. package/lib/lowcode/view/lc-components/ImEx/index.js +25 -25
  361. package/lib/lowcode/view/lc-components/ImEx/index.less +7 -7
  362. package/lib/lowcode/view/lc-components/ImEx/meta.json +134 -134
  363. package/lib/lowcode/view/lc-components/Image/meta.json +115 -114
  364. package/lib/lowcode/view/lc-components/JSX/RuntimeComp.js +4 -4
  365. package/lib/lowcode/view/lc-components/JSX/meta.json +28 -28
  366. package/lib/lowcode/view/lc-components/Layout/index.js +16 -16
  367. package/lib/lowcode/view/lc-components/Layout/index.less +5 -5
  368. package/lib/lowcode/view/lc-components/Layout/meta.json +107 -107
  369. package/lib/lowcode/view/lc-components/Link/meta.json +113 -112
  370. package/lib/lowcode/view/lc-components/Page/meta.json +61 -61
  371. package/lib/lowcode/view/lc-components/PageContent/meta.json +9 -9
  372. package/lib/lowcode/view/lc-components/PageFooter/meta.json +9 -9
  373. package/lib/lowcode/view/lc-components/PageHeader/meta.json +9 -9
  374. package/lib/lowcode/view/lc-components/PageLayout/meta.json +59 -59
  375. package/lib/lowcode/view/lc-components/Section/index.less +7 -7
  376. package/lib/lowcode/view/lc-components/Section/meta.json +108 -108
  377. package/lib/lowcode/view/lc-components/Split/meta.json +53 -53
  378. package/lib/lowcode/view/lc-components/Table/index.js +149 -148
  379. package/lib/lowcode/view/lc-components/Table/meta.json +450 -450
  380. package/lib/lowcode/view/lc-components/Tabs/index.js +23 -23
  381. package/lib/lowcode/view/lc-components/Tabs/meta.json +113 -113
  382. package/lib/lowcode/view/lc-components/Text/meta.json +56 -56
  383. package/lib/lowcode/view/lc-components/Tree/index.js +102 -107
  384. package/lib/lowcode/view/lc-components/Tree/index.less +4 -4
  385. package/lib/lowcode/view/lc-components/Tree/meta.json +357 -357
  386. package/lib/lowcode/view/style/canvas.less +5 -5
  387. package/lib/lowcode/view/style/loading.less +98 -98
  388. package/lib/lowcode/view/style/page.less +7 -7
  389. package/lib/upload/FilesWall/index.js +13 -13
  390. package/lib/upload/FilesWall/index.less +74 -74
  391. package/lib/upload/Form/index.less +7 -7
  392. package/lib/upload/FormItem/index.js +15 -15
  393. package/lib/utils/form.js +21 -21
  394. package/lib/utils/grid.js +2 -2
  395. package/lowcode.js +1 -1
  396. package/package.json +175 -175
  397. package/upload.js +1 -1
  398. package/utils.js +1 -1
  399. package/es/lowcode/view/lc-components/Form/index.less +0 -5
  400. package/lib/lowcode/view/lc-components/Form/index.less +0 -5
@@ -1,37 +1,37 @@
1
- .lc-painter-panel-section-style-panel {
2
- height: 100%;
3
- overflow-y: auto;
4
-
5
- .style-panel {
6
- display: flex;
7
- flex-direction: column;
8
- gap: 6px;
9
- }
10
-
11
- .style-editor {
12
- margin-bottom: 8px;
13
- padding-left: 12px;
14
- }
15
-
16
- .label-over {
17
- color: #006cff;
18
- }
19
-
20
- .row {
21
- display: flex;
22
- align-items: center;
23
- gap: 4px;
24
- }
25
-
26
- .row:not(:last-child) {
27
- margin-bottom: 8px;
28
- }
29
-
30
- .svg-label {
31
- width: 20px;
32
- height: 20px;
33
- display: flex;
34
- align-items: center;
35
- justify-content: flex-end;
36
- }
37
- }
1
+ .lc-painter-panel-section-style-panel {
2
+ height: 100%;
3
+ overflow-y: auto;
4
+
5
+ .style-panel {
6
+ display: flex;
7
+ flex-direction: column;
8
+ gap: 6px;
9
+ }
10
+
11
+ .style-editor {
12
+ margin-bottom: 8px;
13
+ padding-left: 12px;
14
+ }
15
+
16
+ .label-over {
17
+ color: #006cff;
18
+ }
19
+
20
+ .row {
21
+ display: flex;
22
+ align-items: center;
23
+ gap: 4px;
24
+ }
25
+
26
+ .row:not(:last-child) {
27
+ margin-bottom: 8px;
28
+ }
29
+
30
+ .svg-label {
31
+ width: 20px;
32
+ height: 20px;
33
+ display: flex;
34
+ align-items: center;
35
+ justify-content: flex-end;
36
+ }
37
+ }
@@ -1,90 +1,90 @@
1
- .lc-painter-panel-section-tabitems {
2
- display: flex;
3
- align-items: center;
4
- flex-direction: column;
5
-
6
- .tabs-box {
7
- width: 100%;
8
- .tabitem {
9
- height: 28px;
10
- background: #fff;
11
- border: 1px solid #e5e6e8;
12
- border-radius: 6px;
13
- margin-bottom: 8px;
14
- display: flex;
15
- align-items: center;
16
- justify-content: space-between;
17
- font-size: 12px;
18
- gap: 2px;
19
-
20
- .tabitem-left {
21
- display: flex;
22
- align-items: center;
23
- padding: 0 4px;
24
-
25
- .dragicon {
26
- cursor: move;
27
- }
28
- }
29
-
30
- .tabitem-right {
31
- display: flex;
32
- align-items: center;
33
- padding: 0 4px;
34
- gap: 4px;
35
-
36
- .tabitem-action {
37
- cursor: pointer;
38
- }
39
- }
40
- }
41
- }
42
-
43
- .tabs-actions {
44
- width: 100%;
45
- .tabs-action {
46
- cursor: pointer;
47
- height: 28px;
48
- background: #fff;
49
- border: 1px solid #e5e6e8;
50
- border-radius: 6px;
51
- display: flex;
52
- justify-content: center;
53
- align-items: center;
54
- font-size: 12px;
55
- gap: 4px;
56
- }
57
- }
58
- }
59
-
60
- .lc-painter-panel-section-tabitems-editor {
61
- width: 240px;
62
- display: flex;
63
- flex-direction: column;
64
- gap: 8px;
65
- .item {
66
- display: flex;
67
- gap: 2px;
68
- align-items: center;
69
- font-size: 12px;
70
-
71
- .left {
72
- width: 55px;
73
- }
74
-
75
- .right {
76
- flex: 1;
77
- }
78
- }
79
- }
80
-
81
- .lc-painter-panel-section-tabitems-popconfirm {
82
- :global {
83
- .ant-popover-message-title {
84
- padding: 0;
85
- }
86
- .ant-popover-buttons{
87
- display: none;
88
- }
89
- }
90
- }
1
+ .lc-painter-panel-section-tabitems {
2
+ display: flex;
3
+ align-items: center;
4
+ flex-direction: column;
5
+
6
+ .tabs-box {
7
+ width: 100%;
8
+ .tabitem {
9
+ height: 28px;
10
+ background: #fff;
11
+ border: 1px solid #e5e6e8;
12
+ border-radius: 6px;
13
+ margin-bottom: 8px;
14
+ display: flex;
15
+ align-items: center;
16
+ justify-content: space-between;
17
+ font-size: 12px;
18
+ gap: 2px;
19
+
20
+ .tabitem-left {
21
+ display: flex;
22
+ align-items: center;
23
+ padding: 0 4px;
24
+
25
+ .dragicon {
26
+ cursor: move;
27
+ }
28
+ }
29
+
30
+ .tabitem-right {
31
+ display: flex;
32
+ align-items: center;
33
+ padding: 0 4px;
34
+ gap: 4px;
35
+
36
+ .tabitem-action {
37
+ cursor: pointer;
38
+ }
39
+ }
40
+ }
41
+ }
42
+
43
+ .tabs-actions {
44
+ width: 100%;
45
+ .tabs-action {
46
+ cursor: pointer;
47
+ height: 28px;
48
+ background: #fff;
49
+ border: 1px solid #e5e6e8;
50
+ border-radius: 6px;
51
+ display: flex;
52
+ justify-content: center;
53
+ align-items: center;
54
+ font-size: 12px;
55
+ gap: 4px;
56
+ }
57
+ }
58
+ }
59
+
60
+ .lc-painter-panel-section-tabitems-editor {
61
+ width: 240px;
62
+ display: flex;
63
+ flex-direction: column;
64
+ gap: 8px;
65
+ .item {
66
+ display: flex;
67
+ gap: 2px;
68
+ align-items: center;
69
+ font-size: 12px;
70
+
71
+ .left {
72
+ width: 55px;
73
+ }
74
+
75
+ .right {
76
+ flex: 1;
77
+ }
78
+ }
79
+ }
80
+
81
+ .lc-painter-panel-section-tabitems-popconfirm {
82
+ :global {
83
+ .ant-popover-message-title {
84
+ padding: 0;
85
+ }
86
+ .ant-popover-buttons{
87
+ display: none;
88
+ }
89
+ }
90
+ }
@@ -1,19 +1,19 @@
1
- .lc-painter-components-treedragdrop {
2
-
3
- user-select: none;
4
-
5
- &.left-side {
6
- border-top: 2px solid #1890ff;
7
- }
8
-
9
- &.right-side {
10
- border-bottom: 2px solid #1890ff;
11
- }
12
-
13
- &.inside-side {
14
- border: 2px solid #1890ff;
15
- }
16
- &.ondrag{
17
- font-weight: bold;
18
- }
19
- }
1
+ .lc-painter-components-treedragdrop {
2
+
3
+ user-select: none;
4
+
5
+ &.left-side {
6
+ border-top: 2px solid #1890ff;
7
+ }
8
+
9
+ &.right-side {
10
+ border-bottom: 2px solid #1890ff;
11
+ }
12
+
13
+ &.inside-side {
14
+ border: 2px solid #1890ff;
15
+ }
16
+ &.ondrag{
17
+ font-weight: bold;
18
+ }
19
+ }
@@ -51,10 +51,10 @@ var LCBox = function LCBox(_ref) {
51
51
  }, children));
52
52
  };
53
53
  LCBox.propTypes = {
54
- /**
55
- * @name 唯一标识
56
- * @type string
57
- * @disabled true
54
+ /**
55
+ * @name 唯一标识
56
+ * @type string
57
+ * @disabled true
58
58
  */
59
59
  id: PropTypes.string.isRequired
60
60
  };
@@ -1,14 +1,14 @@
1
- .lc-component-box {
2
- &-design.placeholder {
3
- width: 100%;
4
- height: 100%;
5
- min-height: 60px;
6
- background-color: #f0f0f0;
7
- border: 1px dotted;
8
- color: #a7b1bd;
9
- display: flex;
10
- align-items: center;
11
- justify-content: center;
12
- font-size: 14px;
13
- }
14
- }
1
+ .lc-component-box {
2
+ &-design.placeholder {
3
+ width: 100%;
4
+ height: 100%;
5
+ min-height: 60px;
6
+ background-color: #f0f0f0;
7
+ border: 1px dotted;
8
+ color: #a7b1bd;
9
+ display: flex;
10
+ align-items: center;
11
+ justify-content: center;
12
+ font-size: 14px;
13
+ }
14
+ }
@@ -1,40 +1,40 @@
1
- {
2
- "component": "Box",
3
- "name": "盒子",
4
- "desc": "盒子是一个用于包裹其他组件的包装器,是一个单纯的容器组件,可以对其设置样式达到想要的效果。",
5
- "icon": "icon-box",
6
- "group": "container",
7
- "groupName": "布局",
8
- "order": 3,
9
- "props": [
10
- {
11
- "key": "id",
12
- "name": "唯一标识",
13
- "type": "string",
14
- "disabled": true
15
- }
16
- ],
17
- "css": "height:100%; width: auto; background-color: #fff;",
18
- "advance": {
19
- "events": [
20
- {
21
- "key": "onMount",
22
- "name": "组件首次渲染时",
23
- "desc": "在组件首次渲染时,执行方法",
24
- "func": "function onMount() {\n\t\n}"
25
- },
26
- {
27
- "key": "onUnmount",
28
- "name": "组件卸载时",
29
- "desc": "在组件卸载时,执行方法。",
30
- "func": "function onUnmount() {\n\t\n}"
31
- },
32
- {
33
- "key": "onClick",
34
- "name": "点击事件",
35
- "desc": "点击组件时,执行方法",
36
- "func": "function onClick(e) {\n\t\n}"
37
- }
38
- ]
39
- }
40
- }
1
+ {
2
+ "component": "Box",
3
+ "name": "盒子",
4
+ "desc": "盒子是一个用于包裹其他组件的包装器,是一个单纯的容器组件,可以对其设置样式达到想要的效果。",
5
+ "icon": "icon-box",
6
+ "group": "container",
7
+ "groupName": "布局",
8
+ "order": 3,
9
+ "props": [
10
+ {
11
+ "key": "id",
12
+ "name": "唯一标识",
13
+ "type": "string",
14
+ "disabled": true
15
+ }
16
+ ],
17
+ "css": "height:100%; width: auto; background-color: #fff;",
18
+ "advance": {
19
+ "events": [
20
+ {
21
+ "key": "onMount",
22
+ "name": "组件首次渲染时",
23
+ "desc": "在组件首次渲染时,执行方法",
24
+ "func": "function onMount() {\n\t\n}"
25
+ },
26
+ {
27
+ "key": "onUnmount",
28
+ "name": "组件卸载时",
29
+ "desc": "在组件卸载时,执行方法。",
30
+ "func": "function onUnmount() {\n\t\n}"
31
+ },
32
+ {
33
+ "key": "onClick",
34
+ "name": "点击事件",
35
+ "desc": "点击组件时,执行方法",
36
+ "func": "function onClick(e) {\n\t\n}"
37
+ }
38
+ ]
39
+ }
40
+ }
@@ -70,53 +70,53 @@ var LCButton = function LCButton(_ref) {
70
70
  }) : null, title));
71
71
  };
72
72
  LCButton.propTypes = {
73
- /**
74
- * @name 唯一标识
75
- * @type string
76
- * @disabled true
73
+ /**
74
+ * @name 唯一标识
75
+ * @type string
76
+ * @disabled true
77
77
  */
78
78
  id: PropTypes.string.isRequired,
79
- /**
80
- * @name 按钮标题
81
- * @type string
82
- * @default 12:3:9
79
+ /**
80
+ * @name 按钮标题
81
+ * @type string
82
+ * @default 12:3:9
83
83
  */
84
84
  title: PropTypes.string,
85
- /**
86
- * @name 按钮类型
87
- * @type _ButtonType
88
- * @default 'default'
85
+ /**
86
+ * @name 按钮类型
87
+ * @type _ButtonType
88
+ * @default 'default'
89
89
  */
90
90
  type: PropTypes.oneOf(['default', 'primary', 'dashed', 'danger']),
91
- /**
92
- * @name 按钮大小
93
- * @type segmented
94
- * @options [{ "label": "小", "value": "small"}, { "label": "中", "value": "middle" }, { "label": "大", "value": "large" }]
95
- * @default 'default'
91
+ /**
92
+ * @name 按钮大小
93
+ * @type segmented
94
+ * @options [{ "label": "小", "value": "small"}, { "label": "中", "value": "middle" }, { "label": "大", "value": "large" }]
95
+ * @default 'default'
96
96
  */
97
97
  size: PropTypes.oneOf(['small', 'default', 'large']),
98
- /**
99
- * @name 将按钮宽度调整为其父宽度的选项
100
- * @type boolean
101
- * @default false
98
+ /**
99
+ * @name 将按钮宽度调整为其父宽度的选项
100
+ * @type boolean
101
+ * @default false
102
102
  */
103
103
  block: PropTypes.bool,
104
- /**
105
- * @name 资源串
106
- * @type string
104
+ /**
105
+ * @name 资源串
106
+ * @type string
107
107
  */
108
108
  serial: PropTypes.string,
109
- /**
110
- * @name 资源串效果
111
- * @type segmented
112
- * @options [{ "label": "隐藏", "value": "hidden" }, { "label": "禁用", "value": "disable"}]
113
- * @default 'hidden'
109
+ /**
110
+ * @name 资源串效果
111
+ * @type segmented
112
+ * @options [{ "label": "隐藏", "value": "hidden" }, { "label": "禁用", "value": "disable"}]
113
+ * @default 'hidden'
114
114
  */
115
115
  serialEffect: PropTypes.oneOf(['disable', 'hidden']),
116
- /**
117
- * @name 幽灵按钮
118
- * @type boolean
119
- * @default false
116
+ /**
117
+ * @name 幽灵按钮
118
+ * @type boolean
119
+ * @default false
120
120
  */
121
121
  ghost: PropTypes.bool
122
122
  };