@luck-design-biz/luckda 0.0.25-6 → 0.0.25-8

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 (255) hide show
  1. package/es/components/LDActions/index.js +8 -10
  2. package/es/components/LDActions/index.less +7 -4
  3. package/es/components/LdAutoForm/index.js +26 -8
  4. package/es/components/LdFormList/index.js +37 -22
  5. package/es/components/LdGrid/index.js +14 -7
  6. package/es/components/LdGridForm/index.js +18 -6
  7. package/es/components/LdTree/index.js +33 -15
  8. package/es/helper/form.js +15 -8
  9. package/es/locales/zh-CN.js +16 -10
  10. package/es/lowcode/constants/api-url.js +120 -32
  11. package/es/lowcode/constants/event-topics.js +2 -0
  12. package/es/lowcode/engine/factory/panel-item-factory/SelectStrategy.js +4 -2
  13. package/es/lowcode/engine/factory/panel-item-factory/SwitchStrategy.js +4 -2
  14. package/es/lowcode/engine/meta/box.props.json +3 -3
  15. package/es/lowcode/engine/meta/button.props.json +3 -3
  16. package/es/lowcode/engine/meta/components-list.json +6 -0
  17. package/es/lowcode/engine/meta/dialog.props.default.json +10 -5
  18. package/es/lowcode/engine/meta/dialog.props.json +72 -42
  19. package/es/lowcode/engine/meta/drawer.props.json +8 -20
  20. package/es/lowcode/engine/meta/form.props.json +16 -10
  21. package/es/lowcode/engine/meta/imex.props.default.json +8 -1
  22. package/es/lowcode/engine/meta/imex.props.json +54 -22
  23. package/es/lowcode/engine/meta/js-editor/auto-complete.json +53 -3
  24. package/es/lowcode/engine/meta/layout.props.json +2 -2
  25. package/es/lowcode/engine/meta/page.props.json +2 -2
  26. package/es/lowcode/engine/meta/pagelayout.props.default.json +14 -0
  27. package/es/lowcode/engine/meta/pagelayout.props.json +47 -0
  28. package/es/lowcode/engine/meta/section.props.json +2 -2
  29. package/es/lowcode/engine/meta/split.props.default.json +1 -1
  30. package/es/lowcode/engine/meta/split.props.json +4 -4
  31. package/es/lowcode/engine/meta/table.props.json +17 -11
  32. package/es/lowcode/engine/meta/tabs.props.json +3 -3
  33. package/es/lowcode/engine/meta/tree.props.default.json +2 -0
  34. package/es/lowcode/engine/meta/tree.props.json +62 -6
  35. package/es/lowcode/engine/provider/ContextProvider/index.js +20 -43
  36. package/es/lowcode/engine/provider/RemoteSourceProvider.js +69 -24
  37. package/es/lowcode/engine/tools/dataProcess.js +4 -0
  38. package/es/lowcode/engine/tools/helper.js +2 -3
  39. package/es/lowcode/engine/tools/useCanvasRender.js +3 -2
  40. package/es/lowcode/engine/tools/usePageDataStore.js +176 -0
  41. package/es/lowcode/engine/tools/usePromiseState.js +12 -23
  42. package/es/lowcode/engine/tools/useTodo.js +20 -10
  43. package/es/lowcode/painter/DesignOperator.js +12 -23
  44. package/es/lowcode/painter/DesignToolbar.js +10 -45
  45. package/es/lowcode/painter/Outline.js +2 -4
  46. package/es/lowcode/painter/Panel.js +29 -28
  47. package/es/lowcode/painter/components/ActionBindModal.js +30 -24
  48. package/es/lowcode/painter/components/AdvancePanel.js +6 -1
  49. package/es/lowcode/painter/components/AttrsPanel.js +38 -29
  50. package/es/lowcode/painter/components/DragDrop/DragDropContext.js +1 -1
  51. package/es/lowcode/painter/components/code-editor/BaseEditor.js +3 -2
  52. package/es/lowcode/painter/components/field-setting/CheckFrontRules.js +108 -0
  53. package/es/lowcode/painter/components/field-setting/CheckRules.js +1 -26
  54. package/es/lowcode/painter/components/field-setting/FieldRulesModal.js +33 -13
  55. package/es/lowcode/painter/components/field-setting/SettingUI.js +162 -30
  56. package/es/lowcode/painter/components/field-setting/index.js +32 -63
  57. package/es/lowcode/painter/components/field-setting/meta/frontRules.js +53 -0
  58. package/es/lowcode/painter/panel-section/BlocksEditor/index.js +14 -17
  59. package/es/lowcode/painter/panel-section/ButtonType.js +4 -2
  60. package/es/lowcode/painter/panel-section/DataSetSelector.js +4 -1
  61. package/es/lowcode/painter/panel-section/FieldsSetting.js +53 -8
  62. package/es/lowcode/painter/panel-section/ImpExp.js +93 -6
  63. package/es/lowcode/painter/panel-section/ImpExpAlone.js +109 -0
  64. package/es/lowcode/painter/panel-section/PageLayoutDisplay.js +95 -0
  65. package/es/lowcode/painter/panel-section/SerialsSelector.js +4 -2
  66. package/es/lowcode/painter/panel-section/SplitDisplay.js +25 -110
  67. package/es/lowcode/painter/panel-section/StylePanel/index.js +10 -4
  68. package/es/lowcode/painter/panel-section/TreeRootEditor.js +2 -2
  69. package/es/lowcode/painter/style/action-bind-modal.less +3 -3
  70. package/es/lowcode/painter/style/design.less +1 -1
  71. package/es/lowcode/painter/style/page-layout-display.less +28 -0
  72. package/es/lowcode/painter/style/panel-item.less +1 -1
  73. package/es/lowcode/painter/style/split-display.less +0 -9
  74. package/es/lowcode/preview/index.js +4 -2
  75. package/es/lowcode/view/Canvas.js +6 -7
  76. package/es/lowcode/view/Page.js +2 -3
  77. package/es/lowcode/view/lc-components/Box/FunctionDesign.js +3 -2
  78. package/es/lowcode/view/lc-components/Box/meta.json +3 -3
  79. package/es/lowcode/view/lc-components/Button/index.js +2 -6
  80. package/es/lowcode/view/lc-components/Button/meta.json +3 -3
  81. package/es/lowcode/view/lc-components/Dialog/FunctionDesign.js +3 -10
  82. package/es/lowcode/view/lc-components/Dialog/index.js +114 -19
  83. package/es/lowcode/view/lc-components/Dialog/meta.json +65 -42
  84. package/es/lowcode/view/lc-components/Drawer/meta.json +8 -20
  85. package/es/lowcode/view/lc-components/Form/FunctionDesign.js +23 -33
  86. package/es/lowcode/view/lc-components/Form/FunctionPreview.js +8 -1
  87. package/es/lowcode/view/lc-components/Form/index.js +113 -21
  88. package/es/lowcode/view/lc-components/Form/meta.json +16 -10
  89. package/es/lowcode/view/lc-components/ImEx/FunctionDesign.js +8 -3
  90. package/es/lowcode/view/lc-components/ImEx/index.js +260 -10
  91. package/es/lowcode/view/lc-components/ImEx/index.less +7 -0
  92. package/es/lowcode/view/lc-components/ImEx/meta.json +55 -23
  93. package/es/lowcode/view/lc-components/Layout/FunctionDesign.js +12 -19
  94. package/es/lowcode/view/lc-components/Layout/meta.json +2 -2
  95. package/es/lowcode/view/lc-components/Page/meta.json +2 -2
  96. package/es/lowcode/view/lc-components/PageContent/index.js +8 -9
  97. package/es/lowcode/view/lc-components/PageFooter/index.js +2 -5
  98. package/es/lowcode/view/lc-components/PageHeader/index.js +5 -6
  99. package/es/lowcode/view/lc-components/PageLayout/FunctionDesign.js +63 -0
  100. package/es/lowcode/view/lc-components/PageLayout/FunctionLive.js +10 -0
  101. package/es/lowcode/view/lc-components/PageLayout/FunctionPreview.js +10 -0
  102. package/es/lowcode/view/lc-components/PageLayout/index.js +32 -0
  103. package/es/lowcode/view/lc-components/PageLayout/meta.json +47 -0
  104. package/es/lowcode/view/lc-components/PageModal/index.js +12 -15
  105. package/es/lowcode/view/lc-components/Section/FunctionDesign.js +3 -9
  106. package/es/lowcode/view/lc-components/Section/meta.json +2 -2
  107. package/es/lowcode/view/lc-components/Split/FunctionDesign.js +19 -20
  108. package/es/lowcode/view/lc-components/Split/index.js +5 -9
  109. package/es/lowcode/view/lc-components/Split/meta.json +4 -4
  110. package/es/lowcode/view/lc-components/Table/components/TopImex.js +138 -0
  111. package/es/lowcode/view/lc-components/Table/index.js +124 -39
  112. package/es/lowcode/view/lc-components/Table/meta.json +17 -11
  113. package/es/lowcode/view/lc-components/Tabs/FunctionDesign.js +10 -17
  114. package/es/lowcode/view/lc-components/Tabs/index.js +3 -1
  115. package/es/lowcode/view/lc-components/Tabs/meta.json +3 -3
  116. package/es/lowcode/view/lc-components/Tree/FunctionDesign.js +2 -1
  117. package/es/lowcode/view/lc-components/Tree/index.js +67 -18
  118. package/es/lowcode/view/lc-components/Tree/meta.json +62 -7
  119. package/es/lowcode/view/lc-components/Wrapper.js +9 -11
  120. package/es/services.js +0 -24
  121. package/es/upload/FilesWall/file.png +0 -0
  122. package/es/upload/FilesWall/index.js +422 -0
  123. package/es/upload/FilesWall/index.less +74 -0
  124. package/es/upload/Form/index.js +2 -1
  125. package/es/upload/FormItem/index.js +3 -5
  126. package/es/upload/index.js +2 -1
  127. package/es/utils/action.js +2 -2
  128. package/lib/components/LDActions/index.js +7 -9
  129. package/lib/components/LDActions/index.less +7 -4
  130. package/lib/components/LdAutoForm/index.js +25 -7
  131. package/lib/components/LdFormList/index.js +36 -21
  132. package/lib/components/LdGrid/index.js +14 -7
  133. package/lib/components/LdGridForm/index.js +16 -4
  134. package/lib/components/LdTree/index.js +33 -15
  135. package/lib/helper/form.js +14 -7
  136. package/lib/locales/zh-CN.js +16 -10
  137. package/lib/lowcode/constants/api-url.js +123 -32
  138. package/lib/lowcode/constants/event-topics.js +3 -1
  139. package/lib/lowcode/engine/factory/panel-item-factory/SelectStrategy.js +4 -2
  140. package/lib/lowcode/engine/factory/panel-item-factory/SwitchStrategy.js +4 -2
  141. package/lib/lowcode/engine/meta/box.props.json +3 -3
  142. package/lib/lowcode/engine/meta/button.props.json +3 -3
  143. package/lib/lowcode/engine/meta/components-list.json +6 -0
  144. package/lib/lowcode/engine/meta/dialog.props.default.json +10 -5
  145. package/lib/lowcode/engine/meta/dialog.props.json +72 -42
  146. package/lib/lowcode/engine/meta/drawer.props.json +8 -20
  147. package/lib/lowcode/engine/meta/form.props.json +16 -10
  148. package/lib/lowcode/engine/meta/imex.props.default.json +8 -1
  149. package/lib/lowcode/engine/meta/imex.props.json +54 -22
  150. package/lib/lowcode/engine/meta/js-editor/auto-complete.json +53 -3
  151. package/lib/lowcode/engine/meta/layout.props.json +2 -2
  152. package/lib/lowcode/engine/meta/page.props.json +2 -2
  153. package/lib/lowcode/engine/meta/pagelayout.props.default.json +14 -0
  154. package/lib/lowcode/engine/meta/pagelayout.props.json +47 -0
  155. package/lib/lowcode/engine/meta/section.props.json +2 -2
  156. package/lib/lowcode/engine/meta/split.props.default.json +1 -1
  157. package/lib/lowcode/engine/meta/split.props.json +4 -4
  158. package/lib/lowcode/engine/meta/table.props.json +17 -11
  159. package/lib/lowcode/engine/meta/tabs.props.json +3 -3
  160. package/lib/lowcode/engine/meta/tree.props.default.json +2 -0
  161. package/lib/lowcode/engine/meta/tree.props.json +62 -6
  162. package/lib/lowcode/engine/provider/ContextProvider/index.js +36 -43
  163. package/lib/lowcode/engine/provider/RemoteSourceProvider.js +68 -23
  164. package/lib/lowcode/engine/tools/dataProcess.js +4 -0
  165. package/lib/lowcode/engine/tools/helper.js +2 -3
  166. package/lib/lowcode/engine/tools/useCanvasRender.js +3 -2
  167. package/lib/lowcode/engine/tools/usePageDataStore.js +183 -0
  168. package/lib/lowcode/engine/tools/usePromiseState.js +11 -21
  169. package/lib/lowcode/engine/tools/useTodo.js +19 -9
  170. package/lib/lowcode/painter/DesignOperator.js +11 -22
  171. package/lib/lowcode/painter/DesignToolbar.js +9 -44
  172. package/lib/lowcode/painter/Outline.js +1 -3
  173. package/lib/lowcode/painter/Panel.js +28 -27
  174. package/lib/lowcode/painter/components/ActionBindModal.js +28 -22
  175. package/lib/lowcode/painter/components/AdvancePanel.js +6 -1
  176. package/lib/lowcode/painter/components/AttrsPanel.js +37 -28
  177. package/lib/lowcode/painter/components/DragDrop/DragDropContext.js +1 -1
  178. package/lib/lowcode/painter/components/code-editor/BaseEditor.js +3 -2
  179. package/lib/lowcode/painter/components/field-setting/CheckFrontRules.js +116 -0
  180. package/lib/lowcode/painter/components/field-setting/CheckRules.js +1 -26
  181. package/lib/lowcode/painter/components/field-setting/FieldRulesModal.js +34 -13
  182. package/lib/lowcode/painter/components/field-setting/SettingUI.js +159 -27
  183. package/lib/lowcode/painter/components/field-setting/index.js +32 -63
  184. package/lib/lowcode/painter/components/field-setting/meta/frontRules.js +59 -0
  185. package/lib/lowcode/painter/panel-section/BlocksEditor/index.js +13 -16
  186. package/lib/lowcode/painter/panel-section/ButtonType.js +4 -2
  187. package/lib/lowcode/painter/panel-section/DataSetSelector.js +4 -1
  188. package/lib/lowcode/painter/panel-section/FieldsSetting.js +53 -8
  189. package/lib/lowcode/painter/panel-section/ImpExp.js +92 -5
  190. package/lib/lowcode/painter/panel-section/ImpExpAlone.js +115 -0
  191. package/lib/lowcode/painter/panel-section/PageLayoutDisplay.js +103 -0
  192. package/lib/lowcode/painter/panel-section/SerialsSelector.js +4 -2
  193. package/lib/lowcode/painter/panel-section/SplitDisplay.js +24 -109
  194. package/lib/lowcode/painter/panel-section/StylePanel/index.js +10 -4
  195. package/lib/lowcode/painter/panel-section/TreeRootEditor.js +2 -2
  196. package/lib/lowcode/painter/style/action-bind-modal.less +3 -3
  197. package/lib/lowcode/painter/style/design.less +1 -1
  198. package/lib/lowcode/painter/style/page-layout-display.less +28 -0
  199. package/lib/lowcode/painter/style/panel-item.less +1 -1
  200. package/lib/lowcode/painter/style/split-display.less +0 -9
  201. package/lib/lowcode/preview/index.js +4 -2
  202. package/lib/lowcode/view/Canvas.js +5 -6
  203. package/lib/lowcode/view/Page.js +2 -3
  204. package/lib/lowcode/view/lc-components/Box/FunctionDesign.js +3 -2
  205. package/lib/lowcode/view/lc-components/Box/meta.json +3 -3
  206. package/lib/lowcode/view/lc-components/Button/index.js +2 -6
  207. package/lib/lowcode/view/lc-components/Button/meta.json +3 -3
  208. package/lib/lowcode/view/lc-components/Dialog/FunctionDesign.js +2 -9
  209. package/lib/lowcode/view/lc-components/Dialog/index.js +114 -19
  210. package/lib/lowcode/view/lc-components/Dialog/meta.json +65 -42
  211. package/lib/lowcode/view/lc-components/Drawer/meta.json +8 -20
  212. package/lib/lowcode/view/lc-components/Form/FunctionDesign.js +20 -31
  213. package/lib/lowcode/view/lc-components/Form/FunctionPreview.js +8 -1
  214. package/lib/lowcode/view/lc-components/Form/index.js +110 -18
  215. package/lib/lowcode/view/lc-components/Form/meta.json +16 -10
  216. package/lib/lowcode/view/lc-components/ImEx/FunctionDesign.js +8 -3
  217. package/lib/lowcode/view/lc-components/ImEx/index.js +257 -8
  218. package/lib/lowcode/view/lc-components/ImEx/index.less +7 -0
  219. package/lib/lowcode/view/lc-components/ImEx/meta.json +55 -23
  220. package/lib/lowcode/view/lc-components/Layout/FunctionDesign.js +11 -18
  221. package/lib/lowcode/view/lc-components/Layout/meta.json +2 -2
  222. package/lib/lowcode/view/lc-components/Page/meta.json +2 -2
  223. package/lib/lowcode/view/lc-components/PageContent/index.js +7 -8
  224. package/lib/lowcode/view/lc-components/PageFooter/index.js +2 -5
  225. package/lib/lowcode/view/lc-components/PageHeader/index.js +4 -5
  226. package/lib/lowcode/view/lc-components/PageLayout/FunctionDesign.js +71 -0
  227. package/lib/lowcode/view/lc-components/PageLayout/FunctionLive.js +17 -0
  228. package/lib/lowcode/view/lc-components/PageLayout/FunctionPreview.js +17 -0
  229. package/lib/lowcode/view/lc-components/PageLayout/index.js +40 -0
  230. package/lib/lowcode/view/lc-components/PageLayout/meta.json +47 -0
  231. package/lib/lowcode/view/lc-components/PageModal/index.js +11 -14
  232. package/lib/lowcode/view/lc-components/Section/FunctionDesign.js +2 -8
  233. package/lib/lowcode/view/lc-components/Section/meta.json +2 -2
  234. package/lib/lowcode/view/lc-components/Split/FunctionDesign.js +19 -20
  235. package/lib/lowcode/view/lc-components/Split/index.js +2 -6
  236. package/lib/lowcode/view/lc-components/Split/meta.json +4 -4
  237. package/lib/lowcode/view/lc-components/Table/components/TopImex.js +145 -0
  238. package/lib/lowcode/view/lc-components/Table/index.js +123 -38
  239. package/lib/lowcode/view/lc-components/Table/meta.json +17 -11
  240. package/lib/lowcode/view/lc-components/Tabs/FunctionDesign.js +11 -18
  241. package/lib/lowcode/view/lc-components/Tabs/index.js +3 -1
  242. package/lib/lowcode/view/lc-components/Tabs/meta.json +3 -3
  243. package/lib/lowcode/view/lc-components/Tree/FunctionDesign.js +2 -1
  244. package/lib/lowcode/view/lc-components/Tree/index.js +65 -16
  245. package/lib/lowcode/view/lc-components/Tree/meta.json +62 -7
  246. package/lib/lowcode/view/lc-components/Wrapper.js +8 -10
  247. package/lib/services.js +0 -25
  248. package/lib/upload/FilesWall/file.png +0 -0
  249. package/lib/upload/FilesWall/index.js +429 -0
  250. package/lib/upload/FilesWall/index.less +74 -0
  251. package/lib/upload/Form/index.js +2 -1
  252. package/lib/upload/FormItem/index.js +3 -5
  253. package/lib/upload/index.js +8 -1
  254. package/lib/utils/action.js +2 -2
  255. package/package.json +5 -4
