vant 3.6.4 → 3.6.5

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.
@@ -2,7 +2,7 @@
2
2
  "$schema": "https://raw.githubusercontent.com/JetBrains/web-types/master/schema/web-types.json",
3
3
  "framework": "vue",
4
4
  "name": "vant",
5
- "version": "3.6.4",
5
+ "version": "3.6.5",
6
6
  "contributions": {
7
7
  "html": {
8
8
  "tags": [
@@ -4747,138 +4747,40 @@
4747
4747
  ]
4748
4748
  },
4749
4749
  {
4750
- "name": "van-field",
4750
+ "name": "van-form",
4751
4751
  "slots": [
4752
4752
  {
4753
- "name": "label",
4754
- "description": "Custom label"
4755
- },
4756
- {
4757
- "name": "input",
4758
- "description": "Custom input"
4759
- },
4760
- {
4761
- "name": "left-icon",
4762
- "description": "Custom left icon"
4763
- },
4764
- {
4765
- "name": "right-icon",
4766
- "description": "Custom right icon"
4767
- },
4768
- {
4769
- "name": "button",
4770
- "description": "Insert button"
4771
- },
4772
- {
4773
- "name": "error-message",
4774
- "description": "Custom error message"
4775
- },
4776
- {
4777
- "name": "extra",
4778
- "description": "Custom content on the right"
4753
+ "name": "default",
4754
+ "description": "Form content"
4779
4755
  }
4780
4756
  ],
4781
4757
  "events": [
4782
4758
  {
4783
- "name": "update:model-value",
4784
- "description": "Emitted when input value changed",
4785
- "arguments": [
4786
- {
4787
- "name": "value",
4788
- "type": "string"
4789
- }
4790
- ]
4791
- },
4792
- {
4793
- "name": "focus",
4794
- "description": "Emitted when input is focused",
4795
- "arguments": [
4796
- {
4797
- "name": "event",
4798
- "type": "Event"
4799
- }
4800
- ]
4801
- },
4802
- {
4803
- "name": "blur",
4804
- "description": "Emitted when input is blurred",
4805
- "arguments": [
4806
- {
4807
- "name": "event",
4808
- "type": "Event"
4809
- }
4810
- ]
4811
- },
4812
- {
4813
- "name": "clear",
4814
- "description": "Emitted when the clear icon is clicked",
4815
- "arguments": [
4816
- {
4817
- "name": "event",
4818
- "type": "MouseEvent"
4819
- }
4820
- ]
4821
- },
4822
- {
4823
- "name": "click",
4824
- "description": "Emitted when component is clicked",
4825
- "arguments": [
4826
- {
4827
- "name": "event",
4828
- "type": "MouseEvent"
4829
- }
4830
- ]
4831
- },
4832
- {
4833
- "name": "click-input",
4834
- "description": "Emitted when the input is clicked",
4835
- "arguments": [
4836
- {
4837
- "name": "event",
4838
- "type": "MouseEvent"
4839
- }
4840
- ]
4841
- },
4842
- {
4843
- "name": "click-left-icon",
4844
- "description": "Emitted when the left icon is clicked",
4845
- "arguments": [
4846
- {
4847
- "name": "event",
4848
- "type": "MouseEvent"
4849
- }
4850
- ]
4851
- },
4852
- {
4853
- "name": "click-right-icon",
4854
- "description": "Emitted when the right icon is clicked",
4759
+ "name": "submit",
4760
+ "description": "Emitted after submitting the form and validation passed",
4855
4761
  "arguments": [
4856
4762
  {
4857
- "name": "event",
4858
- "type": "MouseEvent"
4763
+ "name": "values",
4764
+ "type": "object"
4859
4765
  }
4860
4766
  ]
4861
4767
  },
4862
4768
  {
4863
- "name": "start-validate",
4864
- "description": "Emitted when start validation",
4865
- "arguments": []
4866
- },
4867
- {
4868
- "name": "end-validate",
4869
- "description": "Emitted when end validation",
4769
+ "name": "failed",
4770
+ "description": "Emitted after submitting the form and validation failed",
4870
4771
  "arguments": [
4871
4772
  {
4872
- "name": "{ status: string }"
4773
+ "name": "errorInfo",
4774
+ "type": "{ values: object, errors: object[] }"
4873
4775
  }
4874
4776
  ]
4875
4777
  }
4876
4778
  ],
4877
4779
  "attributes": [
4878
4780
  {
4879
- "name": "v-model",
4880
- "default": "-",
4881
- "description": "Input value",
4781
+ "name": "label-width",
4782
+ "default": "`6.2em`",
4783
+ "description": "Field label width",
4882
4784
  "options": [],
4883
4785
  "value": {
4884
4786
  "type": "number | string",
@@ -4886,9 +4788,9 @@
4886
4788
  }
4887
4789
  },
4888
4790
  {
4889
- "name": "label",
4890
- "default": "-",
4891
- "description": "Left side label",
4791
+ "name": "label-align",
4792
+ "default": "`left`",
4793
+ "description": "Field label align, can be set to `center` `right`",
4892
4794
  "options": [],
4893
4795
  "value": {
4894
4796
  "type": "string",
@@ -4896,9 +4798,9 @@
4896
4798
  }
4897
4799
  },
4898
4800
  {
4899
- "name": "name",
4900
- "default": "-",
4901
- "description": "As the identifier when submitting the form",
4801
+ "name": "input-align",
4802
+ "default": "`left`",
4803
+ "description": "Field input align, can be set to `center` `right`",
4902
4804
  "options": [],
4903
4805
  "value": {
4904
4806
  "type": "string",
@@ -4906,9 +4808,9 @@
4906
4808
  }
4907
4809
  },
4908
4810
  {
4909
- "name": "id",
4910
- "default": "`van-field-n-input`",
4911
- "description": "Input id, the for attribute of the label also will be set",
4811
+ "name": "error-message-align",
4812
+ "default": "`left`",
4813
+ "description": "Error message align, can be set to `center` `right`",
4912
4814
  "options": [],
4913
4815
  "value": {
4914
4816
  "type": "string",
@@ -4916,49 +4818,49 @@
4916
4818
  }
4917
4819
  },
4918
4820
  {
4919
- "name": "type",
4920
- "default": "`text`",
4921
- "description": "Input type, support all [native types](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#input_types) and `digit` type",
4821
+ "name": "validate-trigger",
4822
+ "default": "`onBlur`",
4823
+ "description": "When to validate the form, can be set to `onChange`、`onSubmit`, supports using array to set multiple values",
4922
4824
  "options": [],
4923
4825
  "value": {
4924
- "type": "FieldType",
4826
+ "type": "string | string[]",
4925
4827
  "kind": "expression"
4926
4828
  }
4927
4829
  },
4928
4830
  {
4929
- "name": "size",
4930
- "default": "-",
4931
- "description": "Size, can be set to `large`",
4831
+ "name": "colon",
4832
+ "default": "`false`",
4833
+ "description": "Whether to display colon after label",
4932
4834
  "options": [],
4933
4835
  "value": {
4934
- "type": "string",
4836
+ "type": "boolean",
4935
4837
  "kind": "expression"
4936
4838
  }
4937
4839
  },
4938
4840
  {
4939
- "name": "maxlength",
4940
- "default": "-",
4941
- "description": "Max length of value",
4841
+ "name": "disabled",
4842
+ "default": "`false`",
4843
+ "description": "Whether to disable form",
4942
4844
  "options": [],
4943
4845
  "value": {
4944
- "type": "number | string",
4846
+ "type": "boolean",
4945
4847
  "kind": "expression"
4946
4848
  }
4947
4849
  },
4948
4850
  {
4949
- "name": "placeholder",
4950
- "default": "-",
4951
- "description": "Input placeholder",
4851
+ "name": "readonly",
4852
+ "default": "`false`",
4853
+ "description": "Whether to be readonly",
4952
4854
  "options": [],
4953
4855
  "value": {
4954
- "type": "string",
4856
+ "type": "boolean",
4955
4857
  "kind": "expression"
4956
4858
  }
4957
4859
  },
4958
4860
  {
4959
- "name": "border",
4960
- "default": "`true`",
4961
- "description": "Whether to show inner border",
4861
+ "name": "validate-first",
4862
+ "default": "`false`",
4863
+ "description": "Whether to stop the validation when a rule fails",
4962
4864
  "options": [],
4963
4865
  "value": {
4964
4866
  "type": "boolean",
@@ -4966,9 +4868,9 @@
4966
4868
  }
4967
4869
  },
4968
4870
  {
4969
- "name": "disabled",
4871
+ "name": "scroll-to-error",
4970
4872
  "default": "`false`",
4971
- "description": "Whether to disable field",
4873
+ "description": "Whether to scroll to the error field when validation failed",
4972
4874
  "options": [],
4973
4875
  "value": {
4974
4876
  "type": "boolean",
@@ -4976,9 +4878,9 @@
4976
4878
  }
4977
4879
  },
4978
4880
  {
4979
- "name": "readonly",
4881
+ "name": "show-error",
4980
4882
  "default": "`false`",
4981
- "description": "Whether to be readonly",
4883
+ "description": "Whether to highlight input when validation failed",
4982
4884
  "options": [],
4983
4885
  "value": {
4984
4886
  "type": "boolean",
@@ -4986,9 +4888,9 @@
4986
4888
  }
4987
4889
  },
4988
4890
  {
4989
- "name": "colon",
4990
- "default": "`false`",
4991
- "description": "Whether to display colon after label",
4891
+ "name": "show-error-message",
4892
+ "default": "`true`",
4893
+ "description": "Whether to show error message when validation failed",
4992
4894
  "options": [],
4993
4895
  "value": {
4994
4896
  "type": "boolean",
@@ -4996,29 +4898,56 @@
4996
4898
  }
4997
4899
  },
4998
4900
  {
4999
- "name": "required",
5000
- "default": "`false`",
5001
- "description": "Whether to show required mark",
4901
+ "name": "submit-on-enter",
4902
+ "default": "`true`",
4903
+ "description": "Whether to submit form on enter",
5002
4904
  "options": [],
5003
4905
  "value": {
5004
4906
  "type": "boolean",
5005
4907
  "kind": "expression"
5006
4908
  }
4909
+ }
4910
+ ]
4911
+ },
4912
+ {
4913
+ "name": "van-grid",
4914
+ "slots": [],
4915
+ "events": [],
4916
+ "attributes": [
4917
+ {
4918
+ "name": "column-num",
4919
+ "default": "`4`",
4920
+ "description": "Column Num",
4921
+ "options": [],
4922
+ "value": {
4923
+ "type": "number | string",
4924
+ "kind": "expression"
4925
+ }
5007
4926
  },
5008
4927
  {
5009
- "name": "center",
5010
- "default": "`true`",
5011
- "description": "Whether to center content vertically",
4928
+ "name": "icon-size",
4929
+ "default": "`28px`",
4930
+ "description": "Icon size",
5012
4931
  "options": [],
5013
4932
  "value": {
5014
- "type": "boolean",
4933
+ "type": "number | string",
5015
4934
  "kind": "expression"
5016
4935
  }
5017
4936
  },
5018
4937
  {
5019
- "name": "clearable",
5020
- "default": "`false`",
5021
- "description": "Whether to be clearable",
4938
+ "name": "gutter",
4939
+ "default": "`0`",
4940
+ "description": "Gutter",
4941
+ "options": [],
4942
+ "value": {
4943
+ "type": "number | string",
4944
+ "kind": "expression"
4945
+ }
4946
+ },
4947
+ {
4948
+ "name": "border",
4949
+ "default": "`true`",
4950
+ "description": "Whether to show border",
5022
4951
  "options": [],
5023
4952
  "value": {
5024
4953
  "type": "boolean",
@@ -5026,22 +4955,22 @@
5026
4955
  }
5027
4956
  },
5028
4957
  {
5029
- "name": "clear-icon",
5030
- "default": "`clear`",
5031
- "description": "Clear icon name",
4958
+ "name": "center",
4959
+ "default": "`true`",
4960
+ "description": "Whether to center content",
5032
4961
  "options": [],
5033
4962
  "value": {
5034
- "type": "string",
4963
+ "type": "boolean",
5035
4964
  "kind": "expression"
5036
4965
  }
5037
4966
  },
5038
4967
  {
5039
- "name": "clear-trigger",
5040
- "default": "`focus`",
5041
- "description": "When to display the clear icon, `always` means to display the icon when value is not empty, `focus` means to display the icon when input is focused",
4968
+ "name": "square",
4969
+ "default": "`false`",
4970
+ "description": "Whether to be square shape",
5042
4971
  "options": [],
5043
4972
  "value": {
5044
- "type": "FieldClearTrigger",
4973
+ "type": "boolean",
5045
4974
  "kind": "expression"
5046
4975
  }
5047
4976
  },
@@ -5056,49 +4985,90 @@
5056
4985
  }
5057
4986
  },
5058
4987
  {
5059
- "name": "is-link",
5060
- "default": "`false`",
5061
- "description": "Whether to show link icon",
4988
+ "name": "direction",
4989
+ "default": "`vertical`",
4990
+ "description": "Content arrangement direction, can be set to `horizontal`",
5062
4991
  "options": [],
5063
4992
  "value": {
5064
- "type": "boolean",
4993
+ "type": "string",
5065
4994
  "kind": "expression"
5066
4995
  }
5067
4996
  },
5068
4997
  {
5069
- "name": "autofocus",
4998
+ "name": "reverse",
5070
4999
  "default": "`false`",
5071
- "description": "Whether to auto focus, unsupported in iOS",
5000
+ "description": "Whether to reverse the position of icon and text",
5072
5001
  "options": [],
5073
5002
  "value": {
5074
5003
  "type": "boolean",
5075
5004
  "kind": "expression"
5076
5005
  }
5006
+ }
5007
+ ]
5008
+ },
5009
+ {
5010
+ "name": "van-grid-item",
5011
+ "slots": [
5012
+ {
5013
+ "name": "default",
5014
+ "description": "Custom content"
5077
5015
  },
5078
5016
  {
5079
- "name": "show-word-limit",
5080
- "default": "`false`",
5081
- "description": "Whether to show word limit, need to set the `maxlength` prop",
5017
+ "name": "icon",
5018
+ "description": "Custom icon"
5019
+ },
5020
+ {
5021
+ "name": "text",
5022
+ "description": "Custom text"
5023
+ }
5024
+ ],
5025
+ "events": [
5026
+ {
5027
+ "name": "click",
5028
+ "description": "Emitted when component is clicked",
5029
+ "arguments": [
5030
+ {
5031
+ "name": "event",
5032
+ "type": "MouseEvent"
5033
+ }
5034
+ ]
5035
+ }
5036
+ ],
5037
+ "attributes": [
5038
+ {
5039
+ "name": "text",
5040
+ "default": "-",
5041
+ "description": "Text",
5082
5042
  "options": [],
5083
5043
  "value": {
5084
- "type": "boolean",
5044
+ "type": "string",
5085
5045
  "kind": "expression"
5086
5046
  }
5087
5047
  },
5088
5048
  {
5089
- "name": "error",
5090
- "default": "`false`",
5091
- "description": "Whether to mark the input content in red",
5049
+ "name": "icon",
5050
+ "default": "-",
5051
+ "description": "Icon name or URL",
5092
5052
  "options": [],
5093
5053
  "value": {
5094
- "type": "boolean",
5054
+ "type": "string",
5095
5055
  "kind": "expression"
5096
5056
  }
5097
5057
  },
5098
5058
  {
5099
- "name": "error-message",
5059
+ "name": "icon-prefix",
5060
+ "default": "`van-icon`",
5061
+ "description": "Icon className prefix",
5062
+ "options": [],
5063
+ "value": {
5064
+ "type": "string",
5065
+ "kind": "expression"
5066
+ }
5067
+ },
5068
+ {
5069
+ "name": "icon-color",
5100
5070
  "default": "-",
5101
- "description": "Error message",
5071
+ "description": "Icon color",
5102
5072
  "options": [],
5103
5073
  "value": {
5104
5074
  "type": "string",
@@ -5106,39 +5076,39 @@
5106
5076
  }
5107
5077
  },
5108
5078
  {
5109
- "name": "error-message-align",
5110
- "default": "`left`",
5111
- "description": "Error message align, can be set to `center` `right`",
5079
+ "name": "dot",
5080
+ "default": "`false`",
5081
+ "description": "Whether to show red dot",
5112
5082
  "options": [],
5113
5083
  "value": {
5114
- "type": "FieldTextAlign",
5084
+ "type": "boolean",
5115
5085
  "kind": "expression"
5116
5086
  }
5117
5087
  },
5118
5088
  {
5119
- "name": "formatter",
5089
+ "name": "badge",
5120
5090
  "default": "-",
5121
- "description": "Input value formatter",
5091
+ "description": "Content of the badge",
5122
5092
  "options": [],
5123
5093
  "value": {
5124
- "type": "(val: string) => string",
5094
+ "type": "number | string",
5125
5095
  "kind": "expression"
5126
5096
  }
5127
5097
  },
5128
5098
  {
5129
- "name": "format-trigger",
5130
- "default": "`onChange`",
5131
- "description": "When to format value, can be set to `onBlur`",
5099
+ "name": "badge-props",
5100
+ "default": "-",
5101
+ "description": "Props of Badge, see [Badge - props](#/en-US/badge#props)",
5132
5102
  "options": [],
5133
5103
  "value": {
5134
- "type": "FieldFormatTrigger",
5104
+ "type": "BadgeProps",
5135
5105
  "kind": "expression"
5136
5106
  }
5137
5107
  },
5138
5108
  {
5139
- "name": "arrow-direction",
5140
- "default": "`right`",
5141
- "description": "Can be set to `left` `up` `down`",
5109
+ "name": "url",
5110
+ "default": "-",
5111
+ "description": "Link URL",
5142
5112
  "options": [],
5143
5113
  "value": {
5144
5114
  "type": "string",
@@ -5146,59 +5116,170 @@
5146
5116
  }
5147
5117
  },
5148
5118
  {
5149
- "name": "label-class",
5150
- "default": "-",
5151
- "description": "Label className",
5152
- "options": [],
5153
- "value": {
5154
- "type": "string | Array | object",
5155
- "kind": "expression"
5156
- }
5119
+ "name": "to",
5120
+ "default": "-",
5121
+ "description": "Target route of the link, same as to of vue-router",
5122
+ "options": [],
5123
+ "value": {
5124
+ "type": "string | object",
5125
+ "kind": "expression"
5126
+ }
5127
+ },
5128
+ {
5129
+ "name": "replace",
5130
+ "default": "`false`",
5131
+ "description": "If true, the navigation will not leave a history record",
5132
+ "options": [],
5133
+ "value": {
5134
+ "type": "boolean",
5135
+ "kind": "expression"
5136
+ }
5137
+ }
5138
+ ]
5139
+ },
5140
+ {
5141
+ "name": "van-field",
5142
+ "slots": [
5143
+ {
5144
+ "name": "label",
5145
+ "description": "Custom label"
5146
+ },
5147
+ {
5148
+ "name": "input",
5149
+ "description": "Custom input"
5150
+ },
5151
+ {
5152
+ "name": "left-icon",
5153
+ "description": "Custom left icon"
5154
+ },
5155
+ {
5156
+ "name": "right-icon",
5157
+ "description": "Custom right icon"
5158
+ },
5159
+ {
5160
+ "name": "button",
5161
+ "description": "Insert button"
5162
+ },
5163
+ {
5164
+ "name": "error-message",
5165
+ "description": "Custom error message"
5166
+ },
5167
+ {
5168
+ "name": "extra",
5169
+ "description": "Custom content on the right"
5170
+ }
5171
+ ],
5172
+ "events": [
5173
+ {
5174
+ "name": "update:model-value",
5175
+ "description": "Emitted when input value changed",
5176
+ "arguments": [
5177
+ {
5178
+ "name": "value",
5179
+ "type": "string"
5180
+ }
5181
+ ]
5182
+ },
5183
+ {
5184
+ "name": "focus",
5185
+ "description": "Emitted when input is focused",
5186
+ "arguments": [
5187
+ {
5188
+ "name": "event",
5189
+ "type": "Event"
5190
+ }
5191
+ ]
5192
+ },
5193
+ {
5194
+ "name": "blur",
5195
+ "description": "Emitted when input is blurred",
5196
+ "arguments": [
5197
+ {
5198
+ "name": "event",
5199
+ "type": "Event"
5200
+ }
5201
+ ]
5202
+ },
5203
+ {
5204
+ "name": "clear",
5205
+ "description": "Emitted when the clear icon is clicked",
5206
+ "arguments": [
5207
+ {
5208
+ "name": "event",
5209
+ "type": "MouseEvent"
5210
+ }
5211
+ ]
5212
+ },
5213
+ {
5214
+ "name": "click",
5215
+ "description": "Emitted when component is clicked",
5216
+ "arguments": [
5217
+ {
5218
+ "name": "event",
5219
+ "type": "MouseEvent"
5220
+ }
5221
+ ]
5222
+ },
5223
+ {
5224
+ "name": "click-input",
5225
+ "description": "Emitted when the input is clicked",
5226
+ "arguments": [
5227
+ {
5228
+ "name": "event",
5229
+ "type": "MouseEvent"
5230
+ }
5231
+ ]
5232
+ },
5233
+ {
5234
+ "name": "click-left-icon",
5235
+ "description": "Emitted when the left icon is clicked",
5236
+ "arguments": [
5237
+ {
5238
+ "name": "event",
5239
+ "type": "MouseEvent"
5240
+ }
5241
+ ]
5157
5242
  },
5158
5243
  {
5159
- "name": "label-width",
5160
- "default": "`6.2em`",
5161
- "description": "Label width",
5162
- "options": [],
5163
- "value": {
5164
- "type": "number | string",
5165
- "kind": "expression"
5166
- }
5244
+ "name": "click-right-icon",
5245
+ "description": "Emitted when the right icon is clicked",
5246
+ "arguments": [
5247
+ {
5248
+ "name": "event",
5249
+ "type": "MouseEvent"
5250
+ }
5251
+ ]
5167
5252
  },
5168
5253
  {
5169
- "name": "label-align",
5170
- "default": "`left`",
5171
- "description": "Label align, can be set to `center` `right`",
5172
- "options": [],
5173
- "value": {
5174
- "type": "FieldTextAlign",
5175
- "kind": "expression"
5176
- }
5254
+ "name": "start-validate",
5255
+ "description": "Emitted when start validation",
5256
+ "arguments": []
5177
5257
  },
5178
5258
  {
5179
- "name": "input-align",
5180
- "default": "`left`",
5181
- "description": "Input align, can be set to `center` `right`",
5182
- "options": [],
5183
- "value": {
5184
- "type": "FieldTextAlign",
5185
- "kind": "expression"
5186
- }
5187
- },
5259
+ "name": "end-validate",
5260
+ "description": "Emitted when end validation",
5261
+ "arguments": [
5262
+ {
5263
+ "name": "{ status: string }"
5264
+ }
5265
+ ]
5266
+ }
5267
+ ],
5268
+ "attributes": [
5188
5269
  {
5189
- "name": "autosize",
5190
- "default": "`false`",
5191
- "description": "Textarea auto resize, can accept an object,<br>e.g. { maxHeight: 100, minHeight: 50 }",
5270
+ "name": "v-model",
5271
+ "default": "-",
5272
+ "description": "Input value",
5192
5273
  "options": [],
5193
5274
  "value": {
5194
- "type": "boolean | FieldAutosizeConfig",
5275
+ "type": "number | string",
5195
5276
  "kind": "expression"
5196
5277
  }
5197
5278
  },
5198
5279
  {
5199
- "name": "left-icon",
5280
+ "name": "label",
5200
5281
  "default": "-",
5201
- "description": "Left side icon name",
5282
+ "description": "Left side label",
5202
5283
  "options": [],
5203
5284
  "value": {
5204
5285
  "type": "string",
@@ -5206,9 +5287,9 @@
5206
5287
  }
5207
5288
  },
5208
5289
  {
5209
- "name": "right-icon",
5290
+ "name": "name",
5210
5291
  "default": "-",
5211
- "description": "Right side icon name",
5292
+ "description": "As the identifier when submitting the form",
5212
5293
  "options": [],
5213
5294
  "value": {
5214
5295
  "type": "string",
@@ -5216,9 +5297,9 @@
5216
5297
  }
5217
5298
  },
5218
5299
  {
5219
- "name": "icon-prefix",
5220
- "default": "`van-icon`",
5221
- "description": "Icon className prefix",
5300
+ "name": "id",
5301
+ "default": "`van-field-n-input`",
5302
+ "description": "Input id, the for attribute of the label also will be set",
5222
5303
  "options": [],
5223
5304
  "value": {
5224
5305
  "type": "string",
@@ -5226,19 +5307,19 @@
5226
5307
  }
5227
5308
  },
5228
5309
  {
5229
- "name": "rules",
5230
- "default": "-",
5231
- "description": "Form validation rules",
5310
+ "name": "type",
5311
+ "default": "`text`",
5312
+ "description": "Input type, support all [native types](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#input_types) and `digit` type",
5232
5313
  "options": [],
5233
5314
  "value": {
5234
- "type": "FieldRule[]",
5315
+ "type": "FieldType",
5235
5316
  "kind": "expression"
5236
5317
  }
5237
5318
  },
5238
5319
  {
5239
- "name": "autocomplete",
5320
+ "name": "size",
5240
5321
  "default": "-",
5241
- "description": "HTML native attribute, see [MDN - autocomplete](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/autocomplete)",
5322
+ "description": "Size, can be set to `large`",
5242
5323
  "options": [],
5243
5324
  "value": {
5244
5325
  "type": "string",
@@ -5246,52 +5327,9 @@
5246
5327
  }
5247
5328
  },
5248
5329
  {
5249
- "name": "enterkeyhint",
5330
+ "name": "maxlength",
5250
5331
  "default": "-",
5251
- "description": "HTML native attribute, see [MDN - enterkeyhint](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/enterkeyhint)<br>",
5252
- "options": [],
5253
- "value": {
5254
- "type": "string",
5255
- "kind": "expression"
5256
- }
5257
- }
5258
- ]
5259
- },
5260
- {
5261
- "name": "van-form",
5262
- "slots": [
5263
- {
5264
- "name": "default",
5265
- "description": "Form content"
5266
- }
5267
- ],
5268
- "events": [
5269
- {
5270
- "name": "submit",
5271
- "description": "Emitted after submitting the form and validation passed",
5272
- "arguments": [
5273
- {
5274
- "name": "values",
5275
- "type": "object"
5276
- }
5277
- ]
5278
- },
5279
- {
5280
- "name": "failed",
5281
- "description": "Emitted after submitting the form and validation failed",
5282
- "arguments": [
5283
- {
5284
- "name": "errorInfo",
5285
- "type": "{ values: object, errors: object[] }"
5286
- }
5287
- ]
5288
- }
5289
- ],
5290
- "attributes": [
5291
- {
5292
- "name": "label-width",
5293
- "default": "`6.2em`",
5294
- "description": "Field label width",
5332
+ "description": "Max length of value",
5295
5333
  "options": [],
5296
5334
  "value": {
5297
5335
  "type": "number | string",
@@ -5299,9 +5337,9 @@
5299
5337
  }
5300
5338
  },
5301
5339
  {
5302
- "name": "label-align",
5303
- "default": "`left`",
5304
- "description": "Field label align, can be set to `center` `right`",
5340
+ "name": "placeholder",
5341
+ "default": "-",
5342
+ "description": "Input placeholder",
5305
5343
  "options": [],
5306
5344
  "value": {
5307
5345
  "type": "string",
@@ -5309,32 +5347,32 @@
5309
5347
  }
5310
5348
  },
5311
5349
  {
5312
- "name": "input-align",
5313
- "default": "`left`",
5314
- "description": "Field input align, can be set to `center` `right`",
5350
+ "name": "border",
5351
+ "default": "`true`",
5352
+ "description": "Whether to show inner border",
5315
5353
  "options": [],
5316
5354
  "value": {
5317
- "type": "string",
5355
+ "type": "boolean",
5318
5356
  "kind": "expression"
5319
5357
  }
5320
5358
  },
5321
5359
  {
5322
- "name": "error-message-align",
5323
- "default": "`left`",
5324
- "description": "Error message align, can be set to `center` `right`",
5360
+ "name": "disabled",
5361
+ "default": "`false`",
5362
+ "description": "Whether to disable field",
5325
5363
  "options": [],
5326
5364
  "value": {
5327
- "type": "string",
5365
+ "type": "boolean",
5328
5366
  "kind": "expression"
5329
5367
  }
5330
5368
  },
5331
5369
  {
5332
- "name": "validate-trigger",
5333
- "default": "`onBlur`",
5334
- "description": "When to validate the form, can be set to `onChange`、`onSubmit`, supports using array to set multiple values",
5370
+ "name": "readonly",
5371
+ "default": "`false`",
5372
+ "description": "Whether to be readonly",
5335
5373
  "options": [],
5336
5374
  "value": {
5337
- "type": "string | string[]",
5375
+ "type": "boolean",
5338
5376
  "kind": "expression"
5339
5377
  }
5340
5378
  },
@@ -5349,9 +5387,9 @@
5349
5387
  }
5350
5388
  },
