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

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 (370) 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/LdCard/index.js +147 -67
  5. package/es/components/LdGrid/index.js +4 -4
  6. package/es/components/LdGridForm/index.less +7 -7
  7. package/es/components/LdTree/index.less +42 -40
  8. package/es/helper/action.js +6 -6
  9. package/es/helper/form.js +14 -14
  10. package/es/helper/index.less +7 -7
  11. package/es/locales/zh-CN.js +4 -2
  12. package/es/lowcode/constants/api-url.js +87 -87
  13. package/es/lowcode/engine/meta/cardlist.props.default.json +27 -7
  14. package/es/lowcode/engine/meta/cardlist.props.json +252 -71
  15. package/es/lowcode/engine/meta/components-list.json +24 -0
  16. package/es/lowcode/engine/meta/iframe.props.default.json +1 -2
  17. package/es/lowcode/engine/meta/iframe.props.json +2 -3
  18. package/es/lowcode/engine/meta/image.props.default.json +3 -3
  19. package/es/lowcode/engine/meta/image.props.json +49 -15
  20. package/es/lowcode/engine/meta/js-editor/auto-complete.json +42 -29
  21. package/es/lowcode/engine/meta/link.props.default.json +1 -2
  22. package/es/lowcode/engine/meta/link.props.json +8 -9
  23. package/es/lowcode/engine/provider/ContextProvider/index.js +44 -44
  24. package/es/lowcode/engine/tools/dataProcess.js +76 -76
  25. package/es/lowcode/painter/Components.js +2 -2
  26. package/es/lowcode/painter/Ribbon.js +12 -0
  27. package/es/lowcode/painter/components/Collapse.js +26 -26
  28. package/es/lowcode/painter/components/ColorInput.js +24 -24
  29. package/es/lowcode/painter/components/ListEditor.js +24 -24
  30. package/es/lowcode/painter/components/NumberInput.js +28 -28
  31. package/es/lowcode/painter/components/PanelItem.js +24 -24
  32. package/es/lowcode/painter/components/PopConfirm.js +8 -8
  33. package/es/lowcode/painter/components/PopForm.js +27 -27
  34. package/es/lowcode/painter/components/RuleInput.js +30 -30
  35. package/es/lowcode/painter/components/SortBox.js +22 -22
  36. package/es/lowcode/painter/components/code-editor/BaseEditor.js +34 -33
  37. package/es/lowcode/painter/components/code-editor/CssEditor.js +25 -25
  38. package/es/lowcode/painter/components/code-editor/FullScreenEditor.js +23 -23
  39. package/es/lowcode/painter/components/code-editor/JSEditor.js +20 -20
  40. package/es/lowcode/painter/components/code-editor/JsonEditor.js +25 -25
  41. package/es/lowcode/painter/panel-section/ActionsEditor/ActionEditor.js +20 -2
  42. package/es/lowcode/painter/panel-section/ActionsEditor/index.js +18 -3
  43. package/es/lowcode/painter/panel-section/ComplexPop.js +1 -1
  44. package/es/lowcode/painter/panel-section/GroupClassSelector.js +1 -1
  45. package/es/lowcode/painter/panel-section/Icon.js +23 -23
  46. package/es/lowcode/painter/panel-section/IconSelector.js +16 -16
  47. package/es/lowcode/painter/panel-section/LayoutRatio.js +21 -21
  48. package/es/lowcode/painter/panel-section/StylePanel/BackGround.js +2 -2
  49. package/es/lowcode/painter/panel-section/StylePanel/Border.js +2 -2
  50. package/es/lowcode/painter/panel-section/StylePanel/BorderRadius.js +2 -2
  51. package/es/lowcode/painter/panel-section/StylePanel/BorderRadiusSelector.js +2 -2
  52. package/es/lowcode/painter/panel-section/StylePanel/BorderSelector.js +2 -2
  53. package/es/lowcode/painter/panel-section/StylePanel/Display.js +2 -2
  54. package/es/lowcode/painter/panel-section/StylePanel/Font.js +2 -2
  55. package/es/lowcode/painter/panel-section/StylePanel/FontEditor.js +2 -2
  56. package/es/lowcode/painter/panel-section/StylePanel/GapSelector.js +2 -2
  57. package/es/lowcode/painter/panel-section/StylePanel/HighLightPanel.js +2 -2
  58. package/es/lowcode/painter/panel-section/StylePanel/HighLigthtSpan.js +2 -2
  59. package/es/lowcode/painter/panel-section/StylePanel/HightLightSvg.js +2 -2
  60. package/es/lowcode/painter/panel-section/StylePanel/MainPanel.js +3 -2
  61. package/es/lowcode/painter/panel-section/StylePanel/Margin.js +2 -2
  62. package/es/lowcode/painter/panel-section/StylePanel/Opacity.js +2 -2
  63. package/es/lowcode/painter/panel-section/StylePanel/Padding.js +2 -2
  64. package/es/lowcode/painter/panel-section/StylePanel/Pointer.js +2 -2
  65. package/es/lowcode/painter/panel-section/StylePanel/Shadow.js +2 -2
  66. package/es/lowcode/painter/panel-section/StylePanel/Size.js +2 -2
  67. package/es/lowcode/painter/panel-section/StylePanel/StyleContext.js +2 -2
  68. package/es/lowcode/painter/panel-section/StylePanel/StyleRow.js +2 -2
  69. package/es/lowcode/painter/panel-section/StylePanel/WidthHeight.js +2 -2
  70. package/es/lowcode/painter/panel-section/StylePanel/index.js +15 -15
  71. package/es/lowcode/painter/panel-section/TableTopFilter.js +3 -3
  72. package/es/lowcode/painter/style/action-bind-modal.less +102 -102
  73. package/es/lowcode/painter/style/actions-editor.less +15 -15
  74. package/es/lowcode/painter/style/border-editor.less +36 -36
  75. package/es/lowcode/painter/style/border-radius-selector.less +42 -42
  76. package/es/lowcode/painter/style/border-selector.less +39 -39
  77. package/es/lowcode/painter/style/button-type.less +5 -5
  78. package/es/lowcode/painter/style/collapse.less +28 -28
  79. package/es/lowcode/painter/style/color-input.less +19 -19
  80. package/es/lowcode/painter/style/components.less +91 -91
  81. package/es/lowcode/painter/style/design.less +166 -166
  82. package/es/lowcode/painter/style/display.less +17 -17
  83. package/es/lowcode/painter/style/dragdrop.less +10 -10
  84. package/es/lowcode/painter/style/fields-setting.less +25 -25
  85. package/es/lowcode/painter/style/font-editor.less +9 -9
  86. package/es/lowcode/painter/style/fullscreen-editor.less +17 -17
  87. package/es/lowcode/painter/style/icon-selector.less +22 -22
  88. package/es/lowcode/painter/style/icon.less +10 -10
  89. package/es/lowcode/painter/style/impexp.less +7 -7
  90. package/es/lowcode/painter/style/index.less +6 -6
  91. package/es/lowcode/painter/style/layout-ratio.less +51 -51
  92. package/es/lowcode/painter/style/list-editor.less +95 -95
  93. package/es/lowcode/painter/style/number-input.less +17 -17
  94. package/es/lowcode/painter/style/outline.less +28 -28
  95. package/es/lowcode/painter/style/page-layout-display.less +27 -27
  96. package/es/lowcode/painter/style/page-vars.less +25 -25
  97. package/es/lowcode/painter/style/panel-attrs.less +43 -43
  98. package/es/lowcode/painter/style/panel-item.less +54 -54
  99. package/es/lowcode/painter/style/panel.less +98 -98
  100. package/es/lowcode/painter/style/pop-confirm.less +17 -17
  101. package/es/lowcode/painter/style/pop-form.less +19 -19
  102. package/es/lowcode/painter/style/radio.less +24 -24
  103. package/es/lowcode/painter/style/ribbon.less +5 -5
  104. package/es/lowcode/painter/style/rule-input.less +12 -12
  105. package/es/lowcode/painter/style/split-display.less +18 -18
  106. package/es/lowcode/painter/style/style-panel.less +37 -37
  107. package/es/lowcode/painter/style/tabitems.less +90 -90
  108. package/es/lowcode/painter/style/treedragdrop.less +19 -19
  109. package/es/lowcode/view/lc-components/Box/index.js +4 -4
  110. package/es/lowcode/view/lc-components/Box/index.less +14 -14
  111. package/es/lowcode/view/lc-components/Box/meta.json +40 -40
  112. package/es/lowcode/view/lc-components/Button/index.js +33 -33
  113. package/es/lowcode/view/lc-components/Button/meta.json +127 -127
  114. package/es/lowcode/view/lc-components/Button/style.less +2 -2
  115. package/es/lowcode/view/lc-components/CardList/index.js +476 -12
  116. package/es/lowcode/view/lc-components/CardList/meta.json +335 -154
  117. package/es/lowcode/view/lc-components/Dialog/index.js +13 -13
  118. package/es/lowcode/view/lc-components/Dialog/index.less +12 -12
  119. package/es/lowcode/view/lc-components/Dialog/meta.json +204 -204
  120. package/es/lowcode/view/lc-components/Drawer/index.js +13 -13
  121. package/es/lowcode/view/lc-components/Drawer/index.less +13 -13
  122. package/es/lowcode/view/lc-components/Drawer/meta.json +242 -242
  123. package/es/lowcode/view/lc-components/FieldColor/meta.json +157 -157
  124. package/es/lowcode/view/lc-components/FieldComplex/meta.json +140 -140
  125. package/es/lowcode/view/lc-components/FieldDate/meta.json +141 -141
  126. package/es/lowcode/view/lc-components/FieldDict/meta.json +138 -138
  127. package/es/lowcode/view/lc-components/FieldEditor/meta.json +138 -138
  128. package/es/lowcode/view/lc-components/FieldGroup/meta.json +167 -167
  129. package/es/lowcode/view/lc-components/FieldNumber/meta.json +143 -143
  130. package/es/lowcode/view/lc-components/FieldRadio/meta.json +115 -115
  131. package/es/lowcode/view/lc-components/FieldRegion/meta.json +121 -121
  132. package/es/lowcode/view/lc-components/FieldSelect/meta.json +152 -152
  133. package/es/lowcode/view/lc-components/FieldString/meta.json +152 -152
  134. package/es/lowcode/view/lc-components/FieldSwitch/meta.json +125 -125
  135. package/es/lowcode/view/lc-components/FieldTextarea/meta.json +143 -143
  136. package/es/lowcode/view/lc-components/FieldUpload/meta.json +165 -165
  137. package/es/lowcode/view/lc-components/FieldUser/meta.json +176 -176
  138. package/es/lowcode/view/lc-components/FieldYear/meta.json +129 -129
  139. package/es/lowcode/view/lc-components/Form/index.js +20 -20
  140. package/es/lowcode/view/lc-components/Form/meta.json +645 -645
  141. package/es/lowcode/view/lc-components/GroupTree/index.js +29 -26
  142. package/es/lowcode/view/lc-components/GroupTree/meta.json +89 -89
  143. package/es/lowcode/view/lc-components/Iframe/index.js +57 -6
  144. package/es/lowcode/view/lc-components/Iframe/meta.json +32 -33
  145. package/es/lowcode/view/lc-components/ImEx/index.js +25 -25
  146. package/es/lowcode/view/lc-components/ImEx/index.less +7 -7
  147. package/es/lowcode/view/lc-components/ImEx/meta.json +134 -134
  148. package/es/lowcode/view/lc-components/Image/index.js +61 -5
  149. package/es/lowcode/view/lc-components/Image/index.less +27 -0
  150. package/es/lowcode/view/lc-components/Image/meta.json +149 -115
  151. package/es/lowcode/view/lc-components/JSX/RuntimeComp.js +4 -4
  152. package/es/lowcode/view/lc-components/JSX/meta.json +28 -28
  153. package/es/lowcode/view/lc-components/Layout/index.js +16 -16
  154. package/es/lowcode/view/lc-components/Layout/index.less +5 -5
  155. package/es/lowcode/view/lc-components/Layout/meta.json +107 -107
  156. package/es/lowcode/view/lc-components/Link/index.js +34 -4
  157. package/es/lowcode/view/lc-components/Link/index.less +15 -0
  158. package/es/lowcode/view/lc-components/Link/meta.json +112 -113
  159. package/es/lowcode/view/lc-components/Page/meta.json +61 -61
  160. package/es/lowcode/view/lc-components/PageContent/meta.json +9 -9
  161. package/es/lowcode/view/lc-components/PageFooter/meta.json +9 -9
  162. package/es/lowcode/view/lc-components/PageHeader/meta.json +9 -9
  163. package/es/lowcode/view/lc-components/PageLayout/meta.json +59 -59
  164. package/es/lowcode/view/lc-components/Section/index.less +7 -7
  165. package/es/lowcode/view/lc-components/Section/meta.json +108 -108
  166. package/es/lowcode/view/lc-components/Split/meta.json +53 -53
  167. package/es/lowcode/view/lc-components/Table/index.js +149 -149
  168. package/es/lowcode/view/lc-components/Table/meta.json +450 -450
  169. package/es/lowcode/view/lc-components/Tabs/index.js +23 -23
  170. package/es/lowcode/view/lc-components/Tabs/meta.json +113 -113
  171. package/es/lowcode/view/lc-components/Text/meta.json +56 -56
  172. package/es/lowcode/view/lc-components/Tree/index.js +96 -96
  173. package/es/lowcode/view/lc-components/Tree/index.less +4 -4
  174. package/es/lowcode/view/lc-components/Tree/meta.json +357 -357
  175. package/es/lowcode/view/style/canvas.less +5 -5
  176. package/es/lowcode/view/style/loading.less +98 -98
  177. package/es/lowcode/view/style/page.less +7 -7
  178. package/es/upload/FilesWall/index.js +13 -13
  179. package/es/upload/FilesWall/index.less +74 -74
  180. package/es/upload/Form/index.less +7 -7
  181. package/es/upload/FormItem/index.js +15 -15
  182. package/es/utils/form.js +21 -21
  183. package/lib/components/LDActions/index.less +68 -68
  184. package/lib/components/LdCard/index.js +146 -66
  185. package/lib/components/LdGrid/index.js +4 -4
  186. package/lib/components/LdGridForm/index.less +7 -7
  187. package/lib/components/LdTree/index.less +42 -40
  188. package/lib/helper/action.js +6 -6
  189. package/lib/helper/form.js +14 -14
  190. package/lib/helper/index.less +7 -7
  191. package/lib/locales/zh-CN.js +4 -2
  192. package/lib/lowcode/constants/api-url.js +87 -87
  193. package/lib/lowcode/engine/meta/cardlist.props.default.json +27 -7
  194. package/lib/lowcode/engine/meta/cardlist.props.json +252 -71
  195. package/lib/lowcode/engine/meta/components-list.json +24 -0
  196. package/lib/lowcode/engine/meta/iframe.props.default.json +1 -2
  197. package/lib/lowcode/engine/meta/iframe.props.json +2 -3
  198. package/lib/lowcode/engine/meta/image.props.default.json +3 -3
  199. package/lib/lowcode/engine/meta/image.props.json +49 -15
  200. package/lib/lowcode/engine/meta/js-editor/auto-complete.json +42 -29
  201. package/lib/lowcode/engine/meta/link.props.default.json +1 -2
  202. package/lib/lowcode/engine/meta/link.props.json +8 -9
  203. package/lib/lowcode/engine/provider/ContextProvider/index.js +44 -44
  204. package/lib/lowcode/engine/tools/dataProcess.js +76 -76
  205. package/lib/lowcode/painter/Components.js +2 -2
  206. package/lib/lowcode/painter/Ribbon.js +12 -0
  207. package/lib/lowcode/painter/components/Collapse.js +26 -26
  208. package/lib/lowcode/painter/components/ColorInput.js +24 -24
  209. package/lib/lowcode/painter/components/ListEditor.js +24 -24
  210. package/lib/lowcode/painter/components/NumberInput.js +28 -28
  211. package/lib/lowcode/painter/components/PanelItem.js +24 -24
  212. package/lib/lowcode/painter/components/PopConfirm.js +8 -8
  213. package/lib/lowcode/painter/components/PopForm.js +27 -27
  214. package/lib/lowcode/painter/components/RuleInput.js +30 -30
  215. package/lib/lowcode/painter/components/SortBox.js +22 -22
  216. package/lib/lowcode/painter/components/code-editor/BaseEditor.js +34 -33
  217. package/lib/lowcode/painter/components/code-editor/CssEditor.js +25 -25
  218. package/lib/lowcode/painter/components/code-editor/FullScreenEditor.js +23 -23
  219. package/lib/lowcode/painter/components/code-editor/JSEditor.js +20 -20
  220. package/lib/lowcode/painter/components/code-editor/JsonEditor.js +25 -25
  221. package/lib/lowcode/painter/panel-section/ActionsEditor/ActionEditor.js +19 -1
  222. package/lib/lowcode/painter/panel-section/ActionsEditor/index.js +18 -3
  223. package/lib/lowcode/painter/panel-section/ComplexPop.js +1 -1
  224. package/lib/lowcode/painter/panel-section/GroupClassSelector.js +1 -1
  225. package/lib/lowcode/painter/panel-section/Icon.js +23 -23
  226. package/lib/lowcode/painter/panel-section/IconSelector.js +16 -16
  227. package/lib/lowcode/painter/panel-section/LayoutRatio.js +21 -21
  228. package/lib/lowcode/painter/panel-section/StylePanel/BackGround.js +2 -2
  229. package/lib/lowcode/painter/panel-section/StylePanel/Border.js +2 -2
  230. package/lib/lowcode/painter/panel-section/StylePanel/BorderRadius.js +2 -2
  231. package/lib/lowcode/painter/panel-section/StylePanel/BorderRadiusSelector.js +2 -2
  232. package/lib/lowcode/painter/panel-section/StylePanel/BorderSelector.js +2 -2
  233. package/lib/lowcode/painter/panel-section/StylePanel/Display.js +2 -2
  234. package/lib/lowcode/painter/panel-section/StylePanel/Font.js +2 -2
  235. package/lib/lowcode/painter/panel-section/StylePanel/FontEditor.js +2 -2
  236. package/lib/lowcode/painter/panel-section/StylePanel/GapSelector.js +2 -2
  237. package/lib/lowcode/painter/panel-section/StylePanel/HighLightPanel.js +2 -2
  238. package/lib/lowcode/painter/panel-section/StylePanel/HighLigthtSpan.js +2 -2
  239. package/lib/lowcode/painter/panel-section/StylePanel/HightLightSvg.js +2 -2
  240. package/lib/lowcode/painter/panel-section/StylePanel/MainPanel.js +3 -2
  241. package/lib/lowcode/painter/panel-section/StylePanel/Margin.js +2 -2
  242. package/lib/lowcode/painter/panel-section/StylePanel/Opacity.js +2 -2
  243. package/lib/lowcode/painter/panel-section/StylePanel/Padding.js +2 -2
  244. package/lib/lowcode/painter/panel-section/StylePanel/Pointer.js +2 -2
  245. package/lib/lowcode/painter/panel-section/StylePanel/Shadow.js +2 -2
  246. package/lib/lowcode/painter/panel-section/StylePanel/Size.js +2 -2
  247. package/lib/lowcode/painter/panel-section/StylePanel/StyleContext.js +2 -2
  248. package/lib/lowcode/painter/panel-section/StylePanel/StyleRow.js +2 -2
  249. package/lib/lowcode/painter/panel-section/StylePanel/WidthHeight.js +2 -2
  250. package/lib/lowcode/painter/panel-section/StylePanel/index.js +15 -15
  251. package/lib/lowcode/painter/panel-section/TableTopFilter.js +3 -3
  252. package/lib/lowcode/painter/style/action-bind-modal.less +102 -102
  253. package/lib/lowcode/painter/style/actions-editor.less +15 -15
  254. package/lib/lowcode/painter/style/border-editor.less +36 -36
  255. package/lib/lowcode/painter/style/border-radius-selector.less +42 -42
  256. package/lib/lowcode/painter/style/border-selector.less +39 -39
  257. package/lib/lowcode/painter/style/button-type.less +5 -5
  258. package/lib/lowcode/painter/style/collapse.less +28 -28
  259. package/lib/lowcode/painter/style/color-input.less +19 -19
  260. package/lib/lowcode/painter/style/components.less +91 -91
  261. package/lib/lowcode/painter/style/design.less +166 -166
  262. package/lib/lowcode/painter/style/display.less +17 -17
  263. package/lib/lowcode/painter/style/dragdrop.less +10 -10
  264. package/lib/lowcode/painter/style/fields-setting.less +25 -25
  265. package/lib/lowcode/painter/style/font-editor.less +9 -9
  266. package/lib/lowcode/painter/style/fullscreen-editor.less +17 -17
  267. package/lib/lowcode/painter/style/icon-selector.less +22 -22
  268. package/lib/lowcode/painter/style/icon.less +10 -10
  269. package/lib/lowcode/painter/style/impexp.less +7 -7
  270. package/lib/lowcode/painter/style/index.less +6 -6
  271. package/lib/lowcode/painter/style/layout-ratio.less +51 -51
  272. package/lib/lowcode/painter/style/list-editor.less +95 -95
  273. package/lib/lowcode/painter/style/number-input.less +17 -17
  274. package/lib/lowcode/painter/style/outline.less +28 -28
  275. package/lib/lowcode/painter/style/page-layout-display.less +27 -27
  276. package/lib/lowcode/painter/style/page-vars.less +25 -25
  277. package/lib/lowcode/painter/style/panel-attrs.less +43 -43
  278. package/lib/lowcode/painter/style/panel-item.less +54 -54
  279. package/lib/lowcode/painter/style/panel.less +98 -98
  280. package/lib/lowcode/painter/style/pop-confirm.less +17 -17
  281. package/lib/lowcode/painter/style/pop-form.less +19 -19
  282. package/lib/lowcode/painter/style/radio.less +24 -24
  283. package/lib/lowcode/painter/style/ribbon.less +5 -5
  284. package/lib/lowcode/painter/style/rule-input.less +12 -12
  285. package/lib/lowcode/painter/style/split-display.less +18 -18
  286. package/lib/lowcode/painter/style/style-panel.less +37 -37
  287. package/lib/lowcode/painter/style/tabitems.less +90 -90
  288. package/lib/lowcode/painter/style/treedragdrop.less +19 -19
  289. package/lib/lowcode/view/lc-components/Box/index.js +4 -4
  290. package/lib/lowcode/view/lc-components/Box/index.less +14 -14
  291. package/lib/lowcode/view/lc-components/Box/meta.json +40 -40
  292. package/lib/lowcode/view/lc-components/Button/index.js +33 -33
  293. package/lib/lowcode/view/lc-components/Button/meta.json +127 -127
  294. package/lib/lowcode/view/lc-components/Button/style.less +2 -2
  295. package/lib/lowcode/view/lc-components/CardList/index.js +475 -11
  296. package/lib/lowcode/view/lc-components/CardList/meta.json +335 -154
  297. package/lib/lowcode/view/lc-components/Dialog/index.js +13 -13
  298. package/lib/lowcode/view/lc-components/Dialog/index.less +12 -12
  299. package/lib/lowcode/view/lc-components/Dialog/meta.json +204 -204
  300. package/lib/lowcode/view/lc-components/Drawer/index.js +13 -13
  301. package/lib/lowcode/view/lc-components/Drawer/index.less +13 -13
  302. package/lib/lowcode/view/lc-components/Drawer/meta.json +242 -242
  303. package/lib/lowcode/view/lc-components/FieldColor/meta.json +157 -157
  304. package/lib/lowcode/view/lc-components/FieldComplex/meta.json +140 -140
  305. package/lib/lowcode/view/lc-components/FieldDate/meta.json +141 -141
  306. package/lib/lowcode/view/lc-components/FieldDict/meta.json +138 -138
  307. package/lib/lowcode/view/lc-components/FieldEditor/meta.json +138 -138
  308. package/lib/lowcode/view/lc-components/FieldGroup/meta.json +167 -167
  309. package/lib/lowcode/view/lc-components/FieldNumber/meta.json +143 -143
  310. package/lib/lowcode/view/lc-components/FieldRadio/meta.json +115 -115
  311. package/lib/lowcode/view/lc-components/FieldRegion/meta.json +121 -121
  312. package/lib/lowcode/view/lc-components/FieldSelect/meta.json +152 -152
  313. package/lib/lowcode/view/lc-components/FieldString/meta.json +152 -152
  314. package/lib/lowcode/view/lc-components/FieldSwitch/meta.json +125 -125
  315. package/lib/lowcode/view/lc-components/FieldTextarea/meta.json +143 -143
  316. package/lib/lowcode/view/lc-components/FieldUpload/meta.json +165 -165
  317. package/lib/lowcode/view/lc-components/FieldUser/meta.json +176 -176
  318. package/lib/lowcode/view/lc-components/FieldYear/meta.json +129 -129
  319. package/lib/lowcode/view/lc-components/Form/index.js +20 -20
  320. package/lib/lowcode/view/lc-components/Form/meta.json +645 -645
  321. package/lib/lowcode/view/lc-components/GroupTree/index.js +29 -26
  322. package/lib/lowcode/view/lc-components/GroupTree/meta.json +89 -89
  323. package/lib/lowcode/view/lc-components/Iframe/index.js +56 -5
  324. package/lib/lowcode/view/lc-components/Iframe/meta.json +32 -33
  325. package/lib/lowcode/view/lc-components/ImEx/index.js +25 -25
  326. package/lib/lowcode/view/lc-components/ImEx/index.less +7 -7
  327. package/lib/lowcode/view/lc-components/ImEx/meta.json +134 -134
  328. package/lib/lowcode/view/lc-components/Image/index.js +60 -4
  329. package/lib/lowcode/view/lc-components/Image/index.less +27 -0
  330. package/lib/lowcode/view/lc-components/Image/meta.json +149 -115
  331. package/lib/lowcode/view/lc-components/JSX/RuntimeComp.js +4 -4
  332. package/lib/lowcode/view/lc-components/JSX/meta.json +28 -28
  333. package/lib/lowcode/view/lc-components/Layout/index.js +16 -16
  334. package/lib/lowcode/view/lc-components/Layout/index.less +5 -5
  335. package/lib/lowcode/view/lc-components/Layout/meta.json +107 -107
  336. package/lib/lowcode/view/lc-components/Link/index.js +34 -4
  337. package/lib/lowcode/view/lc-components/Link/index.less +15 -0
  338. package/lib/lowcode/view/lc-components/Link/meta.json +112 -113
  339. package/lib/lowcode/view/lc-components/Page/meta.json +61 -61
  340. package/lib/lowcode/view/lc-components/PageContent/meta.json +9 -9
  341. package/lib/lowcode/view/lc-components/PageFooter/meta.json +9 -9
  342. package/lib/lowcode/view/lc-components/PageHeader/meta.json +9 -9
  343. package/lib/lowcode/view/lc-components/PageLayout/meta.json +59 -59
  344. package/lib/lowcode/view/lc-components/Section/index.less +7 -7
  345. package/lib/lowcode/view/lc-components/Section/meta.json +108 -108
  346. package/lib/lowcode/view/lc-components/Split/meta.json +53 -53
  347. package/lib/lowcode/view/lc-components/Table/index.js +149 -149
  348. package/lib/lowcode/view/lc-components/Table/meta.json +450 -450
  349. package/lib/lowcode/view/lc-components/Tabs/index.js +23 -23
  350. package/lib/lowcode/view/lc-components/Tabs/meta.json +113 -113
  351. package/lib/lowcode/view/lc-components/Text/meta.json +56 -56
  352. package/lib/lowcode/view/lc-components/Tree/index.js +96 -96
  353. package/lib/lowcode/view/lc-components/Tree/index.less +4 -4
  354. package/lib/lowcode/view/lc-components/Tree/meta.json +357 -357
  355. package/lib/lowcode/view/style/canvas.less +5 -5
  356. package/lib/lowcode/view/style/loading.less +98 -98
  357. package/lib/lowcode/view/style/page.less +7 -7
  358. package/lib/upload/FilesWall/index.js +13 -13
  359. package/lib/upload/FilesWall/index.less +74 -74
  360. package/lib/upload/Form/index.less +7 -7
  361. package/lib/upload/FormItem/index.js +15 -15
  362. package/lib/utils/form.js +21 -21
  363. package/lowcode.js +1 -1
  364. package/package.json +176 -175
  365. package/upload.js +1 -1
  366. package/utils.js +1 -1
  367. package/es/lowcode/engine/meta/fielddatadic.props.default.json +0 -16
  368. package/es/lowcode/engine/meta/fielddatadic.props.json +0 -73
  369. package/lib/lowcode/engine/meta/fielddatadic.props.default.json +0 -16
  370. package/lib/lowcode/engine/meta/fielddatadic.props.json +0 -73