@@ -38,7 +38,7 @@
38
38
  {
39
39
  "key": "saveTitle",
40
40
  "name": "保存按钮标题",
41
- "type": "string",
41
+ "type": "_I18nInput",
42
42
  "default": "保存"
43
43
  },
44
44
  {
@@ -125,7 +125,7 @@
125
125
  {
126
126
  "key": "name",
127
127
  "name": "区块名称",
128
- "type": "string"
128
+ "type": "_I18nInput"
129
129
  },
130
130
  {
131
131
  "key": "serial",
@@ -254,7 +254,7 @@
254
254
  "name": "格式化数据",
255
255
  "desc": "格式化单表提交数据",
256
256
  "type": "_JSEditor",
257
- "defaultCode": "function dataSourceFormat(values, submitData) { \n return submitData; \n}",
257
+ "defaultCode": "function dataSourceFormat(dataSetKey, values, submitData) { \n return { [dataSetKey]: submitData }; \n}",
258
258
  "mustConfirm": true,
259
259
  "wrapper": "collapse",
260
260
  "wrapperProps": {
@@ -543,7 +543,7 @@
543
543
  {
544
544
  "key": "zipName",
545
545
  "name": "压缩包命名",
546
- "type": "string"
546
+ "type": "_I18nInput"
547
547
  },
548
548
  {
549
549
  "key": "uploadUrl",
@@ -612,37 +612,43 @@
612
612
  "key": "onMount",
613
613
  "name": "组件首次渲染时",
614
614
  "desc": "在组件首次渲染时,执行方法",
615
- "func": "(instance)=>{\n\t\n}"
615
+ "func": "function onMount(instance) {\n\t\n}"
616
616
  },
617
617
  {
618
618
  "key": "beforeSave",
619
619
  "name": "保存前置事件",
620
620
  "desc": "保存前置事件,promise,返回false取消执行",
621
- "func": "(values, data) => {\n return values; \n}"
621
+ "func": "function beforeSave(values, data) {\n return values; \n}"
622
622
  },
623
623
  {
624
624
  "key": "onSaveCallback",
625
625
  "name": "保存后回调",
626
626
  "desc": "保存后回调事件",
627
- "func": "(success, mainKey, res)=>{\n\t\n}"
627
+ "func": "function onSaveCallback(success, mainKey, res) {\n\t\n}"
628
628
  },
629
629
  {
630
630
  "key": "onUnmount",
631
631
  "name": "组件卸载时",
632
632
  "desc": "在组件卸载时,执行方法",
633
- "func": "(instance)=>{\n\t\n}"
633
+ "func": "function onUnmount(instance) {\n\t\n}"
634
634
  },
635
635
  {
636
636
  "key": "onValueChange",
637
637
  "name": "参数变化的事件",
638
638
  "desc": "参数变化时,执行方法",
639
- "func": "(change, data)=>{\n\t\n}"
639
+ "func": "function onValueChange(change, data) {\n\t\n}"
640
640
  },
641
641
  {
642
642
  "key": "onChildChange",
643
643
  "name": "表单内容发生改变时的回调",
644
644
  "desc": "表单内容发生改变时的回调",
645
- "func": "(instance)=>{\n\t\n}"
645
+ "func": "function onChildChange(instance) {\n\t\n}"
646
+ },
647
+ {
648
+ "key": "onPagePublicResourceChanged",
649
+ "name": "页面共享资源变化后",
650
+ "desc": "当页面共享资源发生变化后(pagePublicResourceChanged),执行方法",
651
+ "func": "function onPagePublicResourceChanged(resource, instance) {\n\t\n}"
646
652
  }
647
653
  ]
648
654
  }
@@ -7,8 +7,15 @@
7
7
  "groupName": "基础",
8
8
  "order": 1,
9
9
  "css": {},
10
- "type": "export",
11
10
  "title": "导入|导出",
11
+ "impexpSetting": {
12
+ "customType": false,
13
+ "customParam": false,
14
+ "type": "export"
15
+ },
16
+ "size": "middle",
17
+ "block": false,
18
+ "type": "primary",
12
19
  "advance": {
13
20
  "events": {}
14
21
  }
@@ -14,40 +14,72 @@
14
14
  "disabled": true
15
15
  },