5351
5389
  {
5352
- "name": "disabled",
5390
+ "name": "required",
5353
5391
  "default": "`false`",
5354
- "description": "Whether to disable form",
5392
+ "description": "Whether to show required mark",
5355
5393
  "options": [],
5356
5394
  "value": {
5357
5395
  "type": "boolean",
@@ -5359,9 +5397,9 @@
5359
5397
  }
5360
5398
  },
5361
5399
  {
5362
- "name": "readonly",
5363
- "default": "`false`",
5364
- "description": "Whether to be readonly",
5400
+ "name": "center",
5401
+ "default": "`true`",
5402
+ "description": "Whether to center content vertically",
5365
5403
  "options": [],
5366
5404
  "value": {
5367
5405
  "type": "boolean",
@@ -5369,9 +5407,9 @@
5369
5407
  }
5370
5408
  },
5371
5409
  {
5372
- "name": "validate-first",
5410
+ "name": "clearable",
5373
5411
  "default": "`false`",
5374
- "description": "Whether to stop the validation when a rule fails",
5412
+ "description": "Whether to be clearable",
5375
5413
  "options": [],
5376
5414
  "value": {
5377
5415
  "type": "boolean",
@@ -5379,29 +5417,29 @@
5379
5417
  }
5380
5418
  },