@@ -9,7 +9,7 @@ import { Tree, Empty, Spin } from 'luck-design/antd';
9
9
  import { isNil } from 'lodash';
10
10
  import { useContext } from "../../../engine/provider/ContextProvider";
11
11
  import Wrapper from "../Wrapper";
12
- import { noAuthReadAllBySkey } from '@luck-design-biz/base/sys/services';
12
+ import { noAuthReadAllBySkey } from '@luck-design-biz/base/lib/sys/services';
13
13
  import { dataToTree } from '@luck-design-biz/base/utils';
14
14
  import { omitBadProps, executeCode, findFirstLeafNode } from "../../../engine/tools/helper";
15
15
  import defaultMeta from "../../../engine/meta/tree.props.default.json";
@@ -146,7 +146,10 @@ var LCGroupTree = function LCGroupTree(_ref) {
146
146
  }, title ? /*#__PURE__*/React.createElement(Title, {
147
147
  $theme: document.body.getAttribute('luck-theme')
148
148
  }, title) : null, /*#__PURE__*/React.createElement(Spin, {
149
- spinning: loading
149
+ spinning: loading,
150
+ style: {
151
+ height: 'fit-content'
152
+ }
150
153
  }, dataSource ? /*#__PURE__*/React.createElement(GroupTree, {
151
154
  blockNode: true,
152
155
  defaultExpandAll: defaultExpandAll,
@@ -159,41 +162,41 @@ var LCGroupTree = function LCGroupTree(_ref) {
159
162
  }))));