16
16
  {
17
- "key": "type",
18
- "name": "类型",
19
- "desc": "选择导入功能或者导出功能",
20
- "type": "radio",
17
+ "key": "title",
18
+ "name": "标题",
19
+ "desc": "按钮上显示的文字",
20
+ "type": "_I18nInput",
21
+ "default": "导入|导出"
22
+ },
23
+ {
24
+ "key": "impexpSetting",
25
+ "type": "_ImpExpAlone",
26
+ "default": {
27
+ "customType": false,
28
+ "customParam": false,
29
+ "type": "export"
30
+ }
31
+ },
32
+ {
33
+ "key": "size",
34
+ "name": "按钮",
35
+ "type": "segmented",
36
+ "repositioning": true,
21
37
  "options": [
22
38
  {
23
- "label": "导入",
24
- "value": "import"
39
+ "label": "",
40
+ "value": "small"
41
+ },
42
+ {
43
+ "label": "中",
44
+ "value": "middle"
25
45
  },
26
46
  {
27
- "label": "导出",
28
- "value": "export"
47
+ "label": "",
48
+ "value": "large"
29
49
  }
30
50
  ],
31
- "default": "export"
51
+ "default": "middle"
32
52
  },
33
53
  {
34
- "key": "title",
35
- "name": "标题",
36
- "desc": "按钮上显示的文字",
37
- "type": "_I18nInput",
38
- "default": "导入|导出"
54
+ "key": "block",
55
+ "name": "块级",
56
+ "desc": "将按钮宽度调整为其父宽度的选项",
57
+ "type": "switch",
58
+ "repositioning": true,
59
+ "default": false
39
60
  },