5381
5419
  {
5382
- "name": "scroll-to-error",
5383
- "default": "`false`",
5384
- "description": "Whether to scroll to the error field when validation failed",
5420
+ "name": "clear-icon",
5421
+ "default": "`clear`",
5422
+ "description": "Clear icon name",
5385
5423
  "options": [],
5386
5424
  "value": {
5387
- "type": "boolean",
5425
+ "type": "string",
5388
5426
  "kind": "expression"
5389
5427
  }
5390
5428
  },
5391
5429
  {
5392
- "name": "show-error",
5393
- "default": "`false`",
5394
- "description": "Whether to highlight input when validation failed",
5430
+ "name": "clear-trigger",
5431
+ "default": "`focus`",
5432
+ "description": "When to display the clear icon, `always` means to display the icon when value is not empty, `focus` means to display the icon when input is focused",
5395
5433
  "options": [],
5396
5434
  "value": {
5397
- "type": "boolean",
5435
+ "type": "FieldClearTrigger",
5398
5436
  "kind": "expression"
5399
5437
  }
5400
5438
  },
5401
5439
  {
5402
- "name": "show-error-message",
5403
- "default": "`true`",
5404
- "description": "Whether to show error message when validation failed",
5440
+ "name": "clickable",
5441
+ "default": "`false`",
5442
+ "description": "Whether to show click feedback when clicked",
5405
5443
  "options": [],
5406
5444
  "value": {
5407
5445
  "type": "boolean",
@@ -5409,96 +5447,89 @@
5409
5447
  }
5410
5448
  },
