@next-bricks/form 1.13.13 → 1.13.14
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 +16 -16
- package/dist/chunks/1269.7d6c330a.js +2 -0
- package/dist/chunks/1269.7d6c330a.js.map +1 -0
- package/dist/chunks/2600.c0a33dd3.js +3 -0
- package/dist/chunks/2600.c0a33dd3.js.map +1 -0
- package/dist/chunks/4411.2418d56d.js +3 -0
- package/dist/chunks/4411.2418d56d.js.map +1 -0
- package/dist/chunks/{4837.20cc4292.js → 4837.5b80803d.js} +2 -2
- package/dist/chunks/{4837.20cc4292.js.map → 4837.5b80803d.js.map} +1 -1
- package/dist/chunks/5026.57e689d4.js +3 -0
- package/dist/chunks/5026.57e689d4.js.map +1 -0
- package/dist/chunks/{7218.a0fe6307.js → 7218.7d371150.js} +2 -2
- package/dist/chunks/{7218.a0fe6307.js.map → 7218.7d371150.js.map} +1 -1
- package/dist/chunks/8089.2817c9e6.js +3 -0
- package/dist/chunks/8089.2817c9e6.js.map +1 -0
- package/dist/chunks/9259.e2fc3b35.js +3 -0
- package/dist/chunks/9259.e2fc3b35.js.map +1 -0
- package/dist/chunks/eo-checkbox.181ea798.js +3 -0
- package/dist/chunks/eo-checkbox.181ea798.js.map +1 -0
- package/dist/chunks/{eo-color-picker.b71447b7.js → eo-color-picker.b08ed8cb.js} +2 -2
- package/dist/chunks/eo-color-picker.b08ed8cb.js.map +1 -0
- package/dist/chunks/eo-date-picker.58996b48.js +2 -0
- package/dist/chunks/eo-date-picker.58996b48.js.map +1 -0
- package/dist/chunks/{eo-dynamic-form-item.fc720c11.js → eo-dynamic-form-item.bdd45a65.js} +3 -3
- package/dist/chunks/eo-dynamic-form-item.bdd45a65.js.map +1 -0
- package/dist/chunks/eo-form-item.2c862c7a.js +3 -0
- package/dist/chunks/eo-form-item.2c862c7a.js.map +1 -0
- package/dist/chunks/eo-form.466014a3.js +2 -0
- package/dist/chunks/eo-form.466014a3.js.map +1 -0
- package/dist/chunks/eo-icon-select.cc24a547.js +3 -0
- package/dist/chunks/eo-icon-select.cc24a547.js.map +1 -0
- package/dist/chunks/eo-input.dbe96de3.js +3 -0
- package/dist/chunks/eo-input.dbe96de3.js.map +1 -0
- package/dist/chunks/{eo-radio.5a4bc4f8.js → eo-radio.808decd0.js} +3 -3
- package/dist/chunks/{eo-radio.5a4bc4f8.js.map → eo-radio.808decd0.js.map} +1 -1
- package/dist/chunks/eo-select.6734069b.js +3 -0
- package/dist/chunks/eo-select.6734069b.js.map +1 -0
- package/dist/chunks/eo-textarea.0408bf74.js +2 -0
- package/dist/chunks/eo-textarea.0408bf74.js.map +1 -0
- package/dist/chunks/eo-time-picker.66572b03.js +2 -0
- package/dist/chunks/eo-time-picker.66572b03.js.map +1 -0
- package/dist/chunks/eo-time-range-picker.9bc8a20e.js +2 -0
- package/dist/chunks/eo-time-range-picker.9bc8a20e.js.map +1 -0
- package/dist/chunks/{eo-upload-file.be14c808.js → eo-upload-file.beaa264c.js} +3 -3
- package/dist/chunks/{eo-upload-file.be14c808.js.map → eo-upload-file.beaa264c.js.map} +1 -1
- package/dist/chunks/eo-upload-image.c5ec66f3.js +3 -0
- package/dist/chunks/eo-upload-image.c5ec66f3.js.map +1 -0
- package/dist/chunks/{main.8cf77fbb.js → main.62528505.js} +2 -2
- package/dist/chunks/{main.8cf77fbb.js.map → main.62528505.js.map} +1 -1
- package/dist/examples.json +9 -9
- package/dist/index.8b29ffb5.js +2 -0
- package/dist/{index.a0ee7b07.js.map → index.8b29ffb5.js.map} +1 -1
- package/dist/manifest.json +328 -328
- package/dist/types.json +1072 -1072
- package/dist-types/color-picker/index.d.ts +1 -1
- package/package.json +2 -2
- package/dist/chunks/1269.7e1ba640.js +0 -2
- package/dist/chunks/1269.7e1ba640.js.map +0 -1
- package/dist/chunks/4766.0f692a31.js +0 -3
- package/dist/chunks/4766.0f692a31.js.map +0 -1
- package/dist/chunks/5026.1ef46032.js +0 -3
- package/dist/chunks/5026.1ef46032.js.map +0 -1
- package/dist/chunks/6537.1fc354f4.js +0 -3
- package/dist/chunks/6537.1fc354f4.js.map +0 -1
- package/dist/chunks/6586.7c0a8144.js +0 -3
- package/dist/chunks/6586.7c0a8144.js.map +0 -1
- package/dist/chunks/9259.9ff79152.js +0 -3
- package/dist/chunks/9259.9ff79152.js.map +0 -1
- package/dist/chunks/eo-checkbox.b96d4223.js +0 -3
- package/dist/chunks/eo-checkbox.b96d4223.js.map +0 -1
- package/dist/chunks/eo-color-picker.b71447b7.js.map +0 -1
- package/dist/chunks/eo-date-picker.a125efb4.js +0 -2
- package/dist/chunks/eo-date-picker.a125efb4.js.map +0 -1
- package/dist/chunks/eo-dynamic-form-item.fc720c11.js.map +0 -1
- package/dist/chunks/eo-form-item.5c977a88.js +0 -3
- package/dist/chunks/eo-form-item.5c977a88.js.map +0 -1
- package/dist/chunks/eo-form.21a2008c.js +0 -2
- package/dist/chunks/eo-form.21a2008c.js.map +0 -1
- package/dist/chunks/eo-icon-select.c1eda0c5.js +0 -3
- package/dist/chunks/eo-icon-select.c1eda0c5.js.map +0 -1
- package/dist/chunks/eo-input.3c5e9802.js +0 -3
- package/dist/chunks/eo-input.3c5e9802.js.map +0 -1
- package/dist/chunks/eo-select.dc8b9ac5.js +0 -3
- package/dist/chunks/eo-select.dc8b9ac5.js.map +0 -1
- package/dist/chunks/eo-textarea.26ac76de.js +0 -2
- package/dist/chunks/eo-textarea.26ac76de.js.map +0 -1
- package/dist/chunks/eo-time-picker.d9565b91.js +0 -2
- package/dist/chunks/eo-time-picker.d9565b91.js.map +0 -1
- package/dist/chunks/eo-time-range-picker.e8d8c902.js +0 -2
- package/dist/chunks/eo-time-range-picker.e8d8c902.js.map +0 -1
- package/dist/chunks/eo-upload-image.1a8b6627.js +0 -3
- package/dist/chunks/eo-upload-image.1a8b6627.js.map +0 -1
- package/dist/index.a0ee7b07.js +0 -2
- /package/dist/chunks/{6586.7c0a8144.js.LICENSE.txt → 2600.c0a33dd3.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{4766.0f692a31.js.LICENSE.txt → 4411.2418d56d.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{5026.1ef46032.js.LICENSE.txt → 5026.57e689d4.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{6537.1fc354f4.js.LICENSE.txt → 8089.2817c9e6.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{9259.9ff79152.js.LICENSE.txt → 9259.e2fc3b35.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{eo-checkbox.b96d4223.js.LICENSE.txt → eo-checkbox.181ea798.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{eo-dynamic-form-item.fc720c11.js.LICENSE.txt → eo-dynamic-form-item.bdd45a65.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{eo-form-item.5c977a88.js.LICENSE.txt → eo-form-item.2c862c7a.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{eo-icon-select.c1eda0c5.js.LICENSE.txt → eo-icon-select.cc24a547.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{eo-input.3c5e9802.js.LICENSE.txt → eo-input.dbe96de3.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{eo-radio.5a4bc4f8.js.LICENSE.txt → eo-radio.808decd0.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{eo-select.dc8b9ac5.js.LICENSE.txt → eo-select.6734069b.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{eo-upload-file.be14c808.js.LICENSE.txt → eo-upload-file.beaa264c.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{eo-upload-image.1a8b6627.js.LICENSE.txt → eo-upload-image.c5ec66f3.js.LICENSE.txt} +0 -0
package/dist/manifest.json
CHANGED
|
@@ -188,6 +188,244 @@
|
|
|
188
188
|
"description": "通用输入框构件",
|
|
189
189
|
"category": "form-input-basic"
|
|
190
190
|
},
|
|
191
|
+
{
|
|
192
|
+
"name": "eo-textarea",
|
|
193
|
+
"alias": [
|
|
194
|
+
"form.general-textarea"
|
|
195
|
+
],
|
|
196
|
+
"properties": [
|
|
197
|
+
{
|
|
198
|
+
"name": "name",
|
|
199
|
+
"description": "字段名称",
|
|
200
|
+
"type": "string"
|
|
201
|
+
},
|
|
202
|
+
{
|
|
203
|
+
"name": "label",
|
|
204
|
+
"description": "标签文字",
|
|
205
|
+
"type": "string"
|
|
206
|
+
},
|
|
207
|
+
{
|
|
208
|
+
"name": "value",
|
|
209
|
+
"description": "值",
|
|
210
|
+
"type": "string"
|
|
211
|
+
},
|
|
212
|
+
{
|
|
213
|
+
"name": "placeholder",
|
|
214
|
+
"description": "占位说明",
|
|
215
|
+
"type": "string"
|
|
216
|
+
},
|
|
217
|
+
{
|
|
218
|
+
"name": "disabled",
|
|
219
|
+
"description": "是否禁用",
|
|
220
|
+
"type": "boolean"
|
|
221
|
+
},
|
|
222
|
+
{
|
|
223
|
+
"name": "minLength",
|
|
224
|
+
"description": "最小长度",
|
|
225
|
+
"type": "number"
|
|
226
|
+
},
|
|
227
|
+
{
|
|
228
|
+
"name": "maxLength",
|
|
229
|
+
"description": "最大长度",
|
|
230
|
+
"type": "number"
|
|
231
|
+
},
|
|
232
|
+
{
|
|
233
|
+
"name": "autoSize",
|
|
234
|
+
"description": "大小自适应",
|
|
235
|
+
"attribute": false,
|
|
236
|
+
"type": "AutoSize"
|
|
237
|
+
},
|
|
238
|
+
{
|
|
239
|
+
"name": "required",
|
|
240
|
+
"description": "是否必填",
|
|
241
|
+
"type": "boolean"
|
|
242
|
+
},
|
|
243
|
+
{
|
|
244
|
+
"name": "max",
|
|
245
|
+
"description": "表单校验最大长度",
|
|
246
|
+
"type": "number"
|
|
247
|
+
},
|
|
248
|
+
{
|
|
249
|
+
"name": "min",
|
|
250
|
+
"description": "表单校验最小长度",
|
|
251
|
+
"type": "number"
|
|
252
|
+
},
|
|
253
|
+
{
|
|
254
|
+
"name": "message",
|
|
255
|
+
"description": "校验信息",
|
|
256
|
+
"attribute": false,
|
|
257
|
+
"type": "Record<string, string>"
|
|
258
|
+
},
|
|
259
|
+
{
|
|
260
|
+
"name": "textareaStyle",
|
|
261
|
+
"description": "自定义样式",
|
|
262
|
+
"attribute": false,
|
|
263
|
+
"type": "React.CSSProperties"
|
|
264
|
+
}
|
|
265
|
+
],
|
|
266
|
+
"events": [
|
|
267
|
+
{
|
|
268
|
+
"name": "change",
|
|
269
|
+
"description": "",
|
|
270
|
+
"detail": {
|
|
271
|
+
"description": null,
|
|
272
|
+
"type": "string"
|
|
273
|
+
}
|
|
274
|
+
}
|
|
275
|
+
],
|
|
276
|
+
"slots": [],
|
|
277
|
+
"methods": [
|
|
278
|
+
{
|
|
279
|
+
"name": "focusTextarea",
|
|
280
|
+
"params": [],
|
|
281
|
+
"description": "focus",
|
|
282
|
+
"returns": {}
|
|
283
|
+
}
|
|
284
|
+
],
|
|
285
|
+
"parts": [],
|
|
286
|
+
"description": "通用多行文本输入框构件",
|
|
287
|
+
"category": "form-input-basic"
|
|
288
|
+
},
|
|
289
|
+
{
|
|
290
|
+
"name": "eo-form",
|
|
291
|
+
"alias": [
|
|
292
|
+
"form.general-form"
|
|
293
|
+
],
|
|
294
|
+
"properties": [
|
|
295
|
+
{
|
|
296
|
+
"name": "staticValues",
|
|
297
|
+
"attribute": false,
|
|
298
|
+
"type": "Record<string, unknown>"
|
|
299
|
+
},
|
|
300
|
+
{
|
|
301
|
+
"name": "layout",
|
|
302
|
+
"description": "布局方式(默认 vertical 布局)",
|
|
303
|
+
"default": "vertical",
|
|
304
|
+
"type": "Layout"
|
|
305
|
+
},
|
|
306
|
+
{
|
|
307
|
+
"name": "size",
|
|
308
|
+
"description": "表单组件尺寸",
|
|
309
|
+
"type": "ComponentSize"
|
|
310
|
+
},
|
|
311
|
+
{
|
|
312
|
+
"name": "labelCol",
|
|
313
|
+
"description": "标签列布局样式(仅当 layout=\"horizontal\" 时有效)",
|
|
314
|
+
"default": "{\n sm: {\n span: 24,\n },\n md: {\n span: 24,\n },\n lg: {\n span: 7,\n },\n xl: {\n span: 5,\n },\n xxl: {\n span: 4,\n },\n }",
|
|
315
|
+
"attribute": false,
|
|
316
|
+
"type": "ColProps"
|
|
317
|
+
},
|
|
318
|
+
{
|
|
319
|
+
"name": "wrapperCol",
|
|
320
|
+
"description": "输入控件列布局样式(仅当 layout=\"horizontal\" 时有效)",
|
|
321
|
+
"default": "{\n sm: {\n span: 18,\n },\n md: {\n span: 18,\n },\n lg: {\n span: 13,\n },\n xl: {\n span: 16,\n },\n xxl: {\n span: 18,\n },\n }",
|
|
322
|
+
"attribute": false,
|
|
323
|
+
"type": "ColProps"
|
|
324
|
+
},
|
|
325
|
+
{
|
|
326
|
+
"name": "formStyle",
|
|
327
|
+
"attribute": false,
|
|
328
|
+
"type": "React.CSSProperties"
|
|
329
|
+
}
|
|
330
|
+
],
|
|
331
|
+
"events": [
|
|
332
|
+
{
|
|
333
|
+
"name": "values.change",
|
|
334
|
+
"description": "表单值变更事件",
|
|
335
|
+
"detail": {
|
|
336
|
+
"description": null,
|
|
337
|
+
"type": "Record<string, unknown>"
|
|
338
|
+
}
|
|
339
|
+
},
|
|
340
|
+
{
|
|
341
|
+
"name": "validate.success",
|
|
342
|
+
"description": "表单验证成功时触发事件",
|
|
343
|
+
"detail": {
|
|
344
|
+
"type": "Record<string, unknown>"
|
|
345
|
+
}
|
|
346
|
+
},
|
|
347
|
+
{
|
|
348
|
+
"name": "validate.error",
|
|
349
|
+
"description": "表单验证报错时触发事件",
|
|
350
|
+
"detail": {
|
|
351
|
+
"type": "(MessageBody & { name: string })[]"
|
|
352
|
+
}
|
|
353
|
+
}
|
|
354
|
+
],
|
|
355
|
+
"slots": [
|
|
356
|
+
{
|
|
357
|
+
"name": null,
|
|
358
|
+
"description": "表单内容"
|
|
359
|
+
}
|
|
360
|
+
],
|
|
361
|
+
"methods": [
|
|
362
|
+
{
|
|
363
|
+
"name": "validate",
|
|
364
|
+
"params": [],
|
|
365
|
+
"description": "表单校验方法",
|
|
366
|
+
"returns": {
|
|
367
|
+
"type": "boolean | Record<string, unknown>"
|
|
368
|
+
}
|
|
369
|
+
},
|
|
370
|
+
{
|
|
371
|
+
"name": "setInitValue",
|
|
372
|
+
"params": [
|
|
373
|
+
{
|
|
374
|
+
"name": "values",
|
|
375
|
+
"type": "Record<string, unknown>"
|
|
376
|
+
},
|
|
377
|
+
{
|
|
378
|
+
"name": "options",
|
|
379
|
+
"type": "{ runInMacrotask?: boolean; runInMicrotask?: boolean }"
|
|
380
|
+
}
|
|
381
|
+
],
|
|
382
|
+
"description": "表单设置值方法",
|
|
383
|
+
"returns": {}
|
|
384
|
+
},
|
|
385
|
+
{
|
|
386
|
+
"name": "resetFields",
|
|
387
|
+
"params": [
|
|
388
|
+
{
|
|
389
|
+
"name": "name",
|
|
390
|
+
"type": "string"
|
|
391
|
+
}
|
|
392
|
+
],
|
|
393
|
+
"description": "表单重置值方法",
|
|
394
|
+
"returns": {}
|
|
395
|
+
},
|
|
396
|
+
{
|
|
397
|
+
"name": "getFieldsValue",
|
|
398
|
+
"params": [
|
|
399
|
+
{
|
|
400
|
+
"name": "name",
|
|
401
|
+
"type": "string"
|
|
402
|
+
}
|
|
403
|
+
],
|
|
404
|
+
"description": "获取表单值方法",
|
|
405
|
+
"returns": {}
|
|
406
|
+
},
|
|
407
|
+
{
|
|
408
|
+
"name": "validateField",
|
|
409
|
+
"params": [
|
|
410
|
+
{
|
|
411
|
+
"name": "name",
|
|
412
|
+
"type": "string"
|
|
413
|
+
}
|
|
414
|
+
],
|
|
415
|
+
"description": "校验表单字段方法",
|
|
416
|
+
"returns": {}
|
|
417
|
+
},
|
|
418
|
+
{
|
|
419
|
+
"name": "resetValidateState",
|
|
420
|
+
"params": [],
|
|
421
|
+
"description": "重置表单校验状态方法",
|
|
422
|
+
"returns": {}
|
|
423
|
+
}
|
|
424
|
+
],
|
|
425
|
+
"parts": [],
|
|
426
|
+
"description": "表单构件",
|
|
427
|
+
"category": "form-input-basic"
|
|
428
|
+
},
|
|
191
429
|
{
|
|
192
430
|
"name": "eo-form-item",
|
|
193
431
|
"alias": [
|
|
@@ -592,104 +830,6 @@
|
|
|
592
830
|
"description": "表单提交按钮",
|
|
593
831
|
"category": "form-input-basic"
|
|
594
832
|
},
|
|
595
|
-
{
|
|
596
|
-
"name": "eo-textarea",
|
|
597
|
-
"alias": [
|
|
598
|
-
"form.general-textarea"
|
|
599
|
-
],
|
|
600
|
-
"properties": [
|
|
601
|
-
{
|
|
602
|
-
"name": "name",
|
|
603
|
-
"description": "字段名称",
|
|
604
|
-
"type": "string"
|
|
605
|
-
},
|
|
606
|
-
{
|
|
607
|
-
"name": "label",
|
|
608
|
-
"description": "标签文字",
|
|
609
|
-
"type": "string"
|
|
610
|
-
},
|
|
611
|
-
{
|
|
612
|
-
"name": "value",
|
|
613
|
-
"description": "值",
|
|
614
|
-
"type": "string"
|
|
615
|
-
},
|
|
616
|
-
{
|
|
617
|
-
"name": "placeholder",
|
|
618
|
-
"description": "占位说明",
|
|
619
|
-
"type": "string"
|
|
620
|
-
},
|
|
621
|
-
{
|
|
622
|
-
"name": "disabled",
|
|
623
|
-
"description": "是否禁用",
|
|
624
|
-
"type": "boolean"
|
|
625
|
-
},
|
|
626
|
-
{
|
|
627
|
-
"name": "minLength",
|
|
628
|
-
"description": "最小长度",
|
|
629
|
-
"type": "number"
|
|
630
|
-
},
|
|
631
|
-
{
|
|
632
|
-
"name": "maxLength",
|
|
633
|
-
"description": "最大长度",
|
|
634
|
-
"type": "number"
|
|
635
|
-
},
|
|
636
|
-
{
|
|
637
|
-
"name": "autoSize",
|
|
638
|
-
"description": "大小自适应",
|
|
639
|
-
"attribute": false,
|
|
640
|
-
"type": "AutoSize"
|
|
641
|
-
},
|
|
642
|
-
{
|
|
643
|
-
"name": "required",
|
|
644
|
-
"description": "是否必填",
|
|
645
|
-
"type": "boolean"
|
|
646
|
-
},
|
|
647
|
-
{
|
|
648
|
-
"name": "max",
|
|
649
|
-
"description": "表单校验最大长度",
|
|
650
|
-
"type": "number"
|
|
651
|
-
},
|
|
652
|
-
{
|
|
653
|
-
"name": "min",
|
|
654
|
-
"description": "表单校验最小长度",
|
|
655
|
-
"type": "number"
|
|
656
|
-
},
|
|
657
|
-
{
|
|
658
|
-
"name": "message",
|
|
659
|
-
"description": "校验信息",
|
|
660
|
-
"attribute": false,
|
|
661
|
-
"type": "Record<string, string>"
|
|
662
|
-
},
|
|
663
|
-
{
|
|
664
|
-
"name": "textareaStyle",
|
|
665
|
-
"description": "自定义样式",
|
|
666
|
-
"attribute": false,
|
|
667
|
-
"type": "React.CSSProperties"
|
|
668
|
-
}
|
|
669
|
-
],
|
|
670
|
-
"events": [
|
|
671
|
-
{
|
|
672
|
-
"name": "change",
|
|
673
|
-
"description": "",
|
|
674
|
-
"detail": {
|
|
675
|
-
"description": null,
|
|
676
|
-
"type": "string"
|
|
677
|
-
}
|
|
678
|
-
}
|
|
679
|
-
],
|
|
680
|
-
"slots": [],
|
|
681
|
-
"methods": [
|
|
682
|
-
{
|
|
683
|
-
"name": "focusTextarea",
|
|
684
|
-
"params": [],
|
|
685
|
-
"description": "focus",
|
|
686
|
-
"returns": {}
|
|
687
|
-
}
|
|
688
|
-
],
|
|
689
|
-
"parts": [],
|
|
690
|
-
"description": "通用多行文本输入框构件",
|
|
691
|
-
"category": "form-input-basic"
|
|
692
|
-
},
|
|
693
833
|
{
|
|
694
834
|
"name": "eo-checkbox",
|
|
695
835
|
"alias": [
|
|
@@ -724,202 +864,62 @@
|
|
|
724
864
|
"name": "type",
|
|
725
865
|
"description": "类型",
|
|
726
866
|
"default": "\"default\"",
|
|
727
|
-
"type": "CheckboxType"
|
|
728
|
-
},
|
|
729
|
-
{
|
|
730
|
-
"name": "disabled",
|
|
731
|
-
"description": "是否禁用",
|
|
732
|
-
"type": "boolean"
|
|
733
|
-
},
|
|
734
|
-
{
|
|
735
|
-
"name": "isCustom",
|
|
736
|
-
"description": "是否为自定义",
|
|
737
|
-
"default": "false",
|
|
738
|
-
"type": "boolean"
|
|
739
|
-
},
|
|
740
|
-
{
|
|
741
|
-
"name": "required",
|
|
742
|
-
"description": "是否必填",
|
|
743
|
-
"type": "boolean"
|
|
744
|
-
},
|
|
745
|
-
{
|
|
746
|
-
"name": "message",
|
|
747
|
-
"description": "校验文本",
|
|
748
|
-
"attribute": false,
|
|
749
|
-
"type": "Record<string, string>"
|
|
750
|
-
},
|
|
751
|
-
{
|
|
752
|
-
"name": "isGroup",
|
|
753
|
-
"description": "是否为复选框,为true时,则可设置分组数据 optionGroups",
|
|
754
|
-
"type": "boolean"
|
|
755
|
-
},
|
|
756
|
-
{
|
|
757
|
-
"name": "optionGroups",
|
|
758
|
-
"description": "多选框选项分组数据,需要设置 isGroup 为 true 才生效",
|
|
759
|
-
"attribute": false,
|
|
760
|
-
"type": "OptionGroup[]"
|
|
761
|
-
}
|
|
762
|
-
],
|
|
763
|
-
"events": [
|
|
764
|
-
{
|
|
765
|
-
"name": "change",
|
|
766
|
-
"description": "复选框变化事件",
|
|
767
|
-
"detail": {
|
|
768
|
-
"type": "CheckboxOptionType[]"
|
|
769
|
-
}
|
|
770
|
-
},
|
|
771
|
-
{
|
|
772
|
-
"name": "options.change",
|
|
773
|
-
"description": "复选框变化事件",
|
|
774
|
-
"detail": {
|
|
775
|
-
"type": "{\n options: CheckboxOptionType[];\n name: string;\n }"
|
|
776
|
-
}
|
|
777
|
-
}
|
|
778
|
-
],
|
|
779
|
-
"slots": [],
|
|
780
|
-
"methods": [],
|
|
781
|
-
"parts": [],
|
|
782
|
-
"description": "表单复选框构件",
|
|
783
|
-
"category": "form-input-basic"
|
|
784
|
-
},
|
|
785
|
-
{
|
|
786
|
-
"name": "eo-form",
|
|
787
|
-
"alias": [
|
|
788
|
-
"form.general-form"
|
|
789
|
-
],
|
|
790
|
-
"properties": [
|
|
867
|
+
"type": "CheckboxType"
|
|
868
|
+
},
|
|
791
869
|
{
|
|
792
|
-
"name": "
|
|
793
|
-
"
|
|
794
|
-
"type": "
|
|
870
|
+
"name": "disabled",
|
|
871
|
+
"description": "是否禁用",
|
|
872
|
+
"type": "boolean"
|
|
795
873
|
},
|
|
796
874
|
{
|
|
797
|
-
"name": "
|
|
798
|
-
"description": "
|
|
799
|
-
"default": "
|
|
800
|
-
"type": "
|
|
875
|
+
"name": "isCustom",
|
|
876
|
+
"description": "是否为自定义",
|
|
877
|
+
"default": "false",
|
|
878
|
+
"type": "boolean"
|
|
801
879
|
},
|
|
802
880
|
{
|
|
803
|
-
"name": "
|
|
804
|
-
"description": "
|
|
805
|
-
"type": "
|
|
881
|
+
"name": "required",
|
|
882
|
+
"description": "是否必填",
|
|
883
|
+
"type": "boolean"
|
|
806
884
|
},
|
|
807
885
|
{
|
|
808
|
-
"name": "
|
|
809
|
-
"description": "
|
|
810
|
-
"default": "{\n sm: {\n span: 24,\n },\n md: {\n span: 24,\n },\n lg: {\n span: 7,\n },\n xl: {\n span: 5,\n },\n xxl: {\n span: 4,\n },\n }",
|
|
886
|
+
"name": "message",
|
|
887
|
+
"description": "校验文本",
|
|
811
888
|
"attribute": false,
|
|
812
|
-
"type": "
|
|
889
|
+
"type": "Record<string, string>"
|
|
813
890
|
},
|
|
814
891
|
{
|
|
815
|
-
"name": "
|
|
816
|
-
"description": "
|
|
817
|
-
"
|
|
818
|
-
"attribute": false,
|
|
819
|
-
"type": "ColProps"
|
|
892
|
+
"name": "isGroup",
|
|
893
|
+
"description": "是否为复选框,为true时,则可设置分组数据 optionGroups",
|
|
894
|
+
"type": "boolean"
|
|
820
895
|
},
|
|
821
896
|
{
|
|
822
|
-
"name": "
|
|
897
|
+
"name": "optionGroups",
|
|
898
|
+
"description": "多选框选项分组数据,需要设置 isGroup 为 true 才生效",
|
|
823
899
|
"attribute": false,
|
|
824
|
-
"type": "
|
|
900
|
+
"type": "OptionGroup[]"
|
|
825
901
|
}
|
|
826
902
|
],
|
|
827
903
|
"events": [
|
|
828
904
|
{
|
|
829
|
-
"name": "
|
|
830
|
-
"description": "
|
|
831
|
-
"detail": {
|
|
832
|
-
"description": null,
|
|
833
|
-
"type": "Record<string, unknown>"
|
|
834
|
-
}
|
|
835
|
-
},
|
|
836
|
-
{
|
|
837
|
-
"name": "validate.success",
|
|
838
|
-
"description": "表单验证成功时触发事件",
|
|
905
|
+
"name": "change",
|
|
906
|
+
"description": "复选框变化事件",
|
|
839
907
|
"detail": {
|
|
840
|
-
"type": "
|
|
908
|
+
"type": "CheckboxOptionType[]"
|
|
841
909
|
}
|
|
842
910
|
},
|
|
843
911
|
{
|
|
844
|
-
"name": "
|
|
845
|
-
"description": "
|
|
912
|
+
"name": "options.change",
|
|
913
|
+
"description": "复选框变化事件",
|
|
846
914
|
"detail": {
|
|
847
|
-
"type": "
|
|
848
|
-
}
|
|
849
|
-
}
|
|
850
|
-
],
|
|
851
|
-
"slots": [
|
|
852
|
-
{
|
|
853
|
-
"name": null,
|
|
854
|
-
"description": "表单内容"
|
|
855
|
-
}
|
|
856
|
-
],
|
|
857
|
-
"methods": [
|
|
858
|
-
{
|
|
859
|
-
"name": "validate",
|
|
860
|
-
"params": [],
|
|
861
|
-
"description": "表单校验方法",
|
|
862
|
-
"returns": {
|
|
863
|
-
"type": "boolean | Record<string, unknown>"
|
|
915
|
+
"type": "{\n options: CheckboxOptionType[];\n name: string;\n }"
|
|
864
916
|
}
|
|
865
|
-
},
|
|
866
|
-
{
|
|
867
|
-
"name": "setInitValue",
|
|
868
|
-
"params": [
|
|
869
|
-
{
|
|
870
|
-
"name": "values",
|
|
871
|
-
"type": "Record<string, unknown>"
|
|
872
|
-
},
|
|
873
|
-
{
|
|
874
|
-
"name": "options",
|
|
875
|
-
"type": "{ runInMacrotask?: boolean; runInMicrotask?: boolean }"
|
|
876
|
-
}
|
|
877
|
-
],
|
|
878
|
-
"description": "表单设置值方法",
|
|
879
|
-
"returns": {}
|
|
880
|
-
},
|
|
881
|
-
{
|
|
882
|
-
"name": "resetFields",
|
|
883
|
-
"params": [
|
|
884
|
-
{
|
|
885
|
-
"name": "name",
|
|
886
|
-
"type": "string"
|
|
887
|
-
}
|
|
888
|
-
],
|
|
889
|
-
"description": "表单重置值方法",
|
|
890
|
-
"returns": {}
|
|
891
|
-
},
|
|
892
|
-
{
|
|
893
|
-
"name": "getFieldsValue",
|
|
894
|
-
"params": [
|
|
895
|
-
{
|
|
896
|
-
"name": "name",
|
|
897
|
-
"type": "string"
|
|
898
|
-
}
|
|
899
|
-
],
|
|
900
|
-
"description": "获取表单值方法",
|
|
901
|
-
"returns": {}
|
|
902
|
-
},
|
|
903
|
-
{
|
|
904
|
-
"name": "validateField",
|
|
905
|
-
"params": [
|
|
906
|
-
{
|
|
907
|
-
"name": "name",
|
|
908
|
-
"type": "string"
|
|
909
|
-
}
|
|
910
|
-
],
|
|
911
|
-
"description": "校验表单字段方法",
|
|
912
|
-
"returns": {}
|
|
913
|
-
},
|
|
914
|
-
{
|
|
915
|
-
"name": "resetValidateState",
|
|
916
|
-
"params": [],
|
|
917
|
-
"description": "重置表单校验状态方法",
|
|
918
|
-
"returns": {}
|
|
919
917
|
}
|
|
920
918
|
],
|
|
919
|
+
"slots": [],
|
|
920
|
+
"methods": [],
|
|
921
921
|
"parts": [],
|
|
922
|
-
"description": "
|
|
922
|
+
"description": "表单复选框构件",
|
|
923
923
|
"category": "form-input-basic"
|
|
924
924
|
},
|
|
925
925
|
{
|
|
@@ -1655,27 +1655,24 @@
|
|
|
1655
1655
|
"category": "form-input-basic"
|
|
1656
1656
|
},
|
|
1657
1657
|
{
|
|
1658
|
-
"name": "eo-
|
|
1658
|
+
"name": "eo-time-range-picker",
|
|
1659
1659
|
"properties": [
|
|
1660
1660
|
{
|
|
1661
1661
|
"name": "name",
|
|
1662
|
-
"description": "
|
|
1662
|
+
"description": "时间段选择器字段名",
|
|
1663
1663
|
"type": "string"
|
|
1664
1664
|
},
|
|
1665
1665
|
{
|
|
1666
1666
|
"name": "label",
|
|
1667
|
-
"description": "
|
|
1667
|
+
"description": "时间段选择器说明",
|
|
1668
1668
|
"type": "string"
|
|
1669
1669
|
},
|
|
1670
1670
|
{
|
|
1671
1671
|
"name": "value",
|
|
1672
|
-
"description": "
|
|
1673
|
-
"
|
|
1674
|
-
|
|
1675
|
-
|
|
1676
|
-
"name": "defaultValue",
|
|
1677
|
-
"description": "颜色默认的值",
|
|
1678
|
-
"type": "string | Color"
|
|
1672
|
+
"description": "时间段选择器的初始值",
|
|
1673
|
+
"default": "{ \"startTime\": \"00:00:00\", \"endTime\": \"23:59:59\" }",
|
|
1674
|
+
"attribute": false,
|
|
1675
|
+
"type": "TimeRange"
|
|
1679
1676
|
},
|
|
1680
1677
|
{
|
|
1681
1678
|
"name": "required",
|
|
@@ -1683,74 +1680,72 @@
|
|
|
1683
1680
|
"type": "boolean"
|
|
1684
1681
|
},
|
|
1685
1682
|
{
|
|
1686
|
-
"name": "
|
|
1687
|
-
"description": "
|
|
1688
|
-
"type": "boolean"
|
|
1689
|
-
},
|
|
1690
|
-
{
|
|
1691
|
-
"name": "size",
|
|
1692
|
-
"description": "设置触发器大小",
|
|
1693
|
-
"default": "middle",
|
|
1683
|
+
"name": "rangeType",
|
|
1684
|
+
"description": "时间段类型",
|
|
1694
1685
|
"attribute": false,
|
|
1695
|
-
"type": "
|
|
1686
|
+
"type": "RangeType"
|
|
1696
1687
|
},
|
|
1697
1688
|
{
|
|
1698
|
-
"name": "
|
|
1699
|
-
"description": "
|
|
1700
|
-
"type": "
|
|
1689
|
+
"name": "selectNearDays",
|
|
1690
|
+
"description": "只有rangeType在`date` 和 `dateTime`下, 才支持只选择最近n天(当前时间向前n天)",
|
|
1691
|
+
"type": "number"
|
|
1701
1692
|
},
|
|
1702
1693
|
{
|
|
1703
|
-
"name": "
|
|
1704
|
-
"description": "
|
|
1694
|
+
"name": "emitChangeOnInit",
|
|
1695
|
+
"description": "",
|
|
1696
|
+
"default": "true\n是否在初始化完成后额外触发一次`time.range.change`, 这里因为历史原因之前默认行为就是在初始化后会触发该事件,这里为了兼容之前的行为,默认值只能设置为 true。",
|
|
1705
1697
|
"type": "boolean"
|
|
1706
1698
|
},
|
|
1707
1699
|
{
|
|
1708
|
-
"name": "
|
|
1709
|
-
"description": "
|
|
1710
|
-
"default": "
|
|
1700
|
+
"name": "presetRanges",
|
|
1701
|
+
"description": "",
|
|
1702
|
+
"default": "[]\n预设时间范围快捷选择;设置了属性selectNearDays时,属性presetRanges不生效;属性rangeType为week时,presetRanges的值只能为本周、本月、本季度、今年,属性rangeType为month、quarter、year时,以此类推",
|
|
1711
1703
|
"attribute": false,
|
|
1712
|
-
"type": "
|
|
1704
|
+
"type": "presetRangeType[]"
|
|
1713
1705
|
},
|
|
1714
1706
|
{
|
|
1715
|
-
"name": "
|
|
1716
|
-
"description": "透传 antd ColorPicker 属性 [ColorPickerProps](https://ant.design/components/color-picker-cn#api)",
|
|
1707
|
+
"name": "validator",
|
|
1717
1708
|
"attribute": false,
|
|
1718
|
-
"type": "
|
|
1709
|
+
"type": "((value: any) => MessageBody | string)"
|
|
1719
1710
|
}
|
|
1720
1711
|
],
|
|
1721
1712
|
"events": [
|
|
1722
1713
|
{
|
|
1723
1714
|
"name": "change",
|
|
1724
|
-
"description": "
|
|
1715
|
+
"description": "时间段变化时触发",
|
|
1725
1716
|
"detail": {
|
|
1726
|
-
"type": "
|
|
1717
|
+
"type": "TimeRange"
|
|
1727
1718
|
}
|
|
1728
1719
|
}
|
|
1729
1720
|
],
|
|
1730
1721
|
"slots": [],
|
|
1731
1722
|
"methods": [],
|
|
1732
1723
|
"parts": [],
|
|
1733
|
-
"description": "
|
|
1724
|
+
"description": "时间区间选择器",
|
|
1725
|
+
"category": "form-input-basic"
|
|
1734
1726
|
},
|
|
1735
1727
|
{
|
|
1736
|
-
"name": "eo-
|
|
1728
|
+
"name": "eo-color-picker",
|
|
1737
1729
|
"properties": [
|
|
1738
1730
|
{
|
|
1739
1731
|
"name": "name",
|
|
1740
|
-
"description": "
|
|
1732
|
+
"description": "字段名称",
|
|
1741
1733
|
"type": "string"
|
|
1742
1734
|
},
|
|
1743
1735
|
{
|
|
1744
1736
|
"name": "label",
|
|
1745
|
-
"description": "
|
|
1737
|
+
"description": "字段说明",
|
|
1746
1738
|
"type": "string"
|
|
1747
1739
|
},
|
|
1748
1740
|
{
|
|
1749
1741
|
"name": "value",
|
|
1750
|
-
"description": "
|
|
1751
|
-
"
|
|
1752
|
-
|
|
1753
|
-
|
|
1742
|
+
"description": "值",
|
|
1743
|
+
"type": "string"
|
|
1744
|
+
},
|
|
1745
|
+
{
|
|
1746
|
+
"name": "defaultValue",
|
|
1747
|
+
"description": "颜色默认的值",
|
|
1748
|
+
"type": "string | Color"
|
|
1754
1749
|
},
|
|
1755
1750
|
{
|
|
1756
1751
|
"name": "required",
|
|
@@ -1758,49 +1753,54 @@
|
|
|
1758
1753
|
"type": "boolean"
|
|
1759
1754
|
},
|
|
1760
1755
|
{
|
|
1761
|
-
"name": "
|
|
1762
|
-
"description": "
|
|
1756
|
+
"name": "allowClear",
|
|
1757
|
+
"description": "允许清除选择的颜色",
|
|
1758
|
+
"type": "boolean"
|
|
1759
|
+
},
|
|
1760
|
+
{
|
|
1761
|
+
"name": "size",
|
|
1762
|
+
"description": "设置触发器大小",
|
|
1763
|
+
"default": "middle",
|
|
1763
1764
|
"attribute": false,
|
|
1764
|
-
"type": "
|
|
1765
|
+
"type": "\"small\" | \"middle\" | \"large\""
|
|
1765
1766
|
},
|
|
1766
1767
|
{
|
|
1767
|
-
"name": "
|
|
1768
|
-
"description": "
|
|
1769
|
-
"type": "
|
|
1768
|
+
"name": "showText",
|
|
1769
|
+
"description": "显示颜色文本",
|
|
1770
|
+
"type": "boolean"
|
|
1770
1771
|
},
|
|
1771
1772
|
{
|
|
1772
|
-
"name": "
|
|
1773
|
-
"description": "",
|
|
1774
|
-
"default": "true\n是否在初始化完成后额外触发一次`time.range.change`, 这里因为历史原因之前默认行为就是在初始化后会触发该事件,这里为了兼容之前的行为,默认值只能设置为 true。",
|
|
1773
|
+
"name": "disabled",
|
|
1774
|
+
"description": "是否禁用",
|
|
1775
1775
|
"type": "boolean"
|
|
1776
1776
|
},
|
|
1777
1777
|
{
|
|
1778
|
-
"name": "
|
|
1779
|
-
"description": "",
|
|
1780
|
-
"default": "
|
|
1778
|
+
"name": "format",
|
|
1779
|
+
"description": "颜色格式",
|
|
1780
|
+
"default": "hex",
|
|
1781
1781
|
"attribute": false,
|
|
1782
|
-
"type": "
|
|
1782
|
+
"type": "\"rgb\" | \"hex\" | \"hsb\""
|
|
1783
1783
|
},
|
|
1784
1784
|
{
|
|
1785
|
-
"name": "
|
|
1785
|
+
"name": "configProps",
|
|
1786
|
+
"description": "透传 antd ColorPicker 属性 [ColorPickerProps](https://ant.design/components/color-picker-cn#api)",
|
|
1786
1787
|
"attribute": false,
|
|
1787
|
-
"type": "
|
|
1788
|
+
"type": "Partial<ColorPickerProps>"
|
|
1788
1789
|
}
|
|
1789
1790
|
],
|
|
1790
1791
|
"events": [
|
|
1791
1792
|
{
|
|
1792
1793
|
"name": "change",
|
|
1793
|
-
"description": "
|
|
1794
|
+
"description": "颜色变化事件, 返回值格式和`format`格式一致",
|
|
1794
1795
|
"detail": {
|
|
1795
|
-
"type": "
|
|
1796
|
+
"type": "string | undefined"
|
|
1796
1797
|
}
|
|
1797
1798
|
}
|
|
1798
1799
|
],
|
|
1799
1800
|
"slots": [],
|
|
1800
1801
|
"methods": [],
|
|
1801
1802
|
"parts": [],
|
|
1802
|
-
"description": "
|
|
1803
|
-
"category": "form-input-basic"
|
|
1803
|
+
"description": "构件 `eo-color-picker`"
|
|
1804
1804
|
}
|
|
1805
1805
|
],
|
|
1806
1806
|
"providers": []
|