40
61
  {
41
- "key": "templateId",
42
- "name": "模板id",
43
- "desc": "在导入导出模块配置的模板id",
44
- "type": "string"
62
+ "key": "type",
63
+ "name": "按钮类型",
64
+ "type": "_ButtonType",
65
+ "default": "primary"
45
66
  },
46
67
  {
47
- "key": "apiUrl",
48
- "name": "接口地址",
49
- "desc": "定制的导入导出接口",
50
- "type": "string"
68
+ "key": "iconFont",
69
+ "name": "图标",
70
+ "type": "_Icon",
71
+ "next": {
72
+ "name": "选择图标",
73
+ "autoClose": true,
74
+ "props": [
75
+ {
76
+ "key": "iconFont",
77
+ "name": "#图标选择器",
78
+ "type": "_IconSelector"
79
+ }
80
+ ]
81
+ },
82
+ "repositioning": true
51
83
  }
52
84
  ],
53
85
  "css": {},
@@ -17,7 +17,32 @@
17
17
  {
18
18
  "name": "Dialog",
19
19
  "triggerWord": "dialog",
20
- "completions": []
20
+ "completions": [
21
+ {
22
+ "label": "open",
23
+ "kind": "property",
24
+ "insertText": "open",
25
+ "documentation": " /**\r\n * 弹窗打开状态\r\n * @property\r\n */\r"
26
+ },
27
+ {
28
+ "label": "doOpen",
29
+ "kind": "method",
30
+ "insertText": "doOpen",
31
+ "documentation": " /**\r\n * 打开弹窗\r\n * @method\r\n */\r"
32
+ },
33
+ {
34
+ "label": "doClose",
35
+ "kind": "method",
36
+ "insertText": "doClose",
37
+ "documentation": " /**\r\n * 关闭弹窗\r\n * @method\r\n */\r"
38
+ },
39
+ {
40
+ "label": "setTitle",
41
+ "kind": "method",
42
+ "insertText": "setTitle(title)",
43
+ "documentation": " /**\r\n * 设置弹窗标题\r\n * @method\r\n * @param {stirng} title -标题\r\n */\r"
44
+ }
45
+ ]
21
46
  },