160
163
  };
161
164
  LCGroupTree.propTypes = {
162
- /**
163
- * @name 唯一标识
164
- * @type string
165
- * @disabled true
165
+ /**
166
+ * @name 唯一标识
167
+ * @type string
168
+ * @disabled true
166
169
  */
167
170
  id: PropTypes.string.isRequired,
168
- /**
169
- * @name 标题
170
- * @type string
171
- * @disabled true
171
+ /**
172
+ * @name 标题
173
+ * @type string
174
+ * @disabled true
172
175
  */
173
176
  title: PropTypes.string,
174
- /**
175
- * @name 组维度
176
- * @type _GroupClassSelector
177
+ /**
178
+ * @name 组维度
179
+ * @type _GroupClassSelector
177
180
  */
178
181
  groupClass: PropTypes.string,
179
- /**
180
- * @name 默认展开全部
181
- * @type switch
182
+ /**
183
+ * @name 默认展开全部
184
+ * @type switch
182
185
  */
183
186
  defaultExpandAll: PropTypes.bool,
184
- /**
185
- * @name 仅叶子可选
186
- * @type switch
187
+ /**
188
+ * @name 仅叶子可选
189
+ * @type switch
187
190
  */
188
191
  onlySelectLeaf: PropTypes.bool,
189
- /**
190
- * @name 允许取消选中
191
- * @type switch
192
- */
192
+ /**
193
+ * @name 允许取消选中
194
+ * @type switch
195
+ */
193
196
  cancelSelect: PropTypes.bool,
194
- /**
195
- * @name 允许取消选中
196
- * @type _JSEditor
197
+ /**
198
+ * @name 允许取消选中
199
+ * @type _JSEditor
197
200
  */
198
201
  defaultSelect: PropTypes.string
199
202
  };
