@luck-design-biz/luckda 0.0.26-4 → 0.0.27-1

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 (137) hide show
  1. package/es/components/LdGridForm/index.js +3 -0
  2. package/es/locales/zh-CN.js +236 -0
  3. package/es/lowcode/engine/meta/box.props.default.json +13 -0
  4. package/es/lowcode/engine/meta/box.props.json +40 -0
  5. package/es/lowcode/engine/meta/button.props.json +127 -0
  6. package/es/lowcode/engine/meta/cardlist.props.json +153 -0
  7. package/es/lowcode/engine/meta/dialog.props.default.json +27 -0
  8. package/es/lowcode/engine/meta/dialog.props.json +157 -0
  9. package/es/lowcode/engine/meta/drawer.props.json +131 -0
  10. package/es/lowcode/engine/meta/fieldcolor.props.default.json +19 -0
  11. package/es/lowcode/engine/meta/fieldcolor.props.json +159 -0
  12. package/es/lowcode/engine/meta/fieldcomplex.props.default.json +13 -0
  13. package/es/lowcode/engine/meta/fieldcomplex.props.json +39 -0
  14. package/es/lowcode/engine/meta/fielddatadic.props.default.json +16 -0
  15. package/es/lowcode/engine/meta/fielddatadic.props.json +73 -0
  16. package/es/lowcode/engine/meta/fielddate.props.default.json +12 -0
  17. package/es/lowcode/engine/meta/fielddate.props.json +47 -0
  18. package/es/lowcode/engine/meta/fielddict.props.default.json +19 -0
  19. package/es/lowcode/engine/meta/fielddict.props.json +140 -0
  20. package/es/lowcode/engine/meta/fieldeditor.props.default.json +13 -0
  21. package/es/lowcode/engine/meta/fieldeditor.props.json +44 -0
  22. package/es/lowcode/engine/meta/fieldgroup.props.default.json +15 -0
  23. package/es/lowcode/engine/meta/fieldgroup.props.json +73 -0
  24. package/es/lowcode/engine/meta/fieldnumber.props.default.json +20 -0
  25. package/es/lowcode/engine/meta/fieldnumber.props.json +145 -0
  26. package/es/lowcode/engine/meta/fieldradio.props.default.json +12 -0
  27. package/es/lowcode/engine/meta/fieldradio.props.json +20 -0
  28. package/es/lowcode/engine/meta/fieldregion.props.default.json +12 -0
  29. package/es/lowcode/engine/meta/fieldregion.props.json +26 -0
  30. package/es/lowcode/engine/meta/fieldselect.props.default.json +14 -0
  31. package/es/lowcode/engine/meta/fieldselect.props.json +58 -0
  32. package/es/lowcode/engine/meta/fieldstring.props.default.json +17 -0
  33. package/es/lowcode/engine/meta/fieldstring.props.json +154 -0
  34. package/es/lowcode/engine/meta/fieldswitch.props.default.json +17 -0
  35. package/es/lowcode/engine/meta/fieldswitch.props.json +127 -0
  36. package/es/lowcode/engine/meta/fieldtextarea.props.default.json +18 -0
  37. package/es/lowcode/engine/meta/fieldtextarea.props.json +145 -0
  38. package/es/lowcode/engine/meta/fieldupload.props.default.json +15 -0
  39. package/es/lowcode/engine/meta/fieldupload.props.json +71 -0
  40. package/es/lowcode/engine/meta/fielduser.props.default.json +16 -0
  41. package/es/lowcode/engine/meta/fielduser.props.json +82 -0
  42. package/es/lowcode/engine/meta/fieldyear.props.default.json +12 -0
  43. package/es/lowcode/engine/meta/fieldyear.props.json +37 -0
  44. package/es/lowcode/engine/meta/form.props.json +650 -0
  45. package/es/lowcode/engine/meta/iframe.props.json +32 -0
  46. package/es/lowcode/engine/meta/image.props.json +114 -0
  47. package/es/lowcode/engine/meta/imex.props.json +114 -0
  48. package/es/lowcode/engine/meta/js-editor/auto-complete.json +205 -0
  49. package/es/lowcode/engine/meta/jsx.props.json +30 -0
  50. package/es/lowcode/engine/meta/layout.props.json +107 -0
  51. package/es/lowcode/engine/meta/link.props.json +112 -0
  52. package/es/lowcode/engine/meta/page.props.default.json +12 -0
  53. package/es/lowcode/engine/meta/page.props.json +49 -0
  54. package/es/lowcode/engine/meta/pagecontent.props.default.json +6 -0
  55. package/es/lowcode/engine/meta/pagecontent.props.json +7 -0
  56. package/es/lowcode/engine/meta/pagefooter.props.default.json +6 -0
  57. package/es/lowcode/engine/meta/pagefooter.props.json +7 -0
  58. package/es/lowcode/engine/meta/pageheader.props.default.json +6 -0
  59. package/es/lowcode/engine/meta/pageheader.props.json +7 -0
  60. package/es/lowcode/engine/meta/pagelayout.props.default.json +14 -0
  61. package/es/lowcode/engine/meta/pagelayout.props.json +47 -0
  62. package/es/lowcode/engine/meta/section.props.json +111 -0
  63. package/es/lowcode/engine/meta/split.props.json +57 -0
  64. package/es/lowcode/engine/meta/table.props.json +444 -0
  65. package/es/lowcode/engine/meta/tabs.props.json +117 -0
  66. package/es/lowcode/engine/meta/text.props.json +66 -0
  67. package/es/lowcode/engine/meta/tree.props.json +366 -0
  68. package/es/utils/form.js +3 -3
  69. package/lib/components/LdGridForm/index.js +3 -0
  70. package/lib/locales/zh-CN.js +242 -0
  71. package/lib/lowcode/engine/meta/box.props.default.json +13 -0
  72. package/lib/lowcode/engine/meta/box.props.json +40 -0
  73. package/lib/lowcode/engine/meta/button.props.json +127 -0
  74. package/lib/lowcode/engine/meta/cardlist.props.json +153 -0
  75. package/lib/lowcode/engine/meta/dialog.props.default.json +27 -0
  76. package/lib/lowcode/engine/meta/dialog.props.json +157 -0
  77. package/lib/lowcode/engine/meta/drawer.props.json +131 -0
  78. package/lib/lowcode/engine/meta/fieldcolor.props.default.json +19 -0
  79. package/lib/lowcode/engine/meta/fieldcolor.props.json +159 -0
  80. package/lib/lowcode/engine/meta/fieldcomplex.props.default.json +13 -0
  81. package/lib/lowcode/engine/meta/fieldcomplex.props.json +39 -0
  82. package/lib/lowcode/engine/meta/fielddatadic.props.default.json +16 -0
  83. package/lib/lowcode/engine/meta/fielddatadic.props.json +73 -0
  84. package/lib/lowcode/engine/meta/fielddate.props.default.json +12 -0
  85. package/lib/lowcode/engine/meta/fielddate.props.json +47 -0
  86. package/lib/lowcode/engine/meta/fielddict.props.default.json +19 -0
  87. package/lib/lowcode/engine/meta/fielddict.props.json +140 -0
  88. package/lib/lowcode/engine/meta/fieldeditor.props.default.json +13 -0
  89. package/lib/lowcode/engine/meta/fieldeditor.props.json +44 -0
  90. package/lib/lowcode/engine/meta/fieldgroup.props.default.json +15 -0
  91. package/lib/lowcode/engine/meta/fieldgroup.props.json +73 -0
  92. package/lib/lowcode/engine/meta/fieldnumber.props.default.json +20 -0
  93. package/lib/lowcode/engine/meta/fieldnumber.props.json +145 -0
  94. package/lib/lowcode/engine/meta/fieldradio.props.default.json +12 -0
  95. package/lib/lowcode/engine/meta/fieldradio.props.json +20 -0
  96. package/lib/lowcode/engine/meta/fieldregion.props.default.json +12 -0
  97. package/lib/lowcode/engine/meta/fieldregion.props.json +26 -0
  98. package/lib/lowcode/engine/meta/fieldselect.props.default.json +14 -0
  99. package/lib/lowcode/engine/meta/fieldselect.props.json +58 -0
  100. package/lib/lowcode/engine/meta/fieldstring.props.default.json +17 -0
  101. package/lib/lowcode/engine/meta/fieldstring.props.json +154 -0
  102. package/lib/lowcode/engine/meta/fieldswitch.props.default.json +17 -0
  103. package/lib/lowcode/engine/meta/fieldswitch.props.json +127 -0
  104. package/lib/lowcode/engine/meta/fieldtextarea.props.default.json +18 -0
  105. package/lib/lowcode/engine/meta/fieldtextarea.props.json +145 -0
  106. package/lib/lowcode/engine/meta/fieldupload.props.default.json +15 -0
  107. package/lib/lowcode/engine/meta/fieldupload.props.json +71 -0
  108. package/lib/lowcode/engine/meta/fielduser.props.default.json +16 -0
  109. package/lib/lowcode/engine/meta/fielduser.props.json +82 -0
  110. package/lib/lowcode/engine/meta/fieldyear.props.default.json +12 -0
  111. package/lib/lowcode/engine/meta/fieldyear.props.json +37 -0
  112. package/lib/lowcode/engine/meta/form.props.json +650 -0
  113. package/lib/lowcode/engine/meta/iframe.props.json +32 -0
  114. package/lib/lowcode/engine/meta/image.props.json +114 -0
  115. package/lib/lowcode/engine/meta/imex.props.json +114 -0
  116. package/lib/lowcode/engine/meta/js-editor/auto-complete.json +205 -0
  117. package/lib/lowcode/engine/meta/jsx.props.json +30 -0
  118. package/lib/lowcode/engine/meta/layout.props.json +107 -0
  119. package/lib/lowcode/engine/meta/link.props.json +112 -0
  120. package/lib/lowcode/engine/meta/page.props.default.json +12 -0
  121. package/lib/lowcode/engine/meta/page.props.json +49 -0
  122. package/lib/lowcode/engine/meta/pagecontent.props.default.json +6 -0
  123. package/lib/lowcode/engine/meta/pagecontent.props.json +7 -0
  124. package/lib/lowcode/engine/meta/pagefooter.props.default.json +6 -0
  125. package/lib/lowcode/engine/meta/pagefooter.props.json +7 -0
  126. package/lib/lowcode/engine/meta/pageheader.props.default.json +6 -0
  127. package/lib/lowcode/engine/meta/pageheader.props.json +7 -0
  128. package/lib/lowcode/engine/meta/pagelayout.props.default.json +14 -0
  129. package/lib/lowcode/engine/meta/pagelayout.props.json +47 -0
  130. package/lib/lowcode/engine/meta/section.props.json +111 -0
  131. package/lib/lowcode/engine/meta/split.props.json +57 -0
  132. package/lib/lowcode/engine/meta/table.props.json +444 -0
  133. package/lib/lowcode/engine/meta/tabs.props.json +117 -0
  134. package/lib/lowcode/engine/meta/text.props.json +66 -0
  135. package/lib/lowcode/engine/meta/tree.props.json +366 -0
  136. package/lib/utils/form.js +2 -2
  137. package/package.json +1 -1
