@next-bricks/form 1.21.11 → 1.21.13

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 (92) hide show
  1. package/dist/bricks.json +35 -35
  2. package/dist/chunks/2537.be4cf82c.js.map +1 -1
  3. package/dist/chunks/845.2f598dd9.js +3 -0
  4. package/dist/chunks/845.2f598dd9.js.map +1 -0
  5. package/dist/chunks/{9949.753e2720.js → 9949.3d28a915.js} +3 -3
  6. package/dist/chunks/9949.3d28a915.js.map +1 -0
  7. package/dist/chunks/eo-auto-complete.0ed854e4.js.map +1 -1
  8. package/dist/chunks/eo-checkbox.2d0a8dbc.js.map +1 -1
  9. package/dist/chunks/eo-color-picker.ecf0c4c0.js.map +1 -1
  10. package/dist/chunks/eo-date-picker.faa60507.js.map +1 -1
  11. package/dist/chunks/eo-dynamic-form-item.aa5f7d9e.js.map +1 -1
  12. package/dist/chunks/eo-form.9db78cdb.js.map +1 -1
  13. package/dist/chunks/eo-icon-select.6a7f7e12.js +3 -0
  14. package/dist/chunks/eo-icon-select.6a7f7e12.js.map +1 -0
  15. package/dist/chunks/eo-radio.b2ed57db.js.map +1 -1
  16. package/dist/chunks/eo-search.206dd65e.js.map +1 -1
  17. package/dist/chunks/eo-select.cd00c791.js.map +1 -1
  18. package/dist/chunks/eo-switch.f0a27c08.js.map +1 -1
  19. package/dist/chunks/eo-textarea.405851dd.js.map +1 -1
  20. package/dist/chunks/eo-time-picker.46e7a667.js.map +1 -1
  21. package/dist/chunks/eo-time-range-picker.5afbad69.js.map +1 -1
  22. package/dist/chunks/eo-upload-file.27a4288d.js.map +1 -1
  23. package/dist/chunks/eo-upload-image.b43c2329.js.map +1 -1
  24. package/dist/chunks/{main.8c394d3e.js → main.59f7a796.js} +2 -2
  25. package/dist/chunks/{main.8c394d3e.js.map → main.59f7a796.js.map} +1 -1
  26. package/dist/examples.json +27 -24
  27. package/dist/index.2c92cf90.js +2 -0
  28. package/dist/{index.7917bac6.js.map → index.2c92cf90.js.map} +1 -1
  29. package/dist/manifest.json +451 -385
  30. package/dist/types.json +2699 -2649
  31. package/dist-types/auto-complete/index.d.ts +4 -0
  32. package/dist-types/checkbox/index.d.ts +2 -2
  33. package/dist-types/color-picker/index.d.ts +2 -1
  34. package/dist-types/date-picker/index.d.ts +1 -1
  35. package/dist-types/form/index.d.ts +16 -1
  36. package/dist-types/form-item/index.d.ts +31 -2
  37. package/dist-types/general-switch/index.d.ts +1 -1
  38. package/dist-types/icon-select/index.d.ts +1 -1
  39. package/dist-types/input/index.d.ts +2 -2
  40. package/dist-types/radio/index.d.ts +4 -4
  41. package/dist-types/select/index.d.ts +1 -0
  42. package/dist-types/textarea/index.d.ts +1 -1
  43. package/dist-types/time-range-picker/index.d.ts +7 -4
  44. package/dist-types/upload/upload-file/index.d.ts +1 -1
  45. package/docs/eo-auto-complete.md +158 -8
  46. package/docs/eo-auto-complete.react.md +229 -0
  47. package/docs/eo-checkbox.md +107 -4
  48. package/docs/eo-checkbox.react.md +369 -0
  49. package/docs/eo-color-picker.md +102 -22
  50. package/docs/eo-color-picker.react.md +160 -0
  51. package/docs/eo-date-picker.md +82 -50
  52. package/docs/eo-date-picker.react.md +146 -0
  53. package/docs/eo-dynamic-form-item.md +60 -15
  54. package/docs/eo-dynamic-form-item.react.md +186 -0
  55. package/docs/eo-form-item.md +194 -0
  56. package/docs/eo-form-item.react.md +163 -0
  57. package/docs/eo-form.md +144 -3
  58. package/docs/eo-form.react.md +330 -0
  59. package/docs/eo-icon-select.md +80 -1
  60. package/docs/eo-icon-select.react.md +97 -0
  61. package/docs/eo-input.md +147 -22
  62. package/docs/eo-input.react.md +275 -0
  63. package/docs/eo-radio.md +145 -8
  64. package/docs/eo-radio.react.md +492 -0
  65. package/docs/eo-search.md +94 -1
  66. package/docs/eo-search.react.md +122 -0
  67. package/docs/eo-select.md +157 -9
  68. package/docs/eo-select.react.md +411 -0
  69. package/docs/eo-submit-buttons.md +120 -7
  70. package/docs/eo-submit-buttons.react.md +129 -0
  71. package/docs/eo-switch.md +57 -3
  72. package/docs/eo-switch.react.md +136 -0
  73. package/docs/eo-textarea.md +101 -22
  74. package/docs/eo-textarea.react.md +193 -0
  75. package/docs/eo-time-picker.md +70 -42
  76. package/docs/eo-time-picker.react.md +106 -0
  77. package/docs/eo-time-range-picker.md +89 -35
  78. package/docs/eo-time-range-picker.react.md +163 -0
  79. package/docs/eo-upload-file.md +101 -9
  80. package/docs/eo-upload-file.react.md +126 -0
  81. package/docs/eo-upload-image.md +70 -6
  82. package/docs/eo-upload-image.react.md +92 -0
  83. package/package.json +2 -2
  84. package/dist/chunks/845.c8b5b1e8.js +0 -3
  85. package/dist/chunks/845.c8b5b1e8.js.map +0 -1
  86. package/dist/chunks/9949.753e2720.js.map +0 -1
  87. package/dist/chunks/eo-icon-select.6ea15888.js +0 -3
  88. package/dist/chunks/eo-icon-select.6ea15888.js.map +0 -1
  89. package/dist/index.7917bac6.js +0 -2
  90. /package/dist/chunks/{845.c8b5b1e8.js.LICENSE.txt → 845.2f598dd9.js.LICENSE.txt} +0 -0
  91. /package/dist/chunks/{9949.753e2720.js.LICENSE.txt → 9949.3d28a915.js.LICENSE.txt} +0 -0
  92. /package/dist/chunks/{eo-icon-select.6ea15888.js.LICENSE.txt → eo-icon-select.6a7f7e12.js.LICENSE.txt} +0 -0