5411
5449
  {
5412
- "name": "submit-on-enter",
5413
- "default": "`true`",
5414
- "description": "Whether to submit form on enter",
5450
+ "name": "is-link",
5451
+ "default": "`false`",
5452
+ "description": "Whether to show link icon",
5415
5453
  "options": [],
5416
5454
  "value": {
5417
5455
  "type": "boolean",
5418
5456
  "kind": "expression"
5419
5457
  }
5420
- }
5421
- ]
5422
- },
5423
- {
5424
- "name": "van-grid",
5425
- "slots": [],
5426
- "events": [],
5427
- "attributes": [
5458
+ },
5428
5459
  {
5429
- "name": "column-num",
5430
- "default": "`4`",
5431
- "description": "Column Num",
5460
+ "name": "autofocus",
5461
+ "default": "`false`",
5462
+ "description": "Whether to auto focus, unsupported in iOS",
5432
5463
  "options": [],
5433
5464
  "value": {
5434
- "type": "number | string",
5465
+ "type": "boolean",
5435
5466
  "kind": "expression"
5436
5467
  }
5437
5468
  },
5438
5469
  {
5439
- "name": "icon-size",
5440
- "default": "`28px`",
5441
- "description": "Icon size",
5470
+ "name": "show-word-limit",
5471
+ "default": "`false`",
5472
+ "description": "Whether to show word limit, need to set the `maxlength` prop",
5442
5473
  "options": [],
5443
5474
  "value": {
5444
- "type": "number | string",
5475
+ "type": "boolean",
5445
5476
  "kind": "expression"
5446
5477
  }
5447
5478
  },
5448
5479
  {
5449
- "name": "gutter",
5450
- "default": "`0`",
5451
- "description": "Gutter",
5480
+ "name": "error",
5481
+ "default": "`false`",
5482
+ "description": "Whether to mark the input content in red",
5452
5483
  "options": [],
5453
5484
  "value": {
5454
- "type": "number | string",
5485
+ "type": "boolean",
5455
5486
  "kind": "expression"
5456
5487
  }
5457
5488
  },
5458
5489
  {
5459
- "name": "border",
5460
- "default": "`true`",
5461
- "description": "Whether to show border",
5490
+ "name": "error-message",
5491
+ "default": "-",
5492
+ "description": "Error message",
5462
5493
  "options": [],
5463
5494
  "value": {
5464
- "type": "boolean",
5495
+ "type": "string",
5465
5496
  "kind": "expression"
5466
5497
  }
5467
5498
  },
5468
5499
  {
5469
- "name": "center",
5470
- "default": "`true`",
5471
- "description": "Whether to center content",
5500
+ "name": "error-message-align",
5501
+ "default": "`left`",
5502
+ "description": "Error message align, can be set to `center` `right`",
5472
5503
  "options": [],
5473
5504
  "value": {
5474
- "type": "boolean",
5505
+ "type": "FieldTextAlign",
5475
5506
  "kind": "expression"
5476
5507
  }
5477
5508
  },
5478
5509
  {
5479
- "name": "square",
5480
- "default": "`false`",
5481
- "description": "Whether to be square shape",
5510
+ "name": "formatter",
5511
+ "default": "-",
5512
+ "description": "Input value formatter",
5482
5513
  "options": [],
5483
5514
  "value": {
5484
- "type": "boolean",
5515
+ "type": "(val: string) => string",
5485
5516
  "kind": "expression"
5486
5517
  }
5487
5518
  },
5488
5519
  {
5489
- "name": "clickable",
5490
- "default": "`false`",
5491
- "description": "Whether to show click feedback when clicked",
5520
+ "name": "format-trigger",
5521
+ "default": "`onChange`",
5522
+ "description": "When to format value, can be set to `onBlur`",
5492
5523
  "options": [],
5493
5524
  "value": {
5494
- "type": "boolean",
5525
+ "type": "FieldFormatTrigger",
5495
5526
  "kind": "expression"
5496
5527
  }
5497
5528
  },
5498
5529
  {
5499
- "name": "direction",
5500
- "default": "`vertical`",
5501
- "description": "Content arrangement direction, can be set to `horizontal`",
5530
+ "name": "arrow-direction",
5531
+ "default": "`right`",
5532
+ "description": "Can be set to `left` `up` `down`",
5502
5533
  "options": [],
5503
5534
  "value": {
5504
5535
  "type": "string",
@@ -5506,143 +5537,112 @@
5506
5537
  }
5507
5538
  },
5508
5539
  {
5509
- "name": "reverse",
5510
- "default": "`false`",
5511
- "description": "Whether to reverse the position of icon and text",
5540
+ "name": "label-class",
5541
+ "default": "-",
5542
+ "description": "Label className",
5512
5543
  "options": [],
5513
5544
  "value": {
5514
- "type": "boolean",
5545
+ "type": "string | Array | object",
5515
5546
  "kind": "expression"
5516
5547
  }
5517
- }
5518
- ]
5519
- },
5520
- {
5521
- "name": "van-grid-item",
5522
- "slots": [
5523
- {
5524
- "name": "default",
5525
- "description": "Custom content"
5526
- },
5527
- {
5528
- "name": "icon",
5529
- "description": "Custom icon"
5530
5548
  },
5531
5549
  {
5532
- "name": "text",
5533
- "description": "Custom text"
5534
- }
5535
- ],
5536
- "events": [
5537
- {
5538
- "name": "click",
5539
- "description": "Emitted when component is clicked",
5540
- "arguments": [
5541
- {
5542
- "name": "event",
5543
- "type": "MouseEvent"
5544
- }
5545
- ]
5546
- }
5547
- ],
5548
- "attributes": [
5549
- {
5550
- "name": "text",
5551
- "default": "-",
5552
- "description": "Text",
5550
+ "name": "label-width",
5551
+ "default": "`6.2em`",
5552
+ "description": "Label width",
5553
5553
  "options": [],
5554
5554
  "value": {
5555
- "type": "string",
5555
+ "type": "number | string",
5556
5556
  "kind": "expression"
5557
5557
  }
5558
5558
  },
5559
5559
  {
5560
- "name": "icon",
5561
- "default": "-",
5562
- "description": "Icon name or URL",
5560
+ "name": "label-align",
5561
+ "default": "`left`",
5562
+ "description": "Label align, can be set to `center` `right`",
5563
5563
  "options": [],
5564
5564
  "value": {
5565
- "type": "string",
5565
+ "type": "FieldTextAlign",
5566
5566
  "kind": "expression"
5567
5567
  }
5568
5568
  },
5569
5569
  {
5570
- "name": "icon-prefix",
5571
- "default": "`van-icon`",
5572
- "description": "Icon className prefix",
5570
+ "name": "input-align",
5571
+ "default": "`left`",
5572
+ "description": "Input align, can be set to `center` `right`",
5573
5573
  "options": [],
5574
5574
  "value": {
5575
- "type": "string",
5575
+ "type": "FieldTextAlign",
5576
5576
  "kind": "expression"
5577
5577
  }
5578
5578
  },
5579
5579
  {
5580
- "name": "icon-color",
5581
- "default": "-",
5582
- "description": "Icon color",
5580
+ "name": "autosize",
5581
+ "default": "`false`",
5582
+ "description": "Textarea auto resize, can accept an object,<br>e.g. { maxHeight: 100, minHeight: 50 }",
5583
5583
  "options": [],
5584
5584
  "value": {
5585
- "type": "string",
5585
+ "type": "boolean | FieldAutosizeConfig",
5586
5586
  "kind": "expression"
5587
5587
  }
5588
5588
  },
5589
5589
  {
5590
- "name": "dot",
5591
- "default": "`false`",
5592
- "description": "Whether to show red dot",
5590
+ "name": "left-icon",
5591
+ "default": "-",
5592
+ "description": "Left side icon name",
5593
5593
  "options": [],
5594
5594
  "value": {
5595
- "type": "boolean",
5595
+ "type": "string",
5596
5596
  "kind": "expression"
5597
5597
  }
5598
5598
  },
5599
5599
  {
5600
- "name": "badge",
5600
+ "name": "right-icon",
5601
5601
  "default": "-",
5602
- "description": "Content of the badge",
5602
+ "description": "Right side icon name",
5603
5603
  "options": [],
5604
5604
  "value": {
5605
- "type": "number | string",
5605
+ "type": "string",
5606
5606
  "kind": "expression"
5607
5607
  }
5608
5608
  },
5609
5609
  {
5610
- "name": "badge-props",
5611
- "default": "-",
5612
- "description": "Props of Badge, see [Badge - props](#/en-US/badge#props)",
5610
+ "name": "icon-prefix",
5611
+ "default": "`van-icon`",
5612
+ "description": "Icon className prefix",
5613
5613
  "options": [],
5614
5614
  "value": {
5615
- "type": "BadgeProps",
5615
+ "type": "string",
5616
5616
  "kind": "expression"
5617
5617
  }
5618
5618
  },
5619
5619
  {
5620
- "name": "url",
5620
+ "name": "rules",
5621
5621
  "default": "-",
5622
- "description": "Link URL",
5622
+ "description": "Form validation rules",
5623
5623
  "options": [],
5624
5624
  "value": {
5625
- "type": "string",
5625
+ "type": "FieldRule[]",
5626
5626
  "kind": "expression"
5627
5627
  }
5628
5628
  },
5629
5629
  {
5630
- "name": "to",
5630
+ "name": "autocomplete",
5631
5631
  "default": "-",
5632
- "description": "Target route of the link, same as to of vue-router",
5632
+ "description": "HTML native attribute, see [MDN - autocomplete](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/autocomplete)",
5633
5633
  "options": [],
5634
5634
  "value": {
5635
- "type": "string | object",
5635
+ "type": "string",
5636
5636
  "kind": "expression"
5637
5637
  }
5638
5638
  },
5639
5639
  {
5640
- "name": "replace",
5641
- "default": "`false`",
5642
- "description": "If true, the navigation will not leave a history record",
5640
+ "name": "enterkeyhint",
5641
+ "default": "-",
5642
+ "description": "HTML native attribute, see [MDN - enterkeyhint](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/enterkeyhint)<br>",
5643
5643
  "options": [],
5644
5644
  "value": {
5645
- "type": "boolean",
5645
+ "type": "string",
5646
5646
  "kind": "expression"
5647
5647
  }
5648
5648
  }
@@ -5957,6 +5957,10 @@
5957
5957
  {
5958
5958
  "name": "cover",
5959
5959
  "description": "Custom content that covers the image preview"
5960
+ },
5961
+ {
5962
+ "name": "image",
5963
+ "description": "Custom image content"
5960
5964
  }
5961
5965
  ],
5962
5966
  "events": [
@@ -6108,137 +6112,19 @@
6108
6112
  }
6109
6113
  },