22
47
  {
23
48
  "name": "Drawer",
@@ -52,7 +77,20 @@
52
77
  {
53
78
  "name": "Form",
54
79
  "triggerWord": "form",
55
- "completions": []
80
+ "completions": [
81
+ {
82
+ "label": "getInstance",
83
+ "kind": "method",
84
+ "insertText": "getInstance",
85
+ "documentation": " /**\r\n * 获取表格实例\r\n * @method\r\n */\r"
86
+ },
87
+ {
88
+ "label": "submit",
89
+ "kind": "method",
90
+ "insertText": "submit",
91
+ "documentation": " /**\r\n * 提交表格数据\r\n * @method\r\n */\r"
92
+ }
93
+ ]
56
94
  },
57
95
  {
58
96
  "name": "Iframe",
@@ -99,6 +137,11 @@
99
137
  "triggerWord": "pageheader",
100
138
  "completions": []
101
139
  },
140
+ {
141
+ "name": "PageLayout",
142
+ "triggerWord": "pagelayout",
143
+ "completions": []
144
+ },
102
145
  {
103
146
  "name": "PageModal",
104
147
  "triggerWord": "pagemodal",
@@ -117,7 +160,14 @@
117
160
  {
118
161
  "name": "Table",
119
162
  "triggerWord": "table",
120
- "completions": []
163
+ "completions": [
164
+ {
165
+ "label": "getInstance",
166
+ "kind": "method",
167
+ "insertText": "getInstance",
168
+ "documentation": " /**\r\n * 获取表格实例\r\n * @method\r\n */\r"
169
+ }
170
+ ]
121
171
  },
122
172
  {
123
173
  "name": "Tabs",
@@ -94,13 +94,13 @@
94
94
  "key": "onMount",
95
95
  "name": "组件首次渲染时",
96
96
  "desc": "在组件首次渲染时,执行方法",
97
- "func": "(params)=>{\n\t\n}"
97
+ "func": "function onMount(params) {\n\t\n}"
98
98
  },
99
99
  {
100
100
  "key": "onUnmount",
101
101
  "name": "组件卸载时",
102
102
  "desc": "在组件卸载时,执行方法。",
103
- "func": "(params)=>{\n\t\n}"
103
+ "func": "function onUnmount(params) {\n\t\n}"
104
104
  }
105
105
  ]
106
106
  }