@@ -1,89 +1,89 @@
1
- {
2
- "component": "GroupTree",
3
- "name": "组织树",
4
- "desc": "用于展示组织维度层级结构的数据。它提供了层级结构、节点展开/折叠、节点选择、节点操作和展示样式等功能。",
5
- "icon": "icon-tree",
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": "title",
18
- "name": "标题",
19
- "desc": "头部标题",
20
- "type": "_I18nInput"
21
- },
22
- {
23
- "key": "groupClass",
24
- "name": "组维度",
25
- "type": "_GroupClassSelector"
26
- },
27
- {
28
- "key": "defaultExpandAll",
29
- "name": "默认展开全部",
30
- "type": "switch",
31
- "default": true
32
- },
33
- {
34
- "key": "onlySelectLeaf",
35
- "name": "仅叶子可选",
36
- "desc": "仅叶子节点可被选中,父节点不可选中",
37
- "type": "switch",
38
- "default": true
39
- },
40
- {
41
- "key": "cancelSelect",
42
- "name": "允许取消选中",
43
- "desc": "是否可以取消选中",
44
- "type": "switch",
45
- "default": false
46
- },
47
- {
48
- "key": "defaultSelect",
49
- "name": "默认选中",
50
- "desc": "返回默认选中的数据主键",
51
- "type": "_JSEditor",
52
- "defaultCode": "function defaultSelect(treeData, firstNode) { \n return firstNode.id; \n}",
53
- "mustConfirm": true,
54
- "wrapper": "collapse",
55
- "wrapperProps": {
56
- "suppressIcon": true
57
- }
58
- }
59
- ],
60
- "css": "width: 100%; height: 100%;",
61
- "advance": {
62
- "events": [
63
- {
64
- "key": "onMount",
65
- "name": "组件首次渲染时",
66
- "desc": "在组件首次渲染时,执行方法",
67
- "func": "function onMount(params) {\n\t\n}"
68
- },
69
- {
70
- "key": "onUnmount",
71
- "name": "组件卸载时",
72
- "desc": "在组件卸载时,执行方法。",
73
- "func": "function onUnmount() {\n\t\n}"
74
- },
75
- {
76
- "key": "onDoubleClick",
77
- "name": "双击事件",
78
- "desc": "树节点双击事件",
79
- "func": "function onDoubleClick(e, rowData) {\n\t\n}"
80
- },
81
- {
82
- "key": "onSelect",
83
- "name": "选中事件",
84
- "desc": "节点选中事件",
85
- "func": "function onSelect(checkedKeys, e) {\n\t\n}"
86
- }
87
- ]
88
- }
89
- }
1
+ {
2
+ "component": "GroupTree",
3
+ "name": "组织树",
4
+ "desc": "用于展示组织维度层级结构的数据。它提供了层级结构、节点展开/折叠、节点选择、节点操作和展示样式等功能。",
5
+ "icon": "icon-tree",
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": "title",
18
+ "name": "标题",
19
+ "desc": "头部标题",
20
+ "type": "_I18nInput"
21
+ },
22
+ {
23
+ "key": "groupClass",
24
+ "name": "组维度",
25
+ "type": "_GroupClassSelector"
26
+ },
27
+ {
28
+ "key": "defaultExpandAll",
29
+ "name": "默认展开全部",
30
+ "type": "switch",
31
+ "default": true
32
+ },
33
+ {
34
+ "key": "onlySelectLeaf",
35
+ "name": "仅叶子可选",
36
+ "desc": "仅叶子节点可被选中,父节点不可选中",
37
+ "type": "switch",
38
+ "default": true
39
+ },
40
+ {
41
+ "key": "cancelSelect",
42
+ "name": "允许取消选中",
43
+ "desc": "是否可以取消选中",
44
+ "type": "switch",
45
+ "default": false
46
+ },
47
+ {
48
+ "key": "defaultSelect",
49
+ "name": "默认选中",
50
+ "desc": "返回默认选中的数据主键",
51
+ "type": "_JSEditor",
52
+ "defaultCode": "function defaultSelect(treeData, firstNode) { \n return firstNode.id; \n}",
53
+ "mustConfirm": true,
54
+ "wrapper": "collapse",
55
+ "wrapperProps": {
56
+ "suppressIcon": true
57
+ }
58
+ }
59
+ ],
60
+ "css": "width: 100%; height: 100%;",
61
+ "advance": {
62
+ "events": [
63
+ {
64
+ "key": "onMount",
65
+ "name": "组件首次渲染时",
66
+ "desc": "在组件首次渲染时,执行方法",
67
+ "func": "function onMount(params) {\n\t\n}"
68
+ },
69
+ {
70
+ "key": "onUnmount",
71
+ "name": "组件卸载时",
72
+ "desc": "在组件卸载时,执行方法。",
73
+ "func": "function onUnmount() {\n\t\n}"
74
+ },
75
+ {
76
+ "key": "onDoubleClick",
77
+ "name": "双击事件",
78
+ "desc": "树节点双击事件",
79
+ "func": "function onDoubleClick(e, rowData) {\n\t\n}"
80
+ },
81
+ {
82
+ "key": "onSelect",
83
+ "name": "选中事件",
84
+ "desc": "节点选中事件",
85
+ "func": "function onSelect(checkedKeys, e) {\n\t\n}"
86
+ }
87
+ ]
88
+ }
89
+ }
@@ -1,12 +1,36 @@
1
+ import _extends from "@babel/runtime/helpers/esm/extends";
2
+ import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
1
3
  import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