6110
6114
  {
6111
- "name": "max-zoom",
6112
- "default": "`3`",
6113
- "description": "Max zoom",
6114
- "options": [],
6115
- "value": {
6116
- "type": "number | string",
6117
- "kind": "expression"
6118
- }
6119
- },
6120
- {
6121
- "name": "min-zoom",
6122
- "default": "`1/3`",
6123
- "description": "Min zoom",
6124
- "options": [],
6125
- "value": {
6126
- "type": "number | string",
6127
- "kind": "expression"
6128
- }
6129
- },
6130
- {
6131
- "name": "closeable",
6132
- "default": "`false`",
6133
- "description": "Whether to show close icon",
6134
- "options": [],
6135
- "value": {
6136
- "type": "boolean",
6137
- "kind": "expression"
6138
- }
6139
- },
6140
- {
6141
- "name": "close-icon",
6142
- "default": "`clear`",
6143
- "description": "Close icon name",
6144
- "options": [],
6145
- "value": {
6146
- "type": "string",
6147
- "kind": "expression"
6148
- }
6149
- },
6150
- {
6151
- "name": "close-icon-position",
6152
- "default": "`top-right`",
6153
- "description": "Close icon position, can be set to `top-left` `bottom-left` `bottom-right`",
6154
- "options": [],
6155
- "value": {
6156
- "type": "string",
6157
- "kind": "expression"
6158
- }
6159
- },
6160
- {
6161
- "name": "transition",
6162
- "default": "`van-fade`",
6163
- "description": "Transition, equivalent to `name` prop of [transition](https://v3.vuejs.org/api/built-in-components.html#transition)",
6164
- "options": [],
6165
- "value": {
6166
- "type": "string",
6167
- "kind": "expression"
6168
- }
6169
- },
6170
- {
6171
- "name": "overlay-class",
6172
- "default": "-",
6173
- "description": "Custom overlay class",
6174
- "options": [],
6175
- "value": {
6176
- "type": "string | Array | object",
6177
- "kind": "expression"
6178
- }
6179
- },
6180
- {
6181
- "name": "overlay-style",
6182
- "default": "-",
6183
- "description": "Custom overlay style",
6184
- "options": [],
6185
- "value": {
6186
- "type": "object",
6187
- "kind": "expression"
6188
- }
6189
- },
6190
- {
6191
- "name": "teleport",
6192
- "default": "-",
6193
- "description": "Specifies a target element where ImagePreview will be mounted",
6194
- "options": [],
6195
- "value": {
6196
- "type": "string | Element",
6197
- "kind": "expression"
6198
- }
6199
- }
6200
- ]
6201
- },
6202
- {
6203
- "name": "van-index-bar",
6204
- "slots": [],
6205
- "events": [
6206
- {
6207
- "name": "select",
6208
- "description": "Emitted when an index is selected",
6209
- "arguments": [
6210
- {
6211
- "name": "index",
6212
- "type": "number | string"
6213
- }
6214
- ]
6215
- },
6216
- {
6217
- "name": "change",
6218
- "description": "Emitted when active index changed",
6219
- "arguments": [
6220
- {
6221
- "name": "index",
6222
- "type": "number | string"
6223
- }
6224
- ]
6225
- }
6226
- ],
6227
- "attributes": [
6228
- {
6229
- "name": "index-list",
6230
- "default": "`A-Z`",
6231
- "description": "Index List",
6115
+ "name": "max-zoom",
6116
+ "default": "`3`",
6117
+ "description": "Max zoom",
6232
6118
  "options": [],
6233
6119
  "value": {
6234
- "type": "string[] | number[]",
6120
+ "type": "number | string",
6235
6121
  "kind": "expression"
6236
6122
  }
6237
6123
  },
6238
6124
  {
6239
- "name": "z-index",
6240
- "default": "`1`",
6241
- "description": "z-index",
6125
+ "name": "min-zoom",
6126
+ "default": "`1/3`",
6127
+ "description": "Min zoom",
6242
6128
  "options": [],
6243
6129
  "value": {
6244
6130
  "type": "number | string",
@@ -6246,9 +6132,9 @@
6246
6132
  }
6247
6133
  },
6248
6134
  {
6249
- "name": "sticky",
6250
- "default": "`true`",
6251
- "description": "Whether to enable anchor sticky top",
6135
+ "name": "closeable",
6136
+ "default": "`false`",
6137
+ "description": "Whether to show close icon",
6252
6138
  "options": [],
6253
6139
  "value": {
6254
6140
  "type": "boolean",
@@ -6256,19 +6142,19 @@
6256
6142
  }
6257
6143
  },
6258
6144
  {
6259
- "name": "sticky-offset-top",
6260
- "default": "`0`",
6261
- "description": "Anchor offset top when sticky",
6145
+ "name": "close-icon",
6146
+ "default": "`clear`",
6147
+ "description": "Close icon name",
6262
6148
  "options": [],
6263
6149
  "value": {
6264
- "type": "number",
6150
+ "type": "string",
6265
6151
  "kind": "expression"
6266
6152
  }
6267
6153
  },
6268
6154
  {
6269
- "name": "highlight-color",
6270
- "default": "`#ee0a24`",
6271
- "description": "Index character highlight color",
6155
+ "name": "close-icon-position",
6156
+ "default": "`top-right`",
6157
+ "description": "Close icon position, can be set to `top-left` `bottom-left` `bottom-right`",
6272
6158
  "options": [],
6273
6159
  "value": {
6274
6160
  "type": "string",
@@ -6276,34 +6162,42 @@
6276
6162
  }
6277
6163
  },
6278
6164
  {
6279
- "name": "teleport",
6165
+ "name": "transition",
6166
+ "default": "`van-fade`",
6167
+ "description": "Transition, equivalent to `name` prop of [transition](https://v3.vuejs.org/api/built-in-components.html#transition)",
6168
+ "options": [],
6169
+ "value": {
6170
+ "type": "string",
6171
+ "kind": "expression"
6172
+ }
6173
+ },
6174
+ {
6175
+ "name": "overlay-class",
6280
6176
  "default": "-",
6281
- "description": "Specifies a target element where IndexBar will be mounted",
6177
+ "description": "Custom overlay class",
6282
6178
  "options": [],
6283
6179
  "value": {
6284
- "type": "string | Element",
6180
+ "type": "string | Array | object",
6285
6181
  "kind": "expression"
6286
6182
  }
6287
- }
6288
- ]
6289
- },
6290
- {
6291
- "name": "van-index-anchor",
6292
- "slots": [
6183
+ },
6293
6184
  {
6294
- "name": "default",
6295
- "description": "Anchor content, show index by default"
6296
- }
6297
- ],
6298
- "events": [],
6299
- "attributes": [
6185
+ "name": "overlay-style",
6186
+ "default": "-",
6187
+ "description": "Custom overlay style",
6188
+ "options": [],
6189
+ "value": {
6190
+ "type": "object",
6191
+ "kind": "expression"
6192
+ }
6193
+ },
6300
6194
  {
6301
- "name": "index",
6195
+ "name": "teleport",
6302
6196
  "default": "-",
6303
- "description": "Index",
6197
+ "description": "Specifies a target element where ImagePreview will be mounted",
6304
6198
  "options": [],
6305
6199
  "value": {
6306
- "type": "number | string",
6200
+ "type": "string | Element",
6307
6201
  "kind": "expression"
6308
6202
  }
6309
6203
  }
@@ -6430,59 +6324,75 @@
6430
6324
  ]
6431
6325
  },
6432
6326
  {
6433
- "name": "van-loading",
6434
- "slots": [
6327
+ "name": "van-index-bar",
6328
+ "slots": [],
6329
+ "events": [
6435
6330
  {
6436
- "name": "default",
6437
- "description": "Loading text"
6331
+ "name": "select",
6332
+ "description": "Emitted when an index is selected",
6333
+ "arguments": [
6334
+ {
6335
+ "name": "index",
6336
+ "type": "number | string"
6337
+ }
6338
+ ]
6339
+ },
6340
+ {
6341
+ "name": "change",
6342
+ "description": "Emitted when active index changed",
6343
+ "arguments": [
6344
+ {
6345
+ "name": "index",
6346
+ "type": "number | string"
6347
+ }
6348
+ ]
6438
6349
  }
6439
6350
  ],
6440
- "events": [],
6441
6351
  "attributes": [
6442
6352
  {
6443
- "name": "color",
6444
- "default": "`#c9c9c9`",
6445
- "description": "Loading color",
6353
+ "name": "index-list",
6354
+ "default": "`A-Z`",
6355
+ "description": "Index List",
6446
6356
  "options": [],
6447
6357
  "value": {
6448
- "type": "string",
6358
+ "type": "string[] | number[]",
6449
6359
  "kind": "expression"
6450
6360
  }
6451
6361
  },
6452
6362
  {
6453
- "name": "type",
6454
- "default": "`circular`",
6455
- "description": "Can be set to `spinner`",
6363
+ "name": "z-index",
6364
+ "default": "`1`",
6365
+ "description": "z-index",
6456
6366
  "options": [],
6457
6367
  "value": {
6458
- "type": "string",
6368
+ "type": "number | string",
6459
6369
  "kind": "expression"
6460
6370
  }
6461
6371
  },
6462
6372
  {
6463
- "name": "size",
6464
- "default": "`30px`",
6465
- "description": "Icon size",
6373
+ "name": "sticky",
6374
+ "default": "`true`",
6375
+ "description": "Whether to enable anchor sticky top",
6466
6376
  "options": [],
6467
6377
  "value": {
6468
- "type": "number | string",
6378
+ "type": "boolean",
6469
6379
  "kind": "expression"
6470
6380
  }
6471
6381
  },
6472
6382
  {
6473
- "name": "text-size",
6474
- "default": "`14px`",
6475
- "description": "Text font size",
6383
+ "name": "sticky-offset-top",
6384
+ "default": "`0`",
6385
+ "description": "Anchor offset top when sticky",
6476
6386
  "options": [],
6477
6387
  "value": {
6478
- "type": "number | string",
6388
+ "type": "number",
6479
6389
  "kind": "expression"
6480
6390
  }
6481
6391
  },
6482
6392
  {
6483
- "name": "text-color",
6484
- "default": "`#c9c9c9`",
6485
- "description": "Text color",
6393
+ "name": "highlight-color",
6394
+ "default": "`#ee0a24`",
6395
+ "description": "Index character highlight color",
6486
6396
  "options": [],
6487
6397
  "value": {
6488
6398
  "type": "string",
@@ -6490,12 +6400,34 @@
6490
6400
  }
6491
6401
  },
6492
6402
  {
6493
- "name": "vertical",
6494
- "default": "`false`",
6495
- "description": "Whether to arrange icons and text content vertically",
6403
+ "name": "teleport",
6404
+ "default": "-",
6405
+ "description": "Specifies a target element where IndexBar will be mounted",
6496
6406
  "options": [],
6497
6407
  "value": {
6498
- "type": "boolean",
6408
+ "type": "string | Element",
6409
+ "kind": "expression"
6410
+ }
6411
+ }
6412
+ ]
6413
+ },
6414
+ {
6415
+ "name": "van-index-anchor",
6416
+ "slots": [
6417
+ {
6418
+ "name": "default",
6419
+ "description": "Anchor content, show index by default"
6420
+ }
6421
+ ],
6422
+ "events": [],
6423
+ "attributes": [
6424
+ {
6425
+ "name": "index",
6426
+ "default": "-",
6427
+ "description": "Index",
6428
+ "options": [],
6429
+ "value": {
6430
+ "type": "number | string",
6499
6431
  "kind": "expression"
6500
6432
  }
6501
6433
  }
@@ -6768,6 +6700,78 @@
6768
6700
  }
6769
6701
  ]
6770
6702
  },