@@ -36,13 +36,13 @@
36
36
  "key": "onPageMount",
37
37
  "name": "组件首次渲染时",
38
38
  "desc": "在组件首次渲染时,执行方法",
39
- "func": "(params)=>{\n\t\n}"
39
+ "func": "function onPageMount()=>{\n\t\n}"
40
40
  },
41
41
  {
42
42
  "key": "onPageUnmount",
43
43
  "name": "组件卸载时",
44
44
  "desc": "在组件卸载时,执行方法。",
45
- "func": "(params)=>{\n\t\n}"
45
+ "func": "function onPageUnmount()=>{\n\t\n}"
46
46
  }
47
47
  ]
48
48
  }
@@ -0,0 +1,14 @@
1
+ {
2
+ "component": "PageLayout",
3
+ "name": "页面布局容器",
4
+ "icon": "icon-pagelayout",
5
+ "group": "container",
6
+ "groupName": "布局",
7
+ "desc": "页面布局容器一般用于构建页面时根节点的基础布局,分为左右布局、左上下布局以及左中右布局。",
8
+ "order": 1,
9
+ "css": "width: 100%, height: 100%, background-color: transparent",
10
+ "display": "lr",
11
+ "advance": {
12
+ "events": {}
13
+ }
14
+ }
@@ -0,0 +1,47 @@
1
+ {
2
+ "component": "PageLayout",
3
+ "name": "页面布局容器",
4
+ "icon": "icon-pagelayout",
5
+ "group": "container",
6
+ "groupName": "布局",
7
+ "desc": "页面布局容器一般用于构建页面时根节点的基础布局,分为左右布局、左上下布局以及左中右布局。",
8
+ "order": 1,
9
+ "props": [
10
+ {
11
+ "key": "id",
12
+ "name": "唯一标识",
13
+ "type": "string",
14
+ "disabled": true
15
+ },
16
+ {
17
+ "key": "displaySetting",
18
+ "name": "展现形式",
19
+ "type": "group",
20
+ "props": [
21
+ {
22
+ "key": "display",
23
+ "name": "#展现形式",
24
+ "type": "_PageLayoutDisplay",
25
+ "default": "lr"
26
+ }
27
+ ]
28
+ }
29
+ ],
30
+ "css": "width: 100%, height: 100%, background-color: transparent",
31
+ "advance": {
32
+ "events": [
33
+ {
34
+ "key": "onMount",
35
+ "name": "组件首次渲染时",
36
+ "desc": "在组件首次渲染时,执行方法",
37
+ "func": "function onMount() {\n\t\n}"
38
+ },
39
+ {
40
+ "key": "onUnmount",
41
+ "name": "组件卸载时",
42
+ "desc": "在组件卸载时,执行方法。",
43
+ "func": "function onUnmount() {\n\t\n}"
44
+ }
45
+ ]
46
+ }
47
+ }
@@ -98,13 +98,13 @@
98
98
  "key": "onMount",
