vant 3.5.1 → 3.5.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.
- package/LICENSE +10 -0
- package/es/action-bar/ActionBar.d.ts +4 -0
- package/es/action-bar/ActionBar.mjs +13 -2
- package/es/action-bar/index.d.ts +3 -0
- package/es/field/Field.d.ts +3 -1
- package/es/field/Field.mjs +7 -1
- package/es/field/index.d.ts +3 -1
- package/es/index.d.ts +1 -1
- package/es/index.mjs +1 -1
- package/es/submit-bar/SubmitBar.d.ts +4 -0
- package/es/submit-bar/SubmitBar.mjs +13 -2
- package/es/submit-bar/index.d.ts +3 -0
- package/lib/action-bar/ActionBar.d.ts +4 -0
- package/lib/action-bar/ActionBar.js +12 -1
- package/lib/action-bar/index.d.ts +3 -0
- package/lib/field/Field.d.ts +3 -1
- package/lib/field/Field.js +7 -1
- package/lib/field/index.d.ts +3 -1
- package/lib/index.d.ts +1 -1
- package/lib/index.js +1 -1
- package/lib/submit-bar/SubmitBar.d.ts +4 -0
- package/lib/submit-bar/SubmitBar.js +12 -1
- package/lib/submit-bar/index.d.ts +3 -0
- package/lib/vant.cjs.js +50 -24
- package/lib/vant.es.js +51 -25
- package/lib/vant.js +51 -25
- package/lib/vant.min.js +1 -1
- package/package.json +1 -1
- package/vetur/attributes.json +365 -357
- package/vetur/tags.json +130 -128
- package/vetur/web-types.json +1205 -1171
- package/lib/ssr.js +0 -7
- package/lib/ssr.mjs +0 -1
- package/lib/vant.cjs.min.js +0 -1
- package/lib/vant.es.min.js +0 -14667
package/vetur/attributes.json
CHANGED
@@ -3,6 +3,10 @@
|
|
3
3
|
"type": "boolean",
|
4
4
|
"description": "Whether to enable bottom safe area adaptation, Default: `true`"
|
5
5
|
},
|
6
|
+
"van-action-bar/placeholder": {
|
7
|
+
"type": "boolean",
|
8
|
+
"description": "Whether to generate a placeholder element, Default: `false`"
|
9
|
+
},
|
6
10
|
"van-action-bar-icon/text": {
|
7
11
|
"type": "string",
|
8
12
|
"description": "Button text, Default: -"
|
@@ -251,34 +255,6 @@
|
|
251
255
|
"type": "(key, val) => string",
|
252
256
|
"description": "Custom validator, Default: -"
|
253
257
|
},
|
254
|
-
"van-badge/content": {
|
255
|
-
"type": "number | string",
|
256
|
-
"description": "Badge content, Default: -"
|
257
|
-
},
|
258
|
-
"van-badge/color": {
|
259
|
-
"type": "string",
|
260
|
-
"description": "Background color, Default: `#ee0a24`"
|
261
|
-
},
|
262
|
-
"van-badge/dot": {
|
263
|
-
"type": "boolean",
|
264
|
-
"description": "Whether to show dot, Default: `false`"
|
265
|
-
},
|
266
|
-
"van-badge/max": {
|
267
|
-
"type": "number | string",
|
268
|
-
"description": "Max value, show `{max}+` when exceed, only works when content is number, Default: -"
|
269
|
-
},
|
270
|
-
"van-badge/offset": {
|
271
|
-
"type": "[number | string, number | string]",
|
272
|
-
"description": "Offset of badge dot, Default: -"
|
273
|
-
},
|
274
|
-
"van-badge/show-zero": {
|
275
|
-
"type": "boolean",
|
276
|
-
"description": "Whether to show badge when content is zero, Default: `true`"
|
277
|
-
},
|
278
|
-
"van-badge/position": {
|
279
|
-
"type": "string",
|
280
|
-
"description": "Badge position, can be set to `top-left` `bottom-left` `bottom-right`, Default: `top-right`"
|
281
|
-
},
|
282
258
|
"van-address-list/v-model": {
|
283
259
|
"type": "string",
|
284
260
|
"description": "Id of chosen address, Default: -"
|
@@ -359,6 +335,34 @@
|
|
359
335
|
"type": "() => boolean",
|
360
336
|
"description": "The method to validate oversea code, Default: -"
|
361
337
|
},
|
338
|
+
"van-badge/content": {
|
339
|
+
"type": "number | string",
|
340
|
+
"description": "Badge content, Default: -"
|
341
|
+
},
|
342
|
+
"van-badge/color": {
|
343
|
+
"type": "string",
|
344
|
+
"description": "Background color, Default: `#ee0a24`"
|
345
|
+
},
|
346
|
+
"van-badge/dot": {
|
347
|
+
"type": "boolean",
|
348
|
+
"description": "Whether to show dot, Default: `false`"
|
349
|
+
},
|
350
|
+
"van-badge/max": {
|
351
|
+
"type": "number | string",
|
352
|
+
"description": "Max value, show `{max}+` when exceed, only works when content is number, Default: -"
|
353
|
+
},
|
354
|
+
"van-badge/offset": {
|
355
|
+
"type": "[number | string, number | string]",
|
356
|
+
"description": "Offset of badge dot, Default: -"
|
357
|
+
},
|
358
|
+
"van-badge/show-zero": {
|
359
|
+
"type": "boolean",
|
360
|
+
"description": "Whether to show badge when content is zero, Default: `true`"
|
361
|
+
},
|
362
|
+
"van-badge/position": {
|
363
|
+
"type": "string",
|
364
|
+
"description": "Badge position, can be set to `top-left` `bottom-left` `bottom-right`, Default: `top-right`"
|
365
|
+
},
|
362
366
|
"van-button/type": {
|
363
367
|
"type": "string",
|
364
368
|
"description": "Can be set to `primary` `success` `warning` `danger`, Default: `default`"
|
@@ -843,6 +847,38 @@
|
|
843
847
|
"type": "CircleStartPosition",
|
844
848
|
"description": "Progress start position, can be set to `left`、`right`、`bottom`, Default: `top`"
|
845
849
|
},
|
850
|
+
"van-row/gutter": {
|
851
|
+
"type": "number | string",
|
852
|
+
"description": "Grid spacing(px), Default: -"
|
853
|
+
},
|
854
|
+
"van-row/tag": {
|
855
|
+
"type": "string",
|
856
|
+
"description": "Custom element tag, Default: `div`"
|
857
|
+
},
|
858
|
+
"van-row/justify": {
|
859
|
+
"type": "string",
|
860
|
+
"description": "Flex main axis, can be set to end/center/space-around/space-between, Default: `start`"
|
861
|
+
},
|
862
|
+
"van-row/align": {
|
863
|
+
"type": "string",
|
864
|
+
"description": "Flex cross axis, be set to center/bottom, Default: `top`"
|
865
|
+
},
|
866
|
+
"van-row/wrap": {
|
867
|
+
"type": "boolean",
|
868
|
+
"description": "Whether to wrap, Default: `true`"
|
869
|
+
},
|
870
|
+
"van-col/span": {
|
871
|
+
"type": "number | string",
|
872
|
+
"description": "number of column the grid spans, Default: -"
|
873
|
+
},
|
874
|
+
"van-col/offset": {
|
875
|
+
"type": "number | string",
|
876
|
+
"description": "number of spacing on the left side of the grid, Default: -"
|
877
|
+
},
|
878
|
+
"van-col/tag": {
|
879
|
+
"type": "string",
|
880
|
+
"description": "Custom element tag, Default: `div`"
|
881
|
+
},
|
846
882
|
"van-collapse/v-model": {
|
847
883
|
"type": "accordion mode: _number | string_<br>non-accordion mode: _(number | string)[]",
|
848
884
|
"description": "Names of current active panels, Default: -"
|
@@ -911,38 +947,6 @@
|
|
911
947
|
"type": "string",
|
912
948
|
"description": "Label className, Default: -"
|
913
949
|
},
|
914
|
-
"van-row/gutter": {
|
915
|
-
"type": "number | string",
|
916
|
-
"description": "Grid spacing(px), Default: -"
|
917
|
-
},
|
918
|
-
"van-row/tag": {
|
919
|
-
"type": "string",
|
920
|
-
"description": "Custom element tag, Default: `div`"
|
921
|
-
},
|
922
|
-
"van-row/justify": {
|
923
|
-
"type": "string",
|
924
|
-
"description": "Flex main axis, can be set to end/center/space-around/space-between, Default: `start`"
|
925
|
-
},
|
926
|
-
"van-row/align": {
|
927
|
-
"type": "string",
|
928
|
-
"description": "Flex cross axis, be set to center/bottom, Default: `top`"
|
929
|
-
},
|
930
|
-
"van-row/wrap": {
|
931
|
-
"type": "boolean",
|
932
|
-
"description": "Whether to wrap, Default: `true`"
|
933
|
-
},
|
934
|
-
"van-col/span": {
|
935
|
-
"type": "number | string",
|
936
|
-
"description": "number of column the grid spans, Default: -"
|
937
|
-
},
|
938
|
-
"van-col/offset": {
|
939
|
-
"type": "number | string",
|
940
|
-
"description": "number of spacing on the left side of the grid, Default: -"
|
941
|
-
},
|
942
|
-
"van-col/tag": {
|
943
|
-
"type": "string",
|
944
|
-
"description": "Custom element tag, Default: `div`"
|
945
|
-
},
|
946
950
|
"van-config-provider/theme-vars": {
|
947
951
|
"type": "object",
|
948
952
|
"description": "Theme variables, Default: -"
|
@@ -1003,22 +1007,6 @@
|
|
1003
1007
|
"type": "string",
|
1004
1008
|
"description": "default contact switch label, Default: -"
|
1005
1009
|
},
|
1006
|
-
"van-contact-list/v-model": {
|
1007
|
-
"type": "number | string",
|
1008
|
-
"description": "Id of chosen contact, Default: -"
|
1009
|
-
},
|
1010
|
-
"van-contact-list/list": {
|
1011
|
-
"type": "Contact[]",
|
1012
|
-
"description": "Contact list, Default: `[]`"
|
1013
|
-
},
|
1014
|
-
"van-contact-list/add-text": {
|
1015
|
-
"type": "string",
|
1016
|
-
"description": "Add button text, Default: `Add new contact`"
|
1017
|
-
},
|
1018
|
-
"van-contact-list/default-tag-text": {
|
1019
|
-
"type": "string",
|
1020
|
-
"description": "Default tag text, Default: -"
|
1021
|
-
},
|
1022
1010
|
"van-count-down/time": {
|
1023
1011
|
"type": "number | string",
|
1024
1012
|
"description": "Total time, unit milliseconds, Default: `0`"
|
@@ -1035,81 +1023,21 @@
|
|
1035
1023
|
"type": "boolean",
|
1036
1024
|
"description": "Whether to enable millisecond render, Default: `false`"
|
1037
1025
|
},
|
1038
|
-
"van-
|
1039
|
-
"type": "string",
|
1040
|
-
"description": "
|
1026
|
+
"van-contact-list/v-model": {
|
1027
|
+
"type": "number | string",
|
1028
|
+
"description": "Id of chosen contact, Default: -"
|
1041
1029
|
},
|
1042
|
-
"van-
|
1043
|
-
"type": "
|
1044
|
-
"description": "
|
1030
|
+
"van-contact-list/list": {
|
1031
|
+
"type": "Contact[]",
|
1032
|
+
"description": "Contact list, Default: `[]`"
|
1045
1033
|
},
|
1046
|
-
"van-
|
1034
|
+
"van-contact-list/add-text": {
|
1047
1035
|
"type": "string",
|
1048
|
-
"description": "
|
1036
|
+
"description": "Add button text, Default: `Add new contact`"
|
1049
1037
|
},
|
1050
|
-
"van-
|
1038
|
+
"van-contact-list/default-tag-text": {
|
1051
1039
|
"type": "string",
|
1052
|
-
"description": "
|
1053
|
-
},
|
1054
|
-
"van-datetime-picker/show-toolbar": {
|
1055
|
-
"type": "boolean",
|
1056
|
-
"description": "Whether to show toolbar, Default: `true`"
|
1057
|
-
},
|
1058
|
-
"van-datetime-picker/loading": {
|
1059
|
-
"type": "boolean",
|
1060
|
-
"description": "Whether to show loading prompt, Default: `false`"
|
1061
|
-
},
|
1062
|
-
"van-datetime-picker/readonly": {
|
1063
|
-
"type": "boolean",
|
1064
|
-
"description": "Whether to be readonly, Default: `false`"
|
1065
|
-
},
|
1066
|
-
"van-datetime-picker/filter": {
|
1067
|
-
"type": "(type: string, values: string[]) => string[]",
|
1068
|
-
"description": "Option filter, Default: -"
|
1069
|
-
},
|
1070
|
-
"van-datetime-picker/formatter": {
|
1071
|
-
"type": "(type: string, value: string) => string",
|
1072
|
-
"description": "Option text formatter, Default: -"
|
1073
|
-
},
|
1074
|
-
"van-datetime-picker/columns-order": {
|
1075
|
-
"type": "string[]",
|
1076
|
-
"description": "Array for ordering columns, where item can be set to<br> `year`, `month`, `day`, `hour` and `minute`, Default: -"
|
1077
|
-
},
|
1078
|
-
"van-datetime-picker/item-height": {
|
1079
|
-
"type": "number | string",
|
1080
|
-
"description": "Option height, supports `px` `vw` `vh` `rem` unit, default `px`, Default: `44`"
|
1081
|
-
},
|
1082
|
-
"van-datetime-picker/visible-item-count": {
|
1083
|
-
"type": "number | string",
|
1084
|
-
"description": "Count of visible columns, Default: `6`"
|
1085
|
-
},
|
1086
|
-
"van-datetime-picker/swipe-duration": {
|
1087
|
-
"type": "number | string",
|
1088
|
-
"description": "Duration of the momentum animation, unit `ms`, Default: `1000`"
|
1089
|
-
},
|
1090
|
-
"van-date-picker/min-date": {
|
1091
|
-
"type": "Date",
|
1092
|
-
"description": "Min date, Default: Ten years ago on January 1"
|
1093
|
-
},
|
1094
|
-
"van-date-picker/max-date": {
|
1095
|
-
"type": "Date",
|
1096
|
-
"description": "Max date, Default: Ten years later on December 31"
|
1097
|
-
},
|
1098
|
-
"van-time-picker/min-hour": {
|
1099
|
-
"type": "number | string",
|
1100
|
-
"description": "Min hour for `time` type, Default: `0`"
|
1101
|
-
},
|
1102
|
-
"van-time-picker/max-hour": {
|
1103
|
-
"type": "number | string",
|
1104
|
-
"description": "Max hour for `time` type, Default: `23`"
|
1105
|
-
},
|
1106
|
-
"van-time-picker/min-minute": {
|
1107
|
-
"type": "number | string",
|
1108
|
-
"description": "Max minute for `time` type, Default: `0`"
|
1109
|
-
},
|
1110
|
-
"van-time-picker/max-minute": {
|
1111
|
-
"type": "number | string",
|
1112
|
-
"description": "Max minute for `time` type, Default: `59`"
|
1040
|
+
"description": "Default tag text, Default: -"
|
1113
1041
|
},
|
1114
1042
|
"van-coupon-cell/title": {
|
1115
1043
|
"type": "string",
|
@@ -1199,41 +1127,117 @@
|
|
1199
1127
|
"type": "boolean",
|
1200
1128
|
"description": "Whether to show coupon count in tab title, Default: `true`"
|
1201
1129
|
},
|
1202
|
-
"van-
|
1203
|
-
"type": "boolean",
|
1204
|
-
"description": "Whether to show dialog, Default: -"
|
1205
|
-
},
|
1206
|
-
"van-dialog/title": {
|
1130
|
+
"van-datetime-picker/type": {
|
1207
1131
|
"type": "string",
|
1208
|
-
"description": "
|
1209
|
-
},
|
1210
|
-
"van-dialog/width": {
|
1211
|
-
"type": "number | string",
|
1212
|
-
"description": "Width, Default: `320px`"
|
1132
|
+
"description": "Can be set to `date` `time`<br> `year-month` `month-day` `datehour`, Default: `datetime`"
|
1213
1133
|
},
|
1214
|
-
"van-
|
1215
|
-
"type": "string
|
1216
|
-
"description": "
|
1134
|
+
"van-datetime-picker/title": {
|
1135
|
+
"type": "string",
|
1136
|
+
"description": "Toolbar title, Default: `''`"
|
1217
1137
|
},
|
1218
|
-
"van-
|
1138
|
+
"van-datetime-picker/confirm-button-text": {
|
1219
1139
|
"type": "string",
|
1220
|
-
"description": "
|
1140
|
+
"description": "Text of confirm button, Default: `Confirm`"
|
1221
1141
|
},
|
1222
|
-
"van-
|
1142
|
+
"van-datetime-picker/cancel-button-text": {
|
1223
1143
|
"type": "string",
|
1224
|
-
"description": "
|
1144
|
+
"description": "Text of cancel button, Default: `Cancel`"
|
1225
1145
|
},
|
1226
|
-
"van-
|
1146
|
+
"van-datetime-picker/show-toolbar": {
|
1227
1147
|
"type": "boolean",
|
1228
|
-
"description": "Whether to show
|
1148
|
+
"description": "Whether to show toolbar, Default: `true`"
|
1229
1149
|
},
|
1230
|
-
"van-
|
1150
|
+
"van-datetime-picker/loading": {
|
1231
1151
|
"type": "boolean",
|
1232
|
-
"description": "Whether to show
|
1233
|
-
},
|
1234
|
-
"van-
|
1235
|
-
"type": "
|
1236
|
-
"description": "
|
1152
|
+
"description": "Whether to show loading prompt, Default: `false`"
|
1153
|
+
},
|
1154
|
+
"van-datetime-picker/readonly": {
|
1155
|
+
"type": "boolean",
|
1156
|
+
"description": "Whether to be readonly, Default: `false`"
|
1157
|
+
},
|
1158
|
+
"van-datetime-picker/filter": {
|
1159
|
+
"type": "(type: string, values: string[]) => string[]",
|
1160
|
+
"description": "Option filter, Default: -"
|
1161
|
+
},
|
1162
|
+
"van-datetime-picker/formatter": {
|
1163
|
+
"type": "(type: string, value: string) => string",
|
1164
|
+
"description": "Option text formatter, Default: -"
|
1165
|
+
},
|
1166
|
+
"van-datetime-picker/columns-order": {
|
1167
|
+
"type": "string[]",
|
1168
|
+
"description": "Array for ordering columns, where item can be set to<br> `year`, `month`, `day`, `hour` and `minute`, Default: -"
|
1169
|
+
},
|
1170
|
+
"van-datetime-picker/item-height": {
|
1171
|
+
"type": "number | string",
|
1172
|
+
"description": "Option height, supports `px` `vw` `vh` `rem` unit, default `px`, Default: `44`"
|
1173
|
+
},
|
1174
|
+
"van-datetime-picker/visible-item-count": {
|
1175
|
+
"type": "number | string",
|
1176
|
+
"description": "Count of visible columns, Default: `6`"
|
1177
|
+
},
|
1178
|
+
"van-datetime-picker/swipe-duration": {
|
1179
|
+
"type": "number | string",
|
1180
|
+
"description": "Duration of the momentum animation, unit `ms`, Default: `1000`"
|
1181
|
+
},
|
1182
|
+
"van-date-picker/min-date": {
|
1183
|
+
"type": "Date",
|
1184
|
+
"description": "Min date, Default: Ten years ago on January 1"
|
1185
|
+
},
|
1186
|
+
"van-date-picker/max-date": {
|
1187
|
+
"type": "Date",
|
1188
|
+
"description": "Max date, Default: Ten years later on December 31"
|
1189
|
+
},
|
1190
|
+
"van-time-picker/min-hour": {
|
1191
|
+
"type": "number | string",
|
1192
|
+
"description": "Min hour for `time` type, Default: `0`"
|
1193
|
+
},
|
1194
|
+
"van-time-picker/max-hour": {
|
1195
|
+
"type": "number | string",
|
1196
|
+
"description": "Max hour for `time` type, Default: `23`"
|
1197
|
+
},
|
1198
|
+
"van-time-picker/min-minute": {
|
1199
|
+
"type": "number | string",
|
1200
|
+
"description": "Max minute for `time` type, Default: `0`"
|
1201
|
+
},
|
1202
|
+
"van-time-picker/max-minute": {
|
1203
|
+
"type": "number | string",
|
1204
|
+
"description": "Max minute for `time` type, Default: `59`"
|
1205
|
+
},
|
1206
|
+
"van-dialog/v-model:show": {
|
1207
|
+
"type": "boolean",
|
1208
|
+
"description": "Whether to show dialog, Default: -"
|
1209
|
+
},
|
1210
|
+
"van-dialog/title": {
|
1211
|
+
"type": "string",
|
1212
|
+
"description": "Title, Default: -"
|
1213
|
+
},
|
1214
|
+
"van-dialog/width": {
|
1215
|
+
"type": "number | string",
|
1216
|
+
"description": "Width, Default: `320px`"
|
1217
|
+
},
|
1218
|
+
"van-dialog/message": {
|
1219
|
+
"type": "string | () => JSX.ELement",
|
1220
|
+
"description": "Message, Default: -"
|
1221
|
+
},
|
1222
|
+
"van-dialog/message-align": {
|
1223
|
+
"type": "string",
|
1224
|
+
"description": "Message align, can be set to `left` `right`, Default: `center`"
|
1225
|
+
},
|
1226
|
+
"van-dialog/theme": {
|
1227
|
+
"type": "string",
|
1228
|
+
"description": "Theme style, can be set to `round-button`, Default: `default`"
|
1229
|
+
},
|
1230
|
+
"van-dialog/show-confirm-button": {
|
1231
|
+
"type": "boolean",
|
1232
|
+
"description": "Whether to show confirm button, Default: `true`"
|
1233
|
+
},
|
1234
|
+
"van-dialog/show-cancel-button": {
|
1235
|
+
"type": "boolean",
|
1236
|
+
"description": "Whether to show cancel button, Default: `false`"
|
1237
|
+
},
|
1238
|
+
"van-dialog/cancel-button-text": {
|
1239
|
+
"type": "string",
|
1240
|
+
"description": "Cancel button text, Default: `Cancel`"
|
1237
1241
|
},
|
1238
1242
|
"van-dialog/cancel-button-color": {
|
1239
1243
|
"type": "string",
|
@@ -1531,6 +1535,58 @@
|
|
1531
1535
|
"type": "string",
|
1532
1536
|
"description": "HTML native attribute, see [MDN - enterkeyhint](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/enterkeyhint)<br>, Default: -"
|
1533
1537
|
},
|
1538
|
+
"van-form/label-width": {
|
1539
|
+
"type": "number | string",
|
1540
|
+
"description": "Field label width, Default: `6.2em`"
|
1541
|
+
},
|
1542
|
+
"van-form/label-align": {
|
1543
|
+
"type": "string",
|
1544
|
+
"description": "Field label align, can be set to `center` `right`, Default: `left`"
|
1545
|
+
},
|
1546
|
+
"van-form/input-align": {
|
1547
|
+
"type": "string",
|
1548
|
+
"description": "Field input align, can be set to `center` `right`, Default: `left`"
|
1549
|
+
},
|
1550
|
+
"van-form/error-message-align": {
|
1551
|
+
"type": "string",
|
1552
|
+
"description": "Error message align, can be set to `center` `right`, Default: `left`"
|
1553
|
+
},
|
1554
|
+
"van-form/validate-trigger": {
|
1555
|
+
"type": "string | string[]",
|
1556
|
+
"description": "When to validate the form, can be set to `onChange`、`onSubmit`, supports using array to set multiple values, Default: `onBlur`"
|
1557
|
+
},
|
1558
|
+
"van-form/colon": {
|
1559
|
+
"type": "boolean",
|
1560
|
+
"description": "Whether to display colon after label, Default: `false`"
|
1561
|
+
},
|
1562
|
+
"van-form/disabled": {
|
1563
|
+
"type": "boolean",
|
1564
|
+
"description": "Whether to disable form, Default: `false`"
|
1565
|
+
},
|
1566
|
+
"van-form/readonly": {
|
1567
|
+
"type": "boolean",
|
1568
|
+
"description": "Whether to be readonly, Default: `false`"
|
1569
|
+
},
|
1570
|
+
"van-form/validate-first": {
|
1571
|
+
"type": "boolean",
|
1572
|
+
"description": "Whether to stop the validation when a rule fails, Default: `false`"
|
1573
|
+
},
|
1574
|
+
"van-form/scroll-to-error": {
|
1575
|
+
"type": "boolean",
|
1576
|
+
"description": "Whether to scroll to the error field when validation failed, Default: `false`"
|
1577
|
+
},
|
1578
|
+
"van-form/show-error": {
|
1579
|
+
"type": "boolean",
|
1580
|
+
"description": "Whether to highlight input when validation failed, Default: `false`"
|
1581
|
+
},
|
1582
|
+
"van-form/show-error-message": {
|
1583
|
+
"type": "boolean",
|
1584
|
+
"description": "Whether to show error message when validation failed, Default: `true`"
|
1585
|
+
},
|
1586
|
+
"van-form/submit-on-enter": {
|
1587
|
+
"type": "boolean",
|
1588
|
+
"description": "Whether to submit form on enter, Default: `true`"
|
1589
|
+
},
|
1534
1590
|
"van-grid/column-num": {
|
1535
1591
|
"type": "number | string",
|
1536
1592
|
"description": "Column Num, Default: `4`"
|
@@ -1607,58 +1663,6 @@
|
|
1607
1663
|
"type": "boolean",
|
1608
1664
|
"description": "If true, the navigation will not leave a history record, Default: `false`"
|
1609
1665
|
},
|
1610
|
-
"van-form/label-width": {
|
1611
|
-
"type": "number | string",
|
1612
|
-
"description": "Field label width, Default: `6.2em`"
|
1613
|
-
},
|
1614
|
-
"van-form/label-align": {
|
1615
|
-
"type": "string",
|
1616
|
-
"description": "Field label align, can be set to `center` `right`, Default: `left`"
|
1617
|
-
},
|
1618
|
-
"van-form/input-align": {
|
1619
|
-
"type": "string",
|
1620
|
-
"description": "Field input align, can be set to `center` `right`, Default: `left`"
|
1621
|
-
},
|
1622
|
-
"van-form/error-message-align": {
|
1623
|
-
"type": "string",
|
1624
|
-
"description": "Error message align, can be set to `center` `right`, Default: `left`"
|
1625
|
-
},
|
1626
|
-
"van-form/validate-trigger": {
|
1627
|
-
"type": "string | string[]",
|
1628
|
-
"description": "When to validate the form, can be set to `onChange`、`onSubmit`, supports using array to set multiple values, Default: `onBlur`"
|
1629
|
-
},
|
1630
|
-
"van-form/colon": {
|
1631
|
-
"type": "boolean",
|
1632
|
-
"description": "Whether to display colon after label, Default: `false`"
|
1633
|
-
},
|
1634
|
-
"van-form/disabled": {
|
1635
|
-
"type": "boolean",
|
1636
|
-
"description": "Whether to disable form, Default: `false`"
|
1637
|
-
},
|
1638
|
-
"van-form/readonly": {
|
1639
|
-
"type": "boolean",
|
1640
|
-
"description": "Whether to be readonly, Default: `false`"
|
1641
|
-
},
|
1642
|
-
"van-form/validate-first": {
|
1643
|
-
"type": "boolean",
|
1644
|
-
"description": "Whether to stop the validation when a rule fails, Default: `false`"
|
1645
|
-
},
|
1646
|
-
"van-form/scroll-to-error": {
|
1647
|
-
"type": "boolean",
|
1648
|
-
"description": "Whether to scroll to the error field when validation failed, Default: `false`"
|
1649
|
-
},
|
1650
|
-
"van-form/show-error": {
|
1651
|
-
"type": "boolean",
|
1652
|
-
"description": "Whether to highlight input when validation failed, Default: `false`"
|
1653
|
-
},
|
1654
|
-
"van-form/show-error-message": {
|
1655
|
-
"type": "boolean",
|
1656
|
-
"description": "Whether to show error message when validation failed, Default: `true`"
|
1657
|
-
},
|
1658
|
-
"van-form/submit-on-enter": {
|
1659
|
-
"type": "boolean",
|
1660
|
-
"description": "Whether to submit form on enter, Default: `true`"
|
1661
|
-
},
|
1662
1666
|
"van-icon/name": {
|
1663
1667
|
"type": "string",
|
1664
1668
|
"description": "Icon name or URL, Default: `''`"
|
@@ -2263,93 +2267,89 @@
|
|
2263
2267
|
"type": "string",
|
2264
2268
|
"description": "Icon className prefix, Default: `van-icon`"
|
2265
2269
|
},
|
2266
|
-
"van-
|
2270
|
+
"van-popup/v-model:show": {
|
2267
2271
|
"type": "boolean",
|
2268
|
-
"description": "
|
2269
|
-
},
|
2270
|
-
"van-pull-refresh/pulling-text": {
|
2271
|
-
"type": "string",
|
2272
|
-
"description": "Text to show when pulling, Default: `Pull to refresh...`"
|
2273
|
-
},
|
2274
|
-
"van-pull-refresh/loosing-text": {
|
2275
|
-
"type": "string",
|
2276
|
-
"description": "Text to show when loosing, Default: `Loose to refresh...`"
|
2272
|
+
"description": "Whether to show popup, Default: `false`"
|
2277
2273
|
},
|
2278
|
-
"van-
|
2279
|
-
"type": "
|
2280
|
-
"description": "
|
2274
|
+
"van-popup/overlay": {
|
2275
|
+
"type": "boolean",
|
2276
|
+
"description": "Whether to show overlay, Default: `true`"
|
2281
2277
|
},
|
2282
|
-
"van-
|
2278
|
+
"van-popup/position": {
|
2283
2279
|
"type": "string",
|
2284
|
-
"description": "
|
2280
|
+
"description": "Can be set to `top` `bottom` `right` `left`, Default: `center`"
|
2285
2281
|
},
|
2286
|
-
"van-
|
2287
|
-
"type": "
|
2288
|
-
"description": "
|
2282
|
+
"van-popup/overlay-class": {
|
2283
|
+
"type": "string | Array | object",
|
2284
|
+
"description": "Custom overlay class, Default: -"
|
2289
2285
|
},
|
2290
|
-
"van-
|
2291
|
-
"type": "
|
2292
|
-
"description": "
|
2286
|
+
"van-popup/overlay-style": {
|
2287
|
+
"type": "object",
|
2288
|
+
"description": "Custom overlay style, Default: -"
|
2293
2289
|
},
|
2294
|
-
"van-
|
2290
|
+
"van-popup/duration": {
|
2295
2291
|
"type": "number | string",
|
2296
|
-
"description": "
|
2292
|
+
"description": "Transition duration, unit second, Default: `0.3`"
|
2297
2293
|
},
|
2298
|
-
"van-
|
2299
|
-
"type": "
|
2300
|
-
"description": "
|
2294
|
+
"van-popup/round": {
|
2295
|
+
"type": "boolean",
|
2296
|
+
"description": "Whether to show round corner, Default: `false`"
|
2301
2297
|
},
|
2302
|
-
"van-
|
2298
|
+
"van-popup/lock-scroll": {
|
2303
2299
|
"type": "boolean",
|
2304
|
-
"description": "Whether to
|
2300
|
+
"description": "Whether to lock background scroll, Default: `true`"
|
2305
2301
|
},
|
2306
|
-
"van-
|
2307
|
-
"type": "
|
2308
|
-
"description": "
|
2302
|
+
"van-popup/lazy-render": {
|
2303
|
+
"type": "boolean",
|
2304
|
+
"description": "Whether to lazy render util appeared, Default: `true`"
|
2309
2305
|
},
|
2310
|
-
"van-
|
2311
|
-
"type": "
|
2312
|
-
"description": "
|
2306
|
+
"van-popup/close-on-popstate": {
|
2307
|
+
"type": "boolean",
|
2308
|
+
"description": "Whether to close when popstate, Default: `false`"
|
2313
2309
|
},
|
2314
|
-
"van-
|
2310
|
+
"van-popup/close-on-click-overlay": {
|
2315
2311
|
"type": "boolean",
|
2316
|
-
"description": "Whether to
|
2312
|
+
"description": "Whether to close when overlay is clicked, Default: `true`"
|
2317
2313
|
},
|
2318
|
-
"van-
|
2314
|
+
"van-popup/closeable": {
|
2319
2315
|
"type": "boolean",
|
2320
|
-
"description": "Whether to
|
2316
|
+
"description": "Whether to show close icon, Default: `false`"
|
2321
2317
|
},
|
2322
|
-
"van-
|
2318
|
+
"van-popup/close-icon": {
|
2323
2319
|
"type": "string",
|
2324
|
-
"description": "
|
2320
|
+
"description": "Close icon name, Default: `cross`"
|
2325
2321
|
},
|
2326
|
-
"van-
|
2327
|
-
"type": "
|
2328
|
-
"description": "Icon
|
2322
|
+
"van-popup/close-icon-position": {
|
2323
|
+
"type": "string",
|
2324
|
+
"description": "Close Icon Position, can be set to `top-left` `bottom-left` `bottom-right`, Default: `top-right`"
|
2329
2325
|
},
|
2330
|
-
"van-
|
2326
|
+
"van-popup/before-close": {
|
2327
|
+
"type": "(action: string) => boolean | Promise\\<boolean\\>",
|
2328
|
+
"description": "Callback function before close, Default: -"
|
2329
|
+
},
|
2330
|
+
"van-popup/icon-prefix": {
|
2331
2331
|
"type": "string",
|
2332
|
-
"description": "
|
2332
|
+
"description": "Icon className prefix, Default: `van-icon`"
|
2333
2333
|
},
|
2334
|
-
"van-
|
2335
|
-
"type": "
|
2336
|
-
"description": "
|
2334
|
+
"van-popup/transition": {
|
2335
|
+
"type": "string",
|
2336
|
+
"description": "Transition, equivalent to `name` prop of [transition](https://v3.vuejs.org/api/built-in-components.html#transition), Default: -"
|
2337
2337
|
},
|
2338
|
-
"van-
|
2338
|
+
"van-popup/transition-appear": {
|
2339
2339
|
"type": "boolean",
|
2340
|
-
"description": "
|
2340
|
+
"description": "Whether to apply transition on initial render, Default: `false`"
|
2341
2341
|
},
|
2342
|
-
"van-
|
2343
|
-
"type": "string",
|
2344
|
-
"description": "
|
2342
|
+
"van-popup/teleport": {
|
2343
|
+
"type": "string | Element",
|
2344
|
+
"description": "Specifies a target element where Popup will be mounted, Default: -"
|
2345
2345
|
},
|
2346
|
-
"van-
|
2347
|
-
"type": "
|
2348
|
-
"description": "
|
2346
|
+
"van-popup/safe-area-inset-top": {
|
2347
|
+
"type": "boolean",
|
2348
|
+
"description": "Whether to enable top safe area adaptation, Default: `false`"
|
2349
2349
|
},
|
2350
|
-
"van-
|
2351
|
-
"type": "
|
2352
|
-
"description": "
|
2350
|
+
"van-popup/safe-area-inset-bottom": {
|
2351
|
+
"type": "boolean",
|
2352
|
+
"description": "Whether to enable bottom safe area adaptation, Default: `false`"
|
2353
2353
|
},
|
2354
2354
|
"van-progress/percentage": {
|
2355
2355
|
"type": "number | string",
|
@@ -2387,89 +2387,93 @@
|
|
2387
2387
|
"type": "boolean",
|
2388
2388
|
"description": "Whether to show text, Default: `true`"
|
2389
2389
|
},
|
2390
|
-
"van-
|
2390
|
+
"van-pull-refresh/v-model": {
|
2391
2391
|
"type": "boolean",
|
2392
|
-
"description": "
|
2392
|
+
"description": "Loading status, Default: -"
|
2393
2393
|
},
|
2394
|
-
"van-
|
2395
|
-
"type": "
|
2396
|
-
"description": "
|
2394
|
+
"van-pull-refresh/pulling-text": {
|
2395
|
+
"type": "string",
|
2396
|
+
"description": "Text to show when pulling, Default: `Pull to refresh...`"
|
2397
2397
|
},
|
2398
|
-
"van-
|
2398
|
+
"van-pull-refresh/loosing-text": {
|
2399
2399
|
"type": "string",
|
2400
|
-
"description": "
|
2400
|
+
"description": "Text to show when loosing, Default: `Loose to refresh...`"
|
2401
2401
|
},
|
2402
|
-
"van-
|
2403
|
-
"type": "string
|
2404
|
-
"description": "
|
2402
|
+
"van-pull-refresh/loading-text": {
|
2403
|
+
"type": "string",
|
2404
|
+
"description": "Text to show when loading, Default: `Loading...`"
|
2405
2405
|
},
|
2406
|
-
"van-
|
2407
|
-
"type": "
|
2408
|
-
"description": "
|
2406
|
+
"van-pull-refresh/success-text": {
|
2407
|
+
"type": "string",
|
2408
|
+
"description": "Text to show when loading success, Default: -"
|
2409
2409
|
},
|
2410
|
-
"van-
|
2410
|
+
"van-pull-refresh/success-duration": {
|
2411
2411
|
"type": "number | string",
|
2412
|
-
"description": "
|
2412
|
+
"description": "Success text display duration(ms), Default: `500`"
|
2413
2413
|
},
|
2414
|
-
"van-
|
2415
|
-
"type": "
|
2416
|
-
"description": "
|
2414
|
+
"van-pull-refresh/animation-duration": {
|
2415
|
+
"type": "number | string",
|
2416
|
+
"description": "Animation duration, Default: `300`"
|
2417
2417
|
},
|
2418
|
-
"van-
|
2419
|
-
"type": "
|
2420
|
-
"description": "
|
2418
|
+
"van-pull-refresh/head-height": {
|
2419
|
+
"type": "number | string",
|
2420
|
+
"description": "Height of head, Default: `50`"
|
2421
2421
|
},
|
2422
|
-
"van-
|
2423
|
-
"type": "
|
2424
|
-
"description": "
|
2422
|
+
"van-pull-refresh/pull-distance": {
|
2423
|
+
"type": "number | string",
|
2424
|
+
"description": "The distance to trigger the pull refresh, Default: same as `head-height`"
|
2425
2425
|
},
|
2426
|
-
"van-
|
2426
|
+
"van-pull-refresh/disabled": {
|
2427
2427
|
"type": "boolean",
|
2428
|
-
"description": "Whether to
|
2428
|
+
"description": "Whether to disable pull refresh, Default: `false`"
|
2429
2429
|
},
|
2430
|
-
"van-
|
2431
|
-
"type": "
|
2432
|
-
"description": "
|
2430
|
+
"van-radio/name": {
|
2431
|
+
"type": "any",
|
2432
|
+
"description": "Radio name, Default: -"
|
2433
2433
|
},
|
2434
|
-
"van-
|
2434
|
+
"van-radio/shape": {
|
2435
|
+
"type": "string",
|
2436
|
+
"description": "Can be set to `square`, Default: `round`"
|
2437
|
+
},
|
2438
|
+
"van-radio/disabled": {
|
2435
2439
|
"type": "boolean",
|
2436
|
-
"description": "Whether to
|
2440
|
+
"description": "Whether to disable radio, Default: `false`"
|
2437
2441
|
},
|
2438
|
-
"van-
|
2439
|
-
"type": "
|
2440
|
-
"description": "
|
2442
|
+
"van-radio/label-disabled": {
|
2443
|
+
"type": "boolean",
|
2444
|
+
"description": "Whether to disable label click, Default: `false`"
|
2441
2445
|
},
|
2442
|
-
"van-
|
2446
|
+
"van-radio/label-position": {
|
2443
2447
|
"type": "string",
|
2444
|
-
"description": "
|
2448
|
+
"description": "Can be set to `left`, Default: `right`"
|
2445
2449
|
},
|
2446
|
-
"van-
|
2447
|
-
"type": "
|
2448
|
-
"description": "
|
2450
|
+
"van-radio/icon-size": {
|
2451
|
+
"type": "number | string",
|
2452
|
+
"description": "Icon size, Default: `20px`"
|
2449
2453
|
},
|
2450
|
-
"van-
|
2454
|
+
"van-radio/checked-color": {
|
2451
2455
|
"type": "string",
|
2452
|
-
"description": "
|
2456
|
+
"description": "Checked color, Default: `#1989fa`"
|
2453
2457
|
},
|
2454
|
-
"van-
|
2455
|
-
"type": "
|
2456
|
-
"description": "
|
2458
|
+
"van-radio-group/v-model": {
|
2459
|
+
"type": "any",
|
2460
|
+
"description": "Name of checked radio, Default: -"
|
2457
2461
|
},
|
2458
|
-
"van-
|
2462
|
+
"van-radio-group/disabled": {
|
2459
2463
|
"type": "boolean",
|
2460
|
-
"description": "
|
2464
|
+
"description": "Disable all radios, Default: `false`"
|
2461
2465
|
},
|
2462
|
-
"van-
|
2463
|
-
"type": "string
|
2464
|
-
"description": "
|
2466
|
+
"van-radio-group/direction": {
|
2467
|
+
"type": "string",
|
2468
|
+
"description": "Direction, can be set to `horizontal`, Default: `vertical`"
|
2465
2469
|
},
|
2466
|
-
"van-
|
2467
|
-
"type": "
|
2468
|
-
"description": "
|
2470
|
+
"van-radio-group/icon-size": {
|
2471
|
+
"type": "number | string",
|
2472
|
+
"description": "Icon size of all radios, Default: `20px`"
|
2469
2473
|
},
|
2470
|
-
"van-
|
2471
|
-
"type": "
|
2472
|
-
"description": "
|
2474
|
+
"van-radio-group/checked-color": {
|
2475
|
+
"type": "string",
|
2476
|
+
"description": "Checked color of all radios, Default: `#1989fa`"
|
2473
2477
|
},
|
2474
2478
|
"van-rate/v-model": {
|
2475
2479
|
"type": "number",
|
@@ -2819,26 +2823,6 @@
|
|
2819
2823
|
"type": "boolean",
|
2820
2824
|
"description": "Whether to display slider vertically, Default: `false`"
|
2821
2825
|
},
|
2822
|
-
"van-sticky/position": {
|
2823
|
-
"type": "string",
|
2824
|
-
"description": "Offset position, can be set to `bottom`, Default: `top`"
|
2825
|
-
},
|
2826
|
-
"van-sticky/offset-top": {
|
2827
|
-
"type": "number | string",
|
2828
|
-
"description": "Offset top, supports `px` `vw` `vh` `rem` unit, default `px`, Default: `0`"
|
2829
|
-
},
|
2830
|
-
"van-sticky/offset-bottom": {
|
2831
|
-
"type": "number | string",
|
2832
|
-
"description": "Offset bottom, supports `px` `vw` `vh` `rem` unit, default `px`, Default: `0`"
|
2833
|
-
},
|
2834
|
-
"van-sticky/z-index": {
|
2835
|
-
"type": "number | string",
|
2836
|
-
"description": "z-index when sticky, Default: `99`"
|
2837
|
-
},
|
2838
|
-
"van-sticky/container": {
|
2839
|
-
"type": "Element",
|
2840
|
-
"description": "Container DOM, Default: -"
|
2841
|
-
},
|
2842
2826
|
"van-stepper/v-model": {
|
2843
2827
|
"type": "number | string",
|
2844
2828
|
"description": "Current value, Default: -"
|
@@ -2959,6 +2943,26 @@
|
|
2959
2943
|
"type": "string",
|
2960
2944
|
"description": "Icon className prefix, Default: `van-icon`"
|
2961
2945
|
},
|
2946
|
+
"van-sticky/position": {
|
2947
|
+
"type": "string",
|
2948
|
+
"description": "Offset position, can be set to `bottom`, Default: `top`"
|
2949
|
+
},
|
2950
|
+
"van-sticky/offset-top": {
|
2951
|
+
"type": "number | string",
|
2952
|
+
"description": "Offset top, supports `px` `vw` `vh` `rem` unit, default `px`, Default: `0`"
|
2953
|
+
},
|
2954
|
+
"van-sticky/offset-bottom": {
|
2955
|
+
"type": "number | string",
|
2956
|
+
"description": "Offset bottom, supports `px` `vw` `vh` `rem` unit, default `px`, Default: `0`"
|
2957
|
+
},
|
2958
|
+
"van-sticky/z-index": {
|
2959
|
+
"type": "number | string",
|
2960
|
+
"description": "z-index when sticky, Default: `99`"
|
2961
|
+
},
|
2962
|
+
"van-sticky/container": {
|
2963
|
+
"type": "Element",
|
2964
|
+
"description": "Container DOM, Default: -"
|
2965
|
+
},
|
2962
2966
|
"van-submit-bar/price": {
|
2963
2967
|
"type": "number",
|
2964
2968
|
"description": "Price, Default: -"
|
@@ -3015,6 +3019,10 @@
|
|
3015
3019
|
"type": "boolean",
|
3016
3020
|
"description": "Whether to enable bottom safe area adaptation, Default: `true`"
|
3017
3021
|
},
|
3022
|
+
"van-submit-bar/placeholder": {
|
3023
|
+
"type": "boolean",
|
3024
|
+
"description": "Whether to generate a placeholder element, Default: `false`"
|
3025
|
+
},
|
3018
3026
|
"van-swipe/autoplay": {
|
3019
3027
|
"type": "number | string",
|
3020
3028
|
"description": "Autoplay interval (ms), Default: -"
|