@luck-design-biz/luckda 0.0.24-1 → 0.0.24-3

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 (470) hide show
  1. package/LICENSE +0 -0
  2. package/README.md +0 -0
  3. package/es/components/Builder/index.js +24 -17
  4. package/es/components/LdAutoForm/index.js +15 -5
  5. package/es/components/LdCard/index.js +0 -0
  6. package/es/components/LdCard/model.js +0 -0
  7. package/es/components/LdCom/index.js +0 -0
  8. package/es/components/LdFormList/index.js +4 -1
  9. package/es/components/LdFormList/model.js +0 -0
  10. package/es/components/LdGrid/index.js +13 -7
  11. package/es/components/LdGrid/model.js +0 -0
  12. package/es/components/LdGridForm/index.js +12 -4
  13. package/es/components/LdGridForm/index.less +0 -0
  14. package/es/components/LdInfoPanel/index.js +0 -0
  15. package/es/components/LdPop/index.js +0 -0
  16. package/es/components/LdRuntimeCom/index.js +0 -0
  17. package/es/components/LdTree/index.js +0 -0
  18. package/es/components/LdTree/index.less +0 -0
  19. package/es/helper/FromItems.js +0 -0
  20. package/es/helper/action.js +0 -0
  21. package/es/helper/form.js +8 -2
  22. package/es/helper/index.less +0 -0
  23. package/es/helper/ldBuilder.js +4 -1
  24. package/es/helper/ldComBuild.js +0 -0
  25. package/es/index.js +0 -0
  26. package/es/lowcode/constants/api-url.js +1 -2
  27. package/es/lowcode/constants/event-topics.js +1 -14
  28. package/es/lowcode/constants/index.js +0 -0
  29. package/es/lowcode/engine/factory/DataFactory.js +0 -0
  30. package/es/lowcode/engine/meta/button.props.default.json +7 -15
  31. package/es/lowcode/engine/meta/cardlist.props.default.json +9 -17
  32. package/es/lowcode/engine/meta/{button.props.json → components/button.json} +103 -121
  33. package/es/lowcode/engine/meta/{cardlist.props.json → components/card-list.json} +142 -143
  34. package/es/lowcode/engine/meta/{drawer.props.json → components/drawer.json} +142 -143
  35. package/es/lowcode/engine/meta/{form.props.json → components/form.json} +115 -116
  36. package/{lib/lowcode/engine/meta/iframe.props.json → es/lowcode/engine/meta/components/iframe.json} +30 -31
  37. package/{lib/lowcode/engine/meta/image.props.json → es/lowcode/engine/meta/components/image.json} +112 -113
  38. package/es/lowcode/engine/meta/{imex.props.json → components/imex.json} +80 -81
  39. package/es/lowcode/engine/meta/{jsx.props.json → components/jsx.json} +23 -24
  40. package/{lib/lowcode/engine/meta/layout.props.json → es/lowcode/engine/meta/components/layout.json} +106 -107
  41. package/{lib/lowcode/engine/meta/link.props.json → es/lowcode/engine/meta/components/link.json} +110 -111
  42. package/{lib/lowcode/engine/meta/dialog.props.json → es/lowcode/engine/meta/components/modal.json} +119 -120
  43. package/{lib/lowcode/engine/meta/section.props.json → es/lowcode/engine/meta/components/section.json} +106 -107
  44. package/es/lowcode/engine/meta/{split.props.json → components/split.json} +70 -71
  45. package/es/lowcode/{view/lc-components/CardList/meta.json → engine/meta/components/table.json} +28 -11
  46. package/{lib/lowcode/engine/meta/tabs.props.json → es/lowcode/engine/meta/components/tabs.json} +139 -140
  47. package/{lib/lowcode/engine/meta/text.props.json → es/lowcode/engine/meta/components/text.json} +64 -65
  48. package/es/lowcode/engine/meta/{tree.props.json → components/tree.json} +155 -156
  49. package/es/lowcode/engine/meta/components-list.json +121 -127
  50. package/es/lowcode/engine/meta/drawer.props.default.json +9 -17
  51. package/es/lowcode/engine/meta/form.props.default.json +4 -12
  52. package/es/lowcode/engine/meta/iframe.props.default.json +2 -10
  53. package/es/lowcode/engine/meta/image.props.default.json +7 -15
  54. package/es/lowcode/engine/meta/imex.props.default.json +3 -11
  55. package/es/lowcode/engine/meta/jsx.props.default.json +1 -10
  56. package/es/lowcode/engine/meta/layout.props.default.json +4 -12
  57. package/es/lowcode/engine/meta/link.props.default.json +5 -13
  58. package/es/lowcode/engine/meta/modal.props.default.json +11 -0
  59. package/es/lowcode/engine/meta/section.props.default.json +8 -16
  60. package/es/lowcode/engine/meta/split.props.default.json +4 -12
  61. package/es/lowcode/engine/meta/table.props.default.json +9 -11
  62. package/es/lowcode/engine/meta/tabs.props.default.json +9 -17
  63. package/es/lowcode/engine/meta/text.props.default.json +3 -11
  64. package/es/lowcode/engine/meta/tree.props.default.json +8 -16
  65. package/es/lowcode/engine/provider/ContextProvider.js +17 -10
  66. package/es/lowcode/engine/provider/EventBusProvider.js +2 -2
  67. package/es/lowcode/engine/tools/dataProcess.js +5 -80
  68. package/es/lowcode/engine/tools/helper.js +0 -0
  69. package/es/lowcode/engine/tools/lcid.js +16 -0
  70. package/es/lowcode/index.js +0 -0
  71. package/es/lowcode/painter/Components.js +0 -0
  72. package/es/lowcode/painter/Design.js +42 -274
  73. package/es/lowcode/painter/I18n.js +2 -202
  74. package/es/lowcode/painter/Outline.js +28 -33
  75. package/es/lowcode/painter/Panel.js +2 -201
  76. package/es/lowcode/painter/Ribbon.js +55 -61
  77. package/es/lowcode/painter/components/PanelItem.js +9 -52
  78. package/es/lowcode/painter/components/RuleInput.js +4 -4
  79. package/es/lowcode/painter/index.js +1 -27
  80. package/es/lowcode/painter/panel-section/LayoutRatio.js +49 -56
  81. package/es/lowcode/painter/panel-section/Radio.js +58 -0
  82. package/es/lowcode/painter/style/components.less +0 -0
  83. package/es/lowcode/painter/style/design.less +5 -109
  84. package/es/lowcode/painter/style/index.less +1 -0
  85. package/es/lowcode/painter/style/layout-ratio.less +1 -1
  86. package/es/lowcode/painter/style/outline.less +0 -2
  87. package/es/lowcode/painter/style/panel-item.less +15 -38
  88. package/es/lowcode/painter/style/panel.less +0 -137
  89. package/es/lowcode/painter/style/radio.less +0 -0
  90. package/es/lowcode/painter/style/ribbon.less +0 -1
  91. package/es/lowcode/painter/style/rule-input.less +0 -0
  92. package/es/lowcode/view/Canvas.js +55 -63
  93. package/es/lowcode/view/Loading.js +0 -0
  94. package/es/lowcode/view/Page.js +2 -199
  95. package/es/lowcode/view/index.js +0 -0
  96. package/es/lowcode/view/lc-components/Box/index.js +5 -22
  97. package/es/lowcode/view/lc-components/Button/index.js +7 -72
  98. package/es/lowcode/view/lc-components/CardList/index.js +0 -0
  99. package/es/lowcode/view/lc-components/Dialog/index.js +1 -12
  100. package/es/lowcode/view/lc-components/Dialog/index.less +0 -0
  101. package/es/lowcode/view/lc-components/Drawer/index.js +3 -19
  102. package/es/lowcode/view/lc-components/Form/index.js +0 -0
  103. package/es/lowcode/view/lc-components/Iframe/index.js +0 -0
  104. package/es/lowcode/view/lc-components/ImEx/index.js +0 -0
  105. package/es/lowcode/view/lc-components/Image/index.js +0 -0
  106. package/es/lowcode/view/lc-components/JSX/index.js +0 -0
  107. package/es/lowcode/view/lc-components/Layout/index.js +7 -40
  108. package/es/lowcode/view/lc-components/Link/index.js +0 -0
  109. package/es/lowcode/view/lc-components/Section/index.js +0 -0
  110. package/es/lowcode/view/lc-components/Split/index.js +0 -0
  111. package/es/lowcode/view/lc-components/Table/index.js +8 -138
  112. package/es/lowcode/view/lc-components/Tabs/index.js +0 -0
  113. package/es/lowcode/view/lc-components/Text/index.js +0 -0
  114. package/es/lowcode/view/lc-components/Tree/index.js +0 -0
  115. package/es/lowcode/view/lc-components/Wrapper.js +23 -32
  116. package/es/lowcode/view/style/canvas.less +0 -0
  117. package/es/lowcode/view/style/loading.less +0 -0
  118. package/es/lowcode/view/style/page.less +1 -0
  119. package/es/services.js +24 -7
  120. package/es/upload/Form/gridForm.js +5 -4
  121. package/es/upload/Form/index.js +0 -0
  122. package/es/upload/Form/index.less +0 -0
  123. package/es/upload/FormItem/index.js +4 -3
  124. package/es/upload/GridCell/index.js +0 -0
  125. package/es/upload/index.js +0 -0
  126. package/es/utils/action.js +0 -0
  127. package/es/utils/form.js +37 -3
  128. package/es/utils/grid.js +9 -8
  129. package/es/utils/index.js +0 -0
  130. package/lib/components/Builder/index.js +22 -15
  131. package/lib/components/LdAutoForm/index.js +14 -4
  132. package/lib/components/LdCard/index.js +0 -0
  133. package/lib/components/LdCard/model.js +0 -0
  134. package/lib/components/LdCom/index.js +0 -0
  135. package/lib/components/LdFormList/index.js +5 -1
  136. package/lib/components/LdFormList/model.js +0 -0
  137. package/lib/components/LdGrid/index.js +13 -7
  138. package/lib/components/LdGrid/model.js +0 -0
  139. package/lib/components/LdGridForm/index.js +11 -3
  140. package/lib/components/LdGridForm/index.less +0 -0
  141. package/lib/components/LdInfoPanel/index.js +0 -0
  142. package/lib/components/LdPop/index.js +0 -0
  143. package/lib/components/LdRuntimeCom/index.js +0 -0
  144. package/lib/components/LdTree/index.js +0 -0
  145. package/lib/components/LdTree/index.less +0 -0
  146. package/lib/helper/FromItems.js +0 -0
  147. package/lib/helper/action.js +0 -0
  148. package/lib/helper/form.js +8 -2
  149. package/lib/helper/index.less +0 -0
  150. package/lib/helper/ldBuilder.js +4 -1
  151. package/lib/helper/ldComBuild.js +0 -0
  152. package/lib/index.js +0 -0
  153. package/lib/lowcode/constants/api-url.js +2 -3
  154. package/lib/lowcode/constants/event-topics.js +2 -15
  155. package/lib/lowcode/constants/index.js +0 -0
  156. package/lib/lowcode/engine/factory/DataFactory.js +0 -0
  157. package/lib/lowcode/engine/meta/button.props.default.json +7 -15
  158. package/lib/lowcode/engine/meta/cardlist.props.default.json +9 -17
  159. package/lib/lowcode/engine/meta/{button.props.json → components/button.json} +103 -121
  160. package/lib/lowcode/engine/meta/{cardlist.props.json → components/card-list.json} +142 -143
  161. package/lib/lowcode/engine/meta/{drawer.props.json → components/drawer.json} +142 -143
  162. package/lib/lowcode/engine/meta/{form.props.json → components/form.json} +115 -116
  163. package/{es/lowcode/engine/meta/iframe.props.json → lib/lowcode/engine/meta/components/iframe.json} +30 -31
  164. package/{es/lowcode/engine/meta/image.props.json → lib/lowcode/engine/meta/components/image.json} +112 -113
  165. package/lib/lowcode/engine/meta/{imex.props.json → components/imex.json} +80 -81
  166. package/lib/lowcode/engine/meta/{jsx.props.json → components/jsx.json} +23 -24
  167. package/{es/lowcode/engine/meta/layout.props.json → lib/lowcode/engine/meta/components/layout.json} +106 -107
  168. package/{es/lowcode/engine/meta/link.props.json → lib/lowcode/engine/meta/components/link.json} +110 -111
  169. package/{es/lowcode/engine/meta/dialog.props.json → lib/lowcode/engine/meta/components/modal.json} +119 -120
  170. package/{es/lowcode/engine/meta/section.props.json → lib/lowcode/engine/meta/components/section.json} +106 -107
  171. package/lib/lowcode/engine/meta/{split.props.json → components/split.json} +70 -71
  172. package/lib/lowcode/{view/lc-components/CardList/meta.json → engine/meta/components/table.json} +28 -11
  173. package/{es/lowcode/engine/meta/tabs.props.json → lib/lowcode/engine/meta/components/tabs.json} +139 -140
  174. package/{es/lowcode/engine/meta/text.props.json → lib/lowcode/engine/meta/components/text.json} +64 -65
  175. package/lib/lowcode/engine/meta/{tree.props.json → components/tree.json} +155 -156
  176. package/lib/lowcode/engine/meta/components-list.json +121 -127
  177. package/lib/lowcode/engine/meta/drawer.props.default.json +9 -17
  178. package/lib/lowcode/engine/meta/form.props.default.json +4 -12
  179. package/lib/lowcode/engine/meta/iframe.props.default.json +2 -10
  180. package/lib/lowcode/engine/meta/image.props.default.json +7 -15
  181. package/lib/lowcode/engine/meta/imex.props.default.json +3 -11
  182. package/lib/lowcode/engine/meta/jsx.props.default.json +1 -10
  183. package/lib/lowcode/engine/meta/layout.props.default.json +4 -12
  184. package/lib/lowcode/engine/meta/link.props.default.json +5 -13
  185. package/lib/lowcode/engine/meta/modal.props.default.json +11 -0
  186. package/lib/lowcode/engine/meta/section.props.default.json +8 -16
  187. package/lib/lowcode/engine/meta/split.props.default.json +4 -12
  188. package/lib/lowcode/engine/meta/table.props.default.json +9 -11
  189. package/lib/lowcode/engine/meta/tabs.props.default.json +9 -17
  190. package/lib/lowcode/engine/meta/text.props.default.json +3 -11
  191. package/lib/lowcode/engine/meta/tree.props.default.json +8 -16
  192. package/lib/lowcode/engine/provider/ContextProvider.js +16 -9
  193. package/lib/lowcode/engine/provider/EventBusProvider.js +2 -2
  194. package/lib/lowcode/engine/tools/dataProcess.js +5 -81
  195. package/lib/lowcode/engine/tools/helper.js +0 -0
  196. package/lib/lowcode/engine/tools/lcid.js +22 -0
  197. package/lib/lowcode/index.js +0 -0
  198. package/lib/lowcode/painter/Components.js +0 -0
  199. package/lib/lowcode/painter/Design.js +40 -271
  200. package/lib/lowcode/painter/I18n.js +2 -203
  201. package/lib/lowcode/painter/Outline.js +27 -32
  202. package/lib/lowcode/painter/Panel.js +2 -201
  203. package/lib/lowcode/painter/Ribbon.js +64 -63
  204. package/lib/lowcode/painter/components/PanelItem.js +9 -53
  205. package/lib/lowcode/painter/components/RuleInput.js +4 -4
  206. package/lib/lowcode/painter/index.js +1 -29
  207. package/lib/lowcode/painter/panel-section/LayoutRatio.js +48 -55
  208. package/lib/lowcode/painter/panel-section/Radio.js +65 -0
  209. package/lib/lowcode/painter/style/components.less +0 -0
  210. package/lib/lowcode/painter/style/design.less +5 -109
  211. package/lib/lowcode/painter/style/index.less +1 -0
  212. package/lib/lowcode/painter/style/layout-ratio.less +1 -1
  213. package/lib/lowcode/painter/style/outline.less +0 -2
  214. package/lib/lowcode/painter/style/panel-item.less +15 -38
  215. package/lib/lowcode/painter/style/panel.less +0 -137
  216. package/lib/lowcode/painter/style/radio.less +0 -0
  217. package/lib/lowcode/painter/style/ribbon.less +0 -1
  218. package/lib/lowcode/painter/style/rule-input.less +0 -0
  219. package/lib/lowcode/view/Canvas.js +60 -68
  220. package/lib/lowcode/view/Loading.js +0 -0
  221. package/lib/lowcode/view/Page.js +1 -198
  222. package/lib/lowcode/view/index.js +0 -0
  223. package/lib/lowcode/view/lc-components/Box/index.js +6 -23
  224. package/lib/lowcode/view/lc-components/Button/index.js +8 -73
  225. package/lib/lowcode/view/lc-components/CardList/index.js +0 -0
  226. package/lib/lowcode/view/lc-components/Dialog/index.js +0 -11
  227. package/lib/lowcode/view/lc-components/Dialog/index.less +0 -0
  228. package/lib/lowcode/view/lc-components/Drawer/index.js +2 -18
  229. package/lib/lowcode/view/lc-components/Form/index.js +0 -0
  230. package/lib/lowcode/view/lc-components/Iframe/index.js +0 -0
  231. package/lib/lowcode/view/lc-components/ImEx/index.js +0 -0
  232. package/lib/lowcode/view/lc-components/Image/index.js +0 -0
  233. package/lib/lowcode/view/lc-components/JSX/index.js +0 -0
  234. package/lib/lowcode/view/lc-components/Layout/index.js +8 -41
  235. package/lib/lowcode/view/lc-components/Link/index.js +0 -0
  236. package/lib/lowcode/view/lc-components/Section/index.js +0 -0
  237. package/lib/lowcode/view/lc-components/Split/index.js +0 -0
  238. package/lib/lowcode/view/lc-components/Table/index.js +8 -138
  239. package/lib/lowcode/view/lc-components/Tabs/index.js +0 -0
  240. package/lib/lowcode/view/lc-components/Text/index.js +0 -0
  241. package/lib/lowcode/view/lc-components/Tree/index.js +0 -0
  242. package/lib/lowcode/view/lc-components/Wrapper.js +21 -30
  243. package/lib/lowcode/view/style/canvas.less +0 -0
  244. package/lib/lowcode/view/style/loading.less +0 -0
  245. package/lib/lowcode/view/style/page.less +1 -0
  246. package/lib/services.js +25 -7
  247. package/lib/upload/Form/gridForm.js +5 -4
  248. package/lib/upload/Form/index.js +0 -0
  249. package/lib/upload/Form/index.less +0 -0
  250. package/lib/upload/FormItem/index.js +4 -3
  251. package/lib/upload/GridCell/index.js +0 -0
  252. package/lib/upload/index.js +0 -0
  253. package/lib/utils/action.js +0 -0
  254. package/lib/utils/form.js +38 -3
  255. package/lib/utils/grid.js +11 -10
  256. package/lib/utils/index.js +0 -0
  257. package/lowcode.js +0 -0
  258. package/package.json +5 -12
  259. package/upload.js +0 -0
  260. package/utils.js +0 -0
  261. package/es/lowcode/engine/factory/panel-item-factory/DynamicStrategy.js +0 -60
  262. package/es/lowcode/engine/factory/panel-item-factory/GroupStrategy.js +0 -32
  263. package/es/lowcode/engine/factory/panel-item-factory/SegmentedStrategy.js +0 -32
  264. package/es/lowcode/engine/factory/panel-item-factory/SelectStrategy.js +0 -50
  265. package/es/lowcode/engine/factory/panel-item-factory/Strategy.js +0 -21
  266. package/es/lowcode/engine/factory/panel-item-factory/StringStrategy.js +0 -50
  267. package/es/lowcode/engine/factory/panel-item-factory/SwitchStrategy.js +0 -32
  268. package/es/lowcode/engine/factory/panel-item-factory/index.js +0 -42
  269. package/es/lowcode/engine/meta/box.props.default.json +0 -12
  270. package/es/lowcode/engine/meta/box.props.json +0 -42
  271. package/es/lowcode/engine/meta/dialog.props.default.json +0 -19
  272. package/es/lowcode/engine/meta/js-editor/auto-complete.json +0 -29
  273. package/es/lowcode/engine/meta/table.props.json +0 -174
  274. package/es/lowcode/engine/tools/usePromiseState.js +0 -24
  275. package/es/lowcode/painter/components/Collapse.js +0 -31
  276. package/es/lowcode/painter/components/NumberInput.js +0 -93
  277. package/es/lowcode/painter/components/PopConfirm.js +0 -20
  278. package/es/lowcode/painter/components/PopForm.js +0 -71
  279. package/es/lowcode/painter/components/SortBox.js +0 -92
  280. package/es/lowcode/painter/components/TabEditor.js +0 -88
  281. package/es/lowcode/painter/components/code-editor/BaseEditor.js +0 -118
  282. package/es/lowcode/painter/components/code-editor/CssEditor.js +0 -14
  283. package/es/lowcode/painter/components/code-editor/FullScreenEditor.js +0 -64
  284. package/es/lowcode/painter/components/code-editor/JSEditor.js +0 -84
  285. package/es/lowcode/painter/components/code-editor/index.js +0 -2
  286. package/es/lowcode/painter/panel-section/ButtonType.js +0 -39
  287. package/es/lowcode/painter/panel-section/Icon.js +0 -48
  288. package/es/lowcode/painter/panel-section/IconSelector.js +0 -134
  289. package/es/lowcode/painter/panel-section/StylePanel/Display.js +0 -292
  290. package/es/lowcode/painter/panel-section/StylePanel/DisplaySvg.js +0 -543
  291. package/es/lowcode/painter/panel-section/StylePanel/Height.js +0 -48
  292. package/es/lowcode/painter/panel-section/StylePanel/MainPanel.js +0 -64
  293. package/es/lowcode/painter/panel-section/StylePanel/StyleContext.js +0 -101
  294. package/es/lowcode/painter/panel-section/StylePanel/Width.js +0 -48
  295. package/es/lowcode/painter/panel-section/StylePanel/index.js +0 -12
  296. package/es/lowcode/painter/panel-section/TabItems.js +0 -237
  297. package/es/lowcode/painter/services/I18n.js +0 -85
  298. package/es/lowcode/painter/style/button-type.less +0 -5
  299. package/es/lowcode/painter/style/collapse.less +0 -21
  300. package/es/lowcode/painter/style/display.less +0 -17
  301. package/es/lowcode/painter/style/fullscreen-editor.less +0 -17
  302. package/es/lowcode/painter/style/icon-selector.less +0 -22
  303. package/es/lowcode/painter/style/icon.less +0 -11
  304. package/es/lowcode/painter/style/number-input.less +0 -17
  305. package/es/lowcode/painter/style/pop-confirm.less +0 -10
  306. package/es/lowcode/painter/style/pop-form.less +0 -20
  307. package/es/lowcode/painter/style/style-panel.less +0 -5
  308. package/es/lowcode/painter/style/tabeditor.less +0 -90
  309. package/es/lowcode/painter/style/tabitems.less +0 -90
  310. package/es/lowcode/view/lc-components/Box/FunctionDesign.js +0 -20
  311. package/es/lowcode/view/lc-components/Box/FunctionLive.js +0 -9
  312. package/es/lowcode/view/lc-components/Box/index.less +0 -15
  313. package/es/lowcode/view/lc-components/Box/meta.json +0 -42
  314. package/es/lowcode/view/lc-components/Button/FunctionDesign.js +0 -21
  315. package/es/lowcode/view/lc-components/Button/FunctionLive.js +0 -9
  316. package/es/lowcode/view/lc-components/Button/meta.json +0 -122
  317. package/es/lowcode/view/lc-components/CardList/FunctionDesign.js +0 -9
  318. package/es/lowcode/view/lc-components/CardList/FunctionLive.js +0 -9
  319. package/es/lowcode/view/lc-components/Dialog/FunctionDesign.js +0 -9
  320. package/es/lowcode/view/lc-components/Dialog/FunctionLive.js +0 -9
  321. package/es/lowcode/view/lc-components/Dialog/meta.json +0 -121
  322. package/es/lowcode/view/lc-components/Drawer/FunctionDesign.js +0 -9
  323. package/es/lowcode/view/lc-components/Drawer/FunctionLive.js +0 -9
  324. package/es/lowcode/view/lc-components/Drawer/meta.json +0 -144
  325. package/es/lowcode/view/lc-components/Drawer/style.less +0 -7
  326. package/es/lowcode/view/lc-components/Form/FunctionDesign.js +0 -9
  327. package/es/lowcode/view/lc-components/Form/FunctionLive.js +0 -9
  328. package/es/lowcode/view/lc-components/Form/meta.json +0 -117
  329. package/es/lowcode/view/lc-components/Iframe/FunctionDesign.js +0 -9
  330. package/es/lowcode/view/lc-components/Iframe/FunctionLive.js +0 -9
  331. package/es/lowcode/view/lc-components/Iframe/meta.json +0 -32
  332. package/es/lowcode/view/lc-components/ImEx/FunctionDesign.js +0 -9
  333. package/es/lowcode/view/lc-components/ImEx/FunctionLive.js +0 -9
  334. package/es/lowcode/view/lc-components/ImEx/meta.json +0 -82
  335. package/es/lowcode/view/lc-components/Image/FunctionDesign.js +0 -9
  336. package/es/lowcode/view/lc-components/Image/FunctionLive.js +0 -9
  337. package/es/lowcode/view/lc-components/Image/meta.json +0 -114
  338. package/es/lowcode/view/lc-components/JSX/FunctionDesign.js +0 -9
  339. package/es/lowcode/view/lc-components/JSX/FunctionLive.js +0 -9
  340. package/es/lowcode/view/lc-components/JSX/meta.json +0 -25
  341. package/es/lowcode/view/lc-components/Layout/FunctionDesign.js +0 -75
  342. package/es/lowcode/view/lc-components/Layout/FunctionLive.js +0 -15
  343. package/es/lowcode/view/lc-components/Layout/index.less +0 -5
  344. package/es/lowcode/view/lc-components/Layout/meta.json +0 -108
  345. package/es/lowcode/view/lc-components/Link/FunctionDesign.js +0 -9
  346. package/es/lowcode/view/lc-components/Link/FunctionLive.js +0 -9
  347. package/es/lowcode/view/lc-components/Link/meta.json +0 -112
  348. package/es/lowcode/view/lc-components/Section/FunctionDesign.js +0 -9
  349. package/es/lowcode/view/lc-components/Section/FunctionLive.js +0 -9
  350. package/es/lowcode/view/lc-components/Section/meta.json +0 -108
  351. package/es/lowcode/view/lc-components/Split/FunctionDesign.js +0 -9
  352. package/es/lowcode/view/lc-components/Split/FunctionLive.js +0 -9
  353. package/es/lowcode/view/lc-components/Split/meta.json +0 -72
  354. package/es/lowcode/view/lc-components/Table/FunctionDesign.js +0 -16
  355. package/es/lowcode/view/lc-components/Table/FunctionLive.js +0 -9
  356. package/es/lowcode/view/lc-components/Table/meta.json +0 -174
  357. package/es/lowcode/view/lc-components/Tabs/FunctionDesign.js +0 -9
  358. package/es/lowcode/view/lc-components/Tabs/FunctionLive.js +0 -9
  359. package/es/lowcode/view/lc-components/Tabs/meta.json +0 -141
  360. package/es/lowcode/view/lc-components/Text/FunctionDesign.js +0 -9
  361. package/es/lowcode/view/lc-components/Text/FunctionLive.js +0 -9
  362. package/es/lowcode/view/lc-components/Text/meta.json +0 -66
  363. package/es/lowcode/view/lc-components/Tree/FunctionDesign.js +0 -9
  364. package/es/lowcode/view/lc-components/Tree/FunctionLive.js +0 -9
  365. package/es/lowcode/view/lc-components/Tree/meta.json +0 -157
  366. package/lib/lowcode/engine/factory/panel-item-factory/DynamicStrategy.js +0 -73
  367. package/lib/lowcode/engine/factory/panel-item-factory/GroupStrategy.js +0 -38
  368. package/lib/lowcode/engine/factory/panel-item-factory/SegmentedStrategy.js +0 -38
  369. package/lib/lowcode/engine/factory/panel-item-factory/SelectStrategy.js +0 -56
  370. package/lib/lowcode/engine/factory/panel-item-factory/Strategy.js +0 -27
  371. package/lib/lowcode/engine/factory/panel-item-factory/StringStrategy.js +0 -56
  372. package/lib/lowcode/engine/factory/panel-item-factory/SwitchStrategy.js +0 -38
  373. package/lib/lowcode/engine/factory/panel-item-factory/index.js +0 -48
  374. package/lib/lowcode/engine/meta/box.props.default.json +0 -12
  375. package/lib/lowcode/engine/meta/box.props.json +0 -42
  376. package/lib/lowcode/engine/meta/dialog.props.default.json +0 -19
  377. package/lib/lowcode/engine/meta/js-editor/auto-complete.json +0 -29
  378. package/lib/lowcode/engine/meta/table.props.json +0 -174
  379. package/lib/lowcode/engine/tools/usePromiseState.js +0 -31
  380. package/lib/lowcode/painter/components/Collapse.js +0 -39
  381. package/lib/lowcode/painter/components/NumberInput.js +0 -101
  382. package/lib/lowcode/painter/components/PopConfirm.js +0 -26
  383. package/lib/lowcode/painter/components/PopForm.js +0 -77
  384. package/lib/lowcode/painter/components/SortBox.js +0 -99
  385. package/lib/lowcode/painter/components/TabEditor.js +0 -94
  386. package/lib/lowcode/painter/components/code-editor/BaseEditor.js +0 -126
  387. package/lib/lowcode/painter/components/code-editor/CssEditor.js +0 -22
  388. package/lib/lowcode/painter/components/code-editor/FullScreenEditor.js +0 -72
  389. package/lib/lowcode/painter/components/code-editor/JSEditor.js +0 -95
  390. package/lib/lowcode/painter/components/code-editor/index.js +0 -20
  391. package/lib/lowcode/painter/panel-section/ButtonType.js +0 -46
  392. package/lib/lowcode/painter/panel-section/Icon.js +0 -54
  393. package/lib/lowcode/painter/panel-section/IconSelector.js +0 -141
  394. package/lib/lowcode/painter/panel-section/StylePanel/Display.js +0 -299
  395. package/lib/lowcode/painter/panel-section/StylePanel/DisplaySvg.js +0 -550
  396. package/lib/lowcode/painter/panel-section/StylePanel/Height.js +0 -55
  397. package/lib/lowcode/painter/panel-section/StylePanel/MainPanel.js +0 -72
  398. package/lib/lowcode/painter/panel-section/StylePanel/StyleContext.js +0 -112
  399. package/lib/lowcode/painter/panel-section/StylePanel/Width.js +0 -55
  400. package/lib/lowcode/painter/panel-section/StylePanel/index.js +0 -19
  401. package/lib/lowcode/painter/panel-section/TabItems.js +0 -245
  402. package/lib/lowcode/painter/services/I18n.js +0 -95
  403. package/lib/lowcode/painter/style/button-type.less +0 -5
  404. package/lib/lowcode/painter/style/collapse.less +0 -21
  405. package/lib/lowcode/painter/style/display.less +0 -17
  406. package/lib/lowcode/painter/style/fullscreen-editor.less +0 -17
  407. package/lib/lowcode/painter/style/icon-selector.less +0 -22
  408. package/lib/lowcode/painter/style/icon.less +0 -11
  409. package/lib/lowcode/painter/style/number-input.less +0 -17
  410. package/lib/lowcode/painter/style/pop-confirm.less +0 -10
  411. package/lib/lowcode/painter/style/pop-form.less +0 -20
  412. package/lib/lowcode/painter/style/style-panel.less +0 -5
  413. package/lib/lowcode/painter/style/tabeditor.less +0 -90
  414. package/lib/lowcode/painter/style/tabitems.less +0 -90
  415. package/lib/lowcode/view/lc-components/Box/FunctionDesign.js +0 -27
  416. package/lib/lowcode/view/lc-components/Box/FunctionLive.js +0 -16
  417. package/lib/lowcode/view/lc-components/Box/index.less +0 -15
  418. package/lib/lowcode/view/lc-components/Box/meta.json +0 -42
  419. package/lib/lowcode/view/lc-components/Button/FunctionDesign.js +0 -28
  420. package/lib/lowcode/view/lc-components/Button/FunctionLive.js +0 -16
  421. package/lib/lowcode/view/lc-components/Button/meta.json +0 -122
  422. package/lib/lowcode/view/lc-components/CardList/FunctionDesign.js +0 -16
  423. package/lib/lowcode/view/lc-components/CardList/FunctionLive.js +0 -16
  424. package/lib/lowcode/view/lc-components/Dialog/FunctionDesign.js +0 -16
  425. package/lib/lowcode/view/lc-components/Dialog/FunctionLive.js +0 -16
  426. package/lib/lowcode/view/lc-components/Dialog/meta.json +0 -121
  427. package/lib/lowcode/view/lc-components/Drawer/FunctionDesign.js +0 -16
  428. package/lib/lowcode/view/lc-components/Drawer/FunctionLive.js +0 -16
  429. package/lib/lowcode/view/lc-components/Drawer/meta.json +0 -144
  430. package/lib/lowcode/view/lc-components/Drawer/style.less +0 -7
  431. package/lib/lowcode/view/lc-components/Form/FunctionDesign.js +0 -16
  432. package/lib/lowcode/view/lc-components/Form/FunctionLive.js +0 -16
  433. package/lib/lowcode/view/lc-components/Form/meta.json +0 -117
  434. package/lib/lowcode/view/lc-components/Iframe/FunctionDesign.js +0 -16
  435. package/lib/lowcode/view/lc-components/Iframe/FunctionLive.js +0 -16
  436. package/lib/lowcode/view/lc-components/Iframe/meta.json +0 -32
  437. package/lib/lowcode/view/lc-components/ImEx/FunctionDesign.js +0 -16
  438. package/lib/lowcode/view/lc-components/ImEx/FunctionLive.js +0 -16
  439. package/lib/lowcode/view/lc-components/ImEx/meta.json +0 -82
  440. package/lib/lowcode/view/lc-components/Image/FunctionDesign.js +0 -16
  441. package/lib/lowcode/view/lc-components/Image/FunctionLive.js +0 -16
  442. package/lib/lowcode/view/lc-components/Image/meta.json +0 -114
  443. package/lib/lowcode/view/lc-components/JSX/FunctionDesign.js +0 -16
  444. package/lib/lowcode/view/lc-components/JSX/FunctionLive.js +0 -16
  445. package/lib/lowcode/view/lc-components/JSX/meta.json +0 -25
  446. package/lib/lowcode/view/lc-components/Layout/FunctionDesign.js +0 -82
  447. package/lib/lowcode/view/lc-components/Layout/FunctionLive.js +0 -22
  448. package/lib/lowcode/view/lc-components/Layout/index.less +0 -5
  449. package/lib/lowcode/view/lc-components/Layout/meta.json +0 -108
  450. package/lib/lowcode/view/lc-components/Link/FunctionDesign.js +0 -16
  451. package/lib/lowcode/view/lc-components/Link/FunctionLive.js +0 -16
  452. package/lib/lowcode/view/lc-components/Link/meta.json +0 -112
  453. package/lib/lowcode/view/lc-components/Section/FunctionDesign.js +0 -16
  454. package/lib/lowcode/view/lc-components/Section/FunctionLive.js +0 -16
  455. package/lib/lowcode/view/lc-components/Section/meta.json +0 -108
  456. package/lib/lowcode/view/lc-components/Split/FunctionDesign.js +0 -16
  457. package/lib/lowcode/view/lc-components/Split/FunctionLive.js +0 -16
  458. package/lib/lowcode/view/lc-components/Split/meta.json +0 -72
  459. package/lib/lowcode/view/lc-components/Table/FunctionDesign.js +0 -23
  460. package/lib/lowcode/view/lc-components/Table/FunctionLive.js +0 -16
  461. package/lib/lowcode/view/lc-components/Table/meta.json +0 -174
  462. package/lib/lowcode/view/lc-components/Tabs/FunctionDesign.js +0 -16
  463. package/lib/lowcode/view/lc-components/Tabs/FunctionLive.js +0 -16
  464. package/lib/lowcode/view/lc-components/Tabs/meta.json +0 -141
  465. package/lib/lowcode/view/lc-components/Text/FunctionDesign.js +0 -16
  466. package/lib/lowcode/view/lc-components/Text/FunctionLive.js +0 -16
  467. package/lib/lowcode/view/lc-components/Text/meta.json +0 -66
  468. package/lib/lowcode/view/lc-components/Tree/FunctionDesign.js +0 -16
  469. package/lib/lowcode/view/lc-components/Tree/FunctionLive.js +0 -16
  470. package/lib/lowcode/view/lc-components/Tree/meta.json +0 -157