@@ -0,0 +1,366 @@
1
+ {
2
+ "component": "Tree",
3
+ "name": "树",
4
+ "desc": "用于展示和管理具有层级结构的数据。它提供了层级结构、节点展开/折叠、节点选择、节点操作和展示样式等功能和配置选项,使用户能够轻松创建和管理树结构。",
5
+ "icon": "icon-tree",
6
+ "group": "advance",
7
+ "groupName": "高级",
8
+ "order": 1,
9
+ "props": [
10
+ {
11
+ "key": "id",
12
+ "desc": "唯一标识",
13
+ "type": "string",
14
+ "disabled": true
15
+ },
16
+ {
17
+ "key": "dataset",
18
+ "name": "数据集",
19
+ "desc": "选择系统中的可用树形数据集",
20
+ "type": "_DataSetSelector",
21
+ "component": "tree",
22
+ "next": {
23
+ "name": "字段配置",
24
+ "props": [
25
+ {
26
+ "key": "fields",
27
+ "name": "#字段配置器",
28
+ "type": "_FieldsSetting"
29
+ }
30
+ ]
31
+ }
32
+ },
33
+ {
34
+ "key": "title",
35
+ "name": "标题",
36
+ "desc": "头部标题",
37
+ "type": "_I18nInput"
38
+ },
39
+ {
40
+ "key": "readOnly",
41
+ "name": "是否只读",
42
+ "desc": "是否树形组件只读",
43
+ "type": "switch",
44
+ "default": false
45
+ },
46
+ {
47
+ "key": "draggable",
48
+ "name": "支持拖拽",
49
+ "desc": "是否支持拖拽",
50
+ "type": "switch",
51
+ "default": true
52
+ },
53
+ {
54
+ "key": "asyncLoad",
55
+ "name": "异步加载",
56
+ "desc": "是否树形组件异步加载,需要设置数据集条件",
57
+ "type": "switch",
58
+ "default": false
59
+ },
60
+ {
61
+ "key": "parentKey",
62
+ "name": "异步加载Key",
63
+ "desc": "树形组件异步加载时的过滤传参key",
64
+ "type": "string",
65
+ "default": "iparentid"
66
+ },
67
+ {
68
+ "key": "styleSetting",
69
+ "name": "风格和样式",
70
+ "type": "group",
71
+ "props": [
72
+ {
73
+ "key": "width",
74
+ "name": "宽度",
75
+ "type": "_WidthHeight",
76
+ "default": "100%"
77
+ },
78
+ {
79
+ "key": "height",
80
+ "name": "高度",
81
+ "type": "_WidthHeight",
82
+ "default": "100%"
83
+ },
84
+ {
85
+ "key": "showLine",
86
+ "name": "显示线",
87
+ "desc": "是否显示树组件的连接线",
88
+ "type": "switch",
89
+ "default": false
90
+ },
91
+ {
92
+ "key": "treeNodeTitle",
93
+ "name": "展示字段",
94
+ "desc": "展示字段的key",
95
+ "type": "_I18nInput",
96
+ "default": "sname"
97
+ },
98
+ {
99
+ "key": "defaultExpandDeep",
100
+ "name": "默认展开层级",
101
+ "desc": "默认展开多少层级",
102
+ "type": "select",
103
+ "options": [
104
+ {
105
+ "label": "不展开",
106
+ "value": "0"
107
+ },
108
+ {
109
+ "label": "1",
110
+ "value": "1"
111
+ },
112
+ {
113
+ "label": "2",
114
+ "value": "2"
115
+ },
116
+ {
117
+ "label": "3",
118
+ "value": "3"
119
+ },
120
+ {
121
+ "label": "4",
122
+ "value": "4"
123
+ },
124
+ {
125
+ "label": "全部",
126
+ "value": "all"
127
+ }
128
+ ],
129
+ "default": "0"
130
+ }
131
+ ]
132
+ },
133
+ {
134
+ "key": "selectSetting",
135
+ "name": "选中设置",
136
+ "type": "group",
137
+ "props": [
138
+ {
139
+ "key": "cancelSelect",
140
+ "name": "取消选中",
141
+ "desc": "是否可以取消选中",
142
+ "type": "switch",
143
+ "default": true
144
+ },
145
+ {
146
+ "key": "defaultSelect",
147
+ "name": "默认选中",
148
+ "desc": "返回默认选中的数据主键",
149
+ "type": "_JSEditor",
150
+ "defaultCode": "function defaultSelect(treeData) { \n return []; \n}",
151
+ "mustConfirm": true,
152
+ "wrapper": "collapse",
153
+ "wrapperProps": {
154
+ "suppressIcon": true
155
+ }
156
+ }
157
+ ]
158
+ },
159
+ {
160
+ "key": "IconSetting",
161
+ "name": "图标设置",
162
+ "type": "group",
163
+ "default": true,
164
+ "next": {
165
+ "name": "图标设置",
166
+ "props": [
167
+ {
168
+ "key": "showIcon",
169
+ "name": "显示图标",
170
+ "desc": "是否显示树组件的图标",
171
+ "type": "switch",
172
+ "default": true
173
+ },
174
+ {
175
+ "key": "treeNodeIcon",
176
+ "name": "节点图标设置",
177
+ "type": "_IconConditionSelector",
178
+ "default": [],
179
+ "defaultCode": "function treeNodeIconRender(item) { \n return false; \n}",
180
+ "wrapper": "collapse",
181
+ "wrapperProps": {
182
+ "suppressIcon": true
183
+ }
184
+ }
185
+ ]
186
+ }
187
+ },
188
+ {
189
+ "key": "actions",
190
+ "name": "操作项",
191
+ "desc": "树节点操作项",
192
+ "type": "group",
193
+ "default": true,
194
+ "next": {
195
+ "name": "操作项",
196
+ "props": [
197
+ {
198
+ "key": "rootAdd",
199
+ "name": "根节点",
200
+ "desc": "根节点操作项",
201
+ "type": "group",
202
+ "props": [
203
+ {
204
+ "key": "showRootAdd",
205
+ "name": "是否显示",
206
+ "desc": "是否显示",
207
+ "type": "switch",
208
+ "default": true
209
+ },
210
+ {
211
+ "key": "onlyRoot",
212
+ "name": "根节点唯一",
213
+ "desc": "树组件仅一个根节点,如数据根节点数大于0,则不允许根节点新增",
214
+ "type": "switch",
215
+ "default": false
216
+ },
217
+ {
218
+ "key": "rootAddSetting",
219
+ "name": "根节点配置",
220
+ "desc": "根节点配置",
221
+ "type": "_TreeRootEditor",
222
+ "default": {}
223
+ }
224
+ ]
225
+ },
226
+ {
227
+ "key": "actions",
228
+ "name": "节点操作项",
229
+ "type": "_ActionsEditor",
230
+ "default": {
231
+ "todoList": []
232
+ },
233
+ "defaultCode": "function onActionClick(data) {\n\n}",
234
+ "suppressDisplay": true,
235
+ "suppressMax": true,
236
+ "suppressMore": true,
237
+ "wrapper": "collapse",
238
+ "wrapperProps": {
239
+ "suppressIcon": true
240
+ }
241
+ }
242
+ ]
243
+ }
244
+ },
245
+ {
246
+ "key": "rowSelectionSetting",
247
+ "name": "节点控制器",
248
+ "type": "group",
249
+ "default": true,
250
+ "next": {
251
+ "name": "行选择器",
252
+ "props": [
253
+ {
254
+ "key": "doubleClickExpand",
255
+ "name": "双击收缩节点",
256
+ "type": "switch",
257
+ "default": true
258
+ },
259
+ {
260
+ "key": "checkable",
261
+ "name": "复选框",
262
+ "desc": "是否支持复选框选择",
263
+ "type": "switch",
264
+ "default": false
265
+ },
266
+ {
267
+ "key": "treeNodeCheckable",
268
+ "name": "节点是否有复选框",
269
+ "type": "_JSEditor",
270
+ "defaultCode": "function treeNodeCheckable(item) { \n return true; \n}",
271
+ "mustConfirm": true,
272
+ "wrapper": "collapse",
273
+ "wrapperProps": {
274
+ "suppressIcon": true
275
+ }
276
+ },
277
+ {
278
+ "key": "treeNodeDisableCheckbox",
279
+ "name": "节点复选框是否禁用",
280
+ "type": "_JSEditor",
281
+ "defaultCode": "function treeNodeDisableCheckbox(item) { \n return false; \n}",
282
+ "mustConfirm": true,
283
+ "wrapper": "collapse",
284
+ "wrapperProps": {
285
+ "suppressIcon": true
286
+ }
287
+ },
288
+ {
289
+ "key": "treeNodeDisable",
290
+ "name": "节点是否禁用",
291
+ "type": "_JSEditor",
292
+ "defaultCode": "function treeNodeDisable(item) { \n return false; \n}",
293
+ "mustConfirm": true,
294
+ "wrapper": "collapse",
295
+ "wrapperProps": {
296
+ "suppressIcon": true
297
+ }
298
+ },
299
+ {
300
+ "key": "onTreeNodeRender",
301
+ "name": "节点定制渲染",
302
+ "type": "_JSEditor",
303
+ "defaultCode": "function onTreeNodeRender(title, item) { \n return title; \n}",
304
+ "mustConfirm": true,
305
+ "wrapper": "collapse",
306
+ "wrapperProps": {
307
+ "suppressIcon": true
308
+ }
309
+ }
310
+ ]
311
+ }
312
+ }
313
+ ],
314
+ "advance": {
315
+ "events": [
316
+ {
317
+ "key": "onMount",
318
+ "name": "组件首次渲染时",
319
+ "desc": "在组件首次渲染时,执行方法",
320
+ "func": "function onMount(params) {\n\t\n}"
321
+ },
322
+ {
323
+ "key": "onUnmount",
324
+ "name": "组件卸载时",
325
+ "desc": "在组件卸载时,执行方法。",
326
+ "func": "function onUnmount() {\n\t\n}"
327
+ },
328
+ {
329
+ "key": "processDataSource",
330
+ "name": "数据预处理",
331
+ "desc": "数据渲染前预处理",
332
+ "func": "function processDataSource(data) {\n\t\n}"
333
+ },
334
+ {
335
+ "key": "onDoubleClick",
336
+ "name": "双击事件",
337
+ "desc": "树节点双击事件",
338
+ "func": "function onDoubleClick(e, rowData) {\n\t\n}"
339
+ },
340
+ {
341
+ "key": "onCheck",
342
+ "name": "复选框选择事件",
343
+ "desc": "点击复选框触发",
344
+ "func": "function onCheck(checkedKeys, e) {\n\t\n}"
345
+ },
346
+ {
347
+ "key": "onSelect",
348
+ "name": "选中事件",
349
+ "desc": "节点选中事件",
350
+ "func": "function onSelect(checkedKeys, e) {\n\t\n}"
351
+ },
352
+ {
353
+ "key": "onDrop",
354
+ "name": "拖拽事件",
355
+ "desc": "节点拖拽事件",
356
+ "func": "function onDrop(info, dragInfo) {\n\t\n}"
357
+ },
358
+ {
359
+ "key": "onPagePublicResourceChanged",
360
+ "name": "页面共享资源变化后",
361
+ "desc": "当页面共享资源发生变化后(pagePublicResourceChanged),执行方法",
362
+ "func": "function onPagePublicResourceChanged(resource, prevResource, instance) {\n\t\n}"
363
+ }
364
+ ]
365
+ }
366
+ }
package/es/utils/form.js CHANGED
@@ -13,7 +13,7 @@ var _excluded = ["comName", "property"],
13
13
  _excluded9 = ["type", "name"];
