@luck-design-biz/luckda 0.0.25-17 → 0.0.25-19

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 (63) hide show
  1. package/es/components/LdGrid/index.js +6 -9
  2. package/es/locales/zh-CN.js +5 -1
  3. package/es/lowcode/constants/event-topics.js +1 -1
  4. package/es/lowcode/engine/launcher.js +2 -0
  5. package/es/lowcode/engine/meta/form.props.json +0 -6
  6. package/es/lowcode/engine/meta/js-editor/auto-complete.json +5 -17
  7. package/es/lowcode/engine/meta/page.props.json +6 -0
  8. package/es/lowcode/engine/meta/table.props.json +10 -4
  9. package/es/lowcode/engine/meta/tree.props.default.json +6 -6
  10. package/es/lowcode/engine/meta/tree.props.json +57 -63
  11. package/es/lowcode/engine/provider/ContextProvider/index.js +30 -33
  12. package/es/lowcode/engine/provider/ContextProvider/usePageState.js +21 -0
  13. package/es/lowcode/engine/provider/RemoteSourceProvider.js +8 -13
  14. package/es/lowcode/engine/tools/diff.js +1 -1
  15. package/es/lowcode/engine/tools/helper.js +24 -12
  16. package/es/lowcode/engine/tools/useCombinedRefs.js +14 -0
  17. package/es/lowcode/painter/DesignToolbar.js +52 -23
  18. package/es/lowcode/painter/components/PreviewIframe.js +1 -1
  19. package/es/lowcode/painter/panel-section/StylePanel/MainPanel.js +2 -2
  20. package/es/lowcode/painter/style/design.less +1 -0
  21. package/es/lowcode/preview/index.js +2 -4
  22. package/es/lowcode/view/Canvas.js +15 -2
  23. package/es/lowcode/view/lc-components/Form/index.js +42 -64
  24. package/es/lowcode/view/lc-components/Form/meta.json +0 -6
  25. package/es/lowcode/view/lc-components/Page/meta.json +6 -0
  26. package/es/lowcode/view/lc-components/PageLayout/index.js +2 -2
  27. package/es/lowcode/view/lc-components/Table/components/TopImex.js +2 -2
  28. package/es/lowcode/view/lc-components/Table/index.js +181 -195
  29. package/es/lowcode/view/lc-components/Table/meta.json +10 -4
  30. package/es/lowcode/view/lc-components/Tree/index.js +0 -20
  31. package/es/lowcode/view/lc-components/Tree/meta.json +57 -63
  32. package/lib/components/LdGrid/index.js +6 -9
  33. package/lib/locales/zh-CN.js +5 -1
  34. package/lib/lowcode/constants/event-topics.js +2 -2
  35. package/lib/lowcode/engine/launcher.js +2 -0
  36. package/lib/lowcode/engine/meta/form.props.json +0 -6
  37. package/lib/lowcode/engine/meta/js-editor/auto-complete.json +5 -17
  38. package/lib/lowcode/engine/meta/page.props.json +6 -0
  39. package/lib/lowcode/engine/meta/table.props.json +10 -4
  40. package/lib/lowcode/engine/meta/tree.props.default.json +6 -6
  41. package/lib/lowcode/engine/meta/tree.props.json +57 -63
  42. package/lib/lowcode/engine/provider/ContextProvider/index.js +29 -32
  43. package/lib/lowcode/engine/provider/ContextProvider/usePageState.js +28 -0
  44. package/lib/lowcode/engine/provider/RemoteSourceProvider.js +8 -13
  45. package/lib/lowcode/engine/tools/diff.js +1 -1
  46. package/lib/lowcode/engine/tools/helper.js +26 -12
  47. package/lib/lowcode/engine/tools/useCombinedRefs.js +20 -0
  48. package/lib/lowcode/painter/DesignToolbar.js +51 -22
  49. package/lib/lowcode/painter/components/PreviewIframe.js +1 -1
  50. package/lib/lowcode/painter/panel-section/StylePanel/MainPanel.js +2 -2
  51. package/lib/lowcode/painter/style/design.less +1 -0
  52. package/lib/lowcode/preview/index.js +2 -4
  53. package/lib/lowcode/view/Canvas.js +15 -2
  54. package/lib/lowcode/view/lc-components/Form/index.js +42 -64
  55. package/lib/lowcode/view/lc-components/Form/meta.json +0 -6
  56. package/lib/lowcode/view/lc-components/Page/meta.json +6 -0
  57. package/lib/lowcode/view/lc-components/PageLayout/index.js +2 -2
  58. package/lib/lowcode/view/lc-components/Table/components/TopImex.js +2 -2
  59. package/lib/lowcode/view/lc-components/Table/index.js +178 -192
  60. package/lib/lowcode/view/lc-components/Table/meta.json +10 -4
  61. package/lib/lowcode/view/lc-components/Tree/index.js +0 -20
  62. package/lib/lowcode/view/lc-components/Tree/meta.json +57 -63
  63. package/package.json +1 -1