99
99
  "name": "组件首次渲染时",
100
100
  "desc": "在组件首次渲染时,执行方法",
101
- "func": "(instance)=>{\n\t\n}"
101
+ "func": "function onMount(){\n\t\n}"
102
102
  },
103
103
  {
104
104
  "key": "onUnmount",
105
105
  "name": "组件卸载时",
106
106
  "desc": "在组件卸载时,执行方法。",
107
- "func": "(instance)=>{\n\t\n}"
107
+ "func": "function onUnmount()=>{\n\t\n}"
108
108
  }
109
109
  ]
110
110
  }
@@ -6,7 +6,7 @@
6
6
  "groupName": "布局",
7
7
  "desc": "分割面板容器是一种可以通过拖拽分割线调整面板大小的容器组件,用于创建页面布局或需要调整可视区域的布局场景",
8
8
  "order": 1,
9
- "css": "background-color: transparent",
9
+ "css": "width: 100%, height: 100%, background-color: transparent",
10
10
  "display": {
11
11
  "type": "normal",
12
12
  "split": "horizontal",
@@ -31,26 +31,26 @@
31
31
  ]
32
32
  }
33
33
  ],
34
- "css": "background-color: transparent",
34
+ "css": "width: 100%, height: 100%, background-color: transparent",
35
35
  "advance": {
36
36
  "events": [
37
37
  {
38
38
  "key": "onMount",
39
39
  "name": "组件首次渲染时",
40
40
  "desc": "在组件首次渲染时,执行方法",
41
- "func": "(params)=>{\n\t\n}"
41
+ "func": "function onMount() {\n\t\n}"
42
42
  },
43
43
  {
44
44
  "key": "onUnmount",
45
45
  "name": "组件卸载时",
46
46
  "desc": "在组件卸载时,执行方法。",
47
- "func": "(params)=>{\n\t\n}"
47
+ "func": "function onUnmount() {\n\t\n}"
48
48
  },
49
49
  {
50
50
  "key": "onChange",
51
51
  "name": "尺寸变化事件",
52
52
  "desc": "在面板尺寸发生变化时,执行方法",
53
- "func": "(value)=>{\n\t\n}"
53
+ "func": "function onChange(value) {\n\t\n}"
54
54
  }
55
55
  ]
56
56
  }
@@ -66,7 +66,7 @@
66
66
  "moreText": "操作",
67
67
  "todoList": []
68
68
  },
69
- "defaultCode": "function todo(instance) { \n \n}",
69
+ "defaultCode": "function todo() { \n \n}",
70
70
  "wrapper": "collapse"
71
71
  },
72
72
  {
@@ -115,7 +115,7 @@
115
115
  "moreText": "更多操作",
116
116
  "todoList": []
117
117
  },