2
- var _excluded = ["id"];
4
+ var _excluded = ["id", "path", "css", "supportFullScreen"];
3
5
  import React, { useRef } from 'react';
4
- import { useMemoizedFn } from 'ahooks';
6
+ import { useMemoizedFn, useFullscreen, useHover } from 'ahooks';
7
+ import { Icon, Tooltip } from 'luck-design/antd';
8
+ import styled from 'styled-components';
5
9
  import Wrapper from "../Wrapper";
6
- var LCIfram = function LCIfram(_ref) {
10
+ import { useContext } from "../../../engine/provider/ContextProvider";
11
+ import { RUNTIME } from "../../../constants";
12
+ import { formatMessage } from '@luck-design-biz/base/utils';
13
+ var StyledIframe = styled.iframe.withConfig({
14
+ displayName: "StyledIframe",
15
+ componentId: "luckda-6530__sc-82q9mj-0"
16
+ })(["border:none;", ""], function (props) {
17
+ return props.$css;
18
+ });
19
+ var LCIframe = function LCIframe(_ref) {
7
20
  var id = _ref.id,
21
+ path = _ref.path,
22
+ css = _ref.css,
23
+ supportFullScreen = _ref.supportFullScreen,
8
24
  props = _objectWithoutProperties(_ref, _excluded);
9
25
  var ref = useRef();
26
+ var parentRef = useRef();
27
+ var isHovering = useHover(parentRef);
28
+ var _useFullscreen = useFullscreen(ref, {
29
+ pageFullscreen: true
30
+ }),
31
+ _useFullscreen2 = _slicedToArray(_useFullscreen, 2),
32
+ isFullscreen = _useFullscreen2[0],
33
+ toggleFullscreen = _useFullscreen2[1].toggleFullscreen;
10
34
  var getTargetDom = useMemoizedFn(function () {
11
35
  return ref.current;
12
36
  });
@@ -15,7 +39,34 @@ var LCIfram = function LCIfram(_ref) {
15
39
  displayName: "Iframe",
16
40
  getTargetDom: getTargetDom
17
41
  }, /*#__PURE__*/React.createElement("div", {
18
- ref: ref
19
- }, "LCIfram"));
42
+ style: {
43
+ position: !isFullscreen ? 'relative' : 'static',
44
+ width: '100%',
45
+ height: '100%'
46
+ },
47
+ ref: parentRef
48
+ }, supportFullScreen && isHovering && /*#__PURE__*/React.createElement(Tooltip, {
49
+ title: isFullscreen ? formatMessage({
50
+ id: 'luckda.lowcode.painter.components.fullscreen-exit.tip',
51
+ label: '退出全屏'
52
+ }) : formatMessage({
53
+ id: 'luckda.lowcode.painter.components.fullscreen.tip',
54
+ label: '全屏'
55
+ })
56
+ }, /*#__PURE__*/React.createElement(Icon, {
57
+ type: isFullscreen ? 'fullscreen-exit' : 'fullscreen',
58
+ style: {
59
+ fontSize: 20,
60
+ position: isFullscreen ? 'fixed' : 'absolute',
61
+ top: 15,
62
+ right: 20,
63
+ zIndex: 9999999
64
+ },
65
+ onClick: toggleFullscreen
66
+ })), /*#__PURE__*/React.createElement(StyledIframe, _extends({}, props, {
67
+ ref: ref,
68
+ src: path,
69
+ $css: css
70
+ }))));
20
71
  };