6703
+ {
6704
+ "name": "van-loading",
6705
+ "slots": [
6706
+ {
6707
+ "name": "default",
6708
+ "description": "Loading text"
6709
+ }
6710
+ ],
6711
+ "events": [],
6712
+ "attributes": [
6713
+ {
6714
+ "name": "color",
6715
+ "default": "`#c9c9c9`",
6716
+ "description": "Loading color",
6717
+ "options": [],
6718
+ "value": {
6719
+ "type": "string",
6720
+ "kind": "expression"
6721
+ }
6722
+ },
6723
+ {
6724
+ "name": "type",
6725
+ "default": "`circular`",
6726
+ "description": "Can be set to `spinner`",
6727
+ "options": [],
6728
+ "value": {
6729
+ "type": "string",
6730
+ "kind": "expression"
6731
+ }
6732
+ },
6733
+ {
6734
+ "name": "size",
6735
+ "default": "`30px`",
6736
+ "description": "Icon size",
6737
+ "options": [],
6738
+ "value": {
6739
+ "type": "number | string",
6740
+ "kind": "expression"
6741
+ }
6742
+ },
6743
+ {
6744
+ "name": "text-size",
6745
+ "default": "`14px`",
6746
+ "description": "Text font size",
6747
+ "options": [],
6748
+ "value": {
6749
+ "type": "number | string",
6750
+ "kind": "expression"
6751
+ }
6752
+ },
6753
+ {
6754
+ "name": "text-color",
6755
+ "default": "`#c9c9c9`",
6756
+ "description": "Text color",
6757
+ "options": [],
6758
+ "value": {
6759
+ "type": "string",
6760
+ "kind": "expression"
6761
+ }
6762
+ },
6763
+ {
6764
+ "name": "vertical",
6765
+ "default": "`false`",
6766
+ "description": "Whether to arrange icons and text content vertically",
6767
+ "options": [],
6768
+ "value": {
6769
+ "type": "boolean",
6770
+ "kind": "expression"
6771
+ }
6772
+ }
6773
+ ]
6774
+ },
6771
6775
  {
6772
6776
  "name": "van-number-keyboard",
6773
6777
  "slots": [
@@ -8095,64 +8099,44 @@
8095
8099
  ]
8096
8100
  },
8097
8101
  {
8098
- "name": "van-pull-refresh",
8102
+ "name": "van-radio",
8099
8103
  "slots": [
8100
8104
  {
8101
8105
  "name": "default",
8102
- "description": "Default slot"
8103
- },
8104
- {
8105
- "name": "normal",
8106
- "description": "Content of head when at normal status"
8107
- },
8108
- {
8109
- "name": "pulling",
8110
- "description": "Content of head when at pulling"
8111
- },
8112
- {
8113
- "name": "loosing",
8114
- "description": "Content of head when at loosing"
8115
- },
8116
- {
8117
- "name": "loading",
8118
- "description": "Content of head when at loading"
8106
+ "description": "Custom label"
8119
8107
  },
8120
8108
  {
8121
- "name": "success",
8122
- "description": "Content of head when succeed"
8109
+ "name": "icon",
8110
+ "description": "Custom icon"
8123
8111
  }
8124
8112
  ],
8125
8113
  "events": [
8126
8114
  {
8127
- "name": "refresh",
8128
- "description": "Emitted after pulling refresh",
8129
- "arguments": []
8130
- },
8131
- {
8132
- "name": "change",
8133
- "description": "Emitted when draging or status changed",
8115
+ "name": "click",
8116
+ "description": "Emitted when radio is clicked",
8134
8117
  "arguments": [
8135
8118
  {
8136
- "name": "{ status: string, distance: number }"
8119
+ "name": "event",
8120
+ "type": "MouseEvent"
8137
8121
  }
8138
8122
  ]
8139
8123
  }
8140
8124
  ],
8141
8125
  "attributes": [
8142
8126
  {
8143
- "name": "v-model",
8127
+ "name": "name",
8144
8128
  "default": "-",
8145
- "description": "Loading status",
8129
+ "description": "Radio name, usually a unique string or number",
8146
8130
  "options": [],
8147
8131
  "value": {
8148
- "type": "boolean",
8132
+ "type": "any",
8149
8133
  "kind": "expression"
8150
8134
  }
8151
8135
  },
8152
8136
  {
8153
- "name": "pulling-text",
8154
- "default": "`Pull to refresh...`",
8155
- "description": "Text to show when pulling",
8137
+ "name": "shape",
8138
+ "default": "`round`",
8139
+ "description": "Can be set to `square`",
8156
8140
  "options": [],
8157
8141
  "value": {
8158
8142
  "type": "string",
@@ -8160,29 +8144,29 @@
8160
8144
  }
8161
8145
  },
8162
8146
  {
8163
- "name": "loosing-text",
8164
- "default": "`Loose to refresh...`",
8165
- "description": "Text to show when loosing",
8147
+ "name": "disabled",
8148
+ "default": "`false`",
8149
+ "description": "Whether to disable radio",
8166
8150
  "options": [],
8167
8151
  "value": {
8168
- "type": "string",
8152
+ "type": "boolean",
8169
8153
  "kind": "expression"
8170
8154
  }
8171
8155
  },
8172
8156
  {
8173
- "name": "loading-text",
8174
- "default": "`Loading...`",
8175
- "description": "Text to show when loading",
8157
+ "name": "label-disabled",
8158
+ "default": "`false`",
8159
+ "description": "Whether to disable label click",
8176
8160
  "options": [],
8177
8161
  "value": {
8178
- "type": "string",
8162
+ "type": "boolean",
8179
8163
  "kind": "expression"
8180
8164
  }
8181
8165
  },
8182
8166
  {
8183
- "name": "success-text",
8184
- "default": "-",
8185
- "description": "Text to show when loading success",
8167
+ "name": "label-position",
8168
+ "default": "`right`",
8169
+ "description": "Can be set to `left`",
8186
8170
  "options": [],
8187
8171
  "value": {
8188
8172
  "type": "string",
@@ -8190,9 +8174,9 @@
8190
8174
  }
8191
8175
  },
8192
8176
  {
8193
- "name": "success-duration",
8194
- "default": "`500`",
8195
- "description": "Success text display duration(ms)",
8177
+ "name": "icon-size",
8178
+ "default": "`20px`",
8179
+ "description": "Icon size",
8196
8180
  "options": [],
8197
8181
  "value": {
8198
8182
  "type": "number | string",
@@ -8200,29 +8184,67 @@
8200
8184
  }
8201
8185
  },
8202
8186
  {
8203
- "name": "animation-duration",
8204
- "default": "`300`",
8205
- "description": "Animation duration",
8187
+ "name": "checked-color",
8188
+ "default": "`#1989fa`",
8189
+ "description": "Checked color",
8206
8190
  "options": [],
8207
8191
  "value": {
8208
- "type": "number | string",
8192
+ "type": "string",
8193
+ "kind": "expression"
8194
+ }
8195
+ }
8196
+ ]
8197
+ },
8198
+ {
8199
+ "name": "van-radio-group",
8200
+ "slots": [],
8201
+ "events": [
8202
+ {
8203
+ "name": "change",
8204
+ "description": "Emitted when value changed",
8205
+ "arguments": [
8206
+ {
8207
+ "name": "name",
8208
+ "type": "string"
8209
+ }
8210
+ ]
8211
+ }
8212
+ ],
8213
+ "attributes": [
8214
+ {
8215
+ "name": "v-model",
8216
+ "default": "-",
8217
+ "description": "Name of checked radio",
8218
+ "options": [],
8219
+ "value": {
8220
+ "type": "any",
8209
8221
  "kind": "expression"
8210
8222
  }
8211
8223
  },
8212
8224
  {
8213
- "name": "head-height",
8214
- "default": "`50`",
8215
- "description": "Height of head",
8225
+ "name": "disabled",
8226
+ "default": "`false`",
8227
+ "description": "Disable all radios",
8216
8228
  "options": [],
8217
8229
  "value": {
8218
- "type": "number | string",
8230
+ "type": "boolean",
8219
8231
  "kind": "expression"
8220
8232
  }
8221
8233
  },
8222
8234
  {
8223
- "name": "pull-distance",
8224
- "default": "same as `head-height`",
8225
- "description": "The distance to trigger the pull refresh",
8235
+ "name": "direction",
8236
+ "default": "`vertical`",
8237
+ "description": "Direction, can be set to `horizontal`",
8238
+ "options": [],
8239
+ "value": {
8240
+ "type": "string",
8241
+ "kind": "expression"
8242
+ }
8243
+ },
8244
+ {
8245
+ "name": "icon-size",
8246
+ "default": "`20px`",
8247
+ "description": "Icon size of all radios",
8226
8248
  "options": [],
8227
8249
  "value": {
8228
8250
  "type": "number | string",
@@ -8230,66 +8252,66 @@
8230
8252
  }
8231
8253
  },
8232
8254
  {
8233
- "name": "disabled",
8234
- "default": "`false`",
8235
- "description": "Whether to disable pull refresh",
8255
+ "name": "checked-color",
8256
+ "default": "`#1989fa`",
8257
+ "description": "Checked color of all radios",
8236
8258
  "options": [],
8237
8259
  "value": {
8238
- "type": "boolean",
8260
+ "type": "string",
8239
8261
  "kind": "expression"
8240
8262
  }
8241
8263
  }
8242
8264
  ]
8243
8265
  },