118
- "defaultCode": "function onActionClick(data) {\n\n}",
118
+ "defaultCode": "function onActionClick(data, rowIndex, params) {\n\n}",
119
119
  "wrapper": "collapse",
120
120
  "wrapperProps": {
121
121
  "suppressIcon": true
@@ -383,55 +383,61 @@
383
383
  "key": "onMount",
384
384
  "name": "组件首次渲染时",
385
385
  "desc": "在组件首次渲染时,执行方法",
386
- "func": "(params, instance)=>{\n\t\n}"
386
+ "func": "function onMount(params) {\n\t\n}"
387
387
  },
388
388
  {
389
389
  "key": "onUnmount",
390
390
  "name": "组件卸载时",
391
391
  "desc": "在组件卸载时,执行方法。",
392
- "func": "(instance)=>{\n\t\n}"
392
+ "func": "function onUnmount() {\n\t\n}"
393
393
  },
394
394
  {
395
395
  "key": "onRowClick",
396
396
  "name": "行单击",
397
397
  "desc": "单击表格行时,执行方法",
398
- "func": "(data, rowIndex, params)=>{\n\t\n}"
398
+ "func": "function onRowClick(data, rowIndex, params) {\n\t\n}"
399
399
  },
400
400
  {
401
401
  "key": "onRowDoubleClick",
402
402
  "name": "行双击",
403
403
  "desc": "双击表格行时,执行方法",
404
- "func": "(data, rowIndex, params)=>{\n\t\n}"
404
+ "func": "function onRowDoubleClick(data, rowIndex, params) {\n\t\n}"
405
405
  },
406
406
  {
407
407
  "key": "onRowSelected",
408
408
  "name": "行选择",
409
409
  "desc": "选中行时,执行方法",
410
- "func": "(data, isSelected, SelectedRows, params)=>{\n\t\n}"
410
+ "func": "function onRowSelected(data, isSelected, SelectedRows, params) {\n\t\n}"
411
411
  },
412
412
  {
413
413
  "key": "onRowSelectChange",
414
414
  "name": "行选择变化",
415
415
  "desc": "行选中发生变化时,执行方法",
416
- "func": "(rows, nodes, params)=>{\n\t\n}"
416
+ "func": "function onRowSelectChange(rows, nodes, params) {\n\t\n}"
417
417
  },
418
418
  {
419
419
  "key": "onRowDragged",
420
420
  "name": "行拖拽后",
421
421
  "desc": "拖拽行使其顺序发生变化后,执行方法",
422
- "func": "(toId, fromId, params)=>{\n\t\n}"
422
+ "func": "function onRowDragged(toId, fromId, params) {\n\t\n}"
423
+ },
424
+ {
425
+ "key": "onPagePublicResourceChanged",
426
+ "name": "页面共享资源变化后",
427
+ "desc": "当页面共享资源发生变化后(pagePublicResourceChanged),执行方法",
428
+ "func": "function onPagePublicResourceChanged(resource, instance) {\n\t\n}"
423
429
  },
424
430
  {
425
431
  "key": "afterInit",
426
432
  "name": "初始化后的回调",
427
433
  "desc": "组件及数据加载完成后,执行方法",
428
- "func": "(res, dispatch, props)=>{\n\t\n}"
434
+ "func": "function afterInit(res, dispatch, props) {\n\t\n}"
429
435
  },
430
436
  {
431
437
  "key": "afterQuery",
432
438
  "name": "数据读取回调",
433
439
  "desc": "读取数据源后执行方法,返回接口中原始数据",
434
- "func": "(res)=>{\n\t\n}"
440
+ "func": "function afterQuery(res) {\n\t\n}"
435
441
  }
436
442
  ]
437
443
  }
@@ -98,19 +98,19 @@
98
98
  "key": "onMount",
99
99
  "name": "组件首次渲染时",
100
100
  "desc": "在组件首次渲染时,执行方法",
101
- "func": "(instance)=>{\n\t\n}"
101
+ "func": "function onMount() {\n\t\n}"
102
102
  },
103
103
  {
104
104
  "key": "onUnmount",
105
105
  "name": "组件卸载时",
106
106
  "desc": "在组件卸载时,执行方法。",
107
- "func": "(instance)=>{\n\t\n}"
107
+ "func": "function onUnmount() {\n\t\n}"
108
108
  },
109
109
  {
110
110
  "key": "onTabClick",
111
111
  "name": "tab被点击的回调",
112
112
  "desc": "当tab被点击时, 执行方法",
113
- "func": "(tabKey, e)=>{\n\t\n}"
113
+ "func": "function onTabClick(tabKey, e) {\n\t\n}"
114
114
  }
115
115
  ]
116
116
  }
@@ -15,9 +15,11 @@
15
15
  "showLine": false,
16
16
  "treeNodeTitle": "sname",
17
17
  "defaultExpandDeep": "0",
18
+ "cancelSelect": true,
18
19
  "showIcon": true,
19
20
  "treeNodeIcon": [],
20
21
  "showRootAdd": true,
22
+ "onlyRoot": false,
21
23
  "rootAddSetting": {},
22
24
  "actions": {
23
25
  "todoList": []