@next-bricks/visual-builder 1.20.1 → 1.22.0
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.
- package/dist/bricks.json +17 -16
- package/dist/chunks/1122.a7519460.js +2 -0
- package/dist/chunks/1122.a7519460.js.map +1 -0
- package/dist/chunks/{114.257c9063.js → 114.63bf1208.js} +2 -2
- package/dist/chunks/{114.257c9063.js.map → 114.63bf1208.js.map} +1 -1
- package/dist/chunks/{1940.e4b5933d.js → 1940.5f0efc53.js} +2 -2
- package/dist/chunks/{1940.e4b5933d.js.map → 1940.5f0efc53.js.map} +1 -1
- package/dist/chunks/2252.043616c7.js +3 -0
- package/dist/chunks/2252.043616c7.js.map +1 -0
- package/dist/chunks/{2277.b9ac921f.js → 2277.06e20216.js} +2 -2
- package/dist/chunks/{2277.b9ac921f.js.map → 2277.06e20216.js.map} +1 -1
- package/dist/chunks/{2980.42265dd0.js → 2980.1f86c8c1.js} +2 -2
- package/dist/chunks/{2980.42265dd0.js.map → 2980.1f86c8c1.js.map} +1 -1
- package/dist/chunks/{3171.3bc8d41c.js → 3171.50ff3a26.js} +2 -2
- package/dist/chunks/{3171.3bc8d41c.js.map → 3171.50ff3a26.js.map} +1 -1
- package/dist/chunks/{3933.28d213df.js → 3933.970e4f69.js} +2 -2
- package/dist/chunks/{6314.0296f222.js.map → 3933.970e4f69.js.map} +1 -1
- package/dist/chunks/{4658.d9a35126.js → 4658.6f1f1b37.js} +2 -2
- package/dist/chunks/{4658.d9a35126.js.map → 4658.6f1f1b37.js.map} +1 -1
- package/dist/chunks/{4837.fa1b5c39.js → 4837.c11be2c0.js} +2 -2
- package/dist/chunks/{7218.649cad2f.js.map → 4837.c11be2c0.js.map} +1 -1
- package/dist/chunks/4947.0103ed62.js +3 -0
- package/dist/chunks/4947.0103ed62.js.map +1 -0
- package/dist/chunks/5399.d3b753b3.js +2 -0
- package/dist/chunks/5399.d3b753b3.js.map +1 -0
- package/dist/chunks/{5552.dbcb6e38.js → 5552.8c2ed047.js} +2 -2
- package/dist/chunks/{5552.dbcb6e38.js.map → 5552.8c2ed047.js.map} +1 -1
- package/dist/chunks/{5659.9000e441.js → 5659.c2b28502.js} +3 -3
- package/dist/chunks/{5659.9000e441.js.map → 5659.c2b28502.js.map} +1 -1
- package/dist/chunks/6233.18a64bb2.js +3 -0
- package/dist/chunks/6233.18a64bb2.js.map +1 -0
- package/dist/chunks/{6314.0296f222.js → 6314.86404a43.js} +2 -2
- package/dist/chunks/{3933.28d213df.js.map → 6314.86404a43.js.map} +1 -1
- package/dist/chunks/{7218.649cad2f.js → 7218.cf7baa8d.js} +2 -2
- package/dist/chunks/{4837.fa1b5c39.js.map → 7218.cf7baa8d.js.map} +1 -1
- package/dist/chunks/{7434.4ddb3aab.js → 7434.99b24ba5.js} +2 -2
- package/dist/chunks/{7434.4ddb3aab.js.map → 7434.99b24ba5.js.map} +1 -1
- package/dist/chunks/{7733.0ded6e62.js → 7733.6aaf0acb.js} +2 -2
- package/dist/chunks/{7733.0ded6e62.js.map → 7733.6aaf0acb.js.map} +1 -1
- package/dist/chunks/{790.52ca62ef.js → 790.d4f3b21c.js} +2 -2
- package/dist/chunks/{790.52ca62ef.js.map → 790.d4f3b21c.js.map} +1 -1
- package/dist/chunks/{8091.7b67daa4.js → 8091.c5adab63.js} +3 -3
- package/dist/chunks/8091.c5adab63.js.map +1 -0
- package/dist/chunks/{9027.fe4a7e3b.js → 9027.397f0c1f.js} +2 -2
- package/dist/chunks/{9027.fe4a7e3b.js.map → 9027.397f0c1f.js.map} +1 -1
- package/dist/chunks/{9515.80c4b472.js → 9515.7f8e4c58.js} +2 -2
- package/dist/chunks/{9515.80c4b472.js.map → 9515.7f8e4c58.js.map} +1 -1
- package/dist/chunks/{9559.769f4ba7.js → 9559.a7cc0fe6.js} +2 -2
- package/dist/chunks/{9559.769f4ba7.js.map → 9559.a7cc0fe6.js.map} +1 -1
- package/dist/chunks/{chat-conversation.719bc9ad.js → chat-conversation.064750a3.js} +3 -3
- package/dist/chunks/{chat-conversation.719bc9ad.js.map → chat-conversation.064750a3.js.map} +1 -1
- package/dist/chunks/{chat-preview.bef8e319.js → chat-preview.8de942c9.js} +3 -3
- package/dist/chunks/{chat-preview.bef8e319.js.map → chat-preview.8de942c9.js.map} +1 -1
- package/dist/chunks/{check-editor-by-name.2db94c99.js → check-editor-by-name.73728483.js} +2 -2
- package/dist/chunks/{check-editor-by-name.2db94c99.js.map → check-editor-by-name.73728483.js.map} +1 -1
- package/dist/chunks/contract-select.531ce760.js +3 -0
- package/dist/chunks/{contract-select.5d6a06a1.js.map → contract-select.531ce760.js.map} +1 -1
- package/dist/chunks/{generate-snippets-context-menu.bccdc97e.js → generate-snippets-context-menu.cec122bb.js} +2 -2
- package/dist/chunks/{generate-snippets-context-menu.bccdc97e.js.map → generate-snippets-context-menu.cec122bb.js.map} +1 -1
- package/dist/chunks/get-data-deps.03f2aae3.js +2 -0
- package/dist/chunks/get-data-deps.03f2aae3.js.map +1 -0
- package/dist/chunks/{inject-chat-preview-agent.22e7b4a4.js → inject-chat-preview-agent.75e178b0.js} +2 -2
- package/dist/chunks/{inject-chat-preview-agent.22e7b4a4.js.map → inject-chat-preview-agent.75e178b0.js.map} +1 -1
- package/dist/chunks/{inject-preview-agent.28aa1a07.js → inject-preview-agent.83ee9dfe.js} +2 -2
- package/dist/chunks/{inject-preview-agent.28aa1a07.js.map → inject-preview-agent.83ee9dfe.js.map} +1 -1
- package/dist/chunks/main.1c9f57b6.js +2 -0
- package/dist/chunks/main.1c9f57b6.js.map +1 -0
- package/dist/chunks/{page-arch-node.496da924.js → page-arch-node.50fe50b2.js} +3 -3
- package/dist/chunks/{page-arch-node.496da924.js.map → page-arch-node.50fe50b2.js.map} +1 -1
- package/dist/chunks/pre-generated-container.0e9e33dc.js +2 -0
- package/dist/chunks/{pre-generated-container.dde9a3e7.js.map → pre-generated-container.0e9e33dc.js.map} +1 -1
- package/dist/chunks/{pre-generated-preview.39862a2d.js → pre-generated-preview.da3f0cc6.js} +3 -3
- package/dist/chunks/{pre-generated-preview.39862a2d.js.map → pre-generated-preview.da3f0cc6.js.map} +1 -1
- package/dist/chunks/{pre-generated-table-view.7be02729.js → pre-generated-table-view.a76e65eb.js} +2 -2
- package/dist/chunks/{pre-generated-table-view.7be02729.js.map → pre-generated-table-view.a76e65eb.js.map} +1 -1
- package/dist/chunks/property-editor.81603794.js +2 -0
- package/dist/chunks/property-editor.81603794.js.map +1 -0
- package/dist/chunks/{workbench-action-list.9cda9ca0.js → workbench-action-list.06eae580.js} +2 -2
- package/dist/chunks/{workbench-action-list.9cda9ca0.js.map → workbench-action-list.06eae580.js.map} +1 -1
- package/dist/chunks/{workbench-action.1a44a90f.js → workbench-action.5cd875ea.js} +3 -3
- package/dist/chunks/{workbench-action.1a44a90f.js.map → workbench-action.5cd875ea.js.map} +1 -1
- package/dist/chunks/{workbench-history-action.a2e3d3de.js → workbench-history-action.81a1f9d8.js} +3 -3
- package/dist/chunks/{workbench-history-action.a2e3d3de.js.map → workbench-history-action.81a1f9d8.js.map} +1 -1
- package/dist/chunks/{workbench-pane.5636e95b.js → workbench-pane.9634f35a.js} +3 -3
- package/dist/chunks/{workbench-pane.5636e95b.js.map → workbench-pane.9634f35a.js.map} +1 -1
- package/dist/chunks/{workbench-sidebar.e66c6daa.js → workbench-sidebar.d9bc1d1a.js} +2 -2
- package/dist/chunks/{workbench-sidebar.e66c6daa.js.map → workbench-sidebar.d9bc1d1a.js.map} +1 -1
- package/dist/chunks/{workbench-tree.a03b7c9d.js → workbench-tree.c3469448.js} +3 -3
- package/dist/chunks/{workbench-tree.a03b7c9d.js.map → workbench-tree.c3469448.js.map} +1 -1
- package/dist/examples.json +1 -1
- package/dist/index.647b0e56.js +2 -0
- package/dist/index.647b0e56.js.map +1 -0
- package/dist/manifest.json +105 -97
- package/dist/types.json +117 -51
- package/dist-types/bootstrap.d.ts +1 -0
- package/dist-types/data-providers/get-data-dependency.d.ts +3 -0
- package/dist-types/data-providers/get-data-dependency.spec.d.ts +1 -0
- package/dist-types/interfaces.d.ts +0 -3
- package/dist-types/property-editor/index.d.ts +37 -30
- package/dist-types/shared/workbench/WorkbenchActionsContext.d.ts +0 -1
- package/dist-types/shared/workbench/WorkbenchTreeContext.d.ts +0 -1
- package/dist-types/shared/workbench/WorkbenchTreeDndContext.d.ts +0 -1
- package/dist-types/utils/setDragImage.d.ts +0 -1
- package/docs/property-editor.md +39 -8
- package/package.json +4 -4
- package/dist/chunks/1122.c725b007.js +0 -2
- package/dist/chunks/1122.c725b007.js.map +0 -1
- package/dist/chunks/2252.7d04d301.js +0 -3
- package/dist/chunks/2252.7d04d301.js.map +0 -1
- package/dist/chunks/4947.9b6a9cd0.js +0 -3
- package/dist/chunks/4947.9b6a9cd0.js.map +0 -1
- package/dist/chunks/5399.f7e42570.js +0 -2
- package/dist/chunks/5399.f7e42570.js.map +0 -1
- package/dist/chunks/8091.7b67daa4.js.map +0 -1
- package/dist/chunks/8275.dfcd99a8.js +0 -3
- package/dist/chunks/8275.dfcd99a8.js.map +0 -1
- package/dist/chunks/contract-select.5d6a06a1.js +0 -3
- package/dist/chunks/main.fb41bc3d.js +0 -2
- package/dist/chunks/main.fb41bc3d.js.map +0 -1
- package/dist/chunks/pre-generated-container.dde9a3e7.js +0 -2
- package/dist/chunks/property-editor.e0c3a0f1.js +0 -2
- package/dist/chunks/property-editor.e0c3a0f1.js.map +0 -1
- package/dist/index.76fe5dac.js +0 -2
- package/dist/index.76fe5dac.js.map +0 -1
- /package/dist/chunks/{2252.7d04d301.js.LICENSE.txt → 2252.043616c7.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{4947.9b6a9cd0.js.LICENSE.txt → 4947.0103ed62.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{5659.9000e441.js.LICENSE.txt → 5659.c2b28502.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{8275.dfcd99a8.js.LICENSE.txt → 6233.18a64bb2.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{8091.7b67daa4.js.LICENSE.txt → 8091.c5adab63.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{chat-conversation.719bc9ad.js.LICENSE.txt → chat-conversation.064750a3.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{chat-preview.bef8e319.js.LICENSE.txt → chat-preview.8de942c9.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{contract-select.5d6a06a1.js.LICENSE.txt → contract-select.531ce760.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{page-arch-node.496da924.js.LICENSE.txt → page-arch-node.50fe50b2.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{pre-generated-preview.39862a2d.js.LICENSE.txt → pre-generated-preview.da3f0cc6.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{workbench-action.1a44a90f.js.LICENSE.txt → workbench-action.5cd875ea.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{workbench-history-action.a2e3d3de.js.LICENSE.txt → workbench-history-action.81a1f9d8.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{workbench-pane.5636e95b.js.LICENSE.txt → workbench-pane.9634f35a.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{workbench-tree.a03b7c9d.js.LICENSE.txt → workbench-tree.c3469448.js.LICENSE.txt} +0 -0
package/dist/types.json
CHANGED
|
@@ -45,6 +45,63 @@
|
|
|
45
45
|
],
|
|
46
46
|
"methods": []
|
|
47
47
|
},
|
|
48
|
+
"visual-builder.workbench-sidebar": {
|
|
49
|
+
"properties": [
|
|
50
|
+
{
|
|
51
|
+
"name": "titleLabel",
|
|
52
|
+
"annotation": {
|
|
53
|
+
"type": "keyword",
|
|
54
|
+
"value": "string"
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
],
|
|
58
|
+
"events": [],
|
|
59
|
+
"methods": []
|
|
60
|
+
},
|
|
61
|
+
"visual-builder.workbench-action": {
|
|
62
|
+
"properties": [
|
|
63
|
+
{
|
|
64
|
+
"name": "icon",
|
|
65
|
+
"annotation": {
|
|
66
|
+
"type": "reference",
|
|
67
|
+
"typeName": {
|
|
68
|
+
"type": "identifier",
|
|
69
|
+
"name": "GeneralIconProps"
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
"name": "to",
|
|
75
|
+
"annotation": {
|
|
76
|
+
"type": "keyword",
|
|
77
|
+
"value": "string"
|
|
78
|
+
}
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
"name": "active",
|
|
82
|
+
"annotation": {
|
|
83
|
+
"type": "keyword",
|
|
84
|
+
"value": "boolean"
|
|
85
|
+
}
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
"name": "href",
|
|
89
|
+
"annotation": {
|
|
90
|
+
"type": "keyword",
|
|
91
|
+
"value": "string"
|
|
92
|
+
}
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
"name": "target",
|
|
96
|
+
"annotation": {
|
|
97
|
+
"type": "keyword",
|
|
98
|
+
"value": "string"
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
],
|
|
102
|
+
"events": [],
|
|
103
|
+
"methods": []
|
|
104
|
+
},
|
|
48
105
|
"visual-builder.check-editor-by-name": {
|
|
49
106
|
"type": "provider",
|
|
50
107
|
"params": [
|
|
@@ -75,18 +132,58 @@
|
|
|
75
132
|
}
|
|
76
133
|
}
|
|
77
134
|
},
|
|
78
|
-
"visual-builder.
|
|
79
|
-
"
|
|
135
|
+
"visual-builder.get-data-deps": {
|
|
136
|
+
"type": "provider",
|
|
137
|
+
"params": [
|
|
80
138
|
{
|
|
81
|
-
"name": "
|
|
139
|
+
"name": "contextConfs",
|
|
140
|
+
"annotation": {
|
|
141
|
+
"type": "array",
|
|
142
|
+
"elementType": {
|
|
143
|
+
"type": "reference",
|
|
144
|
+
"typeName": {
|
|
145
|
+
"type": "identifier",
|
|
146
|
+
"name": "ContextConf"
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
},
|
|
151
|
+
{
|
|
152
|
+
"name": "keyword",
|
|
82
153
|
"annotation": {
|
|
83
154
|
"type": "keyword",
|
|
84
155
|
"value": "string"
|
|
85
156
|
}
|
|
86
157
|
}
|
|
87
158
|
],
|
|
88
|
-
"
|
|
89
|
-
|
|
159
|
+
"returns": {
|
|
160
|
+
"annotation": {
|
|
161
|
+
"type": "reference",
|
|
162
|
+
"typeName": {
|
|
163
|
+
"type": "identifier",
|
|
164
|
+
"name": "Map"
|
|
165
|
+
},
|
|
166
|
+
"typeParameters": {
|
|
167
|
+
"type": "typeParameterInstantiation",
|
|
168
|
+
"params": [
|
|
169
|
+
{
|
|
170
|
+
"type": "reference",
|
|
171
|
+
"typeName": {
|
|
172
|
+
"type": "identifier",
|
|
173
|
+
"name": "ContextConf"
|
|
174
|
+
}
|
|
175
|
+
},
|
|
176
|
+
{
|
|
177
|
+
"type": "reference",
|
|
178
|
+
"typeName": {
|
|
179
|
+
"type": "identifier",
|
|
180
|
+
"name": "MemberUsage"
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
]
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
}
|
|
90
187
|
},
|
|
91
188
|
"visual-builder.page-arch-node": {
|
|
92
189
|
"properties": [
|
|
@@ -365,47 +462,8 @@
|
|
|
365
462
|
}
|
|
366
463
|
]
|
|
367
464
|
},
|
|
368
|
-
"visual-builder.
|
|
369
|
-
"properties": [
|
|
370
|
-
{
|
|
371
|
-
"name": "icon",
|
|
372
|
-
"annotation": {
|
|
373
|
-
"type": "reference",
|
|
374
|
-
"typeName": {
|
|
375
|
-
"type": "identifier",
|
|
376
|
-
"name": "GeneralIconProps"
|
|
377
|
-
}
|
|
378
|
-
}
|
|
379
|
-
},
|
|
380
|
-
{
|
|
381
|
-
"name": "to",
|
|
382
|
-
"annotation": {
|
|
383
|
-
"type": "keyword",
|
|
384
|
-
"value": "string"
|
|
385
|
-
}
|
|
386
|
-
},
|
|
387
|
-
{
|
|
388
|
-
"name": "active",
|
|
389
|
-
"annotation": {
|
|
390
|
-
"type": "keyword",
|
|
391
|
-
"value": "boolean"
|
|
392
|
-
}
|
|
393
|
-
},
|
|
394
|
-
{
|
|
395
|
-
"name": "href",
|
|
396
|
-
"annotation": {
|
|
397
|
-
"type": "keyword",
|
|
398
|
-
"value": "string"
|
|
399
|
-
}
|
|
400
|
-
},
|
|
401
|
-
{
|
|
402
|
-
"name": "target",
|
|
403
|
-
"annotation": {
|
|
404
|
-
"type": "keyword",
|
|
405
|
-
"value": "string"
|
|
406
|
-
}
|
|
407
|
-
}
|
|
408
|
-
],
|
|
465
|
+
"visual-builder.pre-generated-table-view": {
|
|
466
|
+
"properties": [],
|
|
409
467
|
"events": [],
|
|
410
468
|
"methods": []
|
|
411
469
|
},
|
|
@@ -635,11 +693,6 @@
|
|
|
635
693
|
}
|
|
636
694
|
]
|
|
637
695
|
},
|
|
638
|
-
"visual-builder.pre-generated-table-view": {
|
|
639
|
-
"properties": [],
|
|
640
|
-
"events": [],
|
|
641
|
-
"methods": []
|
|
642
|
-
},
|
|
643
696
|
"visual-builder.pre-generated-container": {
|
|
644
697
|
"properties": [
|
|
645
698
|
{
|
|
@@ -1205,6 +1258,19 @@
|
|
|
1205
1258
|
}
|
|
1206
1259
|
}
|
|
1207
1260
|
}
|
|
1261
|
+
},
|
|
1262
|
+
{
|
|
1263
|
+
"name": "editorPackages",
|
|
1264
|
+
"annotation": {
|
|
1265
|
+
"type": "array",
|
|
1266
|
+
"elementType": {
|
|
1267
|
+
"type": "reference",
|
|
1268
|
+
"typeName": {
|
|
1269
|
+
"type": "identifier",
|
|
1270
|
+
"name": "BrickPackage"
|
|
1271
|
+
}
|
|
1272
|
+
}
|
|
1273
|
+
}
|
|
1208
1274
|
}
|
|
1209
1275
|
],
|
|
1210
1276
|
"events": [
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { ReactNextElement } from "@next-core/react-element";
|
|
3
3
|
import "@next-core/theme";
|
|
4
|
-
import { Form, onFieldValueChange, onFieldInit, onFieldInitialValueChange, onFormValidateSuccess } from "@formily/core";
|
|
4
|
+
import { Form, onFieldValueChange, onFieldInit, onFieldInitialValueChange, onFormInitialValuesChange, onFormValidateSuccess } from "@formily/core";
|
|
5
5
|
import { ISchema } from "@formily/react";
|
|
6
6
|
import { CategoryTitle } from "./components/CategoryTitle";
|
|
7
7
|
import { AdvancedFormItem } from "./components/AdvancedFormItem";
|
|
@@ -9,6 +9,7 @@ import { CodeEditorComponent } from "./components/common/CodeEditorComponent";
|
|
|
9
9
|
import { IconSelectComponent } from "./components/common/IconSelectComponent";
|
|
10
10
|
import { DataNode } from "./utils/formilySchemaFormatter";
|
|
11
11
|
import "./style.css";
|
|
12
|
+
import { BrickPackage } from "@next-core/types";
|
|
12
13
|
declare const SchemaField: {
|
|
13
14
|
<Decorator extends import("@formily/react").JSXComponent, Component extends import("@formily/react").JSXComponent>(props: import("@formily/react").ISchemaFieldProps<Decorator, Component, import("@formily/core").ObjectField<Decorator, Component>>): JSX.Element;
|
|
14
15
|
displayName: string;
|
|
@@ -29,7 +30,7 @@ declare const SchemaField: {
|
|
|
29
30
|
FormCollapse: import("@formily/react").ReactFC<import("@formily/antd-v5").IFormCollapseProps> & {
|
|
30
31
|
CollapsePanel: React.FC<React.PropsWithChildren<import("antd").CollapsePanelProps>>;
|
|
31
32
|
createFormCollapse: (defaultActiveKeys?: string | number | (string | number)[]) => {
|
|
32
|
-
activeKeys: string | number | (string | number)[];
|
|
33
|
+
activeKeys: (string | number | (string | number)[]) | undefined;
|
|
33
34
|
setActiveKeys(keys: string | number | (string | number)[]): void;
|
|
34
35
|
hasActiveKey(key: string | number): boolean;
|
|
35
36
|
addActiveKey(key: string | number): void;
|
|
@@ -38,11 +39,11 @@ declare const SchemaField: {
|
|
|
38
39
|
};
|
|
39
40
|
};
|
|
40
41
|
NumberPicker: React.ForwardRefExoticComponent<Pick<Partial<import("antd").InputNumberProps<import("rc-input-number").ValueType> & {
|
|
41
|
-
children?:
|
|
42
|
+
children?: import("react").ReactNode;
|
|
42
43
|
} & React.RefAttributes<HTMLInputElement>>, "key" | keyof import("antd").InputNumberProps<import("rc-input-number").ValueType>> & React.RefAttributes<unknown>>;
|
|
43
44
|
Radio: React.ForwardRefExoticComponent<Pick<Partial<import("antd").RadioProps & React.RefAttributes<import("rc-checkbox").CheckboxRef>>, "key" | keyof import("antd").RadioProps> & React.RefAttributes<unknown>> & {
|
|
44
45
|
__ANT_RADIO: boolean;
|
|
45
|
-
Group:
|
|
46
|
+
Group: import("react").ForwardRefExoticComponent<Pick<Partial<import("antd").RadioGroupProps & import("react").RefAttributes<HTMLDivElement>>, "key" | keyof import("antd").RadioGroupProps> & import("react").RefAttributes<unknown>>;
|
|
46
47
|
};
|
|
47
48
|
Select: import("@formily/react").ReactFC<import("antd/lib").SelectProps<any, any>>;
|
|
48
49
|
Switch: React.ForwardRefExoticComponent<Pick<Partial<import("antd").SwitchProps & React.RefAttributes<HTMLElement>>, "key" | keyof import("antd").SwitchProps> & React.RefAttributes<unknown>>;
|
|
@@ -69,7 +70,7 @@ declare const SchemaField: {
|
|
|
69
70
|
FormCollapse: import("@formily/react").ReactFC<import("@formily/antd-v5").IFormCollapseProps> & {
|
|
70
71
|
CollapsePanel: React.FC<React.PropsWithChildren<import("antd").CollapsePanelProps>>;
|
|
71
72
|
createFormCollapse: (defaultActiveKeys?: string | number | (string | number)[]) => {
|
|
72
|
-
activeKeys: string | number | (string | number)[];
|
|
73
|
+
activeKeys: (string | number | (string | number)[]) | undefined;
|
|
73
74
|
setActiveKeys(keys: string | number | (string | number)[]): void;
|
|
74
75
|
hasActiveKey(key: string | number): boolean;
|
|
75
76
|
addActiveKey(key: string | number): void;
|
|
@@ -78,11 +79,11 @@ declare const SchemaField: {
|
|
|
78
79
|
};
|
|
79
80
|
};
|
|
80
81
|
NumberPicker: React.ForwardRefExoticComponent<Pick<Partial<import("antd").InputNumberProps<import("rc-input-number").ValueType> & {
|
|
81
|
-
children?:
|
|
82
|
+
children?: import("react").ReactNode;
|
|
82
83
|
} & React.RefAttributes<HTMLInputElement>>, "key" | keyof import("antd").InputNumberProps<import("rc-input-number").ValueType>> & React.RefAttributes<unknown>>;
|
|
83
84
|
Radio: React.ForwardRefExoticComponent<Pick<Partial<import("antd").RadioProps & React.RefAttributes<import("rc-checkbox").CheckboxRef>>, "key" | keyof import("antd").RadioProps> & React.RefAttributes<unknown>> & {
|
|
84
85
|
__ANT_RADIO: boolean;
|
|
85
|
-
Group:
|
|
86
|
+
Group: import("react").ForwardRefExoticComponent<Pick<Partial<import("antd").RadioGroupProps & import("react").RefAttributes<HTMLDivElement>>, "key" | keyof import("antd").RadioGroupProps> & import("react").RefAttributes<unknown>>;
|
|
86
87
|
};
|
|
87
88
|
Select: import("@formily/react").ReactFC<import("antd/lib").SelectProps<any, any>>;
|
|
88
89
|
Switch: React.ForwardRefExoticComponent<Pick<Partial<import("antd").SwitchProps & React.RefAttributes<HTMLElement>>, "key" | keyof import("antd").SwitchProps> & React.RefAttributes<unknown>>;
|
|
@@ -109,7 +110,7 @@ declare const SchemaField: {
|
|
|
109
110
|
FormCollapse: import("@formily/react").ReactFC<import("@formily/antd-v5").IFormCollapseProps> & {
|
|
110
111
|
CollapsePanel: React.FC<React.PropsWithChildren<import("antd").CollapsePanelProps>>;
|
|
111
112
|
createFormCollapse: (defaultActiveKeys?: string | number | (string | number)[]) => {
|
|
112
|
-
activeKeys: string | number | (string | number)[];
|
|
113
|
+
activeKeys: (string | number | (string | number)[]) | undefined;
|
|
113
114
|
setActiveKeys(keys: string | number | (string | number)[]): void;
|
|
114
115
|
hasActiveKey(key: string | number): boolean;
|
|
115
116
|
addActiveKey(key: string | number): void;
|
|
@@ -118,11 +119,11 @@ declare const SchemaField: {
|
|
|
118
119
|
};
|
|
119
120
|
};
|
|
120
121
|
NumberPicker: React.ForwardRefExoticComponent<Pick<Partial<import("antd").InputNumberProps<import("rc-input-number").ValueType> & {
|
|
121
|
-
children?:
|
|
122
|
+
children?: import("react").ReactNode;
|
|
122
123
|
} & React.RefAttributes<HTMLInputElement>>, "key" | keyof import("antd").InputNumberProps<import("rc-input-number").ValueType>> & React.RefAttributes<unknown>>;
|
|
123
124
|
Radio: React.ForwardRefExoticComponent<Pick<Partial<import("antd").RadioProps & React.RefAttributes<import("rc-checkbox").CheckboxRef>>, "key" | keyof import("antd").RadioProps> & React.RefAttributes<unknown>> & {
|
|
124
125
|
__ANT_RADIO: boolean;
|
|
125
|
-
Group:
|
|
126
|
+
Group: import("react").ForwardRefExoticComponent<Pick<Partial<import("antd").RadioGroupProps & import("react").RefAttributes<HTMLDivElement>>, "key" | keyof import("antd").RadioGroupProps> & import("react").RefAttributes<unknown>>;
|
|
126
127
|
};
|
|
127
128
|
Select: import("@formily/react").ReactFC<import("antd/lib").SelectProps<any, any>>;
|
|
128
129
|
Switch: React.ForwardRefExoticComponent<Pick<Partial<import("antd").SwitchProps & React.RefAttributes<HTMLElement>>, "key" | keyof import("antd").SwitchProps> & React.RefAttributes<unknown>>;
|
|
@@ -149,7 +150,7 @@ declare const SchemaField: {
|
|
|
149
150
|
FormCollapse: import("@formily/react").ReactFC<import("@formily/antd-v5").IFormCollapseProps> & {
|
|
150
151
|
CollapsePanel: React.FC<React.PropsWithChildren<import("antd").CollapsePanelProps>>;
|
|
151
152
|
createFormCollapse: (defaultActiveKeys?: string | number | (string | number)[]) => {
|
|
152
|
-
activeKeys: string | number | (string | number)[];
|
|
153
|
+
activeKeys: (string | number | (string | number)[]) | undefined;
|
|
153
154
|
setActiveKeys(keys: string | number | (string | number)[]): void;
|
|
154
155
|
hasActiveKey(key: string | number): boolean;
|
|
155
156
|
addActiveKey(key: string | number): void;
|
|
@@ -158,11 +159,11 @@ declare const SchemaField: {
|
|
|
158
159
|
};
|
|
159
160
|
};
|
|
160
161
|
NumberPicker: React.ForwardRefExoticComponent<Pick<Partial<import("antd").InputNumberProps<import("rc-input-number").ValueType> & {
|
|
161
|
-
children?:
|
|
162
|
+
children?: import("react").ReactNode;
|
|
162
163
|
} & React.RefAttributes<HTMLInputElement>>, "key" | keyof import("antd").InputNumberProps<import("rc-input-number").ValueType>> & React.RefAttributes<unknown>>;
|
|
163
164
|
Radio: React.ForwardRefExoticComponent<Pick<Partial<import("antd").RadioProps & React.RefAttributes<import("rc-checkbox").CheckboxRef>>, "key" | keyof import("antd").RadioProps> & React.RefAttributes<unknown>> & {
|
|
164
165
|
__ANT_RADIO: boolean;
|
|
165
|
-
Group:
|
|
166
|
+
Group: import("react").ForwardRefExoticComponent<Pick<Partial<import("antd").RadioGroupProps & import("react").RefAttributes<HTMLDivElement>>, "key" | keyof import("antd").RadioGroupProps> & import("react").RefAttributes<unknown>>;
|
|
166
167
|
};
|
|
167
168
|
Select: import("@formily/react").ReactFC<import("antd/lib").SelectProps<any, any>>;
|
|
168
169
|
Switch: React.ForwardRefExoticComponent<Pick<Partial<import("antd").SwitchProps & React.RefAttributes<HTMLElement>>, "key" | keyof import("antd").SwitchProps> & React.RefAttributes<unknown>>;
|
|
@@ -189,7 +190,7 @@ declare const SchemaField: {
|
|
|
189
190
|
FormCollapse: import("@formily/react").ReactFC<import("@formily/antd-v5").IFormCollapseProps> & {
|
|
190
191
|
CollapsePanel: React.FC<React.PropsWithChildren<import("antd").CollapsePanelProps>>;
|
|
191
192
|
createFormCollapse: (defaultActiveKeys?: string | number | (string | number)[]) => {
|
|
192
|
-
activeKeys: string | number | (string | number)[];
|
|
193
|
+
activeKeys: (string | number | (string | number)[]) | undefined;
|
|
193
194
|
setActiveKeys(keys: string | number | (string | number)[]): void;
|
|
194
195
|
hasActiveKey(key: string | number): boolean;
|
|
195
196
|
addActiveKey(key: string | number): void;
|
|
@@ -198,11 +199,11 @@ declare const SchemaField: {
|
|
|
198
199
|
};
|
|
199
200
|
};
|
|
200
201
|
NumberPicker: React.ForwardRefExoticComponent<Pick<Partial<import("antd").InputNumberProps<import("rc-input-number").ValueType> & {
|
|
201
|
-
children?:
|
|
202
|
+
children?: import("react").ReactNode;
|
|
202
203
|
} & React.RefAttributes<HTMLInputElement>>, "key" | keyof import("antd").InputNumberProps<import("rc-input-number").ValueType>> & React.RefAttributes<unknown>>;
|
|
203
204
|
Radio: React.ForwardRefExoticComponent<Pick<Partial<import("antd").RadioProps & React.RefAttributes<import("rc-checkbox").CheckboxRef>>, "key" | keyof import("antd").RadioProps> & React.RefAttributes<unknown>> & {
|
|
204
205
|
__ANT_RADIO: boolean;
|
|
205
|
-
Group:
|
|
206
|
+
Group: import("react").ForwardRefExoticComponent<Pick<Partial<import("antd").RadioGroupProps & import("react").RefAttributes<HTMLDivElement>>, "key" | keyof import("antd").RadioGroupProps> & import("react").RefAttributes<unknown>>;
|
|
206
207
|
};
|
|
207
208
|
Select: import("@formily/react").ReactFC<import("antd/lib").SelectProps<any, any>>;
|
|
208
209
|
Switch: React.ForwardRefExoticComponent<Pick<Partial<import("antd").SwitchProps & React.RefAttributes<HTMLElement>>, "key" | keyof import("antd").SwitchProps> & React.RefAttributes<unknown>>;
|
|
@@ -229,7 +230,7 @@ declare const SchemaField: {
|
|
|
229
230
|
FormCollapse: import("@formily/react").ReactFC<import("@formily/antd-v5").IFormCollapseProps> & {
|
|
230
231
|
CollapsePanel: React.FC<React.PropsWithChildren<import("antd").CollapsePanelProps>>;
|
|
231
232
|
createFormCollapse: (defaultActiveKeys?: string | number | (string | number)[]) => {
|
|
232
|
-
activeKeys: string | number | (string | number)[];
|
|
233
|
+
activeKeys: (string | number | (string | number)[]) | undefined;
|
|
233
234
|
setActiveKeys(keys: string | number | (string | number)[]): void;
|
|
234
235
|
hasActiveKey(key: string | number): boolean;
|
|
235
236
|
addActiveKey(key: string | number): void;
|
|
@@ -238,11 +239,11 @@ declare const SchemaField: {
|
|
|
238
239
|
};
|
|
239
240
|
};
|
|
240
241
|
NumberPicker: React.ForwardRefExoticComponent<Pick<Partial<import("antd").InputNumberProps<import("rc-input-number").ValueType> & {
|
|
241
|
-
children?:
|
|
242
|
+
children?: import("react").ReactNode;
|
|
242
243
|
} & React.RefAttributes<HTMLInputElement>>, "key" | keyof import("antd").InputNumberProps<import("rc-input-number").ValueType>> & React.RefAttributes<unknown>>;
|
|
243
244
|
Radio: React.ForwardRefExoticComponent<Pick<Partial<import("antd").RadioProps & React.RefAttributes<import("rc-checkbox").CheckboxRef>>, "key" | keyof import("antd").RadioProps> & React.RefAttributes<unknown>> & {
|
|
244
245
|
__ANT_RADIO: boolean;
|
|
245
|
-
Group:
|
|
246
|
+
Group: import("react").ForwardRefExoticComponent<Pick<Partial<import("antd").RadioGroupProps & import("react").RefAttributes<HTMLDivElement>>, "key" | keyof import("antd").RadioGroupProps> & import("react").RefAttributes<unknown>>;
|
|
246
247
|
};
|
|
247
248
|
Select: import("@formily/react").ReactFC<import("antd/lib").SelectProps<any, any>>;
|
|
248
249
|
Switch: React.ForwardRefExoticComponent<Pick<Partial<import("antd").SwitchProps & React.RefAttributes<HTMLElement>>, "key" | keyof import("antd").SwitchProps> & React.RefAttributes<unknown>>;
|
|
@@ -269,7 +270,7 @@ declare const SchemaField: {
|
|
|
269
270
|
FormCollapse: import("@formily/react").ReactFC<import("@formily/antd-v5").IFormCollapseProps> & {
|
|
270
271
|
CollapsePanel: React.FC<React.PropsWithChildren<import("antd").CollapsePanelProps>>;
|
|
271
272
|
createFormCollapse: (defaultActiveKeys?: string | number | (string | number)[]) => {
|
|
272
|
-
activeKeys: string | number | (string | number)[];
|
|
273
|
+
activeKeys: (string | number | (string | number)[]) | undefined;
|
|
273
274
|
setActiveKeys(keys: string | number | (string | number)[]): void;
|
|
274
275
|
hasActiveKey(key: string | number): boolean;
|
|
275
276
|
addActiveKey(key: string | number): void;
|
|
@@ -278,11 +279,11 @@ declare const SchemaField: {
|
|
|
278
279
|
};
|
|
279
280
|
};
|
|
280
281
|
NumberPicker: React.ForwardRefExoticComponent<Pick<Partial<import("antd").InputNumberProps<import("rc-input-number").ValueType> & {
|
|
281
|
-
children?:
|
|
282
|
+
children?: import("react").ReactNode;
|
|
282
283
|
} & React.RefAttributes<HTMLInputElement>>, "key" | keyof import("antd").InputNumberProps<import("rc-input-number").ValueType>> & React.RefAttributes<unknown>>;
|
|
283
284
|
Radio: React.ForwardRefExoticComponent<Pick<Partial<import("antd").RadioProps & React.RefAttributes<import("rc-checkbox").CheckboxRef>>, "key" | keyof import("antd").RadioProps> & React.RefAttributes<unknown>> & {
|
|
284
285
|
__ANT_RADIO: boolean;
|
|
285
|
-
Group:
|
|
286
|
+
Group: import("react").ForwardRefExoticComponent<Pick<Partial<import("antd").RadioGroupProps & import("react").RefAttributes<HTMLDivElement>>, "key" | keyof import("antd").RadioGroupProps> & import("react").RefAttributes<unknown>>;
|
|
286
287
|
};
|
|
287
288
|
Select: import("@formily/react").ReactFC<import("antd/lib").SelectProps<any, any>>;
|
|
288
289
|
Switch: React.ForwardRefExoticComponent<Pick<Partial<import("antd").SwitchProps & React.RefAttributes<HTMLElement>>, "key" | keyof import("antd").SwitchProps> & React.RefAttributes<unknown>>;
|
|
@@ -309,7 +310,7 @@ declare const SchemaField: {
|
|
|
309
310
|
FormCollapse: import("@formily/react").ReactFC<import("@formily/antd-v5").IFormCollapseProps> & {
|
|
310
311
|
CollapsePanel: React.FC<React.PropsWithChildren<import("antd").CollapsePanelProps>>;
|
|
311
312
|
createFormCollapse: (defaultActiveKeys?: string | number | (string | number)[]) => {
|
|
312
|
-
activeKeys: string | number | (string | number)[];
|
|
313
|
+
activeKeys: (string | number | (string | number)[]) | undefined;
|
|
313
314
|
setActiveKeys(keys: string | number | (string | number)[]): void;
|
|
314
315
|
hasActiveKey(key: string | number): boolean;
|
|
315
316
|
addActiveKey(key: string | number): void;
|
|
@@ -318,11 +319,11 @@ declare const SchemaField: {
|
|
|
318
319
|
};
|
|
319
320
|
};
|
|
320
321
|
NumberPicker: React.ForwardRefExoticComponent<Pick<Partial<import("antd").InputNumberProps<import("rc-input-number").ValueType> & {
|
|
321
|
-
children?:
|
|
322
|
+
children?: import("react").ReactNode;
|
|
322
323
|
} & React.RefAttributes<HTMLInputElement>>, "key" | keyof import("antd").InputNumberProps<import("rc-input-number").ValueType>> & React.RefAttributes<unknown>>;
|
|
323
324
|
Radio: React.ForwardRefExoticComponent<Pick<Partial<import("antd").RadioProps & React.RefAttributes<import("rc-checkbox").CheckboxRef>>, "key" | keyof import("antd").RadioProps> & React.RefAttributes<unknown>> & {
|
|
324
325
|
__ANT_RADIO: boolean;
|
|
325
|
-
Group:
|
|
326
|
+
Group: import("react").ForwardRefExoticComponent<Pick<Partial<import("antd").RadioGroupProps & import("react").RefAttributes<HTMLDivElement>>, "key" | keyof import("antd").RadioGroupProps> & import("react").RefAttributes<unknown>>;
|
|
326
327
|
};
|
|
327
328
|
Select: import("@formily/react").ReactFC<import("antd/lib").SelectProps<any, any>>;
|
|
328
329
|
Switch: React.ForwardRefExoticComponent<Pick<Partial<import("antd").SwitchProps & React.RefAttributes<HTMLElement>>, "key" | keyof import("antd").SwitchProps> & React.RefAttributes<unknown>>;
|
|
@@ -349,7 +350,7 @@ declare const SchemaField: {
|
|
|
349
350
|
FormCollapse: import("@formily/react").ReactFC<import("@formily/antd-v5").IFormCollapseProps> & {
|
|
350
351
|
CollapsePanel: React.FC<React.PropsWithChildren<import("antd").CollapsePanelProps>>;
|
|
351
352
|
createFormCollapse: (defaultActiveKeys?: string | number | (string | number)[]) => {
|
|
352
|
-
activeKeys: string | number | (string | number)[];
|
|
353
|
+
activeKeys: (string | number | (string | number)[]) | undefined;
|
|
353
354
|
setActiveKeys(keys: string | number | (string | number)[]): void;
|
|
354
355
|
hasActiveKey(key: string | number): boolean;
|
|
355
356
|
addActiveKey(key: string | number): void;
|
|
@@ -358,11 +359,11 @@ declare const SchemaField: {
|
|
|
358
359
|
};
|
|
359
360
|
};
|
|
360
361
|
NumberPicker: React.ForwardRefExoticComponent<Pick<Partial<import("antd").InputNumberProps<import("rc-input-number").ValueType> & {
|
|
361
|
-
children?:
|
|
362
|
+
children?: import("react").ReactNode;
|
|
362
363
|
} & React.RefAttributes<HTMLInputElement>>, "key" | keyof import("antd").InputNumberProps<import("rc-input-number").ValueType>> & React.RefAttributes<unknown>>;
|
|
363
364
|
Radio: React.ForwardRefExoticComponent<Pick<Partial<import("antd").RadioProps & React.RefAttributes<import("rc-checkbox").CheckboxRef>>, "key" | keyof import("antd").RadioProps> & React.RefAttributes<unknown>> & {
|
|
364
365
|
__ANT_RADIO: boolean;
|
|
365
|
-
Group:
|
|
366
|
+
Group: import("react").ForwardRefExoticComponent<Pick<Partial<import("antd").RadioGroupProps & import("react").RefAttributes<HTMLDivElement>>, "key" | keyof import("antd").RadioGroupProps> & import("react").RefAttributes<unknown>>;
|
|
366
367
|
};
|
|
367
368
|
Select: import("@formily/react").ReactFC<import("antd/lib").SelectProps<any, any>>;
|
|
368
369
|
Switch: React.ForwardRefExoticComponent<Pick<Partial<import("antd").SwitchProps & React.RefAttributes<HTMLElement>>, "key" | keyof import("antd").SwitchProps> & React.RefAttributes<unknown>>;
|
|
@@ -376,13 +377,16 @@ declare const SchemaField: {
|
|
|
376
377
|
export interface EditorComponentProps {
|
|
377
378
|
advancedMode?: boolean;
|
|
378
379
|
SchemaFieldComponent: typeof SchemaField;
|
|
379
|
-
formilySchemaFormatter: (data:
|
|
380
|
+
formilySchemaFormatter: (data: any, advancedMode?: boolean) => ISchema;
|
|
380
381
|
form: Form<any>;
|
|
381
382
|
effects: {
|
|
382
383
|
onFieldInit: typeof onFieldInit;
|
|
383
384
|
onFieldValueChange: typeof onFieldValueChange;
|
|
384
385
|
onFieldInitialValueChange: typeof onFieldInitialValueChange;
|
|
386
|
+
onFormInitialValuesChange: typeof onFormInitialValuesChange;
|
|
385
387
|
onFormValidateSuccess: typeof onFormValidateSuccess;
|
|
388
|
+
onSubmit: (listener: (value: any, form: Form) => any) => void;
|
|
389
|
+
onAdvancedChange: (listener: (advancedMode: boolean, form: Form) => any) => void;
|
|
386
390
|
};
|
|
387
391
|
scope: {
|
|
388
392
|
advancedMode: boolean;
|
|
@@ -414,6 +418,7 @@ export declare class PropertyEditor extends ReactNextElement {
|
|
|
414
418
|
/** 高级模式 */
|
|
415
419
|
accessor advancedMode: boolean | undefined;
|
|
416
420
|
accessor dataList: DataItem[];
|
|
421
|
+
accessor editorPackages: BrickPackage[];
|
|
417
422
|
validate(): void;
|
|
418
423
|
render(): React.JSX.Element;
|
|
419
424
|
}
|
|
@@ -422,6 +427,8 @@ export interface PropertyEditorProps {
|
|
|
422
427
|
editorName: string;
|
|
423
428
|
advancedMode?: boolean;
|
|
424
429
|
dataList: DataItem[];
|
|
430
|
+
editorPackages: BrickPackage[];
|
|
425
431
|
handleValuesChange: (value: any) => void;
|
|
432
|
+
onSubmitEffect: (listener: (value: any, form: Form) => any) => void;
|
|
426
433
|
}
|
|
427
|
-
export declare function LegacyPropertyEditor({ advancedMode, values, editorName, dataList, handleValuesChange, }: PropertyEditorProps, ref: any): React.JSX.Element;
|
|
434
|
+
export declare function LegacyPropertyEditor({ advancedMode, values, editorName, dataList, editorPackages, handleValuesChange, onSubmitEffect, }: PropertyEditorProps, ref: any): React.JSX.Element;
|
package/docs/property-editor.md
CHANGED
|
@@ -5,20 +5,51 @@
|
|
|
5
5
|
### Basic
|
|
6
6
|
|
|
7
7
|
```yaml preview
|
|
8
|
+
- brick: eo-select
|
|
9
|
+
properties:
|
|
10
|
+
label: 选择一个构件
|
|
11
|
+
value: eo-button
|
|
12
|
+
options: <% MISC.local_editors %>
|
|
13
|
+
style:
|
|
14
|
+
display: block
|
|
15
|
+
marginBottom: 2em
|
|
16
|
+
events:
|
|
17
|
+
change:
|
|
18
|
+
target: "#editor"
|
|
19
|
+
properties:
|
|
20
|
+
editorName: <% EVENT.detail.value %>
|
|
8
21
|
- brick: visual-builder.property-editor
|
|
9
22
|
properties:
|
|
10
23
|
id: editor
|
|
11
|
-
editorName: eo-button
|
|
24
|
+
editorName: eo-button
|
|
25
|
+
advancedMode: <%= CTX.isAdvanced %>
|
|
12
26
|
events:
|
|
13
27
|
validate.success:
|
|
14
28
|
- action: console.log
|
|
15
29
|
validate.error:
|
|
16
30
|
- action: console.log
|
|
17
|
-
- brick: eo-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
31
|
+
- brick: eo-search-bar
|
|
32
|
+
context:
|
|
33
|
+
- name: isAdvanced
|
|
34
|
+
value: false
|
|
35
|
+
children:
|
|
36
|
+
- brick: eo-button
|
|
37
|
+
slot: start
|
|
38
|
+
properties:
|
|
39
|
+
textContent: Submit
|
|
40
|
+
events:
|
|
41
|
+
click:
|
|
42
|
+
- target: "#editor"
|
|
43
|
+
method: validate
|
|
44
|
+
- brick: eo-link
|
|
45
|
+
slot: end
|
|
46
|
+
properties:
|
|
47
|
+
textContent: |
|
|
48
|
+
<%= `切换到${CTX.isAdvanced ? "普通" : "高级"}模式` %>
|
|
49
|
+
events:
|
|
50
|
+
click:
|
|
51
|
+
- action: context.replace
|
|
52
|
+
args:
|
|
53
|
+
- isAdvanced
|
|
54
|
+
- <% !CTX.isAdvanced %>
|
|
24
55
|
```
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@next-bricks/visual-builder",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.22.0",
|
|
4
4
|
"homepage": "https://github.com/easyops-cn/next-bricks/tree/master/bricks/visual-builder",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -35,8 +35,8 @@
|
|
|
35
35
|
"postpublish": "mv package.json.bak package.json"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
|
-
"@next-core/build-next-bricks": "^1.22.
|
|
39
|
-
"@next-core/test-next": "^1.1.
|
|
38
|
+
"@next-core/build-next-bricks": "^1.22.2",
|
|
39
|
+
"@next-core/test-next": "^1.1.4"
|
|
40
40
|
},
|
|
41
41
|
"peerDependencies": {
|
|
42
42
|
"@next-bricks/basic": "*",
|
|
@@ -44,5 +44,5 @@
|
|
|
44
44
|
"@next-bricks/icons": "*",
|
|
45
45
|
"@next-bricks/vs": "*"
|
|
46
46
|
},
|
|
47
|
-
"gitHead": "
|
|
47
|
+
"gitHead": "898bc118c9e1de37b7fab5738f38c029b4b9bb99"
|
|
48
48
|
}
|