@@ -1,53 +1,43 @@
1
1
  import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
2
- import React, { useState } from 'react';
3
- import { useCreation } from 'ahooks';
2
+ import React, { useState, useImperativeHandle, forwardRef } from 'react';
4
3
  import styles from "../style/layout-ratio.less";
5
4
  import { formatMessage } from '@luck-design-biz/base/utils';
6
5
  import RuleInput from "../components/RuleInput";
7
6
  import PanelItem from "../components/PanelItem";
8
- var _RATIOS_ = ['12', '6:6', '3:9', '9:3', '4:4:4', '3:6:3', '3:3:3:3', '2:2:2:2:2:2'];
9
- var _DEFAULTRATIO_ = '12:3:9';
7
+ var ratios = ['12', '6:6', '3:9', '9:3', '4:4:4', '3:6:3', '3:3:3:3', '2:2:2:2:2:2'];
8
+ var defaultRatio = '12';
10
9
 
11
10
  /**
12
- * `LayoutRatio`组件提供了一个布局比例选择器,允许用户选择或输入特定的比例配置。
13
- * 支持的比例配置包括预定义的比例数组`_RATIOS_`,用户还可以通过输入框自定义比例,
14
- * 自定义比例需要符合一定的规则:是数字或数字与冒号的组合,且数字之和必须等于12。
15
- *
16
- * 允许父组件获取当前选中的布局比例。
17
- *
18
- * @component
19
- * @example
20
- * ```jsxsdsdsdsdsdsdsd
21
- * <LayoutRatio
22
- * value="6:6"
23
- * onChange={(option) => console.log(option)}
24
- * />
25
- * ```
26
- *
27
- * @param {Object} props
28
- * @param {string} [props.value='12'] 初始化时选中的布局比例,默认为"12"。
29
- * @param {Function} props.onChange 当用户选择一个新的布局比例时调用的回调函数。
30
- *
31
- * @returns {React.Element} 渲染的React元素。
11
+ * 布局比例组件
12
+ *
13
+ * @param {string} value 默认值
14
+ * @param {Function} onChange 当合法数据变化时触发
15
+ * @returns
32
16
  */