@@ -64,6 +64,63 @@
64
64
  "type": "string",
65
65
  "default": "iparentid"
66
66
  },
67
+ {
68
+ "key": "actions",
69
+ "name": "操作项",
70
+ "desc": "树节点操作项",
71
+ "type": "group",
72
+ "default": true,
73
+ "next": {
74
+ "name": "操作项",
75
+ "props": [
76
+ {
77
+ "key": "rootAdd",
78
+ "name": "根节点",
79
+ "desc": "根节点操作项",
80
+ "type": "group",
81
+ "props": [
82
+ {
83
+ "key": "showRootAdd",
84
+ "name": "是否显示",
85
+ "desc": "是否显示",
86
+ "type": "switch",
87
+ "default": true
88
+ },
89
+ {
90
+ "key": "onlyRoot",
91
+ "name": "根节点唯一",
92
+ "desc": "树组件仅一个根节点,如数据根节点数大于0,则不允许根节点新增",
93
+ "type": "switch",
94
+ "default": false
95
+ },
96
+ {
97
+ "key": "rootAddSetting",
98
+ "name": "根节点配置",
99
+ "desc": "根节点配置",
100
+ "type": "_TreeRootEditor",
101
+ "default": {}
102
+ }
103
+ ]
104
+ },
105
+ {
106
+ "key": "actions",
107
+ "name": "节点操作项",
108
+ "type": "_ActionsEditor",
109
+ "default": {
110
+ "todoList": []
111
+ },
112
+ "defaultCode": "function onActionClick(data) {\n\n}",
113
+ "suppressDisplay": true,
114
+ "suppressMax": true,
115
+ "suppressMore": true,
116
+ "wrapper": "collapse",
117
+ "wrapperProps": {
118
+ "suppressIcon": true
119
+ }
120
+ }
121
+ ]
122
+ }
123
+ },
67
124
  {
68
125
  "key": "styleSetting",
69
126
  "name": "风格和样式",
@@ -182,63 +239,6 @@
182
239
  ]
183
240
  }
184
241
  },
185
- {
186
- "key": "actions",
187
- "name": "操作项",
188
- "desc": "树节点操作项",
189
- "type": "group",
190
- "default": true,
191
- "next": {
192
- "name": "操作项",
193
- "props": [
194
- {
195
- "key": "rootAdd",
196
- "name": "根节点",
197
- "desc": "根节点操作项",
198
- "type": "group",
199
- "props": [
200
- {
201
- "key": "showRootAdd",
202
- "name": "是否显示",
203
- "desc": "是否显示",
204
- "type": "switch",
205
- "default": true
206
- },
207
- {
208
- "key": "onlyRoot",
209
- "name": "根节点唯一",
210
- "desc": "树组件仅一个根节点,如数据根节点数大于0,则不允许根节点新增",
211
- "type": "switch",
212
- "default": false
213
- },
214
- {
215
- "key": "rootAddSetting",
216
- "name": "根节点配置",
217
- "desc": "根节点配置",
218
- "type": "_TreeRootEditor",
219
- "default": {}
220
- }
221
- ]
222
- },
223
- {
224
- "key": "actions",
225
- "name": "节点操作项",
226
- "type": "_ActionsEditor",
227
- "default": {
228
- "todoList": []
229
- },
230
- "defaultCode": "function onActionClick(data) {\n\n}",
231
- "suppressDisplay": true,
232
- "suppressMax": true,
233
- "suppressMore": true,
234
- "wrapper": "collapse",
235
- "wrapperProps": {
236
- "suppressIcon": true
237
- }
238
- }
239
- ]
240
- }
241
- },
242
242
  {
243
243
  "key": "rowSelectionSetting",
244
244
  "name": "节点控制器",
@@ -351,12 +351,6 @@
351
351
  "name": "拖拽事件",
352
352
  "desc": "节点拖拽事件",
353
353
  "func": "function onDrop(info, dragInfo) {\n\t\n}"
354
- },
355
- {
356
- "key": "onPagePublicResourceChanged",
357
- "name": "页面共享资源变化后",
358
- "desc": "当页面共享资源发生变化后(pagePublicResourceChanged),执行方法",
359
- "func": "function onPagePublicResourceChanged(resource, prevResource, instance) {\n\t\n}"
360
354
  }
361
355
  ]
362
356
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@luck-design-biz/luckda",
3
- "version": "0.0.25-17",
3
+ "version": "0.0.25-19",
4
4
  "description": "前端配置管理中心业务组件库",
5
5
  "scripts": {
6
6
  "start": "cross-env NODE_OPTIONS=--max-old-space-size=10240 USER_RUNTIME=SITE RUNTIME=dev umi dev",