8244
8266
  {
8245
- "name": "van-radio",
8267
+ "name": "van-pull-refresh",
8246
8268
  "slots": [
8247
8269
  {
8248
8270
  "name": "default",
8249
- "description": "Custom label"
8271
+ "description": "Default slot"
8250
8272
  },
8251
8273
  {
8252
- "name": "icon",
8253
- "description": "Custom icon"
8274
+ "name": "normal",
8275
+ "description": "Content of head when at normal status"
8276
+ },
8277
+ {
8278
+ "name": "pulling",
8279
+ "description": "Content of head when at pulling"
8280
+ },
8281
+ {
8282
+ "name": "loosing",
8283
+ "description": "Content of head when at loosing"
8284
+ },
8285
+ {
8286
+ "name": "loading",
8287
+ "description": "Content of head when at loading"
8288
+ },
8289
+ {
8290
+ "name": "success",
8291
+ "description": "Content of head when succeed"
8254
8292
  }
8255
8293
  ],
8256
8294
  "events": [
8257
8295
  {
8258
- "name": "click",
8259
- "description": "Emitted when radio is clicked",
8296
+ "name": "refresh",
8297
+ "description": "Emitted after pulling refresh",
8298
+ "arguments": []
8299
+ },
8300
+ {
8301
+ "name": "change",
8302
+ "description": "Emitted when draging or status changed",
8260
8303
  "arguments": [
8261
8304
  {
8262
- "name": "event",
8263
- "type": "MouseEvent"
8305
+ "name": "{ status: string, distance: number }"
8264
8306
  }
8265
8307
  ]
8266
8308
  }
8267
8309
  ],
8268
8310
  "attributes": [
8269
8311
  {
8270
- "name": "name",
8312
+ "name": "v-model",
8271
8313
  "default": "-",
8272
- "description": "Radio name, usually a unique string or number",
8273
- "options": [],
8274
- "value": {
8275
- "type": "any",
8276
- "kind": "expression"
8277
- }
8278
- },
8279
- {
8280
- "name": "shape",
8281
- "default": "`round`",
8282
- "description": "Can be set to `square`",
8283
- "options": [],
8284
- "value": {
8285
- "type": "string",
8286
- "kind": "expression"
8287
- }
8288
- },
8289
- {
8290
- "name": "disabled",
8291
- "default": "`false`",
8292
- "description": "Whether to disable radio",
8314
+ "description": "Loading status",
8293
8315
  "options": [],
8294
8316
  "value": {
8295
8317
  "type": "boolean",
@@ -8297,19 +8319,19 @@
8297
8319
  }
8298
8320
  },
8299
8321
  {
8300
- "name": "label-disabled",
8301
- "default": "`false`",
8302
- "description": "Whether to disable label click",
8322
+ "name": "pulling-text",
8323
+ "default": "`Pull to refresh...`",
8324
+ "description": "Text to show when pulling",
8303
8325
  "options": [],
8304
8326
  "value": {
8305
- "type": "boolean",
8327
+ "type": "string",
8306
8328
  "kind": "expression"
8307
8329
  }
8308
8330
  },
8309
8331
  {
8310
- "name": "label-position",
8311
- "default": "`right`",
8312
- "description": "Can be set to `left`",
8332
+ "name": "loosing-text",
8333
+ "default": "`Loose to refresh...`",
8334
+ "description": "Text to show when loosing",
8313
8335
  "options": [],
8314
8336
  "value": {
8315
8337
  "type": "string",
@@ -8317,77 +8339,59 @@
8317
8339
  }
8318
8340
  },
8319
8341
  {
8320
- "name": "icon-size",
8321
- "default": "`20px`",
8322
- "description": "Icon size",
8342
+ "name": "loading-text",
8343
+ "default": "`Loading...`",
8344
+ "description": "Text to show when loading",
8323
8345
  "options": [],
8324
8346
  "value": {
8325
- "type": "number | string",
8347
+ "type": "string",
8326
8348
  "kind": "expression"
8327
8349
  }
8328
8350
  },
8329
8351
  {
8330
- "name": "checked-color",
8331
- "default": "`#1989fa`",
8332
- "description": "Checked color",
8352
+ "name": "success-text",
8353
+ "default": "-",
8354
+ "description": "Text to show when loading success",
8333
8355
  "options": [],
8334
8356
  "value": {
8335
8357
  "type": "string",
8336
8358
  "kind": "expression"
8337
8359
  }
8338
- }
8339
- ]
8340
- },
8341
- {
8342
- "name": "van-radio-group",
8343
- "slots": [],
8344
- "events": [
8345
- {
8346
- "name": "change",
8347
- "description": "Emitted when value changed",
8348
- "arguments": [
8349
- {
8350
- "name": "name",
8351
- "type": "string"
8352
- }
8353
- ]
8354
- }
8355
- ],
8356
- "attributes": [
8360
+ },
8357
8361
  {
8358
- "name": "v-model",
8359
- "default": "-",
8360
- "description": "Name of checked radio",
8362
+ "name": "success-duration",
8363
+ "default": "`500`",
8364
+ "description": "Success text display duration(ms)",
8361
8365
  "options": [],
8362
8366
  "value": {
8363
- "type": "any",
8367
+ "type": "number | string",
8364
8368
  "kind": "expression"
8365
8369
  }
8366
8370
  },
8367
8371
  {
8368
- "name": "disabled",
8369
- "default": "`false`",
8370
- "description": "Disable all radios",
8372
+ "name": "animation-duration",
8373
+ "default": "`300`",
8374
+ "description": "Animation duration",
8371
8375
  "options": [],
8372
8376
  "value": {
8373
- "type": "boolean",
8377
+ "type": "number | string",
8374
8378
  "kind": "expression"
8375
8379
  }
8376
8380
  },
8377
8381
  {
8378
- "name": "direction",
8379
- "default": "`vertical`",
8380
- "description": "Direction, can be set to `horizontal`",
8382
+ "name": "head-height",
8383
+ "default": "`50`",
8384
+ "description": "Height of head",
8381
8385
  "options": [],
8382
8386
  "value": {
8383
- "type": "string",
8387
+ "type": "number | string",
8384
8388
  "kind": "expression"
8385
8389
  }
8386
8390
  },
8387
8391
  {
8388
- "name": "icon-size",
8389
- "default": "`20px`",
8390
- "description": "Icon size of all radios",
8392
+ "name": "pull-distance",
8393
+ "default": "same as `head-height`",
8394
+ "description": "The distance to trigger the pull refresh",
8391
8395
  "options": [],
8392
8396
  "value": {
8393
8397
  "type": "number | string",
@@ -8395,12 +8399,12 @@
8395
8399
  }
8396
8400
  },
8397
8401
  {
8398
- "name": "checked-color",
8399
- "default": "`#1989fa`",
8400
- "description": "Checked color of all radios",
8402
+ "name": "disabled",
8403
+ "default": "`false`",
8404
+ "description": "Whether to disable pull refresh",
8401
8405
  "options": [],
8402
8406
  "value": {
8403
- "type": "string",
8407
+ "type": "boolean",
8404
8408
  "kind": "expression"
8405
8409
  }
8406
8410
  }
@@ -10635,228 +10639,8 @@
10635
10639
  },