14
14
  import React from 'react';
15
15
  import moment from 'moment';
16
- import { capitalize, merge, transform, isArray, omit, isNil, clone } from 'lodash';
16
+ import { capitalize, merge, transform, isArray, omit, isNil, clone, cloneDeep } from 'lodash';
17
17
  import api from "@/services/ApiConfig";
18
18
  import { defaultComName, translator, splitStrToObj, formatCustomProps } from "../helper/form";
19
19
  import { getColumnRender } from "./grid";
@@ -67,7 +67,7 @@ export function getFormItem() {
67
67
  export var formItemDataFormat = function formItemDataFormat() {
68
68
  var propsList = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
69
69
  var values = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
70
- var omitValues = {};
70
+ var omitValues = cloneDeep(values);
71
71
  var data = transform(propsList, function (result, n) {
72
72
  var _ref2 = n || {},
73
73
  comName = _ref2.comName,
@@ -121,7 +121,7 @@ export var formItemDataFormat = function formItemDataFormat() {
121
121
  default:
122
122
  if (!isNil(values["".concat(name, "_virtual")] || values[name])) result[name] = values["".concat(name, "_virtual")] || values[name];
123
123
  }
124
- omitValues = omit(values, [name, "".concat(name, "_virtual")]);
124
+ omitValues = omit(omitValues, [name, "".concat(name, "_virtual")]);
125
125
  }, {});
126
126
  return _objectSpread(_objectSpread({}, omitValues), data);
127
127
  };
@@ -112,6 +112,7 @@ var buildLdGridForm = function buildLdGridForm(_ref) {
112
112
  return _nodes;
113
113
  }();
114
114
  var defaultDataSource = (0, _objectSpread4.default)((0, _objectSpread4.default)({}, (0, _utils.formItemDataFormat)(columns, defaultValues.current)), defaultDataSourceFormat(defaultValues.current));
115
+ console.log('defaultDataSource', defaultDataSource);
115
116
  var formConfig = {
116
117
  formId: ldId,
117
118
  columns: _columns,
@@ -170,7 +171,9 @@ var buildLdGridForm = function buildLdGridForm(_ref) {
170
171
  var formItemData = data.map(function (item) {
171
172
  return (0, _utils.formItemDataFormat)(gridColumns, item);
172
173
  });
174
+ (onQuery === null || onQuery === void 0 ? void 0 : onQuery.format) && console.log('formItemData111', onQuery.format(data, formItemData));
173
175
  if (onQuery !== null && onQuery !== void 0 && onQuery.format) return onQuery.format(data, formItemData); // 以预设为主
176
+ console.log('formItemData222', formItemData);
174
177
  return formItemData;
175
178
  }
176
179
  }),