33
- var LayoutRatio = function LayoutRatio(_ref) {
34
- var defaultValue = _ref.defaultValue,
17
+ var LayoutRatio = /*#__PURE__*/forwardRef(function (_ref, ref) {
18
+ var value = _ref.value,
35
19
  onChange = _ref.onChange;
36
- var _useState = useState(defaultValue || _DEFAULTRATIO_),
20
+ var _useState = useState(value || defaultRatio),
37
21
  _useState2 = _slicedToArray(_useState, 2),
38
22
  currentRatio = _useState2[0],
39
23
  setCurrentRatio = _useState2[1];
40
24
  var handleInputChange = function handleInputChange(_, value) {
41
- // console.log('value', value);
42
- // if (!value) value = _DEFAULTRATIO_;
25
+ console.log('value', value);
26
+ if (!value) value = defaultRatio;
43
27
  setCurrentRatio(value);
44
- onChange === null || onChange === void 0 || onChange(value);
45
28
  };
46
29
  var handGridClick = function handGridClick(selectedRadio) {
47
30
  // console.log('selectedRadio', selectedRadio);
48
31
  setCurrentRatio(selectedRadio);
49
- onChange === null || onChange === void 0 || onChange(selectedRadio);
32
+ if (onChange) onChange(selectedRadio);
50
33
  };
34
+ useImperativeHandle(ref, function () {
35
+ return {
36
+ getValue: function getValue() {
37
+ return currentRatio;
38
+ }
39
+ };
40
+ });
51
41
 
52
42
  // 定义验证规则
53
43
  var rules = [{
@@ -56,41 +46,44 @@ var LayoutRatio = function LayoutRatio(_ref) {
56
46
  if (typeof value !== 'string') return false;
57
47
 
58
48
  // 使用正则表达式检查字符串是否只包含数字和冒号,并且不以冒号开始或结束
59
- return /^[0-9]+(:[0-9]+)*$/.test(value);
49
+ if (!/^[0-9]+(:[0-9]+)*$/.test(value)) return false;
50
+
51
+ // 使用冒号分割字符串,并将分割后的每个元素转换为数字
52
+ var numbers = value.split(':').map(Number);
53
+
54
+ // 计算所有数字的总和
55
+ var sum = numbers.reduce(function (acc, cur) {
56
+ return acc + cur;
57
+ }, 0);
58
+
59
+ // 判断总和是否等于12
60
+ return sum === 12;
60
61
  },
61
62
  err: formatMessage({
62
63
  id: 'luckda.lowcode.painter.panel-section.Layoutratio.err',
63
64
  label: '必须是数字或者数字加:号的组合,且数字之和必须等于12'
64
65
  })
65
66
  }];
66
- var _useCreation = useCreation(function () {
67
- return {
68
- isCurrentInRatios: _RATIOS_.includes(currentRatio),
69
- currentItemRatios: currentRatio.split(':')
70
- };
71
- }, [currentRatio]),
72
- isCurrentInRatios = _useCreation.isCurrentInRatios,
73
- currentItemRatios = _useCreation.currentItemRatios;
67
+ var isCurrentInRatios = ratios.includes(currentRatio);
68
+ var currentItemRatios = currentRatio.split(':');
74
69
  return /*#__PURE__*/React.createElement("div", {
75
70
  className: styles['lc-painter-panel-section-layoutratio']
76
71
  }, /*#__PURE__*/React.createElement("div", {
77
72
  className: styles['ratio-view']
78
73
  }, /*#__PURE__*/React.createElement("div", {
79
74
  className: styles['gridbox-container']
80
- }, _RATIOS_.map(function (ratio, i) {
75
+ }, ratios.map(function (ratio) {
81
76
  var itemRatios = ratio.split(':');
82
77
  var isCurrent = ratio == currentRatio;
83
78
  var className = styles['gridbox'];
84
79
  if (isCurrent) className = className + ' ' + styles['current'];
85
80
  return /*#__PURE__*/React.createElement("div", {
86
- key: "grid-".concat(i),
87
81
  className: className,
88
82
  onClick: function onClick() {
89
83
  return handGridClick(ratio);
90
84
  }
91
- }, itemRatios.map(function (itemRatio, j) {
85
+ }, itemRatios.map(function (itemRatio) {
92
86
  return /*#__PURE__*/React.createElement("div", {
93
- key: "gridItem-".concat(j),
94
87
  className: styles['girditem'],
95
88
  style: {
96
89
  gridColumn: 'span ' + itemRatio
@@ -102,9 +95,8 @@ var LayoutRatio = function LayoutRatio(_ref) {
102
95
  onClick: function onClick() {
103
96
  return handGridClick(ratio);
104
97
  }
105
- }, currentItemRatios.map(function (itemRatio, index) {
98
+ }, currentItemRatios.map(function (itemRatio) {
106
99
  return /*#__PURE__*/React.createElement("div", {
107
- key: "itemRatio-".concat(index),
108
100
  className: styles['girditem'],
109
101
  style: {
110
102
  gridColumn: 'span ' + itemRatio
@@ -116,15 +108,16 @@ var LayoutRatio = function LayoutRatio(_ref) {
116
108
  label: formatMessage({
117
109
  id: 'luckda.lowcode.painter.panel-section.Layoutratio.label',
118
110
  label: '列比例'
119
- })
120
- }, /*#__PURE__*/React.createElement(RuleInput, {
121
- placeholder: formatMessage({
122
- id: 'luckda.lowcode.painter.panel-section.Layoutratio.placeholder',
123
- label: '请输入列比例'
124
111
  }),
125
- rules: rules,
126
- onValueChange: handleInputChange,
127
- value: currentRatio
128
- }))));
129
- };
112
+ component: /*#__PURE__*/React.createElement(RuleInput, {
113
+ placeholder: formatMessage({
114
+ id: 'luckda.lowcode.painter.panel-section.Layoutratio.placeholder',
115
+ label: '请输入列比例'
116
+ }),
117
+ rules: rules,
118
+ onValueChange: handleInputChange,
119
+ value: currentRatio
120
+ })
121
+ })));
122
+ });
130
123
  export default LayoutRatio;
@@ -0,0 +1,58 @@
1
+ import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
2
+ import React, { useState } from 'react';
3
+ import styles from "../style/radio.less";
4
+
5
+ /**
6
+ * Radio组件允许用户从一组选项中选择一个。它接收一个`options`数组来渲染选项,以及一个可选的`onChange`回调函数,
7
+ * 当用户选择不同的选项时,`onChange`会被调用并传递当前选中的选项对象。
8
+ *
9
+ * @component
10
+ * @example
11
+ * const options = [
12
+ * { label: '小', value: 'small' },
13
+ * { label: '中', value: 'middle' },
14
+ * { label: '大', value: 'large' }
15
+ * ];
16
+ *
17
+ * function handleChange(option) {
18
+ * console.log(option);
19
+ * }
20
+ *
21
+ * <Radio options={options} onChange={handleChange} />
22
+ *
23
+ * @param {Object} props - 组件的props。
24
+ * @param {Object[]} props.options - 选项数组,每个对象都应包含`label`和`value`。
25
+ * @param {string} props.options[].label - 选项的显示文本。
26
+ * @param {string} props.options[].value - 选项的值,应唯一。
27
+ * @param {Function} [props.onChange] - 可选,当选项变化时调用的回调函数。传递当前选中的选项对象。
28
+ */
29
+ var Radio = function Radio(_ref) {
30
+ var _options$;
31
+ var options = _ref.options,
32
+ onChange = _ref.onChange;
33
+ var _useState = useState((_options$ = options[0]) === null || _options$ === void 0 ? void 0 : _options$.value),
34
+ _useState2 = _slicedToArray(_useState, 2),
35
+ activeValue = _useState2[0],
36
+ setActiveValue = _useState2[1];
37
+
38
+ // 点击事件处理函数
39
+ var handleClick = function handleClick(option) {
40
+ // 设置当前激活的选项
41
+ setActiveValue(option.value);
42
+ if (onChange) {
43
+ onChange(option);
44
+ }
45
+ };
46
+ return /*#__PURE__*/React.createElement("div", {
47
+ className: styles['lc-painter-panel-section-radio']
48
+ }, options.map(function (option) {
49
+ return /*#__PURE__*/React.createElement("div", {
50
+ key: option.value,
51
+ className: "".concat(styles['radio-item'], " ").concat(activeValue === option.value ? 'active' : ''),
52
+ onClick: function onClick() {
53
+ return handleClick(option);
54
+ }
55
+ }, option.label);
56
+ }));
57
+ };
58
+ export default Radio;
File without changes
@@ -4,22 +4,11 @@
4
4
  height: 0;
5
5
  top: 0;
6
6
  left: 0;
7
+ display: none;
7
8
  pointer-events: none;
8
9
  cursor: pointer;
9
10
  overflow: visible;
10
- z-index: 1001;
11
- }
12
-
13
- .selector-item {
14
- height: 20px;
15
- background-color: var(--ant-primary-color);
16
- color: #fff;
17
- font-size: 16px;
18
- line-height: 20px;
19
- min-width: 20px;
20
- text-align: center;
21
- cursor: pointer;
22
- border-radius: 3px;
11
+ z-index: 9999;
23
12
  }
24
13
 
25
14
  .lc-painter-design {
@@ -28,115 +17,22 @@
28
17
  height: 100%;
29
18
  overflow: auto;
30
19
 
31
- &-toolbar {
32
- width: 100%;
33
- height: 40px;
34
- padding: 8px 16px;
35
- border-bottom: 1px solid #e3e3e3;
36
- background-color: white;
37
- display: flex;
38
- align-items: center;
39
- justify-content: flex-end;
40
-
41
- .i18n-selecter {
42
- width: 125px;
43
- padding: 0 8px;
44
- }
45
-
46
- .toolbar-item {
47
- display: inline-block;
48
- width: 32px;
49
- height: 32px;
50
- border-radius: 3px;
51
- padding: 6px;
52
- margin: 0 2px;
53
- cursor: pointer;
54
- text-align: center;
55
- color: #8c8c8c;
56
- }
57
-
58
- .toolbar-item:hover {
59
- color: #262626;
60
- }
61
-
62
- .toolbar-item.actived {
63
- color: #8c8c8c;
64
- background: #f1f2f3;
65
- }
66
- }
67
-
68
- &-workspace {
69
- width: calc(100% - 16px);
70
- height: calc(100% - 48px);
71
- position: relative;
72
- margin: 8px 8px 0 8px;
73
- background-color: transparent;
74
- overflow-x: hidden;
75
- overflow-y: auto;
76
- }
77
-
78
- &-simulator {
79
- min-height: 100%;
80
- height: auto;
81
- display: grid;
20
+ .simulator {
82
21
  :global {
83
22
  .ant-form-item {
84
23
  pointer-events: none;
85
24
  }
86
- .luck-grid-table {
87
- .topLayout,
88
- .gridTableBody {
89
- pointer-events: none;
90
- }
91
- }
92
25
  }
93
26
  }
94
27
 
95
- &-detector {
28
+ .detector {
96
29
  border: 1px dashed var(--ant-primary-color);
97
30
  background-color: color-mix(in sRGB, var(--ant-primary-color), transparent 95%);
98
31
  .box();
99
32
  }
100
33
 
101
- &-selector {
34
+ .selector {
102
35
  border: 2px solid var(--ant-primary-6);
103
36
  .box();
104
-
105
- .lc-borders-actions {
106
- position: absolute;
107
- right: -2px;
108
- pointer-events: all;
109
- cursor: default;
110
- display: flex;
111
-
112
- & > div {
113
- .selector-item();
114
- }
115
-
116
- :local {
117
- .instance-node-selector {
118
- padding: 0 6px;
119
- margin-right: 3px;
120
- font-size: 12px !important;
121
- }
122
- }
123
- }
124
- }
125
- }
126
-
127
- .next-overlay-wrapper {
128
- z-index: 9999;
129
- display: flex;
130
- flex-direction: column;
131
- & > div > span {
132
- .selector-item();
133
-
134
- display: inline-block;
135
- font-size: 12px;
136
- padding: 0 6px;
137
- background-color: #78869a;
138
- &:not(:last-child) {
139
- margin-bottom: 3px;
140
- }
141
37
  }
142
38
  }
@@ -3,4 +3,5 @@
3
3
  height: 100%;
4
4
  position: relative;
5
5
  display: flex;
6
+ background-color: #fff;
6
7
  }
@@ -1,5 +1,5 @@
1
1
  .lc-painter-panel-section-layoutratio {
2
- @gridbox-width: 58px; // 定义变量
2
+ @gridbox-width: 66px; // 定义变量
3
3
  @grid-gap: 10px; // 间隔变量
4
4
  @grid-items-per-row: 4; // 每行的gridbox数量
5
5
 
@@ -1,6 +1,4 @@
1
1
  .lc-painter-outline {
2
- background-color: #fff;
3
-
4
2
  .page-node {
5
3
  cursor: pointer;
6
4
  display: flex;
@@ -1,44 +1,21 @@
1
1
  .lc-painter-components-panelitem {
2
- padding: 0 16px;
2
+ display: flex;
3
+ justify-content: space-between;
4
+ gap: 20px;
5
+ align-items: center;
6
+ min-height: 28px;
3
7
 
4
- .panelrow {
5
- display: flex;
6
- justify-content: space-between;
7
- align-items: center;
8
- min-height: 28px;
9
- margin-bottom: 4px;
10
-
11
- .item-label {
12
- font-size: 12px;
13
- width: 80px;
14
- display: flex;
15
- justify-content: flex-start;
16
- align-items: center;
17
- gap: 4px;
18
- user-select: none;
19
- }
20
-
21
- .item-component {
22
- display: flex;
23
- flex: 1;
24
- }
25
-
26
- .item-icon {
27
- font-size: 8px;
28
- cursor: pointer;
29
- }
8
+ .item-label {
9
+ font-size: 12px;
10
+ }
30
11
 
31
- /* 使.item-component-box的直接子元素铺满 */
32
- .item-component > *:not(.ant-switch) {
33
- flex-grow: 1;
34
- }
12
+ .item-component {
13
+ display: flex;
14
+ width: 215px;
35
15
  }
36
- .addon {
37
- background-color: rgba(31, 56, 88, 0.04);
38
- min-height: 20px;
39
- margin-bottom: 6px;
40
- margin-top: 6px;
41
- padding: 4px 8px;
42
- border-radius: 6px;
16
+
17
+ /* 使.item-component-box的直接子元素铺满 */
18
+ .item-component > * {
19
+ flex-grow: 1;
43
20
  }
44
21
  }
@@ -1,142 +1,5 @@
1
1
  .lc-painter-panel {
2
- position: relative;
3
2
  width: 320px;
4
3
  height: 100%;
5
4
  border-left: 1px solid #e8e8e8;
6
- display: flex;
7
- flex-direction: column;
8
- background-color: #fff;
9
-
10
- &-empty {
11
- position: absolute;
12
- top: 0;
13
- left: 0;
14
- width: 100%;
15
- height: 100%;
16
- text-align: center;
17
- padding-top: 64px;
18
- }
19
-
20
- .hidden {
21
- display: none;
22
- }
23
-
24
- &-topbar {
25
- width: 100%;
26
- height: 40px;
27
- padding: 8px 16px;
28
- border-bottom: 1px solid #e3e3e3;
29
- background-color: white;
30
- display: flex;
31
- align-items: center;
32
- .active-node-level:hover {
33
- cursor: pointer;
34
- }
35
- }
36
-
37
- &-tabbar {
38
- position: relative;
39
- width: 100%;
40
- height: 36px;
41
- .headerList {
42
- display: flex;
43
- justify-content: space-around;
44
- padding: 0 !important;
45
-
46
- & > li {
47
- padding: 8px;
48
- font-size: 12px;
49
- color: #a0a0a0;
50
- cursor: pointer;
51
- display: flex;
52
- align-items: center;
53
-
54
- &:hover {
55
- color: #363636;
56
- }
57
-
58
- &.actived {
59
- color: #363636;
60
- }
61
-
62
- & > i {
63
- margin-right: 4px;
64
- }
65
- }
66
-
67
- :global {
68
- li#header-active {
69
- color: #363636;
70
- position: relative;
71
- }
72
- }
73
- }
74
-
75
- .underline {
76
- position: absolute;
77
- bottom: 0;
78
- height: 5px;
79
- background: var(--ant-primary-color);
80
- border-radius: 3px;
81
- width: 20px;
82
- }
83
- }
84
-
85
- &-content {
86
- position: relative;
87
- width: 100%;
88
- flex: 1;
89
- overflow-x: hidden;
90
- overflow-y: auto;
91
- padding: 8px 0;
92
-
93
- .next-content {
94
- height: 100%;
95
- display: flex;
96
- flex-direction: column;
97
-
98
- &-header {
99
- height: 28px;
100
- background-color: #e8e8e8;
101
- display: flex;
102
- align-items: center;
103
- justify-content: space-between;
104
- padding: 0 4px;
105
- }
106
- &-header:hover {
107
- background-color: #e3e3e3;
108
- cursor: pointer;
109
- }
110
-
111
- &-body {
112
- flex: 1;
113
- overflow-y: auto;
114
- background-color: white;
115
- padding: 16px 0 8px;
116
- }
117
- }
118
- }
119
- :global {
120
- .ant-select .ant-btn {
121
- width: 170px !important;
122
- height: 20px;
123
- line-height: 16px;
124
- }
125
- .rc-segmented {
126
- border-radius: 6px;
127
- .rc-segmented-thumb {
128
- border-radius: 6px;
129
- }
130
- .rc-segmented-item {
131
- flex: 1;
132
- border-radius: 6px;
133
- min-height: 24px !important;
134
- padding: 4px 6px !important;
135
- .rc-segmented-item-label {
136
- line-height: 16px !important;
137
- font-size: 12px;
138
- }
139
- }
140
- }
141
- }
142
5
  }
File without changes
@@ -1,5 +1,4 @@
1
1
  .lc-painter-ribbon {
2
2
  border-right: 1px solid #e8e8e8;
3
3
  font-size: 16px;
4
- background-color: #fff;
5
4
  }
File without changes