@next-bricks/form 1.18.0 → 1.18.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3,6 +3,109 @@
3
3
  "package": "@next-bricks/form",
4
4
  "name": "form",
5
5
  "bricks": [
6
+ {
7
+ "name": "eo-textarea",
8
+ "alias": [
9
+ "form.general-textarea"
10
+ ],
11
+ "properties": [
12
+ {
13
+ "name": "name",
14
+ "description": "字段名称",
15
+ "type": "string"
16
+ },
17
+ {
18
+ "name": "label",
19
+ "description": "标签文字",
20
+ "type": "string"
21
+ },
22
+ {
23
+ "name": "value",
24
+ "description": "值",
25
+ "type": "string"
26
+ },
27
+ {
28
+ "name": "placeholder",
29
+ "description": "占位说明",
30
+ "type": "string"
31
+ },
32
+ {
33
+ "name": "disabled",
34
+ "description": "是否禁用",
35
+ "type": "boolean"
36
+ },
37
+ {
38
+ "name": "minLength",
39
+ "description": "最小长度",
40
+ "type": "number"
41
+ },
42
+ {
43
+ "name": "maxLength",
44
+ "description": "最大长度",
45
+ "type": "number"
46
+ },
47
+ {
48
+ "name": "autoSize",
49
+ "description": "大小自适应",
50
+ "attribute": false,
51
+ "type": "AutoSize"
52
+ },
53
+ {
54
+ "name": "required",
55
+ "description": "是否必填",
56
+ "type": "boolean"
57
+ },
58
+ {
59
+ "name": "max",
60
+ "description": "表单校验最大长度",
61
+ "type": "number"
62
+ },
63
+ {
64
+ "name": "min",
65
+ "description": "表单校验最小长度",
66
+ "type": "number"
67
+ },
68
+ {
69
+ "name": "message",
70
+ "description": "校验信息",
71
+ "attribute": false,
72
+ "type": "Record<string, string>"
73
+ },
74
+ {
75
+ "name": "textareaStyle",
76
+ "description": "自定义样式",
77
+ "attribute": false,
78
+ "type": "React.CSSProperties"
79
+ },
80
+ {
81
+ "name": "themeVariant",
82
+ "description": "主题变体",
83
+ "type": "\"default\" | \"elevo\""
84
+ }
85
+ ],
86
+ "events": [
87
+ {
88
+ "name": "change",
89
+ "description": "",
90
+ "detail": {
91
+ "description": null,
92
+ "type": "string"
93
+ }
94
+ }
95
+ ],
96
+ "slots": [],
97
+ "methods": [
98
+ {
99
+ "name": "focusTextarea",
100
+ "params": [],
101
+ "description": "focus",
102
+ "returns": {}
103
+ }
104
+ ],
105
+ "parts": [],
106
+ "description": "通用多行文本输入框构件",
107
+ "category": "form-input-basic"
108
+ },
6
109
  {
7
110
  "name": "eo-form",
8
111
  "alias": [
@@ -251,109 +354,6 @@
251
354
  "description": "通用单选构件",
252
355
  "category": "form-input-basic"
253
356
  },
254
- {
255
- "name": "eo-textarea",
256
- "alias": [
257
- "form.general-textarea"
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": "value",
272
- "description": "值",
273
- "type": "string"
274
- },
275
- {
276
- "name": "placeholder",
277
- "description": "占位说明",
278
- "type": "string"
279
- },
280
- {
281
- "name": "disabled",
282
- "description": "是否禁用",
283
- "type": "boolean"
284
- },
285
- {
286
- "name": "minLength",
287
- "description": "最小长度",
288
- "type": "number"
289
- },
290
- {
291
- "name": "maxLength",
292
- "description": "最大长度",
293
- "type": "number"
294
- },
295
- {
296
- "name": "autoSize",
297
- "description": "大小自适应",
298
- "attribute": false,
299
- "type": "AutoSize"
300
- },
301
- {
302
- "name": "required",
303
- "description": "是否必填",
304
- "type": "boolean"
305
- },
306
- {
307
- "name": "max",
308
- "description": "表单校验最大长度",
309
- "type": "number"
310
- },
311
- {
312
- "name": "min",
313
- "description": "表单校验最小长度",
314
- "type": "number"
315
- },
316
- {
317
- "name": "message",
318
- "description": "校验信息",
319
- "attribute": false,
320
- "type": "Record<string, string>"
321
- },
322
- {
323
- "name": "textareaStyle",
324
- "description": "自定义样式",
325
- "attribute": false,
326
- "type": "React.CSSProperties"
327
- },
328
- {
329
- "name": "themeVariant",
330
- "description": "主题变体",
331
- "type": "\"default\" | \"elevo\""
332
- }
333
- ],
334
- "events": [
335
- {
336
- "name": "change",
337
- "description": "",
338
- "detail": {
339
- "description": null,
340
- "type": "string"
341
- }
342
- }
343
- ],
344
- "slots": [],
345
- "methods": [
346
- {
347
- "name": "focusTextarea",
348
- "params": [],
349
- "description": "focus",
350
- "returns": {}
351
- }
352
- ],
353
- "parts": [],
354
- "description": "通用多行文本输入框构件",
355
- "category": "form-input-basic"
356
- },
357
357
  {
358
358
  "name": "eo-select",
359
359
  "alias": [
@@ -970,6 +970,80 @@
970
970
  "description": "上传图片构件",
971
971
  "category": "form-input-basic"
972
972
  },
973
+ {
974
+ "name": "eo-switch",
975
+ "alias": [
976
+ "form.general-switch"
977
+ ],
978
+ "properties": [
979
+ {
980
+ "name": "name",
981
+ "description": "字段名称",
982
+ "type": "string"
983
+ },
984
+ {
985
+ "name": "label",
986
+ "description": "字段文本",
987
+ "type": "string"
988
+ },
989
+ {
990
+ "name": "value",
991
+ "description": "初始值",
992
+ "type": "boolean"
993
+ },
994
+ {
995
+ "name": "disabled",
996
+ "description": "是否禁用",
997
+ "type": "boolean"
998
+ },
999
+ {
1000
+ "name": "size",
1001
+ "description": "按钮大小,目前只支持small和非small两种大小。",
1002
+ "type": "ComponentSize"
1003
+ },
1004
+ {
1005
+ "name": "checkedText",
1006
+ "description": "选中时的文本",
1007
+ "type": "string"
1008
+ },
1009
+ {
1010
+ "name": "unCheckedText",
1011
+ "description": "非选中时的文本",
1012
+ "type": "string"
1013
+ },
1014
+ {
1015
+ "name": "checkedIcon",
1016
+ "description": "选中时的图标",
1017
+ "attribute": false,
1018
+ "type": "GeneralIconProps"
1019
+ },
1020
+ {
1021
+ "name": "unCheckedIcon",
1022
+ "description": "非选中时的文本",
1023
+ "attribute": false,
1024
+ "type": "GeneralIconProps"
1025
+ },
1026
+ {
1027
+ "name": "themeVariant",
1028
+ "description": "主题变体",
1029
+ "type": "\"default\" | \"elevo\""
1030
+ }
1031
+ ],
1032
+ "events": [
1033
+ {
1034
+ "name": "switch",
1035
+ "description": "开关改变时触发",
1036
+ "detail": {
1037
+ "type": "boolean"
1038
+ }
1039
+ }
1040
+ ],
1041
+ "slots": [],
1042
+ "methods": [],
1043
+ "parts": [],
1044
+ "description": "开关",
1045
+ "category": "form-input-basic"
1046
+ },
973
1047
  {
974
1048
  "name": "eo-upload-file",
975
1049
  "properties": [
@@ -1177,77 +1251,78 @@
1177
1251
  "category": "form-input-basic"
1178
1252
  },
1179
1253
  {
1180
- "name": "eo-switch",
1181
- "alias": [
1182
- "form.general-switch"
1183
- ],
1254
+ "name": "eo-time-picker",
1184
1255
  "properties": [
1185
1256
  {
1186
1257
  "name": "name",
1187
- "description": "字段名称",
1258
+ "description": "时间选择器字段名",
1188
1259
  "type": "string"
1189
1260
  },
1190
1261
  {
1191
1262
  "name": "label",
1192
- "description": "字段文本",
1263
+ "description": "时间选择器说明",
1193
1264
  "type": "string"
1194
1265
  },
1195
1266
  {
1196
1267
  "name": "value",
1197
- "description": "初始值",
1198
- "type": "boolean"
1199
- },
1200
- {
1201
- "name": "disabled",
1202
- "description": "是否禁用",
1203
- "type": "boolean"
1204
- },
1205
- {
1206
- "name": "size",
1207
- "description": "按钮大小,目前只支持small和非small两种大小。",
1208
- "type": "ComponentSize"
1209
- },
1210
- {
1211
- "name": "checkedText",
1212
- "description": "选中时的文本",
1268
+ "description": "时间选择器的初始值",
1213
1269
  "type": "string"
1214
1270
  },
1215
1271
  {
1216
- "name": "unCheckedText",
1217
- "description": "非选中时的文本",
1272
+ "name": "placeholder",
1273
+ "description": "时间选择器占位说明",
1218
1274
  "type": "string"
1219
1275
  },
1220
1276
  {
1221
- "name": "checkedIcon",
1222
- "description": "选中时的图标",
1277
+ "name": "message",
1278
+ "description": "校验文本信息",
1223
1279
  "attribute": false,
1224
- "type": "GeneralIconProps"
1280
+ "type": "Record<string, string>"
1225
1281
  },
1226
1282
  {
1227
- "name": "unCheckedIcon",
1228
- "description": "非选中时的文本",
1229
- "attribute": false,
1230
- "type": "GeneralIconProps"
1283
+ "name": "disabled",
1284
+ "description": "是否禁用",
1285
+ "type": "boolean"
1231
1286
  },
1232
1287
  {
1233
- "name": "themeVariant",
1234
- "description": "主题变体",
1235
- "type": "\"default\" | \"elevo\""
1288
+ "name": "required",
1289
+ "description": "是否必填",
1290
+ "type": "boolean"
1291
+ },
1292
+ {
1293
+ "name": "configProps",
1294
+ "description": "透传 antd timePicker 属性 [timePickerProps](https://ant.design/components/time-picker-cn)",
1295
+ "attribute": false,
1296
+ "type": "Partial<TimePickerProps>"
1236
1297
  }
1237
1298
  ],
1238
1299
  "events": [
1239
1300
  {
1240
- "name": "switch",
1241
- "description": "开关改变时触发",
1301
+ "name": "change",
1302
+ "description": "时间变化时触发",
1242
1303
  "detail": {
1243
- "type": "boolean"
1304
+ "type": "string"
1305
+ }
1306
+ },
1307
+ {
1308
+ "name": "open",
1309
+ "description": "面板打开时触发, 传出当前时间值",
1310
+ "detail": {
1311
+ "type": "string"
1312
+ }
1313
+ },
1314
+ {
1315
+ "name": "close",
1316
+ "description": "面板关闭时触发,传出当前时间值",
1317
+ "detail": {
1318
+ "type": "string"
1244
1319
  }
1245
1320
  }
1246
1321
  ],
1247
1322
  "slots": [],
1248
1323
  "methods": [],
1249
1324
  "parts": [],
1250
- "description": "开关",
1325
+ "description": "时间选择器",
1251
1326
  "category": "form-input-basic"
1252
1327
  },
1253
1328
  {
@@ -1350,81 +1425,6 @@
1350
1425
  "description": "日期选择器",
1351
1426
  "category": "form-input-basic"
1352
1427
  },
1353
- {
1354
- "name": "eo-time-picker",
1355
- "properties": [
1356
- {
1357
- "name": "name",
1358
- "description": "时间选择器字段名",
1359
- "type": "string"
1360
- },
1361
- {
1362
- "name": "label",
1363
- "description": "时间选择器说明",
1364
- "type": "string"
1365
- },
1366
- {
1367
- "name": "value",
1368
- "description": "时间选择器的初始值",
1369
- "type": "string"
1370
- },
1371
- {
1372
- "name": "placeholder",
1373
- "description": "时间选择器占位说明",
1374
- "type": "string"
1375
- },
1376
- {
1377
- "name": "message",
1378
- "description": "校验文本信息",
1379
- "attribute": false,
1380
- "type": "Record<string, string>"
1381
- },
1382
- {
1383
- "name": "disabled",
1384
- "description": "是否禁用",
1385
- "type": "boolean"
1386
- },
1387
- {
1388
- "name": "required",
1389
- "description": "是否必填",
1390
- "type": "boolean"
1391
- },
1392
- {
1393
- "name": "configProps",
1394
- "description": "透传 antd timePicker 属性 [timePickerProps](https://ant.design/components/time-picker-cn)",
1395
- "attribute": false,
1396
- "type": "Partial<TimePickerProps>"
1397
- }
1398
- ],
1399
- "events": [
1400
- {
1401
- "name": "change",
1402
- "description": "时间变化时触发",
1403
- "detail": {
1404
- "type": "string"
1405
- }
1406
- },
1407
- {
1408
- "name": "open",
1409
- "description": "面板打开时触发, 传出当前时间值",
1410
- "detail": {
1411
- "type": "string"
1412
- }
1413
- },
1414
- {
1415
- "name": "close",
1416
- "description": "面板关闭时触发,传出当前时间值",
1417
- "detail": {
1418
- "type": "string"
1419
- }
1420
- }
1421
- ],
1422
- "slots": [],
1423
- "methods": [],
1424
- "parts": [],
1425
- "description": "时间选择器",
1426
- "category": "form-input-basic"
1427
- },
1428
1428
  {
1429
1429
  "name": "eo-time-range-picker",
1430
1430
  "properties": [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@next-bricks/form",
3
- "version": "1.18.0",
3
+ "version": "1.18.1",
4
4
  "homepage": "https://github.com/easyops-cn/next-advanced-bricks/tree/master/bricks/form",
5
5
  "repository": {
6
6
  "type": "git",
@@ -44,5 +44,5 @@
44
44
  "@next-bricks/icons": "*",
45
45
  "@next-bricks/illustrations": "*"
46
46
  },
47
- "gitHead": "af3ff373f72f869049b060a548bf32c0c8b941d0"
47
+ "gitHead": "8259af240978bb18d57f234102fe8c1f984f69a8"
48
48
  }