@@ -0,0 +1,242 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+ var _default = exports.default = {
8
+ 'luckda.lowcode.view.lc-components.label.all': '全部',
9
+ 'luckda.lowcode.painter.import': '导入',
10
+ 'lc.form.validator.maxLength': '字数不得超过',
11
+ 'lc.form.validator.textNum': '个字符',
12
+ 'lc.form.validator.numberBelowMin': '低于最小值',
13
+ 'lc.form.validator.numberExceedMax': '超过最大值',
14
+ 'luckda.lowcode.painter.panel.attrs': '属性',
15
+ 'luckda.lowcode.painter.panel.css': '样式',
16
+ 'luckda.lowcode.painter.panel.advance': '高级',
17
+ 'luckda.lowcode.painter.panel.empty': '请在左侧画布选中节点',
18
+ 'luckda.lowcode.page': '页面',
19
+ 'luckda.lowcode.modal': '模态视图层',
20
+ 'luckda.lowcode.painter.I18n.search': '搜索文案',
21
+ 'luckda.lowcode.painter.I18n.add': '新增文案',
22
+ 'luckda.lowcode.design.toolbar.clear.tip': '清除提示',
23
+ 'luckda.lowcode.design.toolbar.clear': '清除缓存',
24
+ 'luckda.lowcode.error.pagedata': '页面数据错误',
25
+ 'luckda.lowcode.design.toolbar.pageAttrs': '页面属性',
26
+ 'luckda.lowcode.design.toolbar.preview': '预览',
27
+ 'luckda.lowcode.design.toolbar.save': '保存',
28
+ 'luckda.lowcode.design.toolbar.pagePreview': '页面预览',
29
+ 'luckda.lowcode.design.toolbar.selectUser': '请选择模拟登录人',
30
+ 'app.base.operate.comfire.leave': '离开当前页面?',
31
+ 'app.base.operate.comfire.message.leave': '系统可能不会保存您所做的更改。',
32
+ 'luckda.lowcode.painter.components.search': '搜索组件',
33
+ 'ccm.dev.page.set.components.base': '基础组件',
34
+ 'ccm.dev.page.set.components.custom': '自定义组件',
35
+ 'luckda.lowcode.painter.panel-section.width-height': '请输入数值',
36
+ 'luckda.lowcode.painter.tree.rootAdd': '根节点新增',
37
+ 'luckda.lowcode.painter.edit': '编辑',
38
+ 'luckda.lowcode.painter.bind': '绑定动作',
39
+ 'luckda.lowcode.painter.panel-section.tableTopFilter.label': '名称',
40
+ 'luckda.lowcode.painter.panel-section.tableTopFilter.label.placeholder': '请输入过滤项名称',
41
+ 'luckda.lowcode.painter.panel-section.tableTopFilter.value': '值',
42
+ 'luckda.lowcode.painter.panel-section.tableTopFilter.value.placeholder': '请输入过滤项值',
43
+ 'luckda.lowcode.painter.panel-section.tableTopFilter.field': '字段',
44
+ 'luckda.lowcode.painter.panel-section.tableTopFilter.field.placeholder': '请选择过滤字段',
45
+ 'luckda.lowcode.painter.delete': '删除',
46
+ 'luckda.lowcode.painter.panel-section.tableTopFilter.nil': '关闭过滤器',
47
+ 'luckda.lowcode.painter.panel-section.tableTopFilter.dict': '数据字典',
48
+ 'luckda.lowcode.painter.panel-section.tableTopFilter.dict.placeholder': '请输入字典key',
49
+ 'luckda.lowcode.painter.panel-section.tableTopFilter.custom': '自定义项',
50
+ 'luckda.lowcode.painter.panel-section.tableTopFilter.add': '添加过滤项',
51
+ 'luckda.lowcode.painter.panel-section.tableTopFilter.customApi': '自定义接口',
52
+ 'luckda.lowcode.painter.panel-section.tableTopFilter.customApi.placeholder': '请输入接口地址',
53
+ 'luckda.lowcode.painter.panel-section.tableTopFilter.customApi.tip': '接口返回数据格式必须是: {mainInfo:{options:[{value: string,label: stirng}], field: string}}',
54
+ 'luckda.lowcode.painter.hidden': '隐藏',
55
+ 'luckda.lowcode.painter.disable': '禁用',
56
+ 'luckda.lowcode.painter.panel-section.tabsitems.editor.tabname': '名称',
57
+ 'luckda.lowcode.painter.panel-section.tabsitems.editor.tabname.placeholder': '请输入标签名称',
58
+ 'luckda.lowcode.painter.panel-section.tabsitems.editor.id': '编号',
59
+ 'luckda.lowcode.painter.panel-section.tabsitems.editor.destory': '隐藏销毁',
60
+ 'luckda.lowcode.painter.panel-section.tabsitems.editor.serial': '资源串',
61
+ 'luckda.lowcode.painter.panel-section.tabsitems.editor.serial.placeholder': '请输入资源串名称',
62
+ 'luckda.lowcode.painter.panel-section.tabsitems.editor.serialEffect': '越权效果',
63
+ 'luckda.lowcode.painter.panel-section.splitdisplay.splitVertical': '横向',
64
+ 'luckda.lowcode.painter.panel-section.splitdisplay.splitHorizontal': '纵向',
65
+ 'luckda.lowcode.painter.panel-section.splitdisplay.err': '必须是数字或者数字加:号的组合',
66
+ 'luckda.lowcode.painter.panel-section.splitdisplay.fastTo': '收缩方向',
67
+ 'luckda.lowcode.painter.panel-section.splitdisplay.split': '分割方向',
68
+ 'luckda.lowcode.painter.panel-section.splitdisplay.ratio': '列比例',
69
+ 'luckda.lowcode.painter.panel-section.Layoutratio.placeholder': '请输入列比例',
70
+ 'luckda.lowcode.painter.panel-section.Layoutratio.err': '必须是数字或者数字加:号的组合',
71
+ 'luckda.lowcode.painter.panel-section.Layoutratio.label': '列比例',
72
+ 'luckda.lowcode.painter.panel-section.style-panel.sourceedit': '源码编辑',
73
+ 'luckda.lowcode.painter.panel-section.impexp.expType.placeholder': '请选择自定义行为',
74
+ 'luckda.lowcode.painter.panel-section.impexp.impType.placeholder': '请选择自定义行为',
75
+ 'luckda.lowcode.painter.export': '导出',
76
+ 'luckda.lowcode.painter.bindCondition': '绑定条件',
77
+ 'luckda.lowcode.painter.panel-section.iconConditionSelector.add': '添加条件',
78
+ 'luckda.lowcode.painter.panel-section.fieldsSetting.field': '数据字段',
79
+ 'luckda.lowcode.painter.panel-section.fieldsSetting.title': '标题',
80
+ 'luckda.lowcode.painter.panel-section.fieldsSetting.batch': '批量设置',
81
+ 'luckda.lowcode.painter.panel-section.style-panel.box-shadow': '阴影',
82
+ 'luckda.lowcode.painter.panel-section.style-panel.box-shadow.big': '大',
83
+ 'luckda.lowcode.painter.panel-section.style-panel.box-shadow.middle': '中',
84
+ 'luckda.lowcode.painter.panel-section.style-panel.box-shadow.small': '小',
85
+ 'luckda.lowcode.painter.panel-section.style-panel.box-shadow.none': '无',
86
+ 'luckda.lowcode.painter.panel-section.style-panel.box-shadow.custom': '自定义',
87
+ 'luckda.lowcode.painter.panel-section.style-panel.box-shadow.detail.color': '颜色',
88
+ 'luckda.lowcode.painter.panel-section.style-panel.cursor': '鼠标手势',
89
+ 'luckda.lowcode.painter.panel-section.style-panel.padding.top': '上边距',
90
+ 'luckda.lowcode.painter.panel-section.style-panel.padding.right': '右边距',
91
+ 'luckda.lowcode.painter.panel-section.style-panel.padding.down': '下边距',
92
+ 'luckda.lowcode.painter.panel-section.style-panel.padding.left': '左边距',
93
+ 'luckda.lowcode.painter.panel-section.style-panel.opacity': '透明度',
94
+ 'luckda.lowcode.painter.panel-section.style-panel.opacity.ph': '透明度',
95
+ 'luckda.lowcode.painter.panel-section.style-panel.margin.top': '上间距',
96
+ 'luckda.lowcode.painter.panel-section.style-panel.margin.right': '右间距',
97
+ 'luckda.lowcode.painter.panel-section.style-panel.margin.down': '下间距',
98
+ 'luckda.lowcode.painter.panel-section.style-panel.margin.left': '左间距',
99
+ 'luckda.lowcode.painter.panel-section.style-panel.group-name': '样式设置',
100
+ 'luckda.lowcode.painter.panel-section.style-panel.width': '请输入宽高度',
101
+ 'luckda.lowcode.painter.panel-section.style-panel.display': '显示',
102
+ 'luckda.lowcode.painter.panel-section.style-panel.margin.superbig': '超大(24px)',
103
+ 'luckda.lowcode.painter.panel-section.style-panel.margin.big': '大(20px)',
104
+ 'luckda.lowcode.painter.panel-section.style-panel.margin.middle': '中(16px)',
105
+ 'luckda.lowcode.painter.panel-section.style-panel.margin.small': '小(12px)',
106
+ 'luckda.lowcode.painter.panel-section.style-panel.margin.supersmall': '超小(8px)',
107
+ 'luckda.lowcode.painter.panel-section.style-panel.margin.none': '无(0px)',
108
+ 'luckda.lowcode.painter.panel-section.style-panel.margin.default': '默认',
109
+ 'luckda.lowcode.painter.panel-section.style-panel.font.weight': '字重',
110
+ 'luckda.lowcode.painter.panel-section.style-panel.font.style': '样式',
111
+ 'luckda.lowcode.painter.panel-section.style-panel.font.color': '字体颜色',
112
+ 'luckda.lowcode.painter.panel-section.style-panel.font.size': '字体大小',
113
+ 'luckda.lowcode.painter.panel-section.style-panel.font.size.ph': '字体大小',
114
+ 'luckda.lowcode.painter.panel-section.style-panel.font.line-height.ph': '行高',
115
+ 'luckda.lowcode.painter.panel-section.style-panel.font.align': '对齐',
116
+ 'luckda.lowcode.painter.panel-section.style-panel.font.align.left': '左对齐',
117
+ 'luckda.lowcode.painter.panel-section.style-panel.font.align.center': '自适应',
118
+ 'luckda.lowcode.painter.panel-section.style-panel.font.style.none': '无',
119
+ 'luckda.lowcode.painter.panel-section.style-panel.font.style.underline': '下划线',
120
+ 'luckda.lowcode.painter.panel-section.style-panel.font.style.line-through': '中划线',
121
+ 'luckda.lowcode.painter.panel-section.style-panel.font': '文字',
122
+ 'luckda.lowcode.painter.panel-section.style-panel.font.h1': '一级标题',
123
+ 'luckda.lowcode.painter.panel-section.style-panel.font.h2': '二级标题',
124
+ 'luckda.lowcode.painter.panel-section.style-panel.font.h3': '三级标题',
125
+ 'luckda.lowcode.painter.panel-section.style-panel.font.paragraph': '段落',
126
+ 'luckda.lowcode.painter.panel-section.style-panel.font.default': '无',
127
+ 'luckda.lowcode.painter.panel-section.style-panel.font.custom': '自定义',
128
+ 'luckda.lowcode.painter.panel-section.style-panel.display.block': '块',
129
+ 'luckda.lowcode.painter.panel-section.style-panel.display.inline-block': '行内块',
130
+ 'luckda.lowcode.painter.panel-section.style-panel.display.inline': '行内',
131
+ 'luckda.lowcode.painter.panel-section.style-panel.display.flex': '弹性',
132
+ 'luckda.lowcode.painter.panel-section.style-panel.display.direct.row': '方向:横向',
133
+ 'luckda.lowcode.painter.panel-section.style-panel.display.direct.column': '方向:纵向反转',
134
+ 'luckda.lowcode.painter.panel-section.style-panel.display.align-items.flex-start': '交叉轴:起始对齐',
135
+ 'luckda.lowcode.painter.panel-section.style-panel.display.align-items.center': '交叉轴:居中',
136
+ 'luckda.lowcode.painter.panel-section.style-panel.display.align-items.flex-end': '交叉轴:终点对齐',
137
+ 'luckda.lowcode.painter.panel-section.style-panel.display.align-items.stretch': '交叉轴:拉伸',
138
+ 'luckda.lowcode.painter.panel-section.style-panel.display.align-items.baseline': '交叉轴:基线',
139
+ 'luckda.lowcode.painter.panel-section.style-panel.display.justify.flex-start': '水平轴:起始对齐',
140
+ 'luckda.lowcode.painter.panel-section.style-panel.display.justify.center': '水平轴:居中对齐',
141
+ 'luckda.lowcode.painter.panel-section.style-panel.display.justify.flex-end': '水平轴:结束对齐',
142
+ 'luckda.lowcode.painter.panel-section.style-panel.display.justify.space-between': '水平轴:两端对齐',
143
+ 'luckda.lowcode.painter.panel-section.style-panel.display.justify.space-around': '水平轴:均匀对齐,项目周围间隔相等',
144
+ 'luckda.lowcode.painter.panel-section.style-panel.display.justify.space-evenly': '水平轴:均匀分布,所有项目与容器边缘的间隔相等',
145
+ 'luckda.lowcode.painter.panel-section.style-panel.border-radius': ' 圆角',
146
+ 'luckda.lowcode.painter.panel-section.style-panel.border-radius.width': '半径',
147
+ 'luckda.lowcode.painter.panel-section.style-panel.border-radius.width.ph': '半径',
148
+ 'luckda.lowcode.painter.panel-section.style-panel.border': '边框',
149
+ 'luckda.lowcode.painter.panel-section.style-panel.border.style': '边框',
150
+ 'luckda.lowcode.painter.panel-section.style-panel.border.style.none': '无',
151
+ 'luckda.lowcode.painter.panel-section.style-panel.border.style.solid': '实线条',
152
+ 'luckda.lowcode.painter.panel-section.style-panel.border.style.dotted': '点线',
153
+ 'luckda.lowcode.painter.panel-section.style-panel.border.style.dashed': '虚线',
154
+ 'luckda.lowcode.painter.panel-section.style-panel.border.width': '线宽',
155
+ 'luckda.lowcode.painter.panel-section.style-panel.border.width.ph': '线宽',
156
+ 'luckda.lowcode.painter.panel-section.style-panel.border.color': '颜色',
157
+ 'luckda.lowcode.painter.panel-section.style-panel.background': '背景',
158
+ 'luckda.lowcode.painter.panel-section.blocksEditor.auto': '表单',
159
+ 'luckda.lowcode.painter.panel-section.blocksEditor.grid': '表格',
160
+ 'luckda.lowcode.painter.panel-section.blocksEditor.writer': '行内编辑表格',
161
+ 'luckda.lowcode.painter.panel-section.blocksEditor.uploadForm': '附件列表',
162
+ 'luckda.lowcode.painter.panel-section.blocksEditor.blank': '空白区',
163
+ 'luckda.lowcode.painter.panel-section.blocksEditor.addBlock': '新增区块',
164
+ 'luckda.lowcode.painter.panel-section.actionsEditor.button': '按钮',
165
+ 'luckda.lowcode.painter.panel-section.actionsEditor.text': '文本',
166
+ 'luckda.lowcode.painter.bindAction': '绑定动作',
167
+ 'luckda.lowcode.painter.panel-section.actionsEditor.display': '展现形式',
168
+ 'luckda.lowcode.painter.panel-section.actionsEditor.max': '最大显示数',
169
+ 'luckda.lowcode.painter.panel-section.actionsEditor.moreText': '更多显示文字',
170
+ 'luckda.lowcode.painter.panel-section.actionsEditor.add': '添加操作',
171
+ 'luckda.lowcode.painter.panel-section.actionEditor.default': '一般',
172
+ 'luckda.lowcode.painter.panel-section.actionEditor.primary': '重要',
173
+ 'luckda.lowcode.painter.panel-section.actionEditor.danger': '危险',
174
+ 'luckda.lowcode.painter.panel-section.actionEditor.destroy': '毁灭',
175
+ 'luckda.lowcode.painter.panel-section.actionEditor.name': '名称',
176
+ 'luckda.lowcode.painter.panel-section.actionEditor.name.placeholder': '请输入行为名称',
177
+ 'luckda.lowcode.painter.panel-section.actionEditor.serial': '资源串',
178
+ 'luckda.lowcode.painter.panel-section.actionEditor.serialEffect': '越权效果',
179
+ 'luckda.lowcode.painter.panel-section.actionEditor.riskLevel': '风险等级',
180
+ 'luckda.lowcode.painter.panel-section.components.listeditor.add': '添加一项',
181
+ 'luckda.lowcode.painter.panel-section.field-selector.placeholder': '请选择字段',
182
+ 'luckda.lowcode.painter.advancePanel.events': '事件',
183
+ 'luckda.lowcode.painter.advancePanel.addEventAction': '添加事件动作',
184
+ 'luckda.lowcode.painter.actionBindModal.pageActions': '页面行为',
185
+ 'luckda.lowcode.painter.actionBindModal.trigger': '触发器',
186
+ 'luckda.lowcode.painter.actionBindModal.custom': '自定义动作',
187
+ 'luckda.lowcode.painter.actionBindModal.coding': '动作编写',
188
+ 'luckda.lowcode.painter.actionBindModal.bind': '绑定动作',
189
+ 'luckda.lowcode.painter.actionBindModal.search': '搜索',
190
+ 'luckda.lowcode.painter.actionBindModal.params': '配置参数',
191
+ 'luckda.lowcode.painter.actionBindModal.params.info': '请勿随意修改配置参数结构和参数名称,参数异常可能会导致请求失败',
192
+ 'luckda.lowcode.painter.actionBindModal.noActionSelected': '请在右侧选择行为项',
193
+ 'luckda.lowcode.painter.panel-section.fieldsSetting.align.left': '居左',
194
+ 'luckda.lowcode.painter.panel-section.fieldsSetting.align.center': '居中',
195
+ 'luckda.lowcode.painter.panel-section.fieldsSetting.align.right': '居右',
196
+ 'luckda.lowcode.painter.panel-section.fieldsSetting.fixed.none': '不固定',
197
+ 'luckda.lowcode.painter.panel-section.fieldsSetting.fixed.left': '左',
198
+ 'luckda.lowcode.painter.panel-section.fieldsSetting.fixed.right': '右',
199
+ 'luckda.lowcode.painter.delete.tip': '确定删除吗?',
200
+ 'luckda.lowcode.painter.panel-section.fieldsSetting.width': '列宽',
201
+ 'luckda.lowcode.painter.panel-section.fieldsSetting.align': '内容对齐',
202
+ 'luckda.lowcode.painter.panel-section.fieldsSetting.headerAlign': '表头对齐',
203
+ 'luckda.lowcode.painter.panel-section.fieldsSetting.pinned': '固定列',
204
+ 'luckda.lowcode.painter.panel-section.fieldsSetting.tip': '过长提示',
205
+ 'luckda.lowcode.painter.panel-section.fieldsSetting.fieldColumn': '占列数',
206
+ 'luckda.lowcode.painter.panel-section.fieldsSetting.fieldRow': '占行数',
207
+ 'luckda.lowcode.painter.panel-section.fieldsSetting.fieldNote': '字段注释',
208
+ 'luckda.lowcode.painter.panel-section.fieldsSetting.fieldTip': '长说明',
209
+ 'luckda.lowcode.painter.panel-section.fieldsSetting.placeholder': '默认提示',
210
+ 'luckda.lowcode.painter.panel-section.fieldsSetting.isEqual': '唯一校验',
211
+ 'luckda.lowcode.painter.panel-section.fieldsSetting.required': '是否必填',
212
+ 'luckda.lowcode.painter.panel-section.fieldsSetting.table.display': '表格中显示',
213
+ 'luckda.lowcode.painter.panel-section.fieldsSetting.form.display': '表单中显示',
214
+ 'luckda.lowcode.painter.panel-section.fieldsSetting.writable': '是否可写',
215
+ 'luckda.lowcode.painter.panel-section.fieldsSetting.readonly': '是否只读',
216
+ 'luckda.lowcode.painter.panel-section.fieldsSetting.defaultValue': '默认值',
217
+ 'luckda.lowcode.painter.settingTo': '设置为',
218
+ 'luckda.lowcode.painter.setting': '设置',
219
+ 'luckda.lowcode.painter.panel-section.fieldsSetting.rules.front': '前端校验规则',
220
+ 'luckda.lowcode.painter.panel-section.fieldsSetting.addRules': '添加校验规则',
221
+ 'luckda.lowcode.painter.panel-section.fieldsSetting.rules': '校验规则',
222
+ 'luckda.lowcode.painter.panel-section.fieldsSetting.defaultValue.assign': '赋值事件',
223
+ 'luckda.lowcode.painter.panel-section.fieldsSetting.defaultValue.message.assign': '请选择赋值事件',
224
+ 'luckda.lowcode.painter.expression': '表达式',
225
+ 'luckda.lowcode.painter.message.expression': '请输入表达式',
226
+ 'luckda.lowcode.painter.reset.tip': '确定重置吗?',
227
+ 'luckda.lowcode.painter.reset': '重置',
228
+ 'luckda.lowcode.painter.save': '保存',
229
+ 'luckda.lowcode.painter.panel-section.fieldsSetting.attrs.conditionList': '条件列表',
230
+ 'luckda.lowcode.painter.panel-section.fieldsSetting.attrs.settingCondition': '配置条件',
231
+ 'luckda.lowcode.painter.panel-section.fieldsSetting.attrs.usergroup': '选择分组',
232
+ 'luckda.lowcode.painter.panel-section.fieldsSetting.attrs.message.usergroup': '请选择登录人分组',
233
+ 'luckda.lowcode.painter.panel-section.fieldsSetting.attrs.params': '参数名称',
234
+ 'luckda.lowcode.painter.panel-section.fieldsSetting.attrs.message.params': '请输入参数名称',
235
+ 'luckda.lowcode.painter.panel-section.fieldsSetting.attrs.contrary': '取反',
236
+ 'luckda.lowcode.painter.panel-section.fieldsSetting.checkRules.verifyType': '校验规则',
237
+ 'luckda.lowcode.painter.panel-section.fieldsSetting.checkRules.message.verifyType': '请选择校验规则',
238
+ 'luckda.lowcode.painter.panel-section.fieldsSetting.checkRules.errorMsg': '错误提示',
239
+ 'luckda.lowcode.painter.panel-section.fieldsSetting.checkRules.message.errorMsg': '请输入错误提示',
240
+ 'luckda.lowcode.painter.panel-section.fieldsSetting.checkRules.logic': '校验逻辑',
241
+ 'luckda.lowcode.painter.components.fullscreen.tip': '全屏'
242
+ };