@next-bricks/form 1.19.0 → 1.19.2

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.
@@ -77,6 +77,11 @@
77
77
  "attribute": false,
78
78
  "type": "React.CSSProperties"
79
79
  },
80
+ {
81
+ "name": "variant",
82
+ "description": "变体\n\n- muted: 在 themeVariant 为 elevo 时可用,设置时输入框没有 box-shadow",
83
+ "type": "\"default\" | \"muted\""
84
+ },
80
85
  {
81
86
  "name": "themeVariant",
82
87
  "description": "主题变体",
@@ -251,109 +256,6 @@
251
256
  "description": "表单构件",
252
257
  "category": "form-input-basic"
253
258
  },
254
- {
255
- "name": "eo-radio",
256
- "alias": [
257
- "form.general-radio"
258
- ],
259
- "properties": [
260
- {
261
- "name": "name",
262
- "description": "下拉框字段名",
263
- "type": "string"
264
- },
265
- {
266
- "name": "label",
267
- "description": "单选框字段说明",
268
- "type": "string"
269
- },
270
- {
271
- "name": "options",
272
- "description": "单选框选项表",
273
- "required": true,
274
- "attribute": false,
275
- "type": "GeneralOption[]"
276
- },
277
- {
278
- "name": "value",
279
- "description": "单选框当前选中始值",
280
- "attribute": false,
281
- "type": "any"
282
- },
283
- {
284
- "name": "required",
285
- "description": "是否必填",
286
- "type": "boolean"
287
- },
288
- {
289
- "name": "message",
290
- "description": "校验文本信息",
291
- "attribute": false,
292
- "type": "Record<string, string>"
293
- },
294
- {
295
- "name": "disabled",
296
- "description": "是否禁用",
297
- "type": "boolean"
298
- },
299
- {
300
- "name": "type",
301
- "description": "单选框样式类型",
302
- "default": "\"default\"",
303
- "type": "RadioType"
304
- },
305
- {
306
- "name": "ui",
307
- "description": "UI样式",
308
- "default": "\"default\"",
309
- "type": "UIType"
310
- },
311
- {
312
- "name": "size",
313
- "description": "大小,只对按钮样式生效",
314
- "default": "\"medium\"",
315
- "type": "ComponentSize"
316
- },
317
- {
318
- "name": "customStyle",
319
- "description": "自定义radio的外层样式",
320
- "attribute": false,
321
- "type": "React.CSSProperties"
322
- },
323
- {
324
- "name": "useBrick",
325
- "description": "自定义radio的内容",
326
- "attribute": false,
327
- "type": "UseSingleBrickConf"
328
- },
329
- {
330
- "name": "themeVariant",
331
- "description": "主题变体",
332
- "type": "\"default\" | \"elevo\""
333
- }
334
- ],
335
- "events": [
336
- {
337
- "name": "change",
338
- "description": "值变化事件",
339
- "detail": {
340
- "type": "GeneralComplexOption | undefined"
341
- }
342
- },
343
- {
344
- "name": "options.change",
345
- "description": "选项列表变化事件",
346
- "detail": {
347
- "type": "{\n options: {\n label: string;\n value: any;\n [key: string]: any;\n };\n name: string;\n }"
348
- }
349
- }
350
- ],
351
- "slots": [],
352
- "methods": [],
353
- "parts": [],
354
- "description": "通用单选构件",
355
- "category": "form-input-basic"
356
- },
357
259
  {
358
260
  "name": "eo-select",
359
261
  "alias": [
@@ -586,6 +488,109 @@
586
488
  "description": "表单提交按钮",
587
489
  "category": "form-input-basic"
588
490
  },
491
+ {
492
+ "name": "eo-radio",
493
+ "alias": [
494
+ "form.general-radio"
495
+ ],
496
+ "properties": [
497
+ {
498
+ "name": "name",
499
+ "description": "下拉框字段名",
500
+ "type": "string"
501
+ },
502
+ {
503
+ "name": "label",
504
+ "description": "单选框字段说明",
505
+ "type": "string"
506
+ },
507
+ {
508
+ "name": "options",
509
+ "description": "单选框选项表",
510
+ "required": true,
511
+ "attribute": false,
512
+ "type": "GeneralOption[]"
513
+ },
514
+ {
515
+ "name": "value",
516
+ "description": "单选框当前选中始值",
517
+ "attribute": false,
518
+ "type": "any"
519
+ },
520
+ {
521
+ "name": "required",
522
+ "description": "是否必填",
523
+ "type": "boolean"
524
+ },
525
+ {
526
+ "name": "message",
527
+ "description": "校验文本信息",
528
+ "attribute": false,
529
+ "type": "Record<string, string>"
530
+ },
531
+ {
532
+ "name": "disabled",
533
+ "description": "是否禁用",
534
+ "type": "boolean"
535
+ },
536
+ {
537
+ "name": "type",
538
+ "description": "单选框样式类型",
539
+ "default": "\"default\"",
540
+ "type": "RadioType"
541
+ },
542
+ {
543
+ "name": "ui",
544
+ "description": "UI样式",
545
+ "default": "\"default\"",
546
+ "type": "UIType"
547
+ },
548
+ {
549
+ "name": "size",
550
+ "description": "大小,只对按钮样式生效",
551
+ "default": "\"medium\"",
552
+ "type": "ComponentSize"
553
+ },
554
+ {
555
+ "name": "customStyle",
556
+ "description": "自定义radio的外层样式",
557
+ "attribute": false,
558
+ "type": "React.CSSProperties"
559
+ },
560
+ {
561
+ "name": "useBrick",
562
+ "description": "自定义radio的内容",
563
+ "attribute": false,
564
+ "type": "UseSingleBrickConf"
565
+ },
566
+ {
567
+ "name": "themeVariant",
568
+ "description": "主题变体",
569
+ "type": "\"default\" | \"elevo\""
570
+ }
571
+ ],
572
+ "events": [
573
+ {
574
+ "name": "change",
575
+ "description": "值变化事件",
576
+ "detail": {
577
+ "type": "GeneralComplexOption | undefined"
578
+ }
579
+ },
580
+ {
581
+ "name": "options.change",
582
+ "description": "选项列表变化事件",
583
+ "detail": {
584
+ "type": "{\n options: {\n label: string;\n value: any;\n [key: string]: any;\n };\n name: string;\n }"
585
+ }
586
+ }
587
+ ],
588
+ "slots": [],
589
+ "methods": [],
590
+ "parts": [],
591
+ "description": "通用单选构件",
592
+ "category": "form-input-basic"
593
+ },
589
594
  {
590
595
  "name": "eo-checkbox",
591
596
  "alias": [
@@ -1165,6 +1170,11 @@
1165
1170
  "description": "自动上传的文件参数名",
1166
1171
  "default": "\"file\"",
1167
1172
  "type": "string"
1173
+ },
1174
+ {
1175
+ "name": "themeVariant",
1176
+ "description": "主题变体",
1177
+ "type": "\"default\" | \"elevo\""
1168
1178
  }
1169
1179
  ],
1170
1180
  "events": [
@@ -1266,26 +1276,26 @@
1266
1276
  "category": "form-input-basic"
1267
1277
  },
1268
1278
  {
1269
- "name": "eo-time-picker",
1279
+ "name": "eo-date-picker",
1270
1280
  "properties": [
1271
1281
  {
1272
1282
  "name": "name",
1273
- "description": "时间选择器字段名",
1283
+ "description": "日期选择器字段名",
1274
1284
  "type": "string"
1275
1285
  },
1276
1286
  {
1277
1287
  "name": "label",
1278
- "description": "时间选择器说明",
1288
+ "description": "日期选择器说明",
1279
1289
  "type": "string"
1280
1290
  },
1281
1291
  {
1282
1292
  "name": "value",
1283
- "description": "时间选择器的初始值",
1293
+ "description": "日期选择器的初始值",
1284
1294
  "type": "string"
1285
1295
  },
1286
1296
  {
1287
1297
  "name": "placeholder",
1288
- "description": "时间选择器占位说明",
1298
+ "description": "日期选择器占位说明",
1289
1299
  "type": "string"
1290
1300
  },
1291
1301
  {
@@ -1305,30 +1315,55 @@
1305
1315
  "type": "boolean"
1306
1316
  },
1307
1317
  {
1308
- "name": "configProps",
1309
- "description": "透传 antd timePicker 属性 [timePickerProps](https://ant.design/components/time-picker-cn)",
1318
+ "name": "showTime",
1319
+ "description": "是否显示时间, 当设为 `true` 时, 请同时设置 `format` 为 `YYYY-MM-DD HH:mm:ss` 使其也显示具体时,分,秒 的时间",
1320
+ "type": "boolean"
1321
+ },
1322
+ {
1323
+ "name": "format",
1324
+ "description": "显示预览的格式,具体配置参考 [dayjs](https://day.js.org/docs/zh-CN/display/format#%E6%94%AF%E6%8C%81%E7%9A%84%E6%A0%BC%E5%BC%8F%E5%8C%96%E5%8D%A0%E4%BD%8D%E7%AC%A6%E5%88%97%E8%A1%A8),注意,这里并非是定义给后台的数据格式,给后台的数据格式定义请参考 `general-form` 构件的 [valueTypes](developers/brick-book/brick/forms.general-form) 属性",
1325
+ "type": "string"
1326
+ },
1327
+ {
1328
+ "name": "picker",
1329
+ "description": "设置选择器类型",
1310
1330
  "attribute": false,
1311
- "type": "Partial<TimePickerProps>"
1331
+ "type": "PickerMode"
1332
+ },
1333
+ {
1334
+ "name": "futureDateDisabled",
1335
+ "description": "不可选择未来日期,优先级高于disabledDate",
1336
+ "type": "boolean"
1337
+ },
1338
+ {
1339
+ "name": "disabledDate",
1340
+ "description": "不可选择的日期",
1341
+ "attribute": false,
1342
+ "type": "DisabledDateType"
1343
+ },
1344
+ {
1345
+ "name": "useFastSelectBtn",
1346
+ "description": "快速选项",
1347
+ "type": "boolean"
1348
+ },
1349
+ {
1350
+ "name": "inputStyle",
1351
+ "description": "输入框样式",
1352
+ "attribute": false,
1353
+ "type": "CSSProperties"
1312
1354
  }
1313
1355
  ],
1314
1356
  "events": [
1315
1357
  {
1316
1358
  "name": "change",
1317
- "description": "时间变化时触发",
1318
- "detail": {
1319
- "type": "string"
1320
- }
1321
- },
1322
- {
1323
- "name": "open",
1324
- "description": "面板打开时触发, 传出当前时间值",
1359
+ "description": "日期变化时触发",
1325
1360
  "detail": {
1326
1361
  "type": "string"
1327
1362
  }
1328
1363
  },
1329
1364
  {
1330
- "name": "close",
1331
- "description": "面板关闭时触发,传出当前时间值",
1365
+ "name": "ok",
1366
+ "description": "点击确定按钮触发(showTime 为 true 使用)",
1332
1367
  "detail": {
1333
1368
  "type": "string"
1334
1369
  }
@@ -1337,98 +1372,151 @@
1337
1372
  "slots": [],
1338
1373
  "methods": [],
1339
1374
  "parts": [],
1340
- "description": "时间选择器",
1375
+ "description": "日期选择器",
1341
1376
  "category": "form-input-basic"
1342
1377
  },
1343
1378
  {
1344
- "name": "eo-date-picker",
1379
+ "name": "eo-color-picker",
1345
1380
  "properties": [
1346
1381
  {
1347
1382
  "name": "name",
1348
- "description": "日期选择器字段名",
1383
+ "description": "字段名称",
1349
1384
  "type": "string"
1350
1385
  },
1351
1386
  {
1352
1387
  "name": "label",
1353
- "description": "日期选择器说明",
1388
+ "description": "字段说明",
1354
1389
  "type": "string"
1355
1390
  },
1356
1391
  {
1357
1392
  "name": "value",
1358
- "description": "日期选择器的初始值",
1393
+ "description": "",
1359
1394
  "type": "string"
1360
1395
  },
1361
1396
  {
1362
- "name": "placeholder",
1363
- "description": "日期选择器占位说明",
1364
- "type": "string"
1397
+ "name": "defaultValue",
1398
+ "description": "颜色默认的值",
1399
+ "type": "string | Color"
1365
1400
  },
1366
1401
  {
1367
- "name": "message",
1368
- "description": "校验文本信息",
1369
- "attribute": false,
1370
- "type": "Record<string, string>"
1402
+ "name": "required",
1403
+ "description": "是否必填",
1404
+ "type": "boolean"
1371
1405
  },
1372
1406
  {
1373
- "name": "disabled",
1374
- "description": "是否禁用",
1407
+ "name": "allowClear",
1408
+ "description": "允许清除选择的颜色",
1375
1409
  "type": "boolean"
1376
1410
  },
1377
1411
  {
1378
- "name": "required",
1379
- "description": "是否必填",
1412
+ "name": "size",
1413
+ "description": "设置触发器大小",
1414
+ "default": "middle",
1415
+ "attribute": false,
1416
+ "type": "\"small\" | \"middle\" | \"large\""
1417
+ },
1418
+ {
1419
+ "name": "showText",
1420
+ "description": "显示颜色文本",
1380
1421
  "type": "boolean"
1381
1422
  },
1382
1423
  {
1383
- "name": "showTime",
1384
- "description": "是否显示时间, 当设为 `true` 时, 请同时设置 `format` 为 `YYYY-MM-DD HH:mm:ss` 使其也显示具体时,分,秒 的时间",
1424
+ "name": "disabled",
1425
+ "description": "是否禁用",
1385
1426
  "type": "boolean"
1386
1427
  },
1387
1428
  {
1388
1429
  "name": "format",
1389
- "description": "显示预览的格式,具体配置参考 [dayjs](https://day.js.org/docs/zh-CN/display/format#%E6%94%AF%E6%8C%81%E7%9A%84%E6%A0%BC%E5%BC%8F%E5%8C%96%E5%8D%A0%E4%BD%8D%E7%AC%A6%E5%88%97%E8%A1%A8),注意,这里并非是定义给后台的数据格式,给后台的数据格式定义请参考 `general-form` 构件的 [valueTypes](developers/brick-book/brick/forms.general-form) 属性",
1390
- "type": "string"
1430
+ "description": "颜色格式",
1431
+ "default": "hex",
1432
+ "attribute": false,
1433
+ "type": "\"rgb\" | \"hex\" | \"hsb\""
1391
1434
  },
1392
1435
  {
1393
- "name": "picker",
1394
- "description": "设置选择器类型",
1436
+ "name": "configProps",
1437
+ "description": "透传 antd ColorPicker 属性 [ColorPickerProps](https://ant.design/components/color-picker-cn#api)",
1395
1438
  "attribute": false,
1396
- "type": "PickerMode"
1439
+ "type": "Partial<ColorPickerProps>"
1440
+ }
1441
+ ],
1442
+ "events": [
1443
+ {
1444
+ "name": "change",
1445
+ "description": "颜色变化事件, 返回值格式和`format`格式一致",
1446
+ "detail": {
1447
+ "type": "string | undefined"
1448
+ }
1449
+ }
1450
+ ],
1451
+ "slots": [],
1452
+ "methods": [],
1453
+ "parts": [],
1454
+ "description": "构件 `eo-color-picker`"
1455
+ },
1456
+ {
1457
+ "name": "eo-time-picker",
1458
+ "properties": [
1459
+ {
1460
+ "name": "name",
1461
+ "description": "时间选择器字段名",
1462
+ "type": "string"
1397
1463
  },
1398
1464
  {
1399
- "name": "futureDateDisabled",
1400
- "description": "不可选择未来日期,优先级高于disabledDate",
1401
- "type": "boolean"
1465
+ "name": "label",
1466
+ "description": "时间选择器说明",
1467
+ "type": "string"
1402
1468
  },
1403
1469
  {
1404
- "name": "disabledDate",
1405
- "description": "不可选择的日期",
1470
+ "name": "value",
1471
+ "description": "时间选择器的初始值",
1472
+ "type": "string"
1473
+ },
1474
+ {
1475
+ "name": "placeholder",
1476
+ "description": "时间选择器占位说明",
1477
+ "type": "string"
1478
+ },
1479
+ {
1480
+ "name": "message",
1481
+ "description": "校验文本信息",
1406
1482
  "attribute": false,
1407
- "type": "DisabledDateType"
1483
+ "type": "Record<string, string>"
1408
1484
  },
1409
1485
  {
1410
- "name": "useFastSelectBtn",
1411
- "description": "快速选项",
1486
+ "name": "disabled",
1487
+ "description": "是否禁用",
1412
1488
  "type": "boolean"
1413
1489
  },
1414
1490
  {
1415
- "name": "inputStyle",
1416
- "description": "输入框样式",
1491
+ "name": "required",
1492
+ "description": "是否必填",
1493
+ "type": "boolean"
1494
+ },
1495
+ {
1496
+ "name": "configProps",
1497
+ "description": "透传 antd timePicker 属性 [timePickerProps](https://ant.design/components/time-picker-cn)",
1417
1498
  "attribute": false,
1418
- "type": "CSSProperties"
1499
+ "type": "Partial<TimePickerProps>"
1419
1500
  }
1420
1501
  ],
1421
1502
  "events": [
1422
1503
  {
1423
1504
  "name": "change",
1424
- "description": "日期变化时触发",
1505
+ "description": "时间变化时触发",
1425
1506
  "detail": {
1426
1507
  "type": "string"
1427
1508
  }
1428
1509
  },
1429
1510
  {
1430
- "name": "ok",
1431
- "description": "点击确定按钮触发(showTime 为 true 使用)",
1511
+ "name": "open",
1512
+ "description": "面板打开时触发, 传出当前时间值",
1513
+ "detail": {
1514
+ "type": "string"
1515
+ }
1516
+ },
1517
+ {
1518
+ "name": "close",
1519
+ "description": "面板关闭时触发,传出当前时间值",
1432
1520
  "detail": {
1433
1521
  "type": "string"
1434
1522
  }
@@ -1437,7 +1525,7 @@
1437
1525
  "slots": [],
1438
1526
  "methods": [],
1439
1527
  "parts": [],
1440
- "description": "日期选择器",
1528
+ "description": "时间选择器",
1441
1529
  "category": "form-input-basic"
1442
1530
  },
1443
1531
  {
@@ -1522,84 +1610,6 @@
1522
1610
  "description": "时间区间选择器",
1523
1611
  "category": "form-input-basic"
1524
1612
  },
1525
- {
1526
- "name": "eo-color-picker",
1527
- "properties": [
1528
- {
1529
- "name": "name",
1530
- "description": "字段名称",
1531
- "type": "string"
1532
- },
1533
- {
1534
- "name": "label",
1535
- "description": "字段说明",
1536
- "type": "string"
1537
- },
1538
- {
1539
- "name": "value",
1540
- "description": "值",
1541
- "type": "string"
1542
- },
1543
- {
1544
- "name": "defaultValue",
1545
- "description": "颜色默认的值",
1546
- "type": "string | Color"
1547
- },
1548
- {
1549
- "name": "required",
1550
- "description": "是否必填",
1551
- "type": "boolean"
1552
- },
1553
- {
1554
- "name": "allowClear",
1555
- "description": "允许清除选择的颜色",
1556
- "type": "boolean"
1557
- },
1558
- {
1559
- "name": "size",
1560
- "description": "设置触发器大小",
1561
- "default": "middle",
1562
- "attribute": false,
1563
- "type": "\"small\" | \"middle\" | \"large\""
1564
- },
1565
- {
1566
- "name": "showText",
1567
- "description": "显示颜色文本",
1568
- "type": "boolean"
1569
- },
1570
- {
1571
- "name": "disabled",
1572
- "description": "是否禁用",
1573
- "type": "boolean"
1574
- },
1575
- {
1576
- "name": "format",
1577
- "description": "颜色格式",
1578
- "default": "hex",
1579
- "attribute": false,
1580
- "type": "\"rgb\" | \"hex\" | \"hsb\""
1581
- },
1582
- {
1583
- "name": "configProps",
1584
- "description": "透传 antd ColorPicker 属性 [ColorPickerProps](https://ant.design/components/color-picker-cn#api)",
1585
- "attribute": false,
1586
- "type": "Partial<ColorPickerProps>"
1587
- }
1588
- ],
1589
- "events": [
1590
- {
1591
- "name": "change",
1592
- "description": "颜色变化事件, 返回值格式和`format`格式一致",
1593
- "detail": {
1594
- "type": "string | undefined"
1595
- }
1596
- }
1597
- ],
1598
- "slots": [],
1599
- "methods": [],
1600
- "parts": [],
1601
- "description": "构件 `eo-color-picker`"
1602
- },
1603
1613
  {
1604
1614
  "name": "eo-form-item",
1605
1615
  "alias": [