@@ -0,0 +1,369 @@
1
+ ---
2
+ tagName: eo-checkbox
3
+ displayName: WrappedEoCheckbox
4
+ description: 表单复选框构件
5
+ category: form-input-basic
6
+ source: "@next-bricks/form"
7
+ ---
8
+
9
+ # WrappedEoCheckbox
10
+
11
+ > 表单复选框构件
12
+
13
+ ## 导入
14
+
15
+ ```tsx
16
+ import { WrappedEoCheckbox } from "@easyops/wrapped-components";
17
+ ```
18
+
19
+ ## Props
20
+
21
+ | 属性 | 类型 | 必填 | 默认值 | 说明 |
22
+ | ------------ | ------------------------ | ---- | ----------- | --------------------------------------------------------------------- |
23
+ | name | `string` | - | - | 字段名称 |
24
+ | label | `string` | - | - | 字段说明 |
25
+ | value | `CheckboxValueType[]` | - | - | 值 |
26
+ | options | `CheckboxOptionType[]` | - | `[]` | 多选框选项表 |
27
+ | type | `CheckboxType` | - | `"default"` | 类型 |
28
+ | disabled | `boolean` | - | - | 是否禁用 |
29
+ | isCustom | `boolean` | - | `false` | 是否为自定义样式,仅在 type="icon" 时生效,启用后图标尺寸更大(52px) |
30
+ | required | `boolean` | - | - | 是否必填 |
31
+ | message | `Record<string, string>` | - | - | 校验文本 |
32
+ | isGroup | `boolean` | - | - | 是否启用分组模式,为 true 时,则可设置分组数据 optionGroups |
33
+ | optionGroups | `OptionGroup[]` | - | - | 多选框选项分组数据,需要设置 isGroup 为 true 才生效 |
34
+ | themeVariant | `"default" \| "elevo"` | - | - | 主题变体 |
35
+
36
+ ## Events
37
+
38
+ | 事件 | detail | 说明 |
39
+ | --------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------- |
40
+ | onChange | `CheckboxOptionType[]` — { value: 选中项的值, label: 选中项的标签, disabled: 是否禁用, checkboxColor: 复选框颜色 }[] | 复选框选中项发生变化时触发 |
41
+ | onOptionsChange | `OptionsChangeEventDetail` — { options: 最新的选项列表, name: 字段名称 } | 复选框选项数据变化时触发 |
42
+
43
+ ## Examples
44
+
45
+ ### Basic
46
+
47
+ 基本用法,展示简单的多选框列表。
48
+
49
+ ```tsx
50
+ <WrappedEoCheckbox options={["Beijing", "Shanghai", "Guangzhou", "Shenzhen"]} />
51
+ ```
52
+
53
+ ### Label
54
+
55
+ 设置 label 属性为复选框添加字段说明。
56
+
57
+ ```tsx
58
+ <WrappedEoCheckbox
59
+ label="city"
60
+ options={[
61
+ "Beijing",
62
+ "Shanghai",
63
+ "Guangzhou",
64
+ "Shenzhen",
65
+ "Tianjin",
66
+ "Hanzhou",
67
+ "Xi'an",
68
+ "Fuzhou",
69
+ "Nanchan",
70
+ "Changsha",
71
+ "Shenyang",
72
+ "Jinan",
73
+ "Guiyang",
74
+ "Wuhan",
75
+ ]}
76
+ />
77
+ ```
78
+
79
+ ### Value
80
+
81
+ 设置 value 属性指定默认选中项。
82
+
83
+ ```tsx
84
+ <WrappedEoCheckbox
85
+ value={["Beijing", "Guangzhou"]}
86
+ options={["Beijing", "Shanghai", "Guangzhou", "Shenzhen"]}
87
+ />
88
+ ```
89
+
90
+ ### Options
91
+
92
+ 多种选项格式:字符串数组、对象数组和布尔值数组。
93
+
94
+ ```tsx
95
+ <>
96
+ <WrappedEoCheckbox
97
+ options={["Beijing", "Shanghai", "Guangzhou", "Shenzhen"]}
98
+ value={["Guangzhou"]}
99
+ />
100
+ <WrappedEoCheckbox
101
+ options={[
102
+ { label: "Beijing", value: 0 },
103
+ { label: "Shanghai", value: 1 },
104
+ { label: "Guangzhou", value: 2 },
105
+ { label: "Shenzhen", value: 3 },
106
+ ]}
107
+ value={[2, 3]}
108
+ />
109
+ <WrappedEoCheckbox options={[true, false]} value={[true]} />
110
+ </>
111
+ ```
112
+
113
+ ### Disabled
114
+
115
+ 禁用单个选项或整体禁用复选框。
116
+
117
+ ```tsx
118
+ <>
119
+ <WrappedEoCheckbox
120
+ options={[
121
+ { label: "Beijing", value: 0, disabled: true },
122
+ { label: "Shanghai", value: 1 },
123
+ { label: "Guangzhou", value: 2 },
124
+ { label: "Shenzhen", value: 3 },
125
+ ]}
126
+ value={[0, 2]}
127
+ />
128
+ <div style={{ height: "20px" }} />
129
+ <WrappedEoCheckbox
130
+ disabled={true}
131
+ value={[1]}
132
+ options={[
133
+ { label: "Beijing", value: 0 },
134
+ { label: "Shanghai", value: 1 },
135
+ { label: "Guangzhou", value: 2 },
136
+ { label: "Shenzhen", value: 3 },
137
+ ]}
138
+ />
139
+ </>
140
+ ```
141
+
142
+ ### Type
143
+
144
+ 展示 default 和 icon 两种类型的复选框样式。
145
+
146
+ ```tsx
147
+ <>
148
+ <WrappedEoCheckbox
149
+ label="Default"
150
+ type="default"
151
+ options={[
152
+ {
153
+ label: "Python",
154
+ value: 0,
155
+ icon: { lib: "easyops", category: "colored-common", icon: "python" },
156
+ },
157
+ {
158
+ label: "Javascript",
159
+ value: 1,
160
+ icon: {
161
+ lib: "easyops",
162
+ category: "program-language",
163
+ icon: "javascript",
164
+ },
165
+ },
166
+ {
167
+ label: "Powershell",
168
+ value: 2,
169
+ icon: {
170
+ lib: "easyops",
171
+ category: "colored-common",
172
+ icon: "powershell",
173
+ },
174
+ },
175
+ {
176
+ label: "Shell",
177
+ value: 3,
178
+ icon: { lib: "easyops", category: "colored-common", icon: "shell" },
179
+ },
180
+ ]}
181
+ />
182
+ <div style={{ height: "20px" }} />
183
+ <WrappedEoCheckbox
184
+ label="Icon"
185
+ type="icon"
186
+ options={[
187
+ {
188
+ label: "Python",
189
+ value: 0,
190
+ icon: { lib: "easyops", category: "colored-common", icon: "python" },
191
+ },
192
+ {
193
+ label: "Javascript",
194
+ value: 1,
195
+ icon: {
196
+ lib: "easyops",
197
+ category: "program-language",
198
+ icon: "javascript",
199
+ },
200
+ },
201
+ {
202
+ label: "Powershell",
203
+ value: 2,
204
+ icon: {
205
+ lib: "easyops",
206
+ category: "colored-common",
207
+ icon: "powershell",
208
+ },
209
+ },
210
+ {
211
+ label: "Shell",
212
+ value: 3,
213
+ icon: { lib: "easyops", category: "colored-common", icon: "shell" },
214
+ },
215
+ ]}
216
+ />
217
+ </>
218
+ ```
219
+
220
+ ### isCustom
221
+
222
+ 启用自定义样式(仅在 type="icon" 时生效),图标尺寸更大。
223
+
224
+ ```tsx
225
+ <WrappedEoCheckbox
226
+ label="自定义图标样式"
227
+ type="icon"
228
+ isCustom={true}
229
+ options={[
230
+ {
231
+ label: "Python",
232
+ value: 0,
233
+ icon: { lib: "easyops", category: "colored-common", icon: "python" },
234
+ },
235
+ {
236
+ label: "Javascript",
237
+ value: 1,
238
+ icon: {
239
+ lib: "easyops",
240
+ category: "program-language",
241
+ icon: "javascript",
242
+ },
243
+ },
244
+ ]}
245
+ />
246
+ ```
247
+
248
+ ### checkboxColor
249
+
250
+ 为不同选项设置自定义颜色。
251
+
252
+ ```tsx
253
+ <WrappedEoCheckbox
254
+ options={[
255
+ { label: "Beijing", value: 0, checkboxColor: "red" },
256
+ { label: "Shanghai", value: 1, checkboxColor: "orange" },
257
+ { label: "Guangzhou", value: 2, checkboxColor: "blue" },
258
+ { label: "Shenzhen", value: 3, checkboxColor: "green" },
259
+ ]}
260
+ value={[2, 1]}
261
+ />
262
+ ```
263
+
264
+ ### optionGroups
265
+
266
+ 启用分组模式,将选项按组展示,支持全选/取消全选操作。
267
+
268
+ ```tsx
269
+ <WrappedEoCheckbox
270
+ isGroup={true}
271
+ label="商品"
272
+ name="goods"
273
+ optionGroups={[
274
+ {
275
+ key: "fruits",
276
+ name: "水果",
277
+ options: [
278
+ { label: "苹果", value: "apple" },
279
+ { label: "香蕉", value: "banana" },
280
+ ],
281
+ },
282
+ {
283
+ key: "vegetables",
284
+ name: "蔬菜",
285
+ options: [{ label: "土豆", value: "potato" }],
286
+ },
287
+ ]}
288
+ value={["banana", "potato"]}
289
+ onChange={(e) => console.log(e.detail)}
290
+ />
291
+ ```
292
+
293
+ ### themeVariant
294
+
295
+ 设置主题变体为 elevo 风格。
296
+
297
+ ```tsx
298
+ <WrappedEoCheckbox
299
+ themeVariant="elevo"
300
+ label="Elevo 风格"
301
+ options={[
302
+ { label: "Beijing", value: 0 },
303
+ { label: "Shanghai", value: 1 },
304
+ { label: "Guangzhou", value: 2 },
305
+ ]}
306
+ value={[0]}
307
+ />
308
+ ```
309
+
310
+ ### Event
311
+
312
+ 监听 onChange 和 onOptionsChange 事件,通过按钮动态修改选项触发 onOptionsChange 事件。
313
+
314
+ ```tsx
315
+ function CheckboxEventDemo() {
316
+ const [options, setOptions] = useState([
317
+ { label: "Beijing", value: 0 },
318
+ { label: "Shanghai", value: 1 },
319
+ { label: "Guangzhou", value: 2 },
320
+ { label: "Shenzhen", value: 3 },
321
+ ]);
322
+
323
+ return (
324
+ <>
325
+ <WrappedEoCheckbox
326
+ options={options}
327
+ onChange={(e) => console.log("change:", e.detail)}
328
+ onOptionsChange={(e) => console.log("options.change:", e.detail)}
329
+ />
330
+ <WrappedEoButton
331
+ textContent="Click to Change Checkbox Option"
332
+ onClick={() =>
333
+ setOptions([
334
+ { label: "Beijing", value: 0 },
335
+ {
336
+ label: "Shanghai",
337
+ value: 1,
338
+ icon: { icon: "bar-chart", lib: "antd" },
339
+ },
340
+ { label: "Guangzhou", value: 2 },
341
+ { label: "Shenzhen", value: 3 },
342
+ { label: "Hangzhou", value: 4 },
343
+ ])
344
+ }
345
+ />
346
+ </>
347
+ );
348
+ }
349
+ ```
350
+
351
+ ### With Form
352
+
353
+ 在表单中使用复选框,支持 required 校验和 message 自定义校验文本。
354
+
355
+ ```tsx
356
+ <WrappedEoForm
357
+ onValidateSuccess={(e) => console.log(e.detail)}
358
+ onValuesChange={(e) => console.log(e.detail)}
359
+ >
360
+ <WrappedEoCheckbox
361
+ name="city"
362
+ label="城市"
363
+ required={true}
364
+ message={{ required: "请选择至少一个城市" }}
365
+ options={["Beijing", "Shanghai", "Guangzhou", "Shenzhen"]}
366
+ />
367
+ <WrappedEoSubmitButtons />
368
+ </WrappedEoForm>
369
+ ```
@@ -1,9 +1,43 @@
1
- 构件 `eo-color-picker`
1
+ ---
2
+ tagName: eo-color-picker
3
+ displayName: WrappedEoColorPicker
4
+ description: 颜色选择器
5
+ category: form-input-basic
6
+ source: "@next-bricks/form"
7
+ ---
8
+
9
+ # eo-color-picker
10
+
11
+ > 颜色选择器
12
+
13
+ ## Props
14
+
15
+ | 属性 | 类型 | 必填 | 默认值 | 说明 |
16
+ | ------------ | -------------------------------- | ---- | -------- | ------------------------------------------------------------------------------------------------ |
17
+ | name | `string` | 否 | - | 字段名称 |
18
+ | label | `string` | 否 | - | 字段说明 |
19
+ | value | `string` | 否 | - | 值 |
20
+ | defaultValue | `string \| Color` | 否 | - | 颜色默认的值 |
21
+ | required | `boolean` | 否 | - | 是否必填 |
22
+ | allowClear | `boolean` | 否 | - | 允许清除选择的颜色 |
23
+ | size | `"small" \| "middle" \| "large"` | 否 | `middle` | 设置触发器大小 |
24
+ | showText | `boolean` | 否 | - | 显示颜色文本 |
25
+ | disabled | `boolean` | 否 | - | 是否禁用 |
26
+ | format | `"rgb" \| "hex" \| "hsb"` | 否 | `hex` | 颜色格式 |
27
+ | configProps | `Partial<ColorPickerProps>` | 否 | - | 透传 antd ColorPicker 属性 [ColorPickerProps](https://ant.design/components/color-picker-cn#api) |
28
+
29
+ ## Events
30
+
31
+ | 事件 | detail | 说明 |
32
+ | ------ | ----------------------------------------------------------------------------------------------- | ------------------------------------------ |
33
+ | change | `string \| undefined` — 选中的颜色值,格式由 format 属性决定(hex/rgb/hsb),清除时为 undefined | 颜色变化事件, 返回值格式和`format`格式一致 |
2
34
 
3
35
  ## Examples
4
36
 
5
37
  ### Basic
6
38
 
39
+ 基础用法,选择颜色后通过 change 事件获取颜色值。
40
+
7
41
  ```yaml preview
8
42
  brick: eo-color-picker
9
43
  events:
@@ -13,6 +47,8 @@ events:
13
47
 
14
48
  ### Size
15
49
 
50
+ 通过 size 属性设置颜色选择器触发器的尺寸大小。
51
+
16
52
  ```yaml preview
17
53
  - brick: eo-flex-layout
18
54
  properties:
@@ -24,23 +60,26 @@ events:
24
60
  - brick: eo-color-picker
25
61
  properties:
26
62
  size: small
27
- value: red
63
+ value: "#ff4d4f"
28
64
  - brick: eo-color-picker
29
65
  properties:
30
- size: medium
66
+ size: middle
31
67
  value: "#36b545"
32
68
  - brick: eo-color-picker
33
69
  properties:
34
70
  size: large
35
- value: rgb(59, 52, 255)
71
+ value: "#1677ff"
36
72
  ```
37
73
 
38
74
  ### ShowText
39
75
 
76
+ 设置 showText 为 true,在颜色选择器旁边显示当前颜色的文本值。
77
+
40
78
  ```yaml preview
41
79
  - brick: eo-color-picker
42
80
  properties:
43
81
  showText: true
82
+ value: "#1677ff"
44
83
  events:
45
84
  change:
46
85
  action: console.log
@@ -48,6 +87,8 @@ events:
48
87
 
49
88
  ### AllowClear
50
89
 
90
+ 设置 allowClear 为 true,允许用户清除已选颜色;结合 defaultValue 设置初始颜色。
91
+
51
92
  ```yaml preview
52
93
  - brick: eo-color-picker
53
94
  properties:
@@ -60,6 +101,8 @@ events:
60
101
 
61
102
  ### Formats
62
103
 
104
+ 通过 format 属性控制颜色输出格式,支持 hex、rgb 和 hsb 三种格式。
105
+
63
106
  ```yaml preview
64
107
  - brick: eo-flex-layout
65
108
  properties:
@@ -72,38 +115,75 @@ events:
72
115
  properties:
73
116
  format: hex
74
117
  value: "#FCFA0E"
118
+ showText: true
75
119
  - brick: eo-color-picker
76
120
  properties:
77
121
  format: rgb
78
- value: rgb(80, 227, 194)
122
+ value: "rgb(80, 227, 194)"
123
+ showText: true
79
124
  - brick: eo-color-picker
80
125
  properties:
81
126
  format: hsb
82
- value: hsb(215, 91%, 100%)
127
+ value: "hsb(215, 91%, 100%)"
128
+ showText: true
129
+ ```
130
+
131
+ ### Disabled
132
+
133
+ 设置 disabled 为 true 禁用颜色选择器,用户无法进行交互。
134
+
135
+ ```yaml preview
136
+ - brick: eo-color-picker
137
+ properties:
138
+ disabled: true
139
+ value: "#1677ff"
140
+ showText: true
141
+ ```
142
+
143
+ ### ConfigProps
144
+
145
+ 通过 configProps 透传 antd ColorPicker 的高级属性,例如设置预设颜色。
146
+
147
+ ```yaml preview
148
+ - brick: eo-color-picker
149
+ properties:
150
+ showText: true
151
+ configProps:
152
+ presets:
153
+ - label: 推荐颜色
154
+ colors:
155
+ - "#F5222D"
156
+ - "#FA8C16"
157
+ - "#FADB14"
158
+ - "#52C41A"
159
+ - "#1677FF"
160
+ - "#722ED1"
161
+ events:
162
+ change:
163
+ action: console.log
83
164
  ```
84
165
 
85
166
  ### With Form
86
167
 
168
+ 在表单中使用颜色选择器,配合 name、label、required 进行表单校验。
169
+
87
170
  ```yaml preview
88
- - brick: form.general-form
171
+ - brick: eo-form
89
172
  events:
90
173
  validate.success:
91
174
  - action: console.log
92
175
  validate.error:
93
176
  - action: console.log
94
- slots:
95
- "":
96
- type: bricks
97
- bricks:
98
- - brick: eo-color-picker
99
- properties:
100
- name: color
101
- label: 颜色
102
- required: true
103
- defaultValue: "#1677FF"
104
- showText: true
105
- events:
106
- change:
107
- action: console.log
108
- - brick: eo-submit-buttons
177
+ children:
178
+ - brick: eo-color-picker
179
+ properties:
180
+ name: color
181
+ label: 颜色
182
+ required: true
183
+ defaultValue: "#1677FF"
184
+ showText: true
185
+ events:
186
+ change:
187
+ action: console.log
188
+ - brick: eo-submit-buttons
109
189
  ```