10636
10640
  {
10637
10641
  "name": "disabled",
10638
- "default": "`false`",
10639
- "description": "Whether to disable switch",
10640
- "options": [],
10641
- "value": {
10642
- "type": "boolean",
10643
- "kind": "expression"
10644
- }
10645
- },
10646
- {
10647
- "name": "size",
10648
- "default": "`30px`",
10649
- "description": "Size of switch",
10650
- "options": [],
10651
- "value": {
10652
- "type": "number | string",
10653
- "kind": "expression"
10654
- }
10655
- },
10656
- {
10657
- "name": "active-color",
10658
- "default": "`#1989fa`",
10659
- "description": "Background color when active",
10660
- "options": [],
10661
- "value": {
10662
- "type": "string",
10663
- "kind": "expression"
10664
- }
10665
- },
10666
- {
10667
- "name": "inactive-color",
10668
- "default": "`white`",
10669
- "description": "Background color when inactive",
10670
- "options": [],
10671
- "value": {
10672
- "type": "string",
10673
- "kind": "expression"
10674
- }
10675
- },
10676
- {
10677
- "name": "active-value",
10678
- "default": "`true`",
10679
- "description": "Value when active",
10680
- "options": [],
10681
- "value": {
10682
- "type": "any",
10683
- "kind": "expression"
10684
- }
10685
- },
10686
- {
10687
- "name": "inactive-value",
10688
- "default": "`false`",
10689
- "description": "Value when inactive",
10690
- "options": [],
10691
- "value": {
10692
- "type": "any",
10693
- "kind": "expression"
10694
- }
10695
- }
10696
- ]
10697
- },
10698
- {
10699
- "name": "van-tabbar",
10700
- "slots": [],
10701
- "events": [
10702
- {
10703
- "name": "change",
10704
- "description": "Emitted when changing active tab",
10705
- "arguments": [
10706
- {
10707
- "name": "active",
10708
- "type": "number | string"
10709
- }
10710
- ]
10711
- }
10712
- ],
10713
- "attributes": [
10714
- {
10715
- "name": "v-model",
10716
- "default": "`0`",
10717
- "description": "Identifier of current tab",
10718
- "options": [],
10719
- "value": {
10720
- "type": "number | string",
10721
- "kind": "expression"
10722
- }
10723
- },
10724
- {
10725
- "name": "fixed",
10726
- "default": "`true`",
10727
- "description": "Whether to fixed bottom",
10728
- "options": [],
10729
- "value": {
10730
- "type": "boolean",
10731
- "kind": "expression"
10732
- }
10733
- },
10734
- {
10735
- "name": "border",
10736
- "default": "`true`",
10737
- "description": "Whether to show border",
10738
- "options": [],
10739
- "value": {
10740
- "type": "boolean",
10741
- "kind": "expression"
10742
- }
10743
- },
10744
- {
10745
- "name": "z-index",
10746
- "default": "`1`",
10747
- "description": "Z-index",
10748
- "options": [],
10749
- "value": {
10750
- "type": "number | string",
10751
- "kind": "expression"
10752
- }
10753
- },
10754
- {
10755
- "name": "active-color",
10756
- "default": "`#1989fa`",
10757
- "description": "Color of active tab item",
10758
- "options": [],
10759
- "value": {
10760
- "type": "string",
10761
- "kind": "expression"
10762
- }
10763
- },
10764
- {
10765
- "name": "inactive-color",
10766
- "default": "`#7d7e80`",
10767
- "description": "Color of inactive tab item",
10768
- "options": [],
10769
- "value": {
10770
- "type": "string",
10771
- "kind": "expression"
10772
- }
10773
- },
10774
- {
10775
- "name": "route",
10776
- "default": "`false`",
10777
- "description": "Whether to enable route mode",
10778
- "options": [],
10779
- "value": {
10780
- "type": "boolean",
10781
- "kind": "expression"
10782
- }
10783
- },
10784
- {
10785
- "name": "placeholder",
10786
- "default": "`false`",
10787
- "description": "Whether to generate a placeholder element when fixed",
10788
- "options": [],
10789
- "value": {
10790
- "type": "boolean",
10791
- "kind": "expression"
10792
- }
10793
- },
10794
- {
10795
- "name": "safe-area-inset-bottom",
10796
- "default": "`false`",
10797
- "description": "Whether to enable bottom safe area adaptation",
10798
- "options": [],
10799
- "value": {
10800
- "type": "boolean",
10801
- "kind": "expression"
10802
- }
10803
- },
10804
- {
10805
- "name": "before-change",
10806
- "default": "-",
10807
- "description": "Callback function before changing tab, return `false` to prevent change, support return Promise",
10808
- "options": [],
10809
- "value": {
10810
- "type": "(name: number | string) => boolean | Promise\\<boolean\\>",
10811
- "kind": "expression"
10812
- }
10813
- }
10814
- ]
10815
- },
10816
- {
10817
- "name": "van-tabbar-item",
10818
- "slots": [
10819
- {
10820
- "name": "icon",
10821
- "description": "Custom icon"
10822
- }
10823
- ],
10824
- "events": [],
10825
- "attributes": [
10826
- {
10827
- "name": "name",
10828
- "default": "Item index",
10829
- "description": "Identifier",
10830
- "options": [],
10831
- "value": {
10832
- "type": "number | string",
10833
- "kind": "expression"
10834
- }
10835
- },
10836
- {
10837
- "name": "icon",
10838
- "default": "-",
10839
- "description": "Icon name",
10840
- "options": [],
10841
- "value": {
10842
- "type": "string",
10843
- "kind": "expression"
10844
- }
10845
- },
10846
- {
10847
- "name": "icon-prefix",
10848
- "default": "`van-icon`",
10849
- "description": "Icon className prefix",
10850
- "options": [],
10851
- "value": {
10852
- "type": "string",
10853
- "kind": "expression"
10854
- }
10855
- },
10856
- {
10857
- "name": "dot",
10858
- "default": "-",
10859
- "description": "Whether to show red dot",
10642
+ "default": "`false`",
10643
+ "description": "Whether to disable switch",
10860
10644
  "options": [],
10861
10645
  "value": {
10862
10646
  "type": "boolean",
@@ -10864,9 +10648,9 @@
10864
10648
  }
10865
10649
  },
10866
10650
  {
10867
- "name": "badge",
10868
- "default": "`''`",
10869
- "description": "Content of the badge",
10651
+ "name": "size",
10652
+ "default": "`30px`",
10653
+ "description": "Size of switch",
10870
10654
  "options": [],
10871
10655
  "value": {
10872
10656
  "type": "number | string",
@@ -10874,19 +10658,19 @@
10874
10658
  }
10875
10659
  },
10876
10660
  {
10877
- "name": "badge-props",
10878
- "default": "-",
10879
- "description": "Props of Badge, see [Badge - props](#/en-US/badge#props)",
10661
+ "name": "active-color",
10662
+ "default": "`#1989fa`",
10663
+ "description": "Background color when active",
10880
10664
  "options": [],
10881
10665
  "value": {
10882
- "type": "BadgeProps",
10666
+ "type": "string",
10883
10667
  "kind": "expression"
10884
10668
  }
10885
10669
  },
10886
10670
  {
10887
- "name": "url",
10888
- "default": "-",
10889
- "description": "Link",
10671
+ "name": "inactive-color",
10672
+ "default": "`white`",
10673
+ "description": "Background color when inactive",
10890
10674
  "options": [],
10891
10675
  "value": {
10892
10676
  "type": "string",
@@ -10894,22 +10678,22 @@
10894
10678
  }
10895
10679
  },
10896
10680
  {
10897
- "name": "to",
10898
- "default": "-",
10899
- "description": "Target route of the link, same as to of vue-router",
10681
+ "name": "active-value",
10682
+ "default": "`true`",
10683
+ "description": "Value when active",
10900
10684
  "options": [],
10901
10685
  "value": {
10902
- "type": "string | object",
10686
+ "type": "any",
10903
10687
  "kind": "expression"
10904
10688
  }
10905
10689
  },
10906
10690
  {
10907
- "name": "replace",
10691
+ "name": "inactive-value",
10908
10692
  "default": "`false`",
10909
- "description": "If true, the navigation will not leave a history record",
10693
+ "description": "Value when inactive",
10910
10694
  "options": [],
10911
10695
  "value": {
10912
- "type": "boolean",
10696
+ "type": "any",
10913
10697
  "kind": "expression"
10914
10698
  }
10915
10699
  }
@@ -11308,6 +11092,226 @@
11308
11092
  }
11309
11093
  ]
11310
11094
  },
11095
+ {
11096
+ "name": "van-tabbar",
11097
+ "slots": [],
11098
+ "events": [
11099
+ {
11100
+ "name": "change",
11101
+ "description": "Emitted when changing active tab",
11102
+ "arguments": [
11103
+ {
11104
+ "name": "active",
11105
+ "type": "number | string"
11106
+ }
11107
+ ]
11108
+ }
11109
+ ],
11110
+ "attributes": [
11111
+ {
11112
+ "name": "v-model",
11113
+ "default": "`0`",
11114
+ "description": "Identifier of current tab",
11115
+ "options": [],
11116
+ "value": {
11117
+ "type": "number | string",
11118
+ "kind": "expression"
11119
+ }
11120
+ },
11121
+ {
11122
+ "name": "fixed",
11123
+ "default": "`true`",
11124
+ "description": "Whether to fixed bottom",
11125
+ "options": [],
11126
+ "value": {
11127
+ "type": "boolean",
11128
+ "kind": "expression"
11129
+ }
11130
+ },
11131
+ {
11132
+ "name": "border",
11133
+ "default": "`true`",
11134
+ "description": "Whether to show border",
11135
+ "options": [],
11136
+ "value": {
11137
+ "type": "boolean",
11138
+ "kind": "expression"
11139
+ }
11140
+ },
11141
+ {
11142
+ "name": "z-index",
11143
+ "default": "`1`",
11144
+ "description": "Z-index",
11145
+ "options": [],
11146
+ "value": {
11147
+ "type": "number | string",
11148
+ "kind": "expression"
11149
+ }
11150
+ },
11151
+ {
11152
+ "name": "active-color",
11153
+ "default": "`#1989fa`",
11154
+ "description": "Color of active tab item",
11155
+ "options": [],
11156
+ "value": {
11157
+ "type": "string",
11158
+ "kind": "expression"
11159
+ }
11160
+ },
11161
+ {
11162
+ "name": "inactive-color",
11163
+ "default": "`#7d7e80`",
11164
+ "description": "Color of inactive tab item",
11165
+ "options": [],
11166
+ "value": {
11167
+ "type": "string",
11168
+ "kind": "expression"
11169
+ }
11170
+ },
11171
+ {
11172
+ "name": "route",
11173
+ "default": "`false`",
11174
+ "description": "Whether to enable route mode",
11175
+ "options": [],
11176
+ "value": {
11177
+ "type": "boolean",
11178
+ "kind": "expression"
11179
+ }
11180
+ },
11181
+ {
11182
+ "name": "placeholder",
11183
+ "default": "`false`",
11184
+ "description": "Whether to generate a placeholder element when fixed",
11185
+ "options": [],
11186
+ "value": {
11187
+ "type": "boolean",
11188
+ "kind": "expression"
11189
+ }
11190
+ },
11191
+ {
11192
+ "name": "safe-area-inset-bottom",
11193
+ "default": "`false`",
11194
+ "description": "Whether to enable bottom safe area adaptation",
11195
+ "options": [],
11196
+ "value": {
11197
+ "type": "boolean",
11198
+ "kind": "expression"
11199
+ }
11200
+ },
11201
+ {
11202
+ "name": "before-change",
11203
+ "default": "-",
11204
+ "description": "Callback function before changing tab, return `false` to prevent change, support return Promise",
11205
+ "options": [],
11206
+ "value": {
11207
+ "type": "(name: number | string) => boolean | Promise\\<boolean\\>",
11208
+ "kind": "expression"
11209
+ }
11210
+ }
11211
+ ]
11212
+ },
11213
+ {
11214
+ "name": "van-tabbar-item",
11215
+ "slots": [
11216
+ {
11217
+ "name": "icon",
11218
+ "description": "Custom icon"
11219
+ }
11220
+ ],
11221
+ "events": [],
11222
+ "attributes": [
11223
+ {
11224
+ "name": "name",
11225
+ "default": "Item index",
11226
+ "description": "Identifier",
11227
+ "options": [],
11228
+ "value": {
11229
+ "type": "number | string",
11230
+ "kind": "expression"
11231
+ }
11232
+ },
11233
+ {
11234
+ "name": "icon",
11235
+ "default": "-",
11236
+ "description": "Icon name",
11237
+ "options": [],
11238
+ "value": {
11239
+ "type": "string",
11240
+ "kind": "expression"
11241
+ }
11242
+ },
11243
+ {
11244
+ "name": "icon-prefix",
11245
+ "default": "`van-icon`",
11246
+ "description": "Icon className prefix",
11247
+ "options": [],
11248
+ "value": {
11249
+ "type": "string",
11250
+ "kind": "expression"
11251
+ }
11252
+ },
11253
+ {
11254
+ "name": "dot",
11255
+ "default": "-",
11256
+ "description": "Whether to show red dot",
11257
+ "options": [],
11258
+ "value": {
11259
+ "type": "boolean",
11260
+ "kind": "expression"
11261
+ }
11262
+ },
11263
+ {
11264
+ "name": "badge",
11265
+ "default": "`''`",
11266
+ "description": "Content of the badge",
11267
+ "options": [],
11268
+ "value": {
11269
+ "type": "number | string",
11270
+ "kind": "expression"
11271
+ }
11272
+ },
11273
+ {
11274
+ "name": "badge-props",
11275
+ "default": "-",
11276
+ "description": "Props of Badge, see [Badge - props](#/en-US/badge#props)",
11277
+ "options": [],
11278
+ "value": {
11279
+ "type": "BadgeProps",
11280
+ "kind": "expression"
11281
+ }
11282
+ },
11283
+ {
11284
+ "name": "url",
11285
+ "default": "-",
11286
+ "description": "Link",
11287
+ "options": [],
11288
+ "value": {
11289
+ "type": "string",
11290
+ "kind": "expression"
11291
+ }
11292
+ },
11293
+ {
11294
+ "name": "to",
11295
+ "default": "-",
11296
+ "description": "Target route of the link, same as to of vue-router",
11297
+ "options": [],
11298
+ "value": {
11299
+ "type": "string | object",
11300
+ "kind": "expression"
11301
+ }
11302
+ },
11303
+ {
11304
+ "name": "replace",
11305
+ "default": "`false`",
11306
+ "description": "If true, the navigation will not leave a history record",
11307
+ "options": [],
11308
+ "value": {
11309
+ "type": "boolean",
11310
+ "kind": "expression"
11311
+ }
11312
+ }
11313
+ ]
11314
+ },
11311
11315
  {
11312
11316
  "name": "van-tag",
11313
11317
  "slots": [