21
- export default LCIfram;
72
+ export default LCIframe;
@@ -1,33 +1,32 @@
1
- {
2
- "component": "Iframe",
3
- "name": "Iframe",
4
- "desc": "用于在当前文档中嵌入另一个独立的 HTML 文档、网页或其他类型的媒体内容。它提供了一种将外部内容嵌入到网页中的方法。",
5
- "icon": "icon-iframe",
6
- "group": "basic",
7
- "groupName": "基础",
8
- "hidden": true,
9
- "order": 1,
10
- "props": [
11
- {
12
- "key": "id",
13
- "name": "唯一标识",
14
- "type": "string",
15
- "disabled": true
16
- },
17
- {
18
- "key": "path",
19
- "name": "网页路径",
20
- "desc": "iframe打开的网页路径",
21
- "type": "string"
22
- },
23
- {
24
- "key": "supportFullScreen",
25
- "name": "支持全屏",
26
- "desc": "是否支持全屏展示",
27
- "type": "boolean",
28
- "default": true
29
- }
30
- ],
31
- "css": "",
32
- "advance": {}
33
- }
1
+ {
2
+ "component": "Iframe",
3
+ "name": "Iframe",
4
+ "desc": "用于在当前文档中嵌入另一个独立的 HTML 文档、网页或其他类型的媒体内容。它提供了一种将外部内容嵌入到网页中的方法。",
5
+ "icon": "icon-iframe",
6
+ "group": "basic",
7
+ "groupName": "基础",
8
+ "order": 1,
9
+ "props": [
10
+ {
11
+ "key": "id",
12
+ "name": "唯一标识",
13
+ "type": "string",
14
+ "disabled": true
15
+ },
16
+ {
17
+ "key": "path",
18
+ "name": "网页路径",
19
+ "desc": "iframe打开的网页路径",
20
+ "type": "string"
21
+ },
22
+ {
23
+ "key": "supportFullScreen",
24
+ "name": "支持全屏",
25
+ "desc": "是否支持全屏展示",
26
+ "type": "switch",
27
+ "default": true
28
+ }
29
+ ],
30
+ "css": "background: white; width: 100%; height: 100%",
31
+ "advance": {}
32
+ }
@@ -509,41 +509,41 @@ var LCImex = function LCImex(_ref) {
509
509
  }, "\u4E0B\u8F7D\u51FA\u9519\u8868\u683C\u4FE1\u606F") : ''))));
510
510
  };
511
511
  LCImex.propTypes = {
512
- /**
513
- * @name 唯一标识
514
- * @type string
515
- * @disabled true
512
+ /**
513
+ * @name 唯一标识
514
+ * @type string
515
+ * @disabled true
516
516
  */
517
517
  id: PropTypes.string.isRequired,
518
- /**
519
- * @name 按钮标题
520
- * @type string
521
- * @default 12:3:9
518
+ /**
519
+ * @name 按钮标题
520
+ * @type string
521
+ * @default 12:3:9
522
522
  */
523
523
  title: PropTypes.string,
524
- /**
525
- * @name 按钮类型
526
- * @type _ButtonType
527
- * @default 'default'
524
+ /**
525
+ * @name 按钮类型
526
+ * @type _ButtonType
527
+ * @default 'default'
528
528
  */
529
529
  type: PropTypes.oneOf(['default', 'primary', 'dashed', 'danger']),
530
- /**
531
- * @name impexpSetting
532
- * @type _ImpExpAlone
533
- * @default { "customType": false, "customParam": null, "type": "export" }
530
+ /**
531
+ * @name impexpSetting
532
+ * @type _ImpExpAlone
533
+ * @default { "customType": false, "customParam": null, "type": "export" }
534
534
  */
535
535
  impexpSetting: PropTypes.object,
536
- /**
537
- * @name 按钮大小
538
- * @type segmented
539
- * @options [{ "label": "小", "value": "small"}, { "label": "中", "value": "middle" }, { "label": "大", "value": "large" }]
540
- * @default 'default'
536
+ /**
537
+ * @name 按钮大小
538
+ * @type segmented
539
+ * @options [{ "label": "小", "value": "small"}, { "label": "中", "value": "middle" }, { "label": "大", "value": "large" }]
540
+ * @default 'default'
541
541
  */
542
542
  size: PropTypes.oneOf(['small', 'default', 'large']),
543
- /**
544
- * @name 将按钮宽度调整为其父宽度的选项
545
- * @type boolean
546
- * @default false
543
+ /**
544
+ * @name 将按钮宽度调整为其父宽度的选项
545
+ * @type boolean
546
+ * @default false
547
547
  */
548
548
  block: PropTypes.bool
549
549
  };
@@ -1,7 +1,7 @@
1
- .exportTheme {
2
- color: var(--luck-color-primary);
3
- }
4
-
5
- .exportErrorTheme {
6
- color: var(--luck-color-danger);
7
- }
1
+ .exportTheme {
2
+ color: var(--luck-color-primary);
3
+ }
4
+
5
+ .exportErrorTheme {
6
+ color: var(--luck-color-danger);
7
+ }