vant 2.12.52 → 2.12.53
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/es/index.js +1 -1
- package/es/sku/Sku.js +12 -3
- package/es/sku/components/SkuRowPropItem.js +5 -1
- package/lib/index.js +1 -1
- package/lib/sku/Sku.js +12 -3
- package/lib/sku/components/SkuRowPropItem.js +5 -1
- package/lib/vant.js +18 -5
- package/lib/vant.min.js +2 -2
- package/package.json +1 -1
- package/vetur/attributes.json +448 -448
- package/vetur/tags.json +134 -134
- package/vetur/web-types.json +1347 -1347
package/vetur/web-types.json
CHANGED
@@ -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": "2.12.
|
5
|
+
"version": "2.12.53",
|
6
6
|
"contributions": {
|
7
7
|
"html": {
|
8
8
|
"tags": [
|
@@ -118,156 +118,6 @@
|
|
118
118
|
}
|
119
119
|
]
|
120
120
|
},
|
121
|
-
{
|
122
|
-
"name": "van-area",
|
123
|
-
"slots": [
|
124
|
-
{
|
125
|
-
"name": "title",
|
126
|
-
"description": "自定义标题内容"
|
127
|
-
},
|
128
|
-
{
|
129
|
-
"name": "columns-top",
|
130
|
-
"description": "自定义选项上方内容"
|
131
|
-
},
|
132
|
-
{
|
133
|
-
"name": "columns-bottom",
|
134
|
-
"description": "自定义选项下方内容"
|
135
|
-
}
|
136
|
-
],
|
137
|
-
"events": [
|
138
|
-
{
|
139
|
-
"name": "confirm",
|
140
|
-
"description": "点击右上方完成按钮"
|
141
|
-
},
|
142
|
-
{
|
143
|
-
"name": "cancel",
|
144
|
-
"description": "点击取消按钮时"
|
145
|
-
},
|
146
|
-
{
|
147
|
-
"name": "change",
|
148
|
-
"description": "选项改变时触发"
|
149
|
-
}
|
150
|
-
],
|
151
|
-
"attributes": [
|
152
|
-
{
|
153
|
-
"name": "value",
|
154
|
-
"default": "-",
|
155
|
-
"description": "当前选中的省市区`code`",
|
156
|
-
"value": {
|
157
|
-
"type": "string",
|
158
|
-
"kind": "expression"
|
159
|
-
}
|
160
|
-
},
|
161
|
-
{
|
162
|
-
"name": "title",
|
163
|
-
"default": "-",
|
164
|
-
"description": "顶部栏标题",
|
165
|
-
"value": {
|
166
|
-
"type": "string",
|
167
|
-
"kind": "expression"
|
168
|
-
}
|
169
|
-
},
|
170
|
-
{
|
171
|
-
"name": "confirm-button-text",
|
172
|
-
"default": "`确认`",
|
173
|
-
"description": "确认按钮文字",
|
174
|
-
"value": {
|
175
|
-
"type": "string",
|
176
|
-
"kind": "expression"
|
177
|
-
}
|
178
|
-
},
|
179
|
-
{
|
180
|
-
"name": "cancel-button-text",
|
181
|
-
"default": "`取消`",
|
182
|
-
"description": "取消按钮文字",
|
183
|
-
"value": {
|
184
|
-
"type": "string",
|
185
|
-
"kind": "expression"
|
186
|
-
}
|
187
|
-
},
|
188
|
-
{
|
189
|
-
"name": "area-list",
|
190
|
-
"default": "-",
|
191
|
-
"description": "省市区数据,格式见下方",
|
192
|
-
"value": {
|
193
|
-
"type": "object",
|
194
|
-
"kind": "expression"
|
195
|
-
}
|
196
|
-
},
|
197
|
-
{
|
198
|
-
"name": "columns-placeholder",
|
199
|
-
"default": "`[]`",
|
200
|
-
"description": "列占位提示文字",
|
201
|
-
"value": {
|
202
|
-
"type": "string[]",
|
203
|
-
"kind": "expression"
|
204
|
-
}
|
205
|
-
},
|
206
|
-
{
|
207
|
-
"name": "loading",
|
208
|
-
"default": "`false`",
|
209
|
-
"description": "是否显示加载状态",
|
210
|
-
"value": {
|
211
|
-
"type": "boolean",
|
212
|
-
"kind": "expression"
|
213
|
-
}
|
214
|
-
},
|
215
|
-
{
|
216
|
-
"name": "readonly",
|
217
|
-
"default": "`false`",
|
218
|
-
"description": "是否为只读状态,只读状态下无法切换选项",
|
219
|
-
"value": {
|
220
|
-
"type": "boolean",
|
221
|
-
"kind": "expression"
|
222
|
-
}
|
223
|
-
},
|
224
|
-
{
|
225
|
-
"name": "item-height",
|
226
|
-
"default": "`44`",
|
227
|
-
"description": "选项高度,支持 `px` `vw` `vh` `rem` 单位,默认 `px`",
|
228
|
-
"value": {
|
229
|
-
"type": "number | string",
|
230
|
-
"kind": "expression"
|
231
|
-
}
|
232
|
-
},
|
233
|
-
{
|
234
|
-
"name": "columns-num",
|
235
|
-
"default": "`3`",
|
236
|
-
"description": "显示列数,3-省市区,2-省市,1-省",
|
237
|
-
"value": {
|
238
|
-
"type": "number | string",
|
239
|
-
"kind": "expression"
|
240
|
-
}
|
241
|
-
},
|
242
|
-
{
|
243
|
-
"name": "visible-item-count",
|
244
|
-
"default": "`6`",
|
245
|
-
"description": "可见的选项个数",
|
246
|
-
"value": {
|
247
|
-
"type": "number | string",
|
248
|
-
"kind": "expression"
|
249
|
-
}
|
250
|
-
},
|
251
|
-
{
|
252
|
-
"name": "swipe-duration",
|
253
|
-
"default": "`1000`",
|
254
|
-
"description": "快速滑动时惯性滚动的时长,单位`ms`",
|
255
|
-
"value": {
|
256
|
-
"type": "number | string",
|
257
|
-
"kind": "expression"
|
258
|
-
}
|
259
|
-
},
|
260
|
-
{
|
261
|
-
"name": "is-oversea-code",
|
262
|
-
"default": "-",
|
263
|
-
"description": "根据`code`校验海外地址,海外地址会划分至单独的分类",
|
264
|
-
"value": {
|
265
|
-
"type": "() => boolean",
|
266
|
-
"kind": "expression"
|
267
|
-
}
|
268
|
-
}
|
269
|
-
]
|
270
|
-
},
|
271
121
|
{
|
272
122
|
"name": "van-action-sheet",
|
273
123
|
"slots": [
|
@@ -714,134 +564,284 @@
|
|
714
564
|
]
|
715
565
|
},
|
716
566
|
{
|
717
|
-
"name": "van-
|
567
|
+
"name": "van-area",
|
718
568
|
"slots": [
|
719
569
|
{
|
720
|
-
"name": "
|
721
|
-
"description": "
|
570
|
+
"name": "title",
|
571
|
+
"description": "自定义标题内容"
|
722
572
|
},
|
723
573
|
{
|
724
|
-
"name": "
|
725
|
-
"description": "
|
574
|
+
"name": "columns-top",
|
575
|
+
"description": "自定义选项上方内容"
|
726
576
|
},
|
727
577
|
{
|
728
|
-
"name": "
|
729
|
-
"description": "
|
578
|
+
"name": "columns-bottom",
|
579
|
+
"description": "自定义选项下方内容"
|
730
580
|
}
|
731
581
|
],
|
732
582
|
"events": [
|
733
583
|
{
|
734
|
-
"name": "
|
735
|
-
"description": "
|
584
|
+
"name": "confirm",
|
585
|
+
"description": "点击右上方完成按钮"
|
736
586
|
},
|
737
587
|
{
|
738
|
-
"name": "
|
739
|
-
"description": "
|
588
|
+
"name": "cancel",
|
589
|
+
"description": "点击取消按钮时"
|
590
|
+
},
|
591
|
+
{
|
592
|
+
"name": "change",
|
593
|
+
"description": "选项改变时触发"
|
740
594
|
}
|
741
595
|
],
|
742
596
|
"attributes": [
|
743
597
|
{
|
744
|
-
"name": "
|
745
|
-
"default": "
|
746
|
-
"description": "
|
598
|
+
"name": "value",
|
599
|
+
"default": "-",
|
600
|
+
"description": "当前选中的省市区`code`",
|
747
601
|
"value": {
|
748
602
|
"type": "string",
|
749
603
|
"kind": "expression"
|
750
604
|
}
|
751
605
|
},
|
752
606
|
{
|
753
|
-
"name": "
|
754
|
-
"default": "
|
755
|
-
"description": "
|
607
|
+
"name": "title",
|
608
|
+
"default": "-",
|
609
|
+
"description": "顶部栏标题",
|
756
610
|
"value": {
|
757
611
|
"type": "string",
|
758
612
|
"kind": "expression"
|
759
613
|
}
|
760
614
|
},
|
761
615
|
{
|
762
|
-
"name": "text",
|
763
|
-
"default": "
|
764
|
-
"description": "
|
616
|
+
"name": "confirm-button-text",
|
617
|
+
"default": "`确认`",
|
618
|
+
"description": "确认按钮文字",
|
765
619
|
"value": {
|
766
620
|
"type": "string",
|
767
621
|
"kind": "expression"
|
768
622
|
}
|
769
623
|
},
|
770
624
|
{
|
771
|
-
"name": "
|
772
|
-
"default": "
|
773
|
-
"description": "
|
625
|
+
"name": "cancel-button-text",
|
626
|
+
"default": "`取消`",
|
627
|
+
"description": "取消按钮文字",
|
774
628
|
"value": {
|
775
629
|
"type": "string",
|
776
630
|
"kind": "expression"
|
777
631
|
}
|
778
632
|
},
|
779
633
|
{
|
780
|
-
"name": "
|
634
|
+
"name": "area-list",
|
781
635
|
"default": "-",
|
782
|
-
"description": "
|
636
|
+
"description": "省市区数据,格式见下方",
|
783
637
|
"value": {
|
784
|
-
"type": "
|
638
|
+
"type": "object",
|
785
639
|
"kind": "expression"
|
786
640
|
}
|
787
641
|
},
|
788
642
|
{
|
789
|
-
"name": "
|
790
|
-
"default": "`
|
791
|
-
"description": "
|
643
|
+
"name": "columns-placeholder",
|
644
|
+
"default": "`[]`",
|
645
|
+
"description": "列占位提示文字",
|
792
646
|
"value": {
|
793
|
-
"type": "string",
|
647
|
+
"type": "string[]",
|
794
648
|
"kind": "expression"
|
795
649
|
}
|
796
650
|
},
|
797
651
|
{
|
798
|
-
"name": "
|
799
|
-
"default": "`
|
800
|
-
"description": "
|
652
|
+
"name": "loading",
|
653
|
+
"default": "`false`",
|
654
|
+
"description": "是否显示加载状态",
|
801
655
|
"value": {
|
802
|
-
"type": "
|
656
|
+
"type": "boolean",
|
803
657
|
"kind": "expression"
|
804
658
|
}
|
805
659
|
},
|
806
660
|
{
|
807
|
-
"name": "
|
808
|
-
"default": "`
|
809
|
-
"description": "
|
661
|
+
"name": "readonly",
|
662
|
+
"default": "`false`",
|
663
|
+
"description": "是否为只读状态,只读状态下无法切换选项",
|
810
664
|
"value": {
|
811
|
-
"type": "
|
665
|
+
"type": "boolean",
|
812
666
|
"kind": "expression"
|
813
667
|
}
|
814
668
|
},
|
815
669
|
{
|
816
|
-
"name": "
|
817
|
-
"default": "
|
818
|
-
"description": "
|
670
|
+
"name": "item-height",
|
671
|
+
"default": "`44`",
|
672
|
+
"description": "选项高度,支持 `px` `vw` `vh` `rem` 单位,默认 `px`",
|
819
673
|
"value": {
|
820
|
-
"type": "string",
|
674
|
+
"type": "number | string",
|
821
675
|
"kind": "expression"
|
822
676
|
}
|
823
677
|
},
|
824
678
|
{
|
825
|
-
"name": "
|
826
|
-
"default": "`
|
827
|
-
"description": "
|
679
|
+
"name": "columns-num",
|
680
|
+
"default": "`3`",
|
681
|
+
"description": "显示列数,3-省市区,2-省市,1-省",
|
828
682
|
"value": {
|
829
|
-
"type": "
|
683
|
+
"type": "number | string",
|
830
684
|
"kind": "expression"
|
831
685
|
}
|
832
686
|
},
|
833
687
|
{
|
834
|
-
"name": "
|
835
|
-
"default": "`
|
836
|
-
"description": "
|
688
|
+
"name": "visible-item-count",
|
689
|
+
"default": "`6`",
|
690
|
+
"description": "可见的选项个数",
|
837
691
|
"value": {
|
838
|
-
"type": "
|
692
|
+
"type": "number | string",
|
839
693
|
"kind": "expression"
|
840
694
|
}
|
841
695
|
},
|
842
696
|
{
|
843
|
-
"name": "
|
844
|
-
"default": "`
|
697
|
+
"name": "swipe-duration",
|
698
|
+
"default": "`1000`",
|
699
|
+
"description": "快速滑动时惯性滚动的时长,单位`ms`",
|
700
|
+
"value": {
|
701
|
+
"type": "number | string",
|
702
|
+
"kind": "expression"
|
703
|
+
}
|
704
|
+
},
|
705
|
+
{
|
706
|
+
"name": "is-oversea-code",
|
707
|
+
"default": "-",
|
708
|
+
"description": "根据`code`校验海外地址,海外地址会划分至单独的分类",
|
709
|
+
"value": {
|
710
|
+
"type": "() => boolean",
|
711
|
+
"kind": "expression"
|
712
|
+
}
|
713
|
+
}
|
714
|
+
]
|
715
|
+
},
|
716
|
+
{
|
717
|
+
"name": "van-button",
|
718
|
+
"slots": [
|
719
|
+
{
|
720
|
+
"name": "default",
|
721
|
+
"description": "按钮内容"
|
722
|
+
},
|
723
|
+
{
|
724
|
+
"name": "icon",
|
725
|
+
"description": "自定义图标"
|
726
|
+
},
|
727
|
+
{
|
728
|
+
"name": "loading",
|
729
|
+
"description": "自定义加载图标"
|
730
|
+
}
|
731
|
+
],
|
732
|
+
"events": [
|
733
|
+
{
|
734
|
+
"name": "click",
|
735
|
+
"description": "点击按钮,且按钮状态不为加载或禁用时触发"
|
736
|
+
},
|
737
|
+
{
|
738
|
+
"name": "touchstart",
|
739
|
+
"description": "开始触摸按钮时触发"
|
740
|
+
}
|
741
|
+
],
|
742
|
+
"attributes": [
|
743
|
+
{
|
744
|
+
"name": "type",
|
745
|
+
"default": "`default`",
|
746
|
+
"description": "类型,可选值为 `primary` `info` `warning` `danger`",
|
747
|
+
"value": {
|
748
|
+
"type": "string",
|
749
|
+
"kind": "expression"
|
750
|
+
}
|
751
|
+
},
|
752
|
+
{
|
753
|
+
"name": "size",
|
754
|
+
"default": "`normal`",
|
755
|
+
"description": "尺寸,可选值为 `large` `small` `mini`",
|
756
|
+
"value": {
|
757
|
+
"type": "string",
|
758
|
+
"kind": "expression"
|
759
|
+
}
|
760
|
+
},
|
761
|
+
{
|
762
|
+
"name": "text",
|
763
|
+
"default": "-",
|
764
|
+
"description": "按钮文字",
|
765
|
+
"value": {
|
766
|
+
"type": "string",
|
767
|
+
"kind": "expression"
|
768
|
+
}
|
769
|
+
},
|
770
|
+
{
|
771
|
+
"name": "color",
|
772
|
+
"default": "-",
|
773
|
+
"description": "按钮颜色,支持传入 `linear-gradient` 渐变色",
|
774
|
+
"value": {
|
775
|
+
"type": "string",
|
776
|
+
"kind": "expression"
|
777
|
+
}
|
778
|
+
},
|
779
|
+
{
|
780
|
+
"name": "icon",
|
781
|
+
"default": "-",
|
782
|
+
"description": "左侧[图标名称](#/zh-CN/icon)或图片链接",
|
783
|
+
"value": {
|
784
|
+
"type": "string",
|
785
|
+
"kind": "expression"
|
786
|
+
}
|
787
|
+
},
|
788
|
+
{
|
789
|
+
"name": "icon-prefix",
|
790
|
+
"default": "`van-icon`",
|
791
|
+
"description": "图标类名前缀,同 Icon 组件的 [class-prefix 属性](#/zh-CN/icon#props)",
|
792
|
+
"value": {
|
793
|
+
"type": "string",
|
794
|
+
"kind": "expression"
|
795
|
+
}
|
796
|
+
},
|
797
|
+
{
|
798
|
+
"name": "icon-position",
|
799
|
+
"default": "`left`",
|
800
|
+
"description": "图标展示位置,可选值为 `right`",
|
801
|
+
"value": {
|
802
|
+
"type": "string",
|
803
|
+
"kind": "expression"
|
804
|
+
}
|
805
|
+
},
|
806
|
+
{
|
807
|
+
"name": "tag",
|
808
|
+
"default": "`button`",
|
809
|
+
"description": "按钮根节点的 HTML 标签",
|
810
|
+
"value": {
|
811
|
+
"type": "string",
|
812
|
+
"kind": "expression"
|
813
|
+
}
|
814
|
+
},
|
815
|
+
{
|
816
|
+
"name": "native-type",
|
817
|
+
"default": "-",
|
818
|
+
"description": "原生 button 标签的 type 属性",
|
819
|
+
"value": {
|
820
|
+
"type": "string",
|
821
|
+
"kind": "expression"
|
822
|
+
}
|
823
|
+
},
|
824
|
+
{
|
825
|
+
"name": "block",
|
826
|
+
"default": "`false`",
|
827
|
+
"description": "是否为块级元素",
|
828
|
+
"value": {
|
829
|
+
"type": "boolean",
|
830
|
+
"kind": "expression"
|
831
|
+
}
|
832
|
+
},
|
833
|
+
{
|
834
|
+
"name": "plain",
|
835
|
+
"default": "`false`",
|
836
|
+
"description": "是否为朴素按钮",
|
837
|
+
"value": {
|
838
|
+
"type": "boolean",
|
839
|
+
"kind": "expression"
|
840
|
+
}
|
841
|
+
},
|
842
|
+
{
|
843
|
+
"name": "square",
|
844
|
+
"default": "`false`",
|
845
845
|
"description": "是否为方形按钮",
|
846
846
|
"value": {
|
847
847
|
"type": "boolean",
|
@@ -1815,275 +1815,275 @@
|
|
1815
1815
|
]
|
1816
1816
|
},
|
1817
1817
|
{
|
1818
|
-
"name": "van-
|
1818
|
+
"name": "van-circle",
|
1819
1819
|
"slots": [
|
1820
1820
|
{
|
1821
1821
|
"name": "default",
|
1822
|
-
"description": "
|
1823
|
-
},
|
1824
|
-
{
|
1825
|
-
"name": "icon",
|
1826
|
-
"description": "自定义图标"
|
1827
|
-
}
|
1828
|
-
],
|
1829
|
-
"events": [
|
1830
|
-
{
|
1831
|
-
"name": "change",
|
1832
|
-
"description": "当绑定值变化时触发的事件"
|
1833
|
-
},
|
1834
|
-
{
|
1835
|
-
"name": "click",
|
1836
|
-
"description": "点击复选框时触发"
|
1837
|
-
},
|
1838
|
-
{
|
1839
|
-
"name": "change",
|
1840
|
-
"description": "当绑定值变化时触发的事件"
|
1822
|
+
"description": "自定义文字内容"
|
1841
1823
|
}
|
1842
1824
|
],
|
1825
|
+
"events": [],
|
1843
1826
|
"attributes": [
|
1844
1827
|
{
|
1845
|
-
"name": "v-model
|
1846
|
-
"default": "
|
1847
|
-
"description": "
|
1828
|
+
"name": "v-model",
|
1829
|
+
"default": "-",
|
1830
|
+
"description": "当前进度",
|
1848
1831
|
"value": {
|
1849
|
-
"type": "
|
1832
|
+
"type": "number",
|
1850
1833
|
"kind": "expression"
|
1851
1834
|
}
|
1852
1835
|
},
|
1853
1836
|
{
|
1854
|
-
"name": "
|
1855
|
-
"default": "
|
1856
|
-
"description": "
|
1837
|
+
"name": "rate",
|
1838
|
+
"default": "`100`",
|
1839
|
+
"description": "目标进度",
|
1857
1840
|
"value": {
|
1858
|
-
"type": "
|
1841
|
+
"type": "number | string",
|
1859
1842
|
"kind": "expression"
|
1860
1843
|
}
|
1861
1844
|
},
|
1862
1845
|
{
|
1863
|
-
"name": "
|
1864
|
-
"default": "`
|
1865
|
-
"description": "
|
1846
|
+
"name": "size",
|
1847
|
+
"default": "`100px`",
|
1848
|
+
"description": "圆环直径,默认单位为 `px`",
|
1866
1849
|
"value": {
|
1867
|
-
"type": "string",
|
1850
|
+
"type": "number | string",
|
1868
1851
|
"kind": "expression"
|
1869
1852
|
}
|
1870
1853
|
},
|
1871
1854
|
{
|
1872
|
-
"name": "
|
1873
|
-
"default": "`
|
1874
|
-
"description": "
|
1855
|
+
"name": "color",
|
1856
|
+
"default": "`#1989fa`",
|
1857
|
+
"description": "进度条颜色,传入对象格式可以定义渐变色",
|
1875
1858
|
"value": {
|
1876
|
-
"type": "
|
1859
|
+
"type": "string | object",
|
1877
1860
|
"kind": "expression"
|
1878
1861
|
}
|
1879
1862
|
},
|
1880
1863
|
{
|
1881
|
-
"name": "
|
1882
|
-
"default": "`
|
1883
|
-
"description": "
|
1864
|
+
"name": "layer-color",
|
1865
|
+
"default": "`white`",
|
1866
|
+
"description": "轨道颜色",
|
1884
1867
|
"value": {
|
1885
|
-
"type": "
|
1868
|
+
"type": "string",
|
1886
1869
|
"kind": "expression"
|
1887
1870
|
}
|
1888
1871
|
},
|
1889
1872
|
{
|
1890
|
-
"name": "
|
1891
|
-
"default": "`
|
1892
|
-
"description": "
|
1873
|
+
"name": "fill",
|
1874
|
+
"default": "`none`",
|
1875
|
+
"description": "填充颜色",
|
1893
1876
|
"value": {
|
1894
1877
|
"type": "string",
|
1895
1878
|
"kind": "expression"
|
1896
1879
|
}
|
1897
1880
|
},
|
1898
1881
|
{
|
1899
|
-
"name": "
|
1900
|
-
"default": "`
|
1901
|
-
"description": "
|
1882
|
+
"name": "speed",
|
1883
|
+
"default": "`0`",
|
1884
|
+
"description": "动画速度(单位为 rate/s)",
|
1902
1885
|
"value": {
|
1903
1886
|
"type": "number | string",
|
1904
1887
|
"kind": "expression"
|
1905
1888
|
}
|
1906
1889
|
},
|
1907
1890
|
{
|
1908
|
-
"name": "
|
1909
|
-
"default": "
|
1910
|
-
"description": "
|
1891
|
+
"name": "text",
|
1892
|
+
"default": "-",
|
1893
|
+
"description": "文字",
|
1911
1894
|
"value": {
|
1912
1895
|
"type": "string",
|
1913
1896
|
"kind": "expression"
|
1914
1897
|
}
|
1915
1898
|
},
|
1916
1899
|
{
|
1917
|
-
"name": "
|
1918
|
-
"default": "`
|
1919
|
-
"description": "
|
1900
|
+
"name": "stroke-width",
|
1901
|
+
"default": "`40`",
|
1902
|
+
"description": "进度条宽度",
|
1920
1903
|
"value": {
|
1921
|
-
"type": "
|
1904
|
+
"type": "number | string",
|
1922
1905
|
"kind": "expression"
|
1923
1906
|
}
|
1924
1907
|
},
|
1925
1908
|
{
|
1926
|
-
"name": "
|
1927
|
-
"default": "
|
1928
|
-
"description": "
|
1909
|
+
"name": "stroke-linecap",
|
1910
|
+
"default": "`round`",
|
1911
|
+
"description": "进度条端点的形状,可选值为`square` `butt`",
|
1929
1912
|
"value": {
|
1930
|
-
"type": "
|
1913
|
+
"type": "string",
|
1931
1914
|
"kind": "expression"
|
1932
1915
|
}
|
1933
1916
|
},
|
1934
1917
|
{
|
1935
|
-
"name": "
|
1936
|
-
"default": "`
|
1937
|
-
"description": "
|
1918
|
+
"name": "clockwise",
|
1919
|
+
"default": "`true`",
|
1920
|
+
"description": "是否顺时针增加",
|
1938
1921
|
"value": {
|
1939
1922
|
"type": "boolean",
|
1940
1923
|
"kind": "expression"
|
1941
1924
|
}
|
1942
|
-
}
|
1943
|
-
|
1944
|
-
|
1945
|
-
|
1946
|
-
|
1925
|
+
}
|
1926
|
+
]
|
1927
|
+
},
|
1928
|
+
{
|
1929
|
+
"name": "van-checkbox",
|
1930
|
+
"slots": [
|
1931
|
+
{
|
1932
|
+
"name": "default",
|
1933
|
+
"description": "自定义文本"
|
1934
|
+
},
|
1935
|
+
{
|
1936
|
+
"name": "icon",
|
1937
|
+
"description": "自定义图标"
|
1938
|
+
}
|
1939
|
+
],
|
1940
|
+
"events": [
|
1941
|
+
{
|
1942
|
+
"name": "change",
|
1943
|
+
"description": "当绑定值变化时触发的事件"
|
1944
|
+
},
|
1945
|
+
{
|
1946
|
+
"name": "click",
|
1947
|
+
"description": "点击复选框时触发"
|
1948
|
+
},
|
1949
|
+
{
|
1950
|
+
"name": "change",
|
1951
|
+
"description": "当绑定值变化时触发的事件"
|
1952
|
+
}
|
1953
|
+
],
|
1954
|
+
"attributes": [
|
1955
|
+
{
|
1956
|
+
"name": "v-model (value)",
|
1957
|
+
"default": "`false`",
|
1958
|
+
"description": "是否为选中状态",
|
1947
1959
|
"value": {
|
1948
|
-
"type": "
|
1960
|
+
"type": "boolean",
|
1949
1961
|
"kind": "expression"
|
1950
1962
|
}
|
1951
1963
|
},
|
1952
1964
|
{
|
1953
|
-
"name": "
|
1954
|
-
"default": "
|
1955
|
-
"description": "
|
1965
|
+
"name": "name",
|
1966
|
+
"default": "-",
|
1967
|
+
"description": "标识符",
|
1956
1968
|
"value": {
|
1957
|
-
"type": "
|
1969
|
+
"type": "any",
|
1958
1970
|
"kind": "expression"
|
1959
1971
|
}
|
1960
1972
|
},
|
1961
1973
|
{
|
1962
|
-
"name": "
|
1963
|
-
"default": "`
|
1964
|
-
"description": "
|
1974
|
+
"name": "shape",
|
1975
|
+
"default": "`round`",
|
1976
|
+
"description": "形状,可选值为 `square`",
|
1965
1977
|
"value": {
|
1966
|
-
"type": "
|
1978
|
+
"type": "string",
|
1967
1979
|
"kind": "expression"
|
1968
1980
|
}
|
1969
1981
|
},
|
1970
1982
|
{
|
1971
|
-
"name": "
|
1972
|
-
"default": "
|
1973
|
-
"description": "
|
1983
|
+
"name": "disabled",
|
1984
|
+
"default": "`false`",
|
1985
|
+
"description": "是否禁用复选框",
|
1974
1986
|
"value": {
|
1975
|
-
"type": "
|
1987
|
+
"type": "boolean",
|
1976
1988
|
"kind": "expression"
|
1977
1989
|
}
|
1978
|
-
}
|
1979
|
-
]
|
1980
|
-
},
|
1981
|
-
{
|
1982
|
-
"name": "van-circle",
|
1983
|
-
"slots": [
|
1984
|
-
{
|
1985
|
-
"name": "default",
|
1986
|
-
"description": "自定义文字内容"
|
1987
|
-
}
|
1988
|
-
],
|
1989
|
-
"events": [],
|
1990
|
-
"attributes": [
|
1990
|
+
},
|
1991
1991
|
{
|
1992
|
-
"name": "
|
1993
|
-
"default": "
|
1994
|
-
"description": "
|
1992
|
+
"name": "label-disabled",
|
1993
|
+
"default": "`false`",
|
1994
|
+
"description": "是否禁用复选框文本点击",
|
1995
1995
|
"value": {
|
1996
|
-
"type": "
|
1996
|
+
"type": "boolean",
|
1997
1997
|
"kind": "expression"
|
1998
1998
|
}
|
1999
1999
|
},
|
2000
2000
|
{
|
2001
|
-
"name": "
|
2002
|
-
"default": "`
|
2003
|
-
"description": "
|
2001
|
+
"name": "label-position",
|
2002
|
+
"default": "`right`",
|
2003
|
+
"description": "文本位置,可选值为 `left`",
|
2004
2004
|
"value": {
|
2005
|
-
"type": "
|
2005
|
+
"type": "string",
|
2006
2006
|
"kind": "expression"
|
2007
2007
|
}
|
2008
2008
|
},
|
2009
2009
|
{
|
2010
|
-
"name": "size",
|
2011
|
-
"default": "`
|
2012
|
-
"description": "
|
2010
|
+
"name": "icon-size",
|
2011
|
+
"default": "`20px`",
|
2012
|
+
"description": "图标大小,默认单位为 `px`",
|
2013
2013
|
"value": {
|
2014
2014
|
"type": "number | string",
|
2015
2015
|
"kind": "expression"
|
2016
2016
|
}
|
2017
2017
|
},
|
2018
2018
|
{
|
2019
|
-
"name": "color",
|
2019
|
+
"name": "checked-color",
|
2020
2020
|
"default": "`#1989fa`",
|
2021
|
-
"description": "
|
2021
|
+
"description": "选中状态颜色",
|
2022
2022
|
"value": {
|
2023
|
-
"type": "string
|
2023
|
+
"type": "string",
|
2024
2024
|
"kind": "expression"
|
2025
2025
|
}
|
2026
2026
|
},
|
2027
2027
|
{
|
2028
|
-
"name": "
|
2029
|
-
"default": "`
|
2030
|
-
"description": "
|
2028
|
+
"name": "bind-group",
|
2029
|
+
"default": "`true`",
|
2030
|
+
"description": "是否与复选框组绑定",
|
2031
2031
|
"value": {
|
2032
|
-
"type": "
|
2032
|
+
"type": "boolean",
|
2033
2033
|
"kind": "expression"
|
2034
2034
|
}
|
2035
2035
|
},
|
2036
2036
|
{
|
2037
|
-
"name": "
|
2038
|
-
"default": "
|
2039
|
-
"description": "
|
2037
|
+
"name": "v-model (value)",
|
2038
|
+
"default": "-",
|
2039
|
+
"description": "所有选中项的标识符",
|
2040
2040
|
"value": {
|
2041
|
-
"type": "
|
2041
|
+
"type": "any[]",
|
2042
2042
|
"kind": "expression"
|
2043
2043
|
}
|
2044
2044
|
},
|
2045
2045
|
{
|
2046
|
-
"name": "
|
2047
|
-
"default": "`
|
2048
|
-
"description": "
|
2046
|
+
"name": "disabled",
|
2047
|
+
"default": "`false`",
|
2048
|
+
"description": "是否禁用所有复选框",
|
2049
2049
|
"value": {
|
2050
|
-
"type": "
|
2050
|
+
"type": "boolean",
|
2051
2051
|
"kind": "expression"
|
2052
2052
|
}
|
2053
2053
|
},
|
2054
2054
|
{
|
2055
|
-
"name": "
|
2056
|
-
"default": "
|
2057
|
-
"description": "
|
2055
|
+
"name": "max",
|
2056
|
+
"default": "`0`",
|
2057
|
+
"description": "最大可选数,`0`为无限制",
|
2058
2058
|
"value": {
|
2059
|
-
"type": "string",
|
2059
|
+
"type": "number | string",
|
2060
2060
|
"kind": "expression"
|
2061
2061
|
}
|
2062
2062
|
},
|
2063
2063
|
{
|
2064
|
-
"name": "
|
2065
|
-
"default": "`
|
2066
|
-
"description": "
|
2064
|
+
"name": "direction",
|
2065
|
+
"default": "`vertical`",
|
2066
|
+
"description": "排列方向,可选值为 `horizontal`",
|
2067
2067
|
"value": {
|
2068
|
-
"type": "
|
2068
|
+
"type": "string",
|
2069
2069
|
"kind": "expression"
|
2070
2070
|
}
|
2071
2071
|
},
|
2072
2072
|
{
|
2073
|
-
"name": "
|
2074
|
-
"default": "`
|
2075
|
-
"description": "
|
2073
|
+
"name": "icon-size",
|
2074
|
+
"default": "`20px`",
|
2075
|
+
"description": "所有复选框的图标大小,默认单位为 `px`",
|
2076
2076
|
"value": {
|
2077
|
-
"type": "string",
|
2077
|
+
"type": "number | string",
|
2078
2078
|
"kind": "expression"
|
2079
2079
|
}
|
2080
2080
|
},
|
2081
2081
|
{
|
2082
|
-
"name": "
|
2083
|
-
"default": "`
|
2084
|
-
"description": "
|
2082
|
+
"name": "checked-color",
|
2083
|
+
"default": "`#1989fa`",
|
2084
|
+
"description": "所有复选框的选中状态颜色",
|
2085
2085
|
"value": {
|
2086
|
-
"type": "
|
2086
|
+
"type": "string",
|
2087
2087
|
"kind": "expression"
|
2088
2088
|
}
|
2089
2089
|
}
|
@@ -2595,317 +2595,97 @@
|
|
2595
2595
|
]
|
2596
2596
|
},
|
2597
2597
|
{
|
2598
|
-
"name": "van-
|
2598
|
+
"name": "van-coupon",
|
2599
2599
|
"slots": [
|
2600
2600
|
{
|
2601
|
-
"name": "
|
2602
|
-
"description": "
|
2603
|
-
},
|
2604
|
-
{
|
2605
|
-
"name": "title",
|
2606
|
-
"description": "自定义标题内容"
|
2607
|
-
},
|
2608
|
-
{
|
2609
|
-
"name": "confirm",
|
2610
|
-
"description": "自定义确认按钮内容"
|
2611
|
-
},
|
2612
|
-
{
|
2613
|
-
"name": "cancel",
|
2614
|
-
"description": "自定义取消按钮内容"
|
2615
|
-
},
|
2616
|
-
{
|
2617
|
-
"name": "option",
|
2618
|
-
"description": "自定义选项内容"
|
2619
|
-
},
|
2620
|
-
{
|
2621
|
-
"name": "columns-top",
|
2622
|
-
"description": "自定义选项上方内容"
|
2601
|
+
"name": "list-footer",
|
2602
|
+
"description": "优惠券列表底部"
|
2623
2603
|
},
|
2624
2604
|
{
|
2625
|
-
"name": "
|
2626
|
-
"description": "
|
2605
|
+
"name": "disabled-list-footer",
|
2606
|
+
"description": "不可用优惠券列表底部"
|
2627
2607
|
}
|
2628
2608
|
],
|
2629
2609
|
"events": [
|
2630
2610
|
{
|
2631
2611
|
"name": "change",
|
2632
|
-
"description": "
|
2633
|
-
},
|
2634
|
-
{
|
2635
|
-
"name": "confirm",
|
2636
|
-
"description": "点击完成按钮时触发的事件"
|
2612
|
+
"description": "优惠券切换回调"
|
2637
2613
|
},
|
2638
2614
|
{
|
2639
|
-
"name": "
|
2640
|
-
"description": "
|
2615
|
+
"name": "exchange",
|
2616
|
+
"description": "兑换优惠券回调"
|
2641
2617
|
}
|
2642
2618
|
],
|
2643
2619
|
"attributes": [
|
2644
2620
|
{
|
2645
|
-
"name": "
|
2646
|
-
"default": "
|
2647
|
-
"description": "
|
2621
|
+
"name": "title",
|
2622
|
+
"default": "`优惠券`",
|
2623
|
+
"description": "单元格标题",
|
2648
2624
|
"value": {
|
2649
2625
|
"type": "string",
|
2650
2626
|
"kind": "expression"
|
2651
2627
|
}
|
2652
2628
|
},
|
2653
2629
|
{
|
2654
|
-
"name": "
|
2655
|
-
"default": "`
|
2656
|
-
"description": "
|
2630
|
+
"name": "chosen-coupon",
|
2631
|
+
"default": "`-1`",
|
2632
|
+
"description": "当前选中优惠券的索引",
|
2657
2633
|
"value": {
|
2658
|
-
"type": "string",
|
2634
|
+
"type": "number | string",
|
2659
2635
|
"kind": "expression"
|
2660
2636
|
}
|
2661
2637
|
},
|
2662
2638
|
{
|
2663
|
-
"name": "
|
2664
|
-
"default": "
|
2665
|
-
"description": "
|
2639
|
+
"name": "coupons",
|
2640
|
+
"default": "`[]`",
|
2641
|
+
"description": "可用优惠券列表",
|
2666
2642
|
"value": {
|
2667
|
-
"type": "
|
2643
|
+
"type": "Coupon[]",
|
2668
2644
|
"kind": "expression"
|
2669
2645
|
}
|
2670
2646
|
},
|
2671
2647
|
{
|
2672
|
-
"name": "
|
2673
|
-
"default": "
|
2674
|
-
"description": "
|
2648
|
+
"name": "editable",
|
2649
|
+
"default": "`true`",
|
2650
|
+
"description": "能否切换优惠券",
|
2675
2651
|
"value": {
|
2676
|
-
"type": "
|
2652
|
+
"type": "boolean",
|
2677
2653
|
"kind": "expression"
|
2678
2654
|
}
|
2679
2655
|
},
|
2680
2656
|
{
|
2681
|
-
"name": "
|
2657
|
+
"name": "border",
|
2682
2658
|
"default": "`true`",
|
2683
|
-
"description": "
|
2659
|
+
"description": "是否显示内边框",
|
2684
2660
|
"value": {
|
2685
2661
|
"type": "boolean",
|
2686
2662
|
"kind": "expression"
|
2687
2663
|
}
|
2688
2664
|
},
|
2689
2665
|
{
|
2690
|
-
"name": "
|
2691
|
-
"default": "
|
2692
|
-
"description": "
|
2666
|
+
"name": "currency",
|
2667
|
+
"default": "`¥`",
|
2668
|
+
"description": "货币符号",
|
2693
2669
|
"value": {
|
2694
|
-
"type": "
|
2670
|
+
"type": "string",
|
2695
2671
|
"kind": "expression"
|
2696
2672
|
}
|
2697
2673
|
},
|
2698
2674
|
{
|
2699
|
-
"name": "
|
2700
|
-
"default": "
|
2701
|
-
"description": "
|
2675
|
+
"name": "v-model",
|
2676
|
+
"default": "-",
|
2677
|
+
"description": "当前输入的兑换码",
|
2702
2678
|
"value": {
|
2703
|
-
"type": "
|
2679
|
+
"type": "string",
|
2704
2680
|
"kind": "expression"
|
2705
2681
|
}
|
2706
2682
|
},
|
2707
2683
|
{
|
2708
|
-
"name": "
|
2709
|
-
"default": "
|
2710
|
-
"description": "
|
2684
|
+
"name": "chosen-coupon",
|
2685
|
+
"default": "`-1`",
|
2686
|
+
"description": "当前选中优惠券的索引",
|
2711
2687
|
"value": {
|
2712
|
-
"type": "
|
2713
|
-
"kind": "expression"
|
2714
|
-
}
|
2715
|
-
},
|
2716
|
-
{
|
2717
|
-
"name": "formatter",
|
2718
|
-
"default": "-",
|
2719
|
-
"description": "选项格式化函数",
|
2720
|
-
"value": {
|
2721
|
-
"type": "(type, val) => val",
|
2722
|
-
"kind": "expression"
|
2723
|
-
}
|
2724
|
-
},
|
2725
|
-
{
|
2726
|
-
"name": "columns-order",
|
2727
|
-
"default": "-",
|
2728
|
-
"description": "自定义列排序数组, 子项可选值为<br> `year`、`month`、`day`、`hour`、`minute`",
|
2729
|
-
"value": {
|
2730
|
-
"type": "string[]",
|
2731
|
-
"kind": "expression"
|
2732
|
-
}
|
2733
|
-
},
|
2734
|
-
{
|
2735
|
-
"name": "item-height",
|
2736
|
-
"default": "`44`",
|
2737
|
-
"description": "选项高度,支持 `px` `vw` `vh` `rem` 单位,默认 `px`",
|
2738
|
-
"value": {
|
2739
|
-
"type": "number | string",
|
2740
|
-
"kind": "expression"
|
2741
|
-
}
|
2742
|
-
},
|
2743
|
-
{
|
2744
|
-
"name": "visible-item-count",
|
2745
|
-
"default": "`6`",
|
2746
|
-
"description": "可见的选项个数",
|
2747
|
-
"value": {
|
2748
|
-
"type": "number | string",
|
2749
|
-
"kind": "expression"
|
2750
|
-
}
|
2751
|
-
},
|
2752
|
-
{
|
2753
|
-
"name": "swipe-duration",
|
2754
|
-
"default": "`1000`",
|
2755
|
-
"description": "快速滑动时惯性滚动的时长,单位`ms`",
|
2756
|
-
"value": {
|
2757
|
-
"type": "number | string",
|
2758
|
-
"kind": "expression"
|
2759
|
-
}
|
2760
|
-
},
|
2761
|
-
{
|
2762
|
-
"name": "min-date",
|
2763
|
-
"default": "十年前",
|
2764
|
-
"description": "可选的最小时间,精确到分钟",
|
2765
|
-
"value": {
|
2766
|
-
"type": "Date",
|
2767
|
-
"kind": "expression"
|
2768
|
-
}
|
2769
|
-
},
|
2770
|
-
{
|
2771
|
-
"name": "max-date",
|
2772
|
-
"default": "十年后",
|
2773
|
-
"description": "可选的最大时间,精确到分钟",
|
2774
|
-
"value": {
|
2775
|
-
"type": "Date",
|
2776
|
-
"kind": "expression"
|
2777
|
-
}
|
2778
|
-
},
|
2779
|
-
{
|
2780
|
-
"name": "min-hour",
|
2781
|
-
"default": "`0`",
|
2782
|
-
"description": "可选的最小小时",
|
2783
|
-
"value": {
|
2784
|
-
"type": "number | string",
|
2785
|
-
"kind": "expression"
|
2786
|
-
}
|
2787
|
-
},
|
2788
|
-
{
|
2789
|
-
"name": "max-hour",
|
2790
|
-
"default": "`23`",
|
2791
|
-
"description": "可选的最大小时",
|
2792
|
-
"value": {
|
2793
|
-
"type": "number | string",
|
2794
|
-
"kind": "expression"
|
2795
|
-
}
|
2796
|
-
},
|
2797
|
-
{
|
2798
|
-
"name": "min-minute",
|
2799
|
-
"default": "`0`",
|
2800
|
-
"description": "可选的最小分钟",
|
2801
|
-
"value": {
|
2802
|
-
"type": "number | string",
|
2803
|
-
"kind": "expression"
|
2804
|
-
}
|
2805
|
-
},
|
2806
|
-
{
|
2807
|
-
"name": "max-minute",
|
2808
|
-
"default": "`59`",
|
2809
|
-
"description": "可选的最大分钟",
|
2810
|
-
"value": {
|
2811
|
-
"type": "number | string",
|
2812
|
-
"kind": "expression"
|
2813
|
-
}
|
2814
|
-
}
|
2815
|
-
]
|
2816
|
-
},
|
2817
|
-
{
|
2818
|
-
"name": "van-coupon",
|
2819
|
-
"slots": [
|
2820
|
-
{
|
2821
|
-
"name": "list-footer",
|
2822
|
-
"description": "优惠券列表底部"
|
2823
|
-
},
|
2824
|
-
{
|
2825
|
-
"name": "disabled-list-footer",
|
2826
|
-
"description": "不可用优惠券列表底部"
|
2827
|
-
}
|
2828
|
-
],
|
2829
|
-
"events": [
|
2830
|
-
{
|
2831
|
-
"name": "change",
|
2832
|
-
"description": "优惠券切换回调"
|
2833
|
-
},
|
2834
|
-
{
|
2835
|
-
"name": "exchange",
|
2836
|
-
"description": "兑换优惠券回调"
|
2837
|
-
}
|
2838
|
-
],
|
2839
|
-
"attributes": [
|
2840
|
-
{
|
2841
|
-
"name": "title",
|
2842
|
-
"default": "`优惠券`",
|
2843
|
-
"description": "单元格标题",
|
2844
|
-
"value": {
|
2845
|
-
"type": "string",
|
2846
|
-
"kind": "expression"
|
2847
|
-
}
|
2848
|
-
},
|
2849
|
-
{
|
2850
|
-
"name": "chosen-coupon",
|
2851
|
-
"default": "`-1`",
|
2852
|
-
"description": "当前选中优惠券的索引",
|
2853
|
-
"value": {
|
2854
|
-
"type": "number | string",
|
2855
|
-
"kind": "expression"
|
2856
|
-
}
|
2857
|
-
},
|
2858
|
-
{
|
2859
|
-
"name": "coupons",
|
2860
|
-
"default": "`[]`",
|
2861
|
-
"description": "可用优惠券列表",
|
2862
|
-
"value": {
|
2863
|
-
"type": "Coupon[]",
|
2864
|
-
"kind": "expression"
|
2865
|
-
}
|
2866
|
-
},
|
2867
|
-
{
|
2868
|
-
"name": "editable",
|
2869
|
-
"default": "`true`",
|
2870
|
-
"description": "能否切换优惠券",
|
2871
|
-
"value": {
|
2872
|
-
"type": "boolean",
|
2873
|
-
"kind": "expression"
|
2874
|
-
}
|
2875
|
-
},
|
2876
|
-
{
|
2877
|
-
"name": "border",
|
2878
|
-
"default": "`true`",
|
2879
|
-
"description": "是否显示内边框",
|
2880
|
-
"value": {
|
2881
|
-
"type": "boolean",
|
2882
|
-
"kind": "expression"
|
2883
|
-
}
|
2884
|
-
},
|
2885
|
-
{
|
2886
|
-
"name": "currency",
|
2887
|
-
"default": "`¥`",
|
2888
|
-
"description": "货币符号",
|
2889
|
-
"value": {
|
2890
|
-
"type": "string",
|
2891
|
-
"kind": "expression"
|
2892
|
-
}
|
2893
|
-
},
|
2894
|
-
{
|
2895
|
-
"name": "v-model",
|
2896
|
-
"default": "-",
|
2897
|
-
"description": "当前输入的兑换码",
|
2898
|
-
"value": {
|
2899
|
-
"type": "string",
|
2900
|
-
"kind": "expression"
|
2901
|
-
}
|
2902
|
-
},
|
2903
|
-
{
|
2904
|
-
"name": "chosen-coupon",
|
2905
|
-
"default": "`-1`",
|
2906
|
-
"description": "当前选中优惠券的索引",
|
2907
|
-
"value": {
|
2908
|
-
"type": "number",
|
2688
|
+
"type": "number",
|
2909
2689
|
"kind": "expression"
|
2910
2690
|
}
|
2911
2691
|
},
|
@@ -3056,248 +2836,220 @@
|
|
3056
2836
|
]
|
3057
2837
|
},
|
3058
2838
|
{
|
3059
|
-
"name": "van-
|
2839
|
+
"name": "van-datetime-picker",
|
3060
2840
|
"slots": [
|
3061
2841
|
{
|
3062
2842
|
"name": "default",
|
3063
|
-
"description": "
|
2843
|
+
"description": "自定义整个顶部栏的内容"
|
3064
2844
|
},
|
3065
2845
|
{
|
3066
2846
|
"name": "title",
|
3067
|
-
"description": "
|
3068
|
-
}
|
3069
|
-
],
|
3070
|
-
"events": [
|
2847
|
+
"description": "自定义标题内容"
|
2848
|
+
},
|
3071
2849
|
{
|
3072
2850
|
"name": "confirm",
|
3073
|
-
"description": "
|
2851
|
+
"description": "自定义确认按钮内容"
|
3074
2852
|
},
|
3075
2853
|
{
|
3076
2854
|
"name": "cancel",
|
3077
|
-
"description": "
|
2855
|
+
"description": "自定义取消按钮内容"
|
3078
2856
|
},
|
3079
2857
|
{
|
3080
|
-
"name": "
|
3081
|
-
"description": "
|
2858
|
+
"name": "option",
|
2859
|
+
"description": "自定义选项内容"
|
3082
2860
|
},
|
3083
2861
|
{
|
3084
|
-
"name": "
|
3085
|
-
"description": "
|
2862
|
+
"name": "columns-top",
|
2863
|
+
"description": "自定义选项上方内容"
|
3086
2864
|
},
|
3087
2865
|
{
|
3088
|
-
"name": "
|
3089
|
-
"description": "
|
2866
|
+
"name": "columns-bottom",
|
2867
|
+
"description": "自定义选项下方内容"
|
2868
|
+
}
|
2869
|
+
],
|
2870
|
+
"events": [
|
2871
|
+
{
|
2872
|
+
"name": "change",
|
2873
|
+
"description": "当值变化时触发的事件"
|
3090
2874
|
},
|
3091
2875
|
{
|
3092
|
-
"name": "
|
3093
|
-
"description": "
|
2876
|
+
"name": "confirm",
|
2877
|
+
"description": "点击完成按钮时触发的事件"
|
2878
|
+
},
|
2879
|
+
{
|
2880
|
+
"name": "cancel",
|
2881
|
+
"description": "点击取消按钮时触发的事件"
|
3094
2882
|
}
|
3095
2883
|
],
|
3096
2884
|
"attributes": [
|
3097
2885
|
{
|
3098
|
-
"name": "
|
3099
|
-
"default": "
|
3100
|
-
"description": "
|
2886
|
+
"name": "type",
|
2887
|
+
"default": "`datetime`",
|
2888
|
+
"description": "时间类型,可选值为 `date` `time` <br> `year-month` `month-day` `datehour`",
|
3101
2889
|
"value": {
|
3102
|
-
"type": "
|
2890
|
+
"type": "string",
|
3103
2891
|
"kind": "expression"
|
3104
2892
|
}
|
3105
2893
|
},
|
3106
2894
|
{
|
3107
2895
|
"name": "title",
|
3108
|
-
"default": "
|
3109
|
-
"description": "
|
2896
|
+
"default": "`''`",
|
2897
|
+
"description": "顶部栏标题",
|
3110
2898
|
"value": {
|
3111
2899
|
"type": "string",
|
3112
2900
|
"kind": "expression"
|
3113
2901
|
}
|
3114
2902
|
},
|
3115
2903
|
{
|
3116
|
-
"name": "
|
3117
|
-
"default": "
|
3118
|
-
"description": "
|
2904
|
+
"name": "confirm-button-text",
|
2905
|
+
"default": "`确认`",
|
2906
|
+
"description": "确认按钮文字",
|
3119
2907
|
"value": {
|
3120
|
-
"type": "
|
2908
|
+
"type": "string",
|
3121
2909
|
"kind": "expression"
|
3122
2910
|
}
|
3123
2911
|
},
|
3124
2912
|
{
|
3125
|
-
"name": "
|
3126
|
-
"default": "
|
3127
|
-
"description": "
|
3128
|
-
"value": {
|
3129
|
-
"type": "string",
|
3130
|
-
"kind": "expression"
|
3131
|
-
}
|
3132
|
-
},
|
3133
|
-
{
|
3134
|
-
"name": "message-align",
|
3135
|
-
"default": "`center`",
|
3136
|
-
"description": "内容对齐方式,可选值为 `left` `right`",
|
3137
|
-
"value": {
|
3138
|
-
"type": "string",
|
3139
|
-
"kind": "expression"
|
3140
|
-
}
|
3141
|
-
},
|
3142
|
-
{
|
3143
|
-
"name": "theme",
|
3144
|
-
"default": "`default`",
|
3145
|
-
"description": "样式风格,可选值为 `round-button`",
|
2913
|
+
"name": "cancel-button-text",
|
2914
|
+
"default": "`取消`",
|
2915
|
+
"description": "取消按钮文字",
|
3146
2916
|
"value": {
|
3147
2917
|
"type": "string",
|
3148
2918
|
"kind": "expression"
|
3149
2919
|
}
|
3150
2920
|
},
|
3151
2921
|
{
|
3152
|
-
"name": "show-
|
2922
|
+
"name": "show-toolbar",
|
3153
2923
|
"default": "`true`",
|
3154
|
-
"description": "
|
2924
|
+
"description": "是否显示顶部栏",
|
3155
2925
|
"value": {
|
3156
2926
|
"type": "boolean",
|
3157
2927
|
"kind": "expression"
|
3158
2928
|
}
|
3159
2929
|
},
|
3160
2930
|
{
|
3161
|
-
"name": "
|
2931
|
+
"name": "loading",
|
3162
2932
|
"default": "`false`",
|
3163
|
-
"description": "
|
2933
|
+
"description": "是否显示加载状态",
|
3164
2934
|
"value": {
|
3165
2935
|
"type": "boolean",
|
3166
2936
|
"kind": "expression"
|
3167
2937
|
}
|
3168
2938
|
},
|
3169
2939
|
{
|
3170
|
-
"name": "
|
3171
|
-
"default": "
|
3172
|
-
"description": "
|
3173
|
-
"value": {
|
3174
|
-
"type": "string",
|
3175
|
-
"kind": "expression"
|
3176
|
-
}
|
3177
|
-
},
|
3178
|
-
{
|
3179
|
-
"name": "confirm-button-color",
|
3180
|
-
"default": "`#ee0a24`",
|
3181
|
-
"description": "确认按钮颜色",
|
3182
|
-
"value": {
|
3183
|
-
"type": "string",
|
3184
|
-
"kind": "expression"
|
3185
|
-
}
|
3186
|
-
},
|
3187
|
-
{
|
3188
|
-
"name": "cancel-button-text",
|
3189
|
-
"default": "`取消`",
|
3190
|
-
"description": "取消按钮文案",
|
2940
|
+
"name": "readonly",
|
2941
|
+
"default": "`false`",
|
2942
|
+
"description": "是否为只读状态,只读状态下无法切换选项",
|
3191
2943
|
"value": {
|
3192
|
-
"type": "
|
2944
|
+
"type": "boolean",
|
3193
2945
|
"kind": "expression"
|
3194
2946
|
}
|
3195
2947
|
},
|
3196
2948
|
{
|
3197
|
-
"name": "
|
3198
|
-
"default": "
|
3199
|
-
"description": "
|
2949
|
+
"name": "filter",
|
2950
|
+
"default": "-",
|
2951
|
+
"description": "选项过滤函数",
|
3200
2952
|
"value": {
|
3201
|
-
"type": "
|
2953
|
+
"type": "(type, vals) => vals",
|
3202
2954
|
"kind": "expression"
|
3203
2955
|
}
|
3204
2956
|
},
|
3205
2957
|
{
|
3206
|
-
"name": "
|
3207
|
-
"default": "
|
3208
|
-
"description": "
|
2958
|
+
"name": "formatter",
|
2959
|
+
"default": "-",
|
2960
|
+
"description": "选项格式化函数",
|
3209
2961
|
"value": {
|
3210
|
-
"type": "
|
2962
|
+
"type": "(type, val) => val",
|
3211
2963
|
"kind": "expression"
|
3212
2964
|
}
|
3213
2965
|
},
|
3214
2966
|
{
|
3215
|
-
"name": "
|
2967
|
+
"name": "columns-order",
|
3216
2968
|
"default": "-",
|
3217
|
-
"description": "
|
2969
|
+
"description": "自定义列排序数组, 子项可选值为<br> `year`、`month`、`day`、`hour`、`minute`",
|
3218
2970
|
"value": {
|
3219
|
-
"type": "string",
|
2971
|
+
"type": "string[]",
|
3220
2972
|
"kind": "expression"
|
3221
2973
|
}
|
3222
2974
|
},
|
3223
2975
|
{
|
3224
|
-
"name": "
|
3225
|
-
"default": "
|
3226
|
-
"description": "
|
2976
|
+
"name": "item-height",
|
2977
|
+
"default": "`44`",
|
2978
|
+
"description": "选项高度,支持 `px` `vw` `vh` `rem` 单位,默认 `px`",
|
3227
2979
|
"value": {
|
3228
|
-
"type": "
|
2980
|
+
"type": "number | string",
|
3229
2981
|
"kind": "expression"
|
3230
2982
|
}
|
3231
2983
|
},
|
3232
2984
|
{
|
3233
|
-
"name": "
|
3234
|
-
"default": "`
|
3235
|
-
"description": "
|
2985
|
+
"name": "visible-item-count",
|
2986
|
+
"default": "`6`",
|
2987
|
+
"description": "可见的选项个数",
|
3236
2988
|
"value": {
|
3237
|
-
"type": "
|
2989
|
+
"type": "number | string",
|
3238
2990
|
"kind": "expression"
|
3239
2991
|
}
|
3240
2992
|
},
|
3241
2993
|
{
|
3242
|
-
"name": "
|
3243
|
-
"default": "`
|
3244
|
-
"description": "
|
2994
|
+
"name": "swipe-duration",
|
2995
|
+
"default": "`1000`",
|
2996
|
+
"description": "快速滑动时惯性滚动的时长,单位`ms`",
|
3245
2997
|
"value": {
|
3246
|
-
"type": "
|
2998
|
+
"type": "number | string",
|
3247
2999
|
"kind": "expression"
|
3248
3000
|
}
|
3249
3001
|
},
|
3250
3002
|
{
|
3251
|
-
"name": "
|
3252
|
-
"default": "
|
3253
|
-
"description": "
|
3003
|
+
"name": "min-date",
|
3004
|
+
"default": "十年前",
|
3005
|
+
"description": "可选的最小时间,精确到分钟",
|
3254
3006
|
"value": {
|
3255
|
-
"type": "
|
3007
|
+
"type": "Date",
|
3256
3008
|
"kind": "expression"
|
3257
3009
|
}
|
3258
3010
|
},
|
3259
3011
|
{
|
3260
|
-
"name": "
|
3261
|
-
"default": "
|
3262
|
-
"description": "
|
3012
|
+
"name": "max-date",
|
3013
|
+
"default": "十年后",
|
3014
|
+
"description": "可选的最大时间,精确到分钟",
|
3263
3015
|
"value": {
|
3264
|
-
"type": "
|
3016
|
+
"type": "Date",
|
3265
3017
|
"kind": "expression"
|
3266
3018
|
}
|
3267
3019
|
},
|
3268
3020
|
{
|
3269
|
-
"name": "
|
3270
|
-
"default": "`
|
3271
|
-
"description": "
|
3021
|
+
"name": "min-hour",
|
3022
|
+
"default": "`0`",
|
3023
|
+
"description": "可选的最小小时",
|
3272
3024
|
"value": {
|
3273
|
-
"type": "
|
3025
|
+
"type": "number | string",
|
3274
3026
|
"kind": "expression"
|
3275
3027
|
}
|
3276
3028
|
},
|
3277
3029
|
{
|
3278
|
-
"name": "
|
3279
|
-
"default": "
|
3280
|
-
"description": "
|
3030
|
+
"name": "max-hour",
|
3031
|
+
"default": "`23`",
|
3032
|
+
"description": "可选的最大小时",
|
3281
3033
|
"value": {
|
3282
|
-
"type": "
|
3034
|
+
"type": "number | string",
|
3283
3035
|
"kind": "expression"
|
3284
3036
|
}
|
3285
3037
|
},
|
3286
3038
|
{
|
3287
|
-
"name": "
|
3288
|
-
"default": "
|
3289
|
-
"description": "
|
3039
|
+
"name": "min-minute",
|
3040
|
+
"default": "`0`",
|
3041
|
+
"description": "可选的最小分钟",
|
3290
3042
|
"value": {
|
3291
|
-
"type": "string",
|
3043
|
+
"type": "number | string",
|
3292
3044
|
"kind": "expression"
|
3293
3045
|
}
|
3294
3046
|
},
|
3295
3047
|
{
|
3296
|
-
"name": "
|
3297
|
-
"default": "
|
3298
|
-
"description": "
|
3048
|
+
"name": "max-minute",
|
3049
|
+
"default": "`59`",
|
3050
|
+
"description": "可选的最大分钟",
|
3299
3051
|
"value": {
|
3300
|
-
"type": "
|
3052
|
+
"type": "number | string",
|
3301
3053
|
"kind": "expression"
|
3302
3054
|
}
|
3303
3055
|
}
|
@@ -3343,144 +3095,392 @@
|
|
3343
3095
|
]
|
3344
3096
|
},
|
3345
3097
|
{
|
3346
|
-
"name": "van-
|
3098
|
+
"name": "van-dialog",
|
3347
3099
|
"slots": [
|
3348
3100
|
{
|
3349
3101
|
"name": "default",
|
3350
|
-
"description": "
|
3102
|
+
"description": "自定义内容"
|
3351
3103
|
},
|
3352
3104
|
{
|
3353
3105
|
"name": "title",
|
3354
|
-
"description": "
|
3106
|
+
"description": "自定义标题"
|
3355
3107
|
}
|
3356
3108
|
],
|
3357
3109
|
"events": [
|
3358
3110
|
{
|
3359
|
-
"name": "
|
3360
|
-
"description": "
|
3111
|
+
"name": "confirm",
|
3112
|
+
"description": "点击确认按钮时触发"
|
3113
|
+
},
|
3114
|
+
{
|
3115
|
+
"name": "cancel",
|
3116
|
+
"description": "点击取消按钮时触发"
|
3361
3117
|
},
|
3362
3118
|
{
|
3363
3119
|
"name": "open",
|
3364
|
-
"description": "
|
3120
|
+
"description": "打开弹窗时触发"
|
3365
3121
|
},
|
3366
3122
|
{
|
3367
3123
|
"name": "close",
|
3368
|
-
"description": "
|
3124
|
+
"description": "关闭弹窗时触发"
|
3369
3125
|
},
|
3370
3126
|
{
|
3371
3127
|
"name": "opened",
|
3372
|
-
"description": "
|
3128
|
+
"description": "打开弹窗且动画结束后触发"
|
3373
3129
|
},
|
3374
3130
|
{
|
3375
3131
|
"name": "closed",
|
3376
|
-
"description": "
|
3132
|
+
"description": "关闭弹窗且动画结束后触发"
|
3377
3133
|
}
|
3378
3134
|
],
|
3379
3135
|
"attributes": [
|
3380
3136
|
{
|
3381
|
-
"name": "
|
3382
|
-
"default": "
|
3383
|
-
"description": "
|
3137
|
+
"name": "v-model",
|
3138
|
+
"default": "-",
|
3139
|
+
"description": "是否显示弹窗",
|
3384
3140
|
"value": {
|
3385
|
-
"type": "
|
3141
|
+
"type": "boolean",
|
3386
3142
|
"kind": "expression"
|
3387
3143
|
}
|
3388
3144
|
},
|
3389
3145
|
{
|
3390
|
-
"name": "
|
3391
|
-
"default": "
|
3392
|
-
"description": "
|
3146
|
+
"name": "title",
|
3147
|
+
"default": "-",
|
3148
|
+
"description": "标题",
|
3393
3149
|
"value": {
|
3394
3150
|
"type": "string",
|
3395
3151
|
"kind": "expression"
|
3396
3152
|
}
|
3397
3153
|
},
|
3398
3154
|
{
|
3399
|
-
"name": "
|
3400
|
-
"default": "`
|
3401
|
-
"description": "
|
3155
|
+
"name": "width",
|
3156
|
+
"default": "`320px`",
|
3157
|
+
"description": "弹窗宽度,默认单位为 `px`",
|
3402
3158
|
"value": {
|
3403
3159
|
"type": "number | string",
|
3404
3160
|
"kind": "expression"
|
3405
3161
|
}
|
3406
3162
|
},
|
3407
3163
|
{
|
3408
|
-
"name": "
|
3409
|
-
"default": "
|
3410
|
-
"description": "
|
3164
|
+
"name": "message",
|
3165
|
+
"default": "-",
|
3166
|
+
"description": "文本内容,支持通过 `\\n` 换行",
|
3411
3167
|
"value": {
|
3412
|
-
"type": "
|
3168
|
+
"type": "string",
|
3413
3169
|
"kind": "expression"
|
3414
3170
|
}
|
3415
3171
|
},
|
3416
3172
|
{
|
3417
|
-
"name": "
|
3418
|
-
"default": "`
|
3419
|
-
"description": "
|
3173
|
+
"name": "message-align",
|
3174
|
+
"default": "`center`",
|
3175
|
+
"description": "内容对齐方式,可选值为 `left` `right`",
|
3420
3176
|
"value": {
|
3421
|
-
"type": "
|
3177
|
+
"type": "string",
|
3422
3178
|
"kind": "expression"
|
3423
3179
|
}
|
3424
3180
|
},
|
3425
3181
|
{
|
3426
|
-
"name": "
|
3427
|
-
"default": "`
|
3428
|
-
"description": "
|
3182
|
+
"name": "theme",
|
3183
|
+
"default": "`default`",
|
3184
|
+
"description": "样式风格,可选值为 `round-button`",
|
3429
3185
|
"value": {
|
3430
|
-
"type": "
|
3186
|
+
"type": "string",
|
3431
3187
|
"kind": "expression"
|
3432
3188
|
}
|
3433
3189
|
},
|
3434
3190
|
{
|
3435
|
-
"name": "
|
3191
|
+
"name": "show-confirm-button",
|
3436
3192
|
"default": "`true`",
|
3437
|
-
"description": "
|
3193
|
+
"description": "是否展示确认按钮",
|
3438
3194
|
"value": {
|
3439
3195
|
"type": "boolean",
|
3440
3196
|
"kind": "expression"
|
3441
3197
|
}
|
3442
3198
|
},
|
3443
3199
|
{
|
3444
|
-
"name": "
|
3445
|
-
"default": "
|
3446
|
-
"description": "
|
3200
|
+
"name": "show-cancel-button",
|
3201
|
+
"default": "`false`",
|
3202
|
+
"description": "是否展示取消按钮",
|
3447
3203
|
"value": {
|
3448
|
-
"type": "
|
3204
|
+
"type": "boolean",
|
3449
3205
|
"kind": "expression"
|
3450
3206
|
}
|
3451
3207
|
},
|
3452
3208
|
{
|
3453
|
-
"name": "
|
3454
|
-
"default": "
|
3455
|
-
"description": "
|
3209
|
+
"name": "confirm-button-text",
|
3210
|
+
"default": "`确认`",
|
3211
|
+
"description": "确认按钮文案",
|
3456
3212
|
"value": {
|
3457
3213
|
"type": "string",
|
3458
3214
|
"kind": "expression"
|
3459
3215
|
}
|
3460
3216
|
},
|
3461
3217
|
{
|
3462
|
-
"name": "
|
3463
|
-
"default": "`
|
3464
|
-
"description": "
|
3218
|
+
"name": "confirm-button-color",
|
3219
|
+
"default": "`#ee0a24`",
|
3220
|
+
"description": "确认按钮颜色",
|
3465
3221
|
"value": {
|
3466
|
-
"type": "
|
3222
|
+
"type": "string",
|
3467
3223
|
"kind": "expression"
|
3468
3224
|
}
|
3469
3225
|
},
|
3470
3226
|
{
|
3471
|
-
"name": "
|
3472
|
-
"default": "
|
3473
|
-
"description": "
|
3227
|
+
"name": "cancel-button-text",
|
3228
|
+
"default": "`取消`",
|
3229
|
+
"description": "取消按钮文案",
|
3474
3230
|
"value": {
|
3475
|
-
"type": "
|
3231
|
+
"type": "string",
|
3476
3232
|
"kind": "expression"
|
3477
3233
|
}
|
3478
3234
|
},
|
3479
3235
|
{
|
3480
|
-
"name": "
|
3481
|
-
"default": "`
|
3482
|
-
"description": "
|
3483
|
-
"value": {
|
3236
|
+
"name": "cancel-button-color",
|
3237
|
+
"default": "`black`",
|
3238
|
+
"description": "取消按钮颜色",
|
3239
|
+
"value": {
|
3240
|
+
"type": "string",
|
3241
|
+
"kind": "expression"
|
3242
|
+
}
|
3243
|
+
},
|
3244
|
+
{
|
3245
|
+
"name": "overlay",
|
3246
|
+
"default": "`true`",
|
3247
|
+
"description": "是否展示遮罩层",
|
3248
|
+
"value": {
|
3249
|
+
"type": "boolean",
|
3250
|
+
"kind": "expression"
|
3251
|
+
}
|
3252
|
+
},
|
3253
|
+
{
|
3254
|
+
"name": "overlay-class",
|
3255
|
+
"default": "-",
|
3256
|
+
"description": "自定义遮罩层类名",
|
3257
|
+
"value": {
|
3258
|
+
"type": "string",
|
3259
|
+
"kind": "expression"
|
3260
|
+
}
|
3261
|
+
},
|
3262
|
+
{
|
3263
|
+
"name": "overlay-style",
|
3264
|
+
"default": "-",
|
3265
|
+
"description": "自定义遮罩层样式",
|
3266
|
+
"value": {
|
3267
|
+
"type": "object",
|
3268
|
+
"kind": "expression"
|
3269
|
+
}
|
3270
|
+
},
|
3271
|
+
{
|
3272
|
+
"name": "close-on-popstate",
|
3273
|
+
"default": "`true`",
|
3274
|
+
"description": "是否在页面回退时自动关闭",
|
3275
|
+
"value": {
|
3276
|
+
"type": "boolean",
|
3277
|
+
"kind": "expression"
|
3278
|
+
}
|
3279
|
+
},
|
3280
|
+
{
|
3281
|
+
"name": "close-on-click-overlay",
|
3282
|
+
"default": "`false`",
|
3283
|
+
"description": "是否在点击遮罩层后关闭弹窗",
|
3284
|
+
"value": {
|
3285
|
+
"type": "boolean",
|
3286
|
+
"kind": "expression"
|
3287
|
+
}
|
3288
|
+
},
|
3289
|
+
{
|
3290
|
+
"name": "lazy-render",
|
3291
|
+
"default": "`true`",
|
3292
|
+
"description": "是否在显示弹层时才渲染节点",
|
3293
|
+
"value": {
|
3294
|
+
"type": "boolean",
|
3295
|
+
"kind": "expression"
|
3296
|
+
}
|
3297
|
+
},
|
3298
|
+
{
|
3299
|
+
"name": "lock-scroll",
|
3300
|
+
"default": "`true`",
|
3301
|
+
"description": "是否锁定背景滚动",
|
3302
|
+
"value": {
|
3303
|
+
"type": "boolean",
|
3304
|
+
"kind": "expression"
|
3305
|
+
}
|
3306
|
+
},
|
3307
|
+
{
|
3308
|
+
"name": "allow-html",
|
3309
|
+
"default": "`true`",
|
3310
|
+
"description": "是否允许 message 内容中渲染 HTML",
|
3311
|
+
"value": {
|
3312
|
+
"type": "boolean",
|
3313
|
+
"kind": "expression"
|
3314
|
+
}
|
3315
|
+
},
|
3316
|
+
{
|
3317
|
+
"name": "before-close",
|
3318
|
+
"default": "-",
|
3319
|
+
"description": "关闭前的回调函数,<br>调用 done() 后关闭弹窗,<br>调用 done(false) 阻止弹窗关闭",
|
3320
|
+
"value": {
|
3321
|
+
"type": "(action, done) => void",
|
3322
|
+
"kind": "expression"
|
3323
|
+
}
|
3324
|
+
},
|
3325
|
+
{
|
3326
|
+
"name": "transition",
|
3327
|
+
"default": "-",
|
3328
|
+
"description": "动画类名,等价于 [transition](https://cn.vuejs.org/v2/api/index.html#transition) 的 `name` 属性",
|
3329
|
+
"value": {
|
3330
|
+
"type": "string",
|
3331
|
+
"kind": "expression"
|
3332
|
+
}
|
3333
|
+
},
|
3334
|
+
{
|
3335
|
+
"name": "get-container",
|
3336
|
+
"default": "-",
|
3337
|
+
"description": "指定挂载的节点,[用法示例](#/zh-CN/popup#zhi-ding-gua-zai-wei-zhi)",
|
3338
|
+
"value": {
|
3339
|
+
"type": "string | () => Element",
|
3340
|
+
"kind": "expression"
|
3341
|
+
}
|
3342
|
+
}
|
3343
|
+
]
|
3344
|
+
},
|
3345
|
+
{
|
3346
|
+
"name": "van-dropdown-menu",
|
3347
|
+
"slots": [
|
3348
|
+
{
|
3349
|
+
"name": "default",
|
3350
|
+
"description": "菜单内容"
|
3351
|
+
},
|
3352
|
+
{
|
3353
|
+
"name": "title",
|
3354
|
+
"description": "自定义菜单项标题"
|
3355
|
+
}
|
3356
|
+
],
|
3357
|
+
"events": [
|
3358
|
+
{
|
3359
|
+
"name": "change",
|
3360
|
+
"description": "点击选项导致 value 变化时触发"
|
3361
|
+
},
|
3362
|
+
{
|
3363
|
+
"name": "open",
|
3364
|
+
"description": "打开菜单栏时触发"
|
3365
|
+
},
|
3366
|
+
{
|
3367
|
+
"name": "close",
|
3368
|
+
"description": "关闭菜单栏时触发"
|
3369
|
+
},
|
3370
|
+
{
|
3371
|
+
"name": "opened",
|
3372
|
+
"description": "打开菜单栏且动画结束后触发"
|
3373
|
+
},
|
3374
|
+
{
|
3375
|
+
"name": "closed",
|
3376
|
+
"description": "关闭菜单栏且动画结束后触发"
|
3377
|
+
}
|
3378
|
+
],
|
3379
|
+
"attributes": [
|
3380
|
+
{
|
3381
|
+
"name": "active-color",
|
3382
|
+
"default": "`#ee0a24`",
|
3383
|
+
"description": "菜单标题和选项的选中态颜色",
|
3384
|
+
"value": {
|
3385
|
+
"type": "string",
|
3386
|
+
"kind": "expression"
|
3387
|
+
}
|
3388
|
+
},
|
3389
|
+
{
|
3390
|
+
"name": "direction",
|
3391
|
+
"default": "`down`",
|
3392
|
+
"description": "菜单展开方向,可选值为`up`",
|
3393
|
+
"value": {
|
3394
|
+
"type": "string",
|
3395
|
+
"kind": "expression"
|
3396
|
+
}
|
3397
|
+
},
|
3398
|
+
{
|
3399
|
+
"name": "z-index",
|
3400
|
+
"default": "`10`",
|
3401
|
+
"description": "菜单栏 z-index 层级",
|
3402
|
+
"value": {
|
3403
|
+
"type": "number | string",
|
3404
|
+
"kind": "expression"
|
3405
|
+
}
|
3406
|
+
},
|
3407
|
+
{
|
3408
|
+
"name": "duration",
|
3409
|
+
"default": "`0.2`",
|
3410
|
+
"description": "动画时长,单位秒",
|
3411
|
+
"value": {
|
3412
|
+
"type": "number | string",
|
3413
|
+
"kind": "expression"
|
3414
|
+
}
|
3415
|
+
},
|
3416
|
+
{
|
3417
|
+
"name": "overlay",
|
3418
|
+
"default": "`true`",
|
3419
|
+
"description": "是否显示遮罩层",
|
3420
|
+
"value": {
|
3421
|
+
"type": "boolean",
|
3422
|
+
"kind": "expression"
|
3423
|
+
}
|
3424
|
+
},
|
3425
|
+
{
|
3426
|
+
"name": "close-on-click-overlay",
|
3427
|
+
"default": "`true`",
|
3428
|
+
"description": "是否在点击遮罩层后关闭菜单",
|
3429
|
+
"value": {
|
3430
|
+
"type": "boolean",
|
3431
|
+
"kind": "expression"
|
3432
|
+
}
|
3433
|
+
},
|
3434
|
+
{
|
3435
|
+
"name": "close-on-click-outside",
|
3436
|
+
"default": "`true`",
|
3437
|
+
"description": "是否在点击外部元素后关闭菜单",
|
3438
|
+
"value": {
|
3439
|
+
"type": "boolean",
|
3440
|
+
"kind": "expression"
|
3441
|
+
}
|
3442
|
+
},
|
3443
|
+
{
|
3444
|
+
"name": "value",
|
3445
|
+
"default": "-",
|
3446
|
+
"description": "当前选中项对应的 value,可以通过`v-model`双向绑定",
|
3447
|
+
"value": {
|
3448
|
+
"type": "number | string",
|
3449
|
+
"kind": "expression"
|
3450
|
+
}
|
3451
|
+
},
|
3452
|
+
{
|
3453
|
+
"name": "title",
|
3454
|
+
"default": "当前选中项文字",
|
3455
|
+
"description": "菜单项标题",
|
3456
|
+
"value": {
|
3457
|
+
"type": "string",
|
3458
|
+
"kind": "expression"
|
3459
|
+
}
|
3460
|
+
},
|
3461
|
+
{
|
3462
|
+
"name": "options",
|
3463
|
+
"default": "`[]`",
|
3464
|
+
"description": "选项数组",
|
3465
|
+
"value": {
|
3466
|
+
"type": "Option[]",
|
3467
|
+
"kind": "expression"
|
3468
|
+
}
|
3469
|
+
},
|
3470
|
+
{
|
3471
|
+
"name": "disabled",
|
3472
|
+
"default": "`false`",
|
3473
|
+
"description": "是否禁用菜单",
|
3474
|
+
"value": {
|
3475
|
+
"type": "boolean",
|
3476
|
+
"kind": "expression"
|
3477
|
+
}
|
3478
|
+
},
|
3479
|
+
{
|
3480
|
+
"name": "lazy-render",
|
3481
|
+
"default": "`true`",
|
3482
|
+
"description": "是否在首次展开时才渲染菜单内容",
|
3483
|
+
"value": {
|
3484
3484
|
"type": "boolean",
|
3485
3485
|
"kind": "expression"
|
3486
3486
|
}
|
@@ -3553,446 +3553,493 @@
|
|
3553
3553
|
]
|
3554
3554
|
},
|
3555
3555
|
{
|
3556
|
-
"name": "van-
|
3556
|
+
"name": "van-form",
|
3557
3557
|
"slots": [
|
3558
3558
|
{
|
3559
|
-
"name": "
|
3560
|
-
"description": "
|
3559
|
+
"name": "default",
|
3560
|
+
"description": "表单内容"
|
3561
|
+
}
|
3562
|
+
],
|
3563
|
+
"events": [
|
3564
|
+
{
|
3565
|
+
"name": "submit",
|
3566
|
+
"description": "提交表单且验证通过后触发"
|
3561
3567
|
},
|
3562
3568
|
{
|
3563
|
-
"name": "
|
3564
|
-
"description": "
|
3569
|
+
"name": "failed",
|
3570
|
+
"description": "提交表单且验证不通过后触发"
|
3571
|
+
}
|
3572
|
+
],
|
3573
|
+
"attributes": [
|
3574
|
+
{
|
3575
|
+
"name": "label-width",
|
3576
|
+
"default": "`6.2em`",
|
3577
|
+
"description": "表单项 label 宽度,默认单位为`px`",
|
3578
|
+
"value": {
|
3579
|
+
"type": "number | string",
|
3580
|
+
"kind": "expression"
|
3581
|
+
}
|
3565
3582
|
},
|
3566
3583
|
{
|
3567
|
-
"name": "
|
3568
|
-
"
|
3584
|
+
"name": "label-align",
|
3585
|
+
"default": "`left`",
|
3586
|
+
"description": "\b 表单项 label 对齐方式,可选值为 `center` `right`",
|
3587
|
+
"value": {
|
3588
|
+
"type": "string",
|
3589
|
+
"kind": "expression"
|
3590
|
+
}
|
3569
3591
|
},
|
3570
3592
|
{
|
3571
|
-
"name": "
|
3572
|
-
"
|
3593
|
+
"name": "input-align",
|
3594
|
+
"default": "`left`",
|
3595
|
+
"description": "输入框对齐方式,可选值为 `center` `right`",
|
3596
|
+
"value": {
|
3597
|
+
"type": "string",
|
3598
|
+
"kind": "expression"
|
3599
|
+
}
|
3573
3600
|
},
|
3574
3601
|
{
|
3575
|
-
"name": "
|
3576
|
-
"
|
3602
|
+
"name": "error-message-align",
|
3603
|
+
"default": "`left`",
|
3604
|
+
"description": "错误提示文案对齐方式,可选值为 `center` `right`",
|
3605
|
+
"value": {
|
3606
|
+
"type": "string",
|
3607
|
+
"kind": "expression"
|
3608
|
+
}
|
3577
3609
|
},
|
3578
3610
|
{
|
3579
|
-
"name": "
|
3580
|
-
"
|
3581
|
-
|
3582
|
-
|
3583
|
-
|
3611
|
+
"name": "validate-trigger",
|
3612
|
+
"default": "`onBlur`",
|
3613
|
+
"description": "表单校验触发时机,可选值为 `onChange`、`onSubmit`,详见下表",
|
3614
|
+
"value": {
|
3615
|
+
"type": "string",
|
3616
|
+
"kind": "expression"
|
3617
|
+
}
|
3618
|
+
},
|
3584
3619
|
{
|
3585
|
-
"name": "
|
3586
|
-
"
|
3620
|
+
"name": "colon",
|
3621
|
+
"default": "`false`",
|
3622
|
+
"description": "是否在 label 后面添加冒号",
|
3623
|
+
"value": {
|
3624
|
+
"type": "boolean",
|
3625
|
+
"kind": "expression"
|
3626
|
+
}
|
3587
3627
|
},
|
3588
3628
|
{
|
3589
|
-
"name": "
|
3590
|
-
"
|
3629
|
+
"name": "disabled",
|
3630
|
+
"default": "`false`",
|
3631
|
+
"description": "是否禁用表单中的所有输入框",
|
3632
|
+
"value": {
|
3633
|
+
"type": "boolean",
|
3634
|
+
"kind": "expression"
|
3635
|
+
}
|
3591
3636
|
},
|
3592
3637
|
{
|
3593
|
-
"name": "
|
3594
|
-
"
|
3638
|
+
"name": "readonly",
|
3639
|
+
"default": "`false`",
|
3640
|
+
"description": "是否将表单中的所有输入框设置为只读",
|
3641
|
+
"value": {
|
3642
|
+
"type": "boolean",
|
3643
|
+
"kind": "expression"
|
3644
|
+
}
|
3595
3645
|
},
|
3596
3646
|
{
|
3597
|
-
"name": "
|
3598
|
-
"
|
3647
|
+
"name": "validate-first",
|
3648
|
+
"default": "`false`",
|
3649
|
+
"description": "是否在某一项校验不通过时停止校验",
|
3650
|
+
"value": {
|
3651
|
+
"type": "boolean",
|
3652
|
+
"kind": "expression"
|
3653
|
+
}
|
3599
3654
|
},
|
3600
3655
|
{
|
3601
|
-
"name": "
|
3602
|
-
"
|
3656
|
+
"name": "scroll-to-error",
|
3657
|
+
"default": "`false`",
|
3658
|
+
"description": "是否在提交表单且校验不通过时滚动至错误的表单项",
|
3659
|
+
"value": {
|
3660
|
+
"type": "boolean",
|
3661
|
+
"kind": "expression"
|
3662
|
+
}
|
3663
|
+
},
|
3664
|
+
{
|
3665
|
+
"name": "show-error",
|
3666
|
+
"default": "`true`",
|
3667
|
+
"description": "是否在校验不通过时标红输入框",
|
3668
|
+
"value": {
|
3669
|
+
"type": "boolean",
|
3670
|
+
"kind": "expression"
|
3671
|
+
}
|
3672
|
+
},
|
3673
|
+
{
|
3674
|
+
"name": "show-error-message",
|
3675
|
+
"default": "`true`",
|
3676
|
+
"description": "是否在校验不通过时在输入框下方展示错误提示",
|
3677
|
+
"value": {
|
3678
|
+
"type": "boolean",
|
3679
|
+
"kind": "expression"
|
3680
|
+
}
|
3603
3681
|
},
|
3604
3682
|
{
|
3605
|
-
"name": "
|
3606
|
-
"
|
3683
|
+
"name": "submit-on-enter",
|
3684
|
+
"default": "`true`",
|
3685
|
+
"description": "是否在按下回车键时提交表单",
|
3686
|
+
"value": {
|
3687
|
+
"type": "boolean",
|
3688
|
+
"kind": "expression"
|
3689
|
+
}
|
3690
|
+
}
|
3691
|
+
]
|
3692
|
+
},
|
3693
|
+
{
|
3694
|
+
"name": "van-goods-action",
|
3695
|
+
"slots": [
|
3696
|
+
{
|
3697
|
+
"name": "default",
|
3698
|
+
"description": "文本内容"
|
3607
3699
|
},
|
3608
3700
|
{
|
3609
|
-
"name": "
|
3610
|
-
"description": "
|
3701
|
+
"name": "icon",
|
3702
|
+
"description": "自定义图标"
|
3611
3703
|
},
|
3612
3704
|
{
|
3613
|
-
"name": "
|
3614
|
-
"description": "
|
3705
|
+
"name": "default",
|
3706
|
+
"description": "按钮显示内容"
|
3615
3707
|
}
|
3616
3708
|
],
|
3709
|
+
"events": [],
|
3617
3710
|
"attributes": [
|
3618
3711
|
{
|
3619
|
-
"name": "
|
3620
|
-
"default": "
|
3621
|
-
"description": "
|
3712
|
+
"name": "safe-area-inset-bottom",
|
3713
|
+
"default": "`true`",
|
3714
|
+
"description": "是否开启[底部安全区适配](#/zh-CN/advanced-usage#di-bu-an-quan-qu-gua-pei)",
|
3622
3715
|
"value": {
|
3623
|
-
"type": "
|
3716
|
+
"type": "boolean",
|
3624
3717
|
"kind": "expression"
|
3625
3718
|
}
|
3626
3719
|
},
|
3627
3720
|
{
|
3628
|
-
"name": "
|
3721
|
+
"name": "text",
|
3629
3722
|
"default": "-",
|
3630
|
-
"description": "
|
3723
|
+
"description": "按钮文字",
|
3631
3724
|
"value": {
|
3632
3725
|
"type": "string",
|
3633
3726
|
"kind": "expression"
|
3634
3727
|
}
|
3635
3728
|
},
|
3636
3729
|
{
|
3637
|
-
"name": "
|
3730
|
+
"name": "icon",
|
3638
3731
|
"default": "-",
|
3639
|
-
"description": "
|
3732
|
+
"description": "图标",
|
3640
3733
|
"value": {
|
3641
3734
|
"type": "string",
|
3642
3735
|
"kind": "expression"
|
3643
3736
|
}
|
3644
3737
|
},
|
3645
3738
|
{
|
3646
|
-
"name": "
|
3647
|
-
"default": "`
|
3648
|
-
"description": "
|
3739
|
+
"name": "color",
|
3740
|
+
"default": "`#323233`",
|
3741
|
+
"description": "图标颜色",
|
3649
3742
|
"value": {
|
3650
3743
|
"type": "string",
|
3651
3744
|
"kind": "expression"
|
3652
3745
|
}
|
3653
3746
|
},
|
3654
3747
|
{
|
3655
|
-
"name": "
|
3748
|
+
"name": "icon-class",
|
3656
3749
|
"default": "-",
|
3657
|
-
"description": "
|
3750
|
+
"description": "图标额外类名",
|
3658
3751
|
"value": {
|
3659
|
-
"type": "
|
3752
|
+
"type": "any",
|
3660
3753
|
"kind": "expression"
|
3661
3754
|
}
|
3662
3755
|
},
|
3663
3756
|
{
|
3664
|
-
"name": "
|
3665
|
-
"default": "
|
3666
|
-
"description": "
|
3757
|
+
"name": "dot",
|
3758
|
+
"default": "`false`",
|
3759
|
+
"description": "是否显示图标右上角小红点",
|
3667
3760
|
"value": {
|
3668
|
-
"type": "
|
3761
|
+
"type": "boolean",
|
3669
3762
|
"kind": "expression"
|
3670
3763
|
}
|
3671
3764
|
},
|
3672
3765
|
{
|
3673
|
-
"name": "
|
3766
|
+
"name": "badge",
|
3674
3767
|
"default": "-",
|
3675
|
-
"description": "
|
3768
|
+
"description": "图标右上角徽标的内容",
|
3676
3769
|
"value": {
|
3677
|
-
"type": "string",
|
3770
|
+
"type": "number | string",
|
3678
3771
|
"kind": "expression"
|
3679
3772
|
}
|
3680
3773
|
},
|
3681
3774
|
{
|
3682
|
-
"name": "
|
3683
|
-
"default": "
|
3684
|
-
"description": "
|
3775
|
+
"name": "info",
|
3776
|
+
"default": "-",
|
3777
|
+
"description": "图标右上角徽标的内容(已废弃,请使用 badge 属性)",
|
3685
3778
|
"value": {
|
3686
|
-
"type": "
|
3779
|
+
"type": "number | string",
|
3687
3780
|
"kind": "expression"
|
3688
3781
|
}
|
3689
3782
|
},
|
3690
3783
|
{
|
3691
|
-
"name": "
|
3692
|
-
"default": "
|
3693
|
-
"description": "
|
3784
|
+
"name": "url",
|
3785
|
+
"default": "-",
|
3786
|
+
"description": "点击后跳转的链接地址",
|
3694
3787
|
"value": {
|
3695
|
-
"type": "
|
3788
|
+
"type": "string",
|
3696
3789
|
"kind": "expression"
|
3697
3790
|
}
|
3698
3791
|
},
|
3699
3792
|
{
|
3700
|
-
"name": "
|
3701
|
-
"default": "
|
3702
|
-
"description": "
|
3793
|
+
"name": "to",
|
3794
|
+
"default": "-",
|
3795
|
+
"description": "点击后跳转的目标路由对象,同 vue-router 的 [to 属性](https://router.vuejs.org/zh/api/#to)",
|
3703
3796
|
"value": {
|
3704
|
-
"type": "
|
3797
|
+
"type": "string | object",
|
3705
3798
|
"kind": "expression"
|
3706
3799
|
}
|
3707
3800
|
},
|
3708
3801
|
{
|
3709
|
-
"name": "
|
3802
|
+
"name": "replace",
|
3710
3803
|
"default": "`false`",
|
3711
|
-
"description": "
|
3804
|
+
"description": "是否在跳转时替换当前页面历史",
|
3712
3805
|
"value": {
|
3713
3806
|
"type": "boolean",
|
3714
3807
|
"kind": "expression"
|
3715
3808
|
}
|
3716
3809
|
},
|
3717
3810
|
{
|
3718
|
-
"name": "
|
3719
|
-
"default": "
|
3720
|
-
"description": "
|
3811
|
+
"name": "text",
|
3812
|
+
"default": "-",
|
3813
|
+
"description": "按钮文字",
|
3721
3814
|
"value": {
|
3722
|
-
"type": "
|
3815
|
+
"type": "string",
|
3723
3816
|
"kind": "expression"
|
3724
3817
|
}
|
3725
3818
|
},
|
3726
3819
|
{
|
3727
|
-
"name": "
|
3728
|
-
"default": "`
|
3729
|
-
"description": "
|
3820
|
+
"name": "type",
|
3821
|
+
"default": "`default`",
|
3822
|
+
"description": "按钮类型,可选值为 `primary` `info` `warning` `danger`",
|
3730
3823
|
"value": {
|
3731
|
-
"type": "
|
3824
|
+
"type": "string",
|
3732
3825
|
"kind": "expression"
|
3733
3826
|
}
|
3734
3827
|
},
|
3735
3828
|
{
|
3736
|
-
"name": "
|
3737
|
-
"default": "
|
3738
|
-
"description": "
|
3829
|
+
"name": "color",
|
3830
|
+
"default": "-",
|
3831
|
+
"description": "按钮颜色,支持传入`linear-gradient`渐变色",
|
3739
3832
|
"value": {
|
3740
|
-
"type": "
|
3833
|
+
"type": "string",
|
3741
3834
|
"kind": "expression"
|
3742
3835
|
}
|
3743
3836
|
},
|
3744
3837
|
{
|
3745
|
-
"name": "
|
3746
|
-
"default": "
|
3747
|
-
"description": "
|
3838
|
+
"name": "icon",
|
3839
|
+
"default": "-",
|
3840
|
+
"description": "左侧[图标名称](#/zh-CN/icon)或图片链接",
|
3748
3841
|
"value": {
|
3749
3842
|
"type": "string",
|
3750
3843
|
"kind": "expression"
|
3751
3844
|
}
|
3752
3845
|
},
|
3753
3846
|
{
|
3754
|
-
"name": "
|
3847
|
+
"name": "disabled",
|
3755
3848
|
"default": "`false`",
|
3756
|
-
"description": "
|
3849
|
+
"description": "是否禁用按钮",
|
3757
3850
|
"value": {
|
3758
3851
|
"type": "boolean",
|
3759
3852
|
"kind": "expression"
|
3760
3853
|
}
|
3761
3854
|
},
|
3762
3855
|
{
|
3763
|
-
"name": "
|
3856
|
+
"name": "loading",
|
3764
3857
|
"default": "`false`",
|
3765
|
-
"description": "
|
3858
|
+
"description": "是否显示为加载状态",
|
3766
3859
|
"value": {
|
3767
3860
|
"type": "boolean",
|
3768
3861
|
"kind": "expression"
|
3769
3862
|
}
|
3770
3863
|
},
|
3771
3864
|
{
|
3772
|
-
"name": "
|
3773
|
-
"default": "
|
3774
|
-
"description": "
|
3865
|
+
"name": "url",
|
3866
|
+
"default": "-",
|
3867
|
+
"description": "点击后跳转的链接地址",
|
3775
3868
|
"value": {
|
3776
|
-
"type": "
|
3869
|
+
"type": "string",
|
3777
3870
|
"kind": "expression"
|
3778
3871
|
}
|
3779
3872
|
},
|
3780
3873
|
{
|
3781
|
-
"name": "
|
3782
|
-
"default": "
|
3783
|
-
"description": "
|
3874
|
+
"name": "to",
|
3875
|
+
"default": "-",
|
3876
|
+
"description": "点击后跳转的目标路由对象,同 vue-router 的 [to 属性](https://router.vuejs.org/zh/api/#to)",
|
3784
3877
|
"value": {
|
3785
|
-
"type": "
|
3878
|
+
"type": "string | object",
|
3786
3879
|
"kind": "expression"
|
3787
3880
|
}
|
3788
3881
|
},
|
3789
3882
|
{
|
3790
|
-
"name": "
|
3883
|
+
"name": "replace",
|
3791
3884
|
"default": "`false`",
|
3792
|
-
"description": "
|
3885
|
+
"description": "是否在跳转时替换当前页面历史",
|
3793
3886
|
"value": {
|
3794
3887
|
"type": "boolean",
|
3795
3888
|
"kind": "expression"
|
3796
3889
|
}
|
3890
|
+
}
|
3891
|
+
]
|
3892
|
+
},
|
3893
|
+
{
|
3894
|
+
"name": "van-field",
|
3895
|
+
"slots": [
|
3896
|
+
{
|
3897
|
+
"name": "label",
|
3898
|
+
"description": "自定义输入框 label 标签"
|
3797
3899
|
},
|
3798
3900
|
{
|
3799
|
-
"name": "
|
3800
|
-
"
|
3801
|
-
"description": "底部错误提示文案,为空时不展示",
|
3802
|
-
"value": {
|
3803
|
-
"type": "string",
|
3804
|
-
"kind": "expression"
|
3805
|
-
}
|
3901
|
+
"name": "input",
|
3902
|
+
"description": "自定义输入框,使用此插槽后,与输入框相关的属性和事件将失效。<br>在 Form 组件进行表单校验时,会使用 input 插槽中子组件的 `value`,而不是 Field 组件的 `value`。"
|
3806
3903
|
},
|
3807
3904
|
{
|
3808
|
-
"name": "
|
3809
|
-
"
|
3810
|
-
"description": "输入内容格式化函数",
|
3811
|
-
"value": {
|
3812
|
-
"type": "Function",
|
3813
|
-
"kind": "expression"
|
3814
|
-
}
|
3905
|
+
"name": "left-icon",
|
3906
|
+
"description": "自定义输入框头部图标"
|
3815
3907
|
},
|
3816
3908
|
{
|
3817
|
-
"name": "
|
3818
|
-
"
|
3819
|
-
"description": "格式化函数触发的时机,可选值为 `onBlur`",
|
3820
|
-
"value": {
|
3821
|
-
"type": "string",
|
3822
|
-
"kind": "expression"
|
3823
|
-
}
|
3909
|
+
"name": "right-icon",
|
3910
|
+
"description": "自定义输入框尾部图标"
|
3824
3911
|
},
|
3825
3912
|
{
|
3826
|
-
"name": "
|
3827
|
-
"
|
3828
|
-
"description": "箭头方向,可选值为 `left` `up` `down`",
|
3829
|
-
"value": {
|
3830
|
-
"type": "string",
|
3831
|
-
"kind": "expression"
|
3832
|
-
}
|
3913
|
+
"name": "button",
|
3914
|
+
"description": "自定义输入框尾部按钮"
|
3833
3915
|
},
|
3834
3916
|
{
|
3835
|
-
"name": "
|
3836
|
-
"
|
3837
|
-
|
3838
|
-
|
3839
|
-
|
3840
|
-
|
3841
|
-
|
3917
|
+
"name": "extra",
|
3918
|
+
"description": "自定义输入框最右侧的额外内容"
|
3919
|
+
}
|
3920
|
+
],
|
3921
|
+
"events": [
|
3922
|
+
{
|
3923
|
+
"name": "input",
|
3924
|
+
"description": "输入框内容变化时触发"
|
3842
3925
|
},
|
3843
3926
|
{
|
3844
|
-
"name": "
|
3845
|
-
"
|
3846
|
-
"description": "左侧文本宽度,默认单位为`px`",
|
3847
|
-
"value": {
|
3848
|
-
"type": "number | string",
|
3849
|
-
"kind": "expression"
|
3850
|
-
}
|
3927
|
+
"name": "focus",
|
3928
|
+
"description": "输入框获得焦点时触发"
|
3851
3929
|
},
|
3852
3930
|
{
|
3853
|
-
"name": "
|
3854
|
-
"
|
3855
|
-
"description": "左侧文本对齐方式,可选值为 `center` `right`",
|
3856
|
-
"value": {
|
3857
|
-
"type": "string",
|
3858
|
-
"kind": "expression"
|
3859
|
-
}
|
3931
|
+
"name": "blur",
|
3932
|
+
"description": "输入框失去焦点时触发"
|
3860
3933
|
},
|
3861
3934
|
{
|
3862
|
-
"name": "
|
3863
|
-
"
|
3864
|
-
"description": "输入框对齐方式,可选值为 `center` `right`",
|
3865
|
-
"value": {
|
3866
|
-
"type": "string",
|
3867
|
-
"kind": "expression"
|
3868
|
-
}
|
3935
|
+
"name": "clear",
|
3936
|
+
"description": "点击清除按钮时触发"
|
3869
3937
|
},
|
3870
3938
|
{
|
3871
|
-
"name": "
|
3872
|
-
"
|
3873
|
-
"description": "错误提示文案对齐方式,可选值为 `center` `right`",
|
3874
|
-
"value": {
|
3875
|
-
"type": "string",
|
3876
|
-
"kind": "expression"
|
3877
|
-
}
|
3939
|
+
"name": "click",
|
3940
|
+
"description": "点击 Field 时触发"
|
3878
3941
|
},
|
3879
3942
|
{
|
3880
|
-
"name": "
|
3881
|
-
"
|
3882
|
-
|
3883
|
-
|
3884
|
-
|
3885
|
-
|
3886
|
-
}
|
3943
|
+
"name": "click-input",
|
3944
|
+
"description": "点击输入区域时触发"
|
3945
|
+
},
|
3946
|
+
{
|
3947
|
+
"name": "click-left-icon",
|
3948
|
+
"description": "点击左侧图标时触发"
|
3887
3949
|
},
|
3888
3950
|
{
|
3889
|
-
"name": "
|
3951
|
+
"name": "click-right-icon",
|
3952
|
+
"description": "点击右侧图标时触发"
|
3953
|
+
}
|
3954
|
+
],
|
3955
|
+
"attributes": [
|
3956
|
+
{
|
3957
|
+
"name": "v-model (value)",
|
3890
3958
|
"default": "-",
|
3891
|
-
"description": "
|
3959
|
+
"description": "当前输入的值",
|
3892
3960
|
"value": {
|
3893
|
-
"type": "string",
|
3961
|
+
"type": "number | string",
|
3894
3962
|
"kind": "expression"
|
3895
3963
|
}
|
3896
3964
|
},
|
3897
3965
|
{
|
3898
|
-
"name": "
|
3966
|
+
"name": "label",
|
3899
3967
|
"default": "-",
|
3900
|
-
"description": "
|
3968
|
+
"description": "输入框左侧文本",
|
3901
3969
|
"value": {
|
3902
3970
|
"type": "string",
|
3903
3971
|
"kind": "expression"
|
3904
3972
|
}
|
3905
3973
|
},
|
3906
3974
|
{
|
3907
|
-
"name": "
|
3908
|
-
"default": "
|
3909
|
-
"description": "
|
3975
|
+
"name": "name",
|
3976
|
+
"default": "-",
|
3977
|
+
"description": "名称,提交表单的标识符",
|
3910
3978
|
"value": {
|
3911
3979
|
"type": "string",
|
3912
3980
|
"kind": "expression"
|
3913
3981
|
}
|
3914
3982
|
},
|
3915
3983
|
{
|
3916
|
-
"name": "
|
3917
|
-
"default": "
|
3918
|
-
"description": "
|
3984
|
+
"name": "type",
|
3985
|
+
"default": "`text`",
|
3986
|
+
"description": "输入框类型, 可选值为 `tel` `digit`<br>`number` `textarea` `password` 等",
|
3919
3987
|
"value": {
|
3920
|
-
"type": "
|
3988
|
+
"type": "string",
|
3921
3989
|
"kind": "expression"
|
3922
3990
|
}
|
3923
3991
|
},
|
3924
3992
|
{
|
3925
|
-
"name": "
|
3993
|
+
"name": "size",
|
3926
3994
|
"default": "-",
|
3927
|
-
"description": "
|
3995
|
+
"description": "大小,可选值为 `large`",
|
3928
3996
|
"value": {
|
3929
3997
|
"type": "string",
|
3930
3998
|
"kind": "expression"
|
3931
3999
|
}
|
3932
|
-
}
|
3933
|
-
]
|
3934
|
-
},
|
3935
|
-
{
|
3936
|
-
"name": "van-form",
|
3937
|
-
"slots": [
|
3938
|
-
{
|
3939
|
-
"name": "default",
|
3940
|
-
"description": "表单内容"
|
3941
|
-
}
|
3942
|
-
],
|
3943
|
-
"events": [
|
3944
|
-
{
|
3945
|
-
"name": "submit",
|
3946
|
-
"description": "提交表单且验证通过后触发"
|
3947
4000
|
},
|
3948
4001
|
{
|
3949
|
-
"name": "
|
3950
|
-
"
|
3951
|
-
|
3952
|
-
],
|
3953
|
-
"attributes": [
|
3954
|
-
{
|
3955
|
-
"name": "label-width",
|
3956
|
-
"default": "`6.2em`",
|
3957
|
-
"description": "表单项 label 宽度,默认单位为`px`",
|
4002
|
+
"name": "maxlength",
|
4003
|
+
"default": "-",
|
4004
|
+
"description": "输入的最大字符数",
|
3958
4005
|
"value": {
|
3959
4006
|
"type": "number | string",
|
3960
4007
|
"kind": "expression"
|
3961
4008
|
}
|
3962
4009
|
},
|
3963
4010
|
{
|
3964
|
-
"name": "
|
3965
|
-
"default": "
|
3966
|
-
"description": "
|
4011
|
+
"name": "placeholder",
|
4012
|
+
"default": "-",
|
4013
|
+
"description": "输入框占位提示文字",
|
3967
4014
|
"value": {
|
3968
4015
|
"type": "string",
|
3969
4016
|
"kind": "expression"
|
3970
4017
|
}
|
3971
4018
|
},
|
3972
4019
|
{
|
3973
|
-
"name": "
|
3974
|
-
"default": "`
|
3975
|
-
"description": "
|
4020
|
+
"name": "border",
|
4021
|
+
"default": "`true`",
|
4022
|
+
"description": "是否显示内边框",
|
3976
4023
|
"value": {
|
3977
|
-
"type": "
|
4024
|
+
"type": "boolean",
|
3978
4025
|
"kind": "expression"
|
3979
4026
|
}
|
3980
4027
|
},
|
3981
4028
|
{
|
3982
|
-
"name": "
|
3983
|
-
"default": "`
|
3984
|
-
"description": "
|
4029
|
+
"name": "disabled",
|
4030
|
+
"default": "`false`",
|
4031
|
+
"description": "是否禁用输入框",
|
3985
4032
|
"value": {
|
3986
|
-
"type": "
|
4033
|
+
"type": "boolean",
|
3987
4034
|
"kind": "expression"
|
3988
4035
|
}
|
3989
4036
|
},
|
3990
4037
|
{
|
3991
|
-
"name": "
|
3992
|
-
"default": "`
|
3993
|
-
"description": "
|
4038
|
+
"name": "readonly",
|
4039
|
+
"default": "`false`",
|
4040
|
+
"description": "是否只读",
|
3994
4041
|
"value": {
|
3995
|
-
"type": "
|
4042
|
+
"type": "boolean",
|
3996
4043
|
"kind": "expression"
|
3997
4044
|
}
|
3998
4045
|
},
|
@@ -4006,216 +4053,178 @@
|
|
4006
4053
|
}
|
4007
4054
|
},
|
4008
4055
|
{
|
4009
|
-
"name": "
|
4056
|
+
"name": "required",
|
4010
4057
|
"default": "`false`",
|
4011
|
-
"description": "
|
4058
|
+
"description": "是否显示表单必填星号",
|
4012
4059
|
"value": {
|
4013
4060
|
"type": "boolean",
|
4014
4061
|
"kind": "expression"
|
4015
4062
|
}
|
4016
4063
|
},
|
4017
4064
|
{
|
4018
|
-
"name": "
|
4065
|
+
"name": "center",
|
4019
4066
|
"default": "`false`",
|
4020
|
-
"description": "
|
4067
|
+
"description": "是否使内容垂直居中",
|
4021
4068
|
"value": {
|
4022
4069
|
"type": "boolean",
|
4023
4070
|
"kind": "expression"
|
4024
4071
|
}
|
4025
4072
|
},
|
4026
4073
|
{
|
4027
|
-
"name": "
|
4074
|
+
"name": "clearable",
|
4028
4075
|
"default": "`false`",
|
4029
|
-
"description": "
|
4076
|
+
"description": "是否启用清除图标,点击清除图标后会清空输入框",
|
4030
4077
|
"value": {
|
4031
4078
|
"type": "boolean",
|
4032
4079
|
"kind": "expression"
|
4033
4080
|
}
|
4034
4081
|
},
|
4035
4082
|
{
|
4036
|
-
"name": "
|
4037
|
-
"default": "`
|
4038
|
-
"description": "
|
4083
|
+
"name": "clear-trigger",
|
4084
|
+
"default": "`focus`",
|
4085
|
+
"description": "显示清除图标的时机,`always` 表示输入框不为空时展示,<br>`focus` 表示输入框聚焦且不为空时展示",
|
4039
4086
|
"value": {
|
4040
|
-
"type": "
|
4087
|
+
"type": "string",
|
4041
4088
|
"kind": "expression"
|
4042
4089
|
}
|
4043
4090
|
},
|
4044
4091
|
{
|
4045
|
-
"name": "
|
4046
|
-
"default": "`
|
4047
|
-
"description": "
|
4092
|
+
"name": "clickable",
|
4093
|
+
"default": "`false`",
|
4094
|
+
"description": "是否开启点击反馈",
|
4048
4095
|
"value": {
|
4049
4096
|
"type": "boolean",
|
4050
4097
|
"kind": "expression"
|
4051
4098
|
}
|
4052
4099
|
},
|
4053
4100
|
{
|
4054
|
-
"name": "
|
4055
|
-
"default": "`
|
4056
|
-
"description": "
|
4101
|
+
"name": "is-link",
|
4102
|
+
"default": "`false`",
|
4103
|
+
"description": "是否展示右侧箭头并开启点击反馈",
|
4057
4104
|
"value": {
|
4058
4105
|
"type": "boolean",
|
4059
4106
|
"kind": "expression"
|
4060
4107
|
}
|
4061
4108
|
},
|
4062
4109
|
{
|
4063
|
-
"name": "
|
4064
|
-
"default": "`
|
4065
|
-
"description": "
|
4110
|
+
"name": "autofocus",
|
4111
|
+
"default": "`false`",
|
4112
|
+
"description": "是否自动聚焦,iOS 系统不支持该属性",
|
4066
4113
|
"value": {
|
4067
4114
|
"type": "boolean",
|
4068
4115
|
"kind": "expression"
|
4069
4116
|
}
|
4070
|
-
}
|
4071
|
-
]
|
4072
|
-
},
|
4073
|
-
{
|
4074
|
-
"name": "van-goods-action",
|
4075
|
-
"slots": [
|
4076
|
-
{
|
4077
|
-
"name": "default",
|
4078
|
-
"description": "文本内容"
|
4079
4117
|
},
|
4080
4118
|
{
|
4081
|
-
"name": "
|
4082
|
-
"
|
4083
|
-
|
4084
|
-
{
|
4085
|
-
"name": "default",
|
4086
|
-
"description": "按钮显示内容"
|
4087
|
-
}
|
4088
|
-
],
|
4089
|
-
"events": [],
|
4090
|
-
"attributes": [
|
4091
|
-
{
|
4092
|
-
"name": "safe-area-inset-bottom",
|
4093
|
-
"default": "`true`",
|
4094
|
-
"description": "是否开启[底部安全区适配](#/zh-CN/advanced-usage#di-bu-an-quan-qu-gua-pei)",
|
4119
|
+
"name": "show-word-limit",
|
4120
|
+
"default": "`false`",
|
4121
|
+
"description": "是否显示字数统计,需要设置`maxlength`属性",
|
4095
4122
|
"value": {
|
4096
4123
|
"type": "boolean",
|
4097
4124
|
"kind": "expression"
|
4098
4125
|
}
|
4099
4126
|
},
|
4100
4127
|
{
|
4101
|
-
"name": "
|
4102
|
-
"default": "
|
4103
|
-
"description": "
|
4128
|
+
"name": "error",
|
4129
|
+
"default": "`false`",
|
4130
|
+
"description": "是否将输入内容标红",
|
4104
4131
|
"value": {
|
4105
|
-
"type": "
|
4132
|
+
"type": "boolean",
|
4106
4133
|
"kind": "expression"
|
4107
4134
|
}
|
4108
4135
|
},
|
4109
4136
|
{
|
4110
|
-
"name": "
|
4137
|
+
"name": "error-message",
|
4111
4138
|
"default": "-",
|
4112
|
-
"description": "
|
4139
|
+
"description": "底部错误提示文案,为空时不展示",
|
4113
4140
|
"value": {
|
4114
4141
|
"type": "string",
|
4115
4142
|
"kind": "expression"
|
4116
4143
|
}
|
4117
4144
|
},
|
4118
4145
|
{
|
4119
|
-
"name": "
|
4120
|
-
"default": "
|
4121
|
-
"description": "
|
4146
|
+
"name": "formatter",
|
4147
|
+
"default": "-",
|
4148
|
+
"description": "输入内容格式化函数",
|
4122
4149
|
"value": {
|
4123
|
-
"type": "
|
4150
|
+
"type": "Function",
|
4124
4151
|
"kind": "expression"
|
4125
4152
|
}
|
4126
4153
|
},
|
4127
4154
|
{
|
4128
|
-
"name": "
|
4129
|
-
"default": "
|
4130
|
-
"description": "
|
4155
|
+
"name": "format-trigger",
|
4156
|
+
"default": "`onChange`",
|
4157
|
+
"description": "格式化函数触发的时机,可选值为 `onBlur`",
|
4131
4158
|
"value": {
|
4132
|
-
"type": "
|
4159
|
+
"type": "string",
|
4133
4160
|
"kind": "expression"
|
4134
4161
|
}
|
4135
4162
|
},
|
4136
4163
|
{
|
4137
|
-
"name": "
|
4138
|
-
"default": "`
|
4139
|
-
"description": "
|
4164
|
+
"name": "arrow-direction",
|
4165
|
+
"default": "`right`",
|
4166
|
+
"description": "箭头方向,可选值为 `left` `up` `down`",
|
4140
4167
|
"value": {
|
4141
|
-
"type": "
|
4168
|
+
"type": "string",
|
4142
4169
|
"kind": "expression"
|
4143
4170
|
}
|
4144
4171
|
},
|
4145
4172
|
{
|
4146
|
-
"name": "
|
4173
|
+
"name": "label-class",
|
4147
4174
|
"default": "-",
|
4148
|
-
"description": "
|
4175
|
+
"description": "左侧文本额外类名",
|
4149
4176
|
"value": {
|
4150
|
-
"type": "
|
4177
|
+
"type": "any",
|
4151
4178
|
"kind": "expression"
|
4152
4179
|
}
|
4153
4180
|
},
|
4154
4181
|
{
|
4155
|
-
"name": "
|
4156
|
-
"default": "
|
4157
|
-
"description": "
|
4182
|
+
"name": "label-width",
|
4183
|
+
"default": "`6.2em`",
|
4184
|
+
"description": "左侧文本宽度,默认单位为`px`",
|
4158
4185
|
"value": {
|
4159
4186
|
"type": "number | string",
|
4160
4187
|
"kind": "expression"
|
4161
4188
|
}
|
4162
4189
|
},
|
4163
4190
|
{
|
4164
|
-
"name": "
|
4165
|
-
"default": "
|
4166
|
-
"description": "
|
4191
|
+
"name": "label-align",
|
4192
|
+
"default": "`left`",
|
4193
|
+
"description": "左侧文本对齐方式,可选值为 `center` `right`",
|
4167
4194
|
"value": {
|
4168
4195
|
"type": "string",
|
4169
4196
|
"kind": "expression"
|
4170
4197
|
}
|
4171
4198
|
},
|
4172
4199
|
{
|
4173
|
-
"name": "
|
4174
|
-
"default": "
|
4175
|
-
"description": "
|
4176
|
-
"value": {
|
4177
|
-
"type": "string | object",
|
4178
|
-
"kind": "expression"
|
4179
|
-
}
|
4180
|
-
},
|
4181
|
-
{
|
4182
|
-
"name": "replace",
|
4183
|
-
"default": "`false`",
|
4184
|
-
"description": "是否在跳转时替换当前页面历史",
|
4185
|
-
"value": {
|
4186
|
-
"type": "boolean",
|
4187
|
-
"kind": "expression"
|
4188
|
-
}
|
4189
|
-
},
|
4190
|
-
{
|
4191
|
-
"name": "text",
|
4192
|
-
"default": "-",
|
4193
|
-
"description": "按钮文字",
|
4200
|
+
"name": "input-align",
|
4201
|
+
"default": "`left`",
|
4202
|
+
"description": "输入框对齐方式,可选值为 `center` `right`",
|
4194
4203
|
"value": {
|
4195
4204
|
"type": "string",
|
4196
4205
|
"kind": "expression"
|
4197
4206
|
}
|
4198
4207
|
},
|
4199
4208
|
{
|
4200
|
-
"name": "
|
4201
|
-
"default": "`
|
4202
|
-
"description": "
|
4209
|
+
"name": "error-message-align",
|
4210
|
+
"default": "`left`",
|
4211
|
+
"description": "错误提示文案对齐方式,可选值为 `center` `right`",
|
4203
4212
|
"value": {
|
4204
4213
|
"type": "string",
|
4205
4214
|
"kind": "expression"
|
4206
4215
|
}
|
4207
4216
|
},
|
4208
4217
|
{
|
4209
|
-
"name": "
|
4210
|
-
"default": "
|
4211
|
-
"description": "
|
4218
|
+
"name": "autosize",
|
4219
|
+
"default": "`false`",
|
4220
|
+
"description": "是否自适应内容高度,只对 textarea 有效,<br>可传入对象,如 { maxHeight: 100, minHeight: 50 },<br>单位为`px`",
|
4212
4221
|
"value": {
|
4213
|
-
"type": "
|
4222
|
+
"type": "boolean | object",
|
4214
4223
|
"kind": "expression"
|
4215
4224
|
}
|
4216
4225
|
},
|
4217
4226
|
{
|
4218
|
-
"name": "icon",
|
4227
|
+
"name": "left-icon",
|
4219
4228
|
"default": "-",
|
4220
4229
|
"description": "左侧[图标名称](#/zh-CN/icon)或图片链接",
|
4221
4230
|
"value": {
|
@@ -4224,47 +4233,38 @@
|
|
4224
4233
|
}
|
4225
4234
|
},
|
4226
4235
|
{
|
4227
|
-
"name": "
|
4228
|
-
"default": "
|
4229
|
-
"description": "
|
4230
|
-
"value": {
|
4231
|
-
"type": "boolean",
|
4232
|
-
"kind": "expression"
|
4233
|
-
}
|
4234
|
-
},
|
4235
|
-
{
|
4236
|
-
"name": "loading",
|
4237
|
-
"default": "`false`",
|
4238
|
-
"description": "是否显示为加载状态",
|
4236
|
+
"name": "right-icon",
|
4237
|
+
"default": "-",
|
4238
|
+
"description": "右侧[图标名称](#/zh-CN/icon)或图片链接",
|
4239
4239
|
"value": {
|
4240
|
-
"type": "
|
4240
|
+
"type": "string",
|
4241
4241
|
"kind": "expression"
|
4242
4242
|
}
|
4243
4243
|
},
|
4244
4244
|
{
|
4245
|
-
"name": "
|
4246
|
-
"default": "-",
|
4247
|
-
"description": "
|
4245
|
+
"name": "icon-prefix",
|
4246
|
+
"default": "`van-icon`",
|
4247
|
+
"description": "图标类名前缀,同 Icon 组件的 [class-prefix 属性](#/zh-CN/icon#props)",
|
4248
4248
|
"value": {
|
4249
4249
|
"type": "string",
|
4250
4250
|
"kind": "expression"
|
4251
4251
|
}
|
4252
4252
|
},
|
4253
4253
|
{
|
4254
|
-
"name": "
|
4254
|
+
"name": "rules",
|
4255
4255
|
"default": "-",
|
4256
|
-
"description": "
|
4256
|
+
"description": "表单校验规则,详见 [Form 组件](#/zh-CN/form#rule-shu-ju-jie-gou)",
|
4257
4257
|
"value": {
|
4258
|
-
"type": "
|
4258
|
+
"type": "Rule[]",
|
4259
4259
|
"kind": "expression"
|
4260
4260
|
}
|
4261
4261
|
},
|
4262
4262
|
{
|
4263
|
-
"name": "
|
4264
|
-
"default": "
|
4265
|
-
"description": "
|
4263
|
+
"name": "autocomplete",
|
4264
|
+
"default": "-",
|
4265
|
+
"description": "input 标签原生的[自动完成属性](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/autocomplete)",
|
4266
4266
|
"value": {
|
4267
|
-
"type": "
|
4267
|
+
"type": "string",
|
4268
4268
|
"kind": "expression"
|
4269
4269
|
}
|
4270
4270
|
}
|
@@ -5132,112 +5132,108 @@
|
|
5132
5132
|
"attributes": []
|
5133
5133
|
},
|
5134
5134
|
{
|
5135
|
-
"name": "van-
|
5135
|
+
"name": "van-nav-bar",
|
5136
5136
|
"slots": [
|
5137
5137
|
{
|
5138
|
-
"name": "
|
5139
|
-
"description": "
|
5138
|
+
"name": "title",
|
5139
|
+
"description": "自定义标题"
|
5140
5140
|
},
|
5141
5141
|
{
|
5142
|
-
"name": "left
|
5143
|
-
"description": "
|
5142
|
+
"name": "left",
|
5143
|
+
"description": "自定义左侧区域内容"
|
5144
5144
|
},
|
5145
5145
|
{
|
5146
|
-
"name": "right
|
5147
|
-
"description": "
|
5146
|
+
"name": "right",
|
5147
|
+
"description": "自定义右侧区域内容"
|
5148
5148
|
}
|
5149
5149
|
],
|
5150
5150
|
"events": [
|
5151
5151
|
{
|
5152
|
-
"name": "click",
|
5153
|
-
"description": "
|
5154
|
-
},
|
5155
|
-
{
|
5156
|
-
"name": "close",
|
5157
|
-
"description": "关闭通知栏时触发"
|
5152
|
+
"name": "click-left",
|
5153
|
+
"description": "点击左侧按钮时触发"
|
5158
5154
|
},
|
5159
5155
|
{
|
5160
|
-
"name": "
|
5161
|
-
"description": "
|
5156
|
+
"name": "click-right",
|
5157
|
+
"description": "点击右侧按钮时触发"
|
5162
5158
|
}
|
5163
5159
|
],
|
5164
5160
|
"attributes": [
|
5165
5161
|
{
|
5166
|
-
"name": "
|
5162
|
+
"name": "title",
|
5167
5163
|
"default": "`''`",
|
5168
|
-
"description": "
|
5164
|
+
"description": "标题",
|
5169
5165
|
"value": {
|
5170
5166
|
"type": "string",
|
5171
5167
|
"kind": "expression"
|
5172
5168
|
}
|
5173
5169
|
},
|
5174
5170
|
{
|
5175
|
-
"name": "text",
|
5171
|
+
"name": "left-text",
|
5176
5172
|
"default": "`''`",
|
5177
|
-
"description": "
|
5173
|
+
"description": "左侧文案",
|
5178
5174
|
"value": {
|
5179
5175
|
"type": "string",
|
5180
5176
|
"kind": "expression"
|
5181
5177
|
}
|
5182
5178
|
},
|
5183
5179
|
{
|
5184
|
-
"name": "
|
5185
|
-
"default": "
|
5186
|
-
"description": "
|
5180
|
+
"name": "right-text",
|
5181
|
+
"default": "`''`",
|
5182
|
+
"description": "右侧文案",
|
5187
5183
|
"value": {
|
5188
5184
|
"type": "string",
|
5189
5185
|
"kind": "expression"
|
5190
5186
|
}
|
5191
5187
|
},
|
5192
5188
|
{
|
5193
|
-
"name": "
|
5194
|
-
"default": "
|
5195
|
-
"description": "
|
5189
|
+
"name": "left-arrow",
|
5190
|
+
"default": "`false`",
|
5191
|
+
"description": "是否显示左侧箭头",
|
5196
5192
|
"value": {
|
5197
|
-
"type": "
|
5193
|
+
"type": "boolean",
|
5198
5194
|
"kind": "expression"
|
5199
5195
|
}
|
5200
5196
|
},
|
5201
5197
|
{
|
5202
|
-
"name": "
|
5203
|
-
"default": "
|
5204
|
-
"description": "
|
5198
|
+
"name": "border",
|
5199
|
+
"default": "`true`",
|
5200
|
+
"description": "是否显示下边框",
|
5205
5201
|
"value": {
|
5206
|
-
"type": "
|
5202
|
+
"type": "boolean",
|
5207
5203
|
"kind": "expression"
|
5208
5204
|
}
|
5209
5205
|
},
|
5210
5206
|
{
|
5211
|
-
"name": "
|
5212
|
-
"default": "`
|
5213
|
-
"description": "
|
5207
|
+
"name": "fixed",
|
5208
|
+
"default": "`false`",
|
5209
|
+
"description": "是否固定在顶部",
|
5214
5210
|
"value": {
|
5215
|
-
"type": "
|
5211
|
+
"type": "boolean",
|
5216
5212
|
"kind": "expression"
|
5217
5213
|
}
|
5218
5214
|
},
|
5219
5215
|
{
|
5220
|
-
"name": "
|
5221
|
-
"default": "`
|
5222
|
-
"description": "
|
5216
|
+
"name": "placeholder",
|
5217
|
+
"default": "`false`",
|
5218
|
+
"description": "固定在顶部时,是否在标签位置生成一个等高的占位元素",
|
5223
5219
|
"value": {
|
5224
|
-
"type": "
|
5220
|
+
"type": "boolean",
|
5225
5221
|
"kind": "expression"
|
5226
5222
|
}
|
5227
5223
|
},
|
5228
5224
|
{
|
5229
|
-
"name": "
|
5230
|
-
"default": "
|
5231
|
-
"description": "
|
5225
|
+
"name": "z-index",
|
5226
|
+
"default": "`1`",
|
5227
|
+
"description": "导航栏 z-index",
|
5232
5228
|
"value": {
|
5233
|
-
"type": "
|
5229
|
+
"type": "number | string",
|
5234
5230
|
"kind": "expression"
|
5235
5231
|
}
|
5236
5232
|
},
|
5237
5233
|
{
|
5238
|
-
"name": "
|
5234
|
+
"name": "safe-area-inset-top",
|
5239
5235
|
"default": "`false`",
|
5240
|
-
"description": "
|
5236
|
+
"description": "是否开启[顶部安全区适配](#/zh-CN/advanced-usage#di-bu-an-quan-qu-gua-pei)",
|
5241
5237
|
"value": {
|
5242
5238
|
"type": "boolean",
|
5243
5239
|
"kind": "expression"
|
@@ -5246,108 +5242,112 @@
|
|
5246
5242
|
]
|
5247
5243
|
},
|
5248
5244
|
{
|
5249
|
-
"name": "van-
|
5245
|
+
"name": "van-notice-bar",
|
5250
5246
|
"slots": [
|
5251
5247
|
{
|
5252
|
-
"name": "
|
5253
|
-
"description": "
|
5248
|
+
"name": "default",
|
5249
|
+
"description": "通知文本内容"
|
5254
5250
|
},
|
5255
5251
|
{
|
5256
|
-
"name": "left",
|
5257
|
-
"description": "
|
5252
|
+
"name": "left-icon",
|
5253
|
+
"description": "自定义左侧图标"
|
5258
5254
|
},
|
5259
5255
|
{
|
5260
|
-
"name": "right",
|
5261
|
-
"description": "
|
5256
|
+
"name": "right-icon",
|
5257
|
+
"description": "自定义右侧图标"
|
5262
5258
|
}
|
5263
5259
|
],
|
5264
5260
|
"events": [
|
5265
5261
|
{
|
5266
|
-
"name": "click
|
5267
|
-
"description": "
|
5262
|
+
"name": "click",
|
5263
|
+
"description": "点击通知栏时触发"
|
5268
5264
|
},
|
5269
5265
|
{
|
5270
|
-
"name": "
|
5271
|
-
"description": "
|
5266
|
+
"name": "close",
|
5267
|
+
"description": "关闭通知栏时触发"
|
5268
|
+
},
|
5269
|
+
{
|
5270
|
+
"name": "replay",
|
5271
|
+
"description": "每当滚动栏重新开始滚动时触发"
|
5272
5272
|
}
|
5273
5273
|
],
|
5274
5274
|
"attributes": [
|
5275
5275
|
{
|
5276
|
-
"name": "
|
5276
|
+
"name": "mode",
|
5277
5277
|
"default": "`''`",
|
5278
|
-
"description": "
|
5278
|
+
"description": "通知栏模式,可选值为 `closeable` `link`",
|
5279
5279
|
"value": {
|
5280
5280
|
"type": "string",
|
5281
5281
|
"kind": "expression"
|
5282
5282
|
}
|
5283
5283
|
},
|
5284
5284
|
{
|
5285
|
-
"name": "
|
5285
|
+
"name": "text",
|
5286
5286
|
"default": "`''`",
|
5287
|
-
"description": "
|
5287
|
+
"description": "通知文本内容",
|
5288
5288
|
"value": {
|
5289
5289
|
"type": "string",
|
5290
5290
|
"kind": "expression"
|
5291
5291
|
}
|
5292
5292
|
},
|
5293
5293
|
{
|
5294
|
-
"name": "
|
5295
|
-
"default": "`
|
5296
|
-
"description": "
|
5294
|
+
"name": "color",
|
5295
|
+
"default": "`#f60`",
|
5296
|
+
"description": "通知文本颜色",
|
5297
5297
|
"value": {
|
5298
5298
|
"type": "string",
|
5299
5299
|
"kind": "expression"
|
5300
5300
|
}
|
5301
5301
|
},
|
5302
5302
|
{
|
5303
|
-
"name": "
|
5304
|
-
"default": "`
|
5305
|
-
"description": "
|
5303
|
+
"name": "background",
|
5304
|
+
"default": "`#fff7cc`",
|
5305
|
+
"description": "滚动条背景",
|
5306
5306
|
"value": {
|
5307
|
-
"type": "
|
5307
|
+
"type": "string",
|
5308
5308
|
"kind": "expression"
|
5309
5309
|
}
|
5310
5310
|
},
|
5311
5311
|
{
|
5312
|
-
"name": "
|
5313
|
-
"default": "
|
5314
|
-
"description": "
|
5312
|
+
"name": "left-icon",
|
5313
|
+
"default": "-",
|
5314
|
+
"description": "左侧[图标名称](#/zh-CN/icon)或图片链接",
|
5315
5315
|
"value": {
|
5316
|
-
"type": "
|
5316
|
+
"type": "string",
|
5317
5317
|
"kind": "expression"
|
5318
5318
|
}
|
5319
5319
|
},
|
5320
5320
|
{
|
5321
|
-
"name": "
|
5322
|
-
"default": "`
|
5323
|
-
"description": "
|
5321
|
+
"name": "delay",
|
5322
|
+
"default": "`1`",
|
5323
|
+
"description": "动画延迟时间 (s)",
|
5324
5324
|
"value": {
|
5325
|
-
"type": "
|
5325
|
+
"type": "number | string",
|
5326
5326
|
"kind": "expression"
|
5327
5327
|
}
|
5328
5328
|
},
|
5329
5329
|
{
|
5330
|
-
"name": "
|
5331
|
-
"default": "`
|
5332
|
-
"description": "
|
5330
|
+
"name": "speed",
|
5331
|
+
"default": "`60`",
|
5332
|
+
"description": "滚动速率 (px/s)",
|
5333
5333
|
"value": {
|
5334
|
-
"type": "
|
5334
|
+
"type": "number | string",
|
5335
5335
|
"kind": "expression"
|
5336
5336
|
}
|
5337
5337
|
},
|
5338
5338
|
{
|
5339
|
-
"name": "
|
5340
|
-
"default": "
|
5341
|
-
"description": "
|
5339
|
+
"name": "scrollable",
|
5340
|
+
"default": "-",
|
5341
|
+
"description": "是否开启滚动播放,内容长度溢出时默认开启",
|
5342
5342
|
"value": {
|
5343
|
-
"type": "
|
5343
|
+
"type": "boolean",
|
5344
5344
|
"kind": "expression"
|
5345
5345
|
}
|
5346
5346
|
},
|
5347
5347
|
{
|
5348
|
-
"name": "
|
5348
|
+
"name": "wrapable",
|
5349
5349
|
"default": "`false`",
|
5350
|
-
"description": "
|
5350
|
+
"description": "是否开启文本换行,只在禁用滚动时生效",
|
5351
5351
|
"value": {
|
5352
5352
|
"type": "boolean",
|
5353
5353
|
"kind": "expression"
|
@@ -5707,77 +5707,21 @@
|
|
5707
5707
|
"kind": "expression"
|
5708
5708
|
}
|
5709
5709
|
},
|
5710
|
-
{
|
5711
|
-
"name": "show-page-size",
|
5712
|
-
"default": "`5`",
|
5713
|
-
"description": "显示的页码个数",
|
5714
|
-
"value": {
|
5715
|
-
"type": "number | string",
|
5716
|
-
"kind": "expression"
|
5717
|
-
}
|
5718
|
-
},
|
5719
|
-
{
|
5720
|
-
"name": "force-ellipses",
|
5721
|
-
"default": "`false`",
|
5722
|
-
"description": "是否显示省略号",
|
5723
|
-
"value": {
|
5724
|
-
"type": "boolean",
|
5725
|
-
"kind": "expression"
|
5726
|
-
}
|
5727
|
-
}
|
5728
|
-
]
|
5729
|
-
},
|
5730
|
-
{
|
5731
|
-
"name": "van-panel",
|
5732
|
-
"slots": [
|
5733
|
-
{
|
5734
|
-
"name": "default",
|
5735
|
-
"description": "自定义内容"
|
5736
|
-
},
|
5737
|
-
{
|
5738
|
-
"name": "header",
|
5739
|
-
"description": "自定义 header"
|
5740
|
-
},
|
5741
|
-
{
|
5742
|
-
"name": "footer",
|
5743
|
-
"description": "自定义 footer"
|
5744
|
-
}
|
5745
|
-
],
|
5746
|
-
"events": [],
|
5747
|
-
"attributes": [
|
5748
|
-
{
|
5749
|
-
"name": "title",
|
5750
|
-
"default": "-",
|
5751
|
-
"description": "标题",
|
5752
|
-
"value": {
|
5753
|
-
"type": "string",
|
5754
|
-
"kind": "expression"
|
5755
|
-
}
|
5756
|
-
},
|
5757
|
-
{
|
5758
|
-
"name": "desc",
|
5759
|
-
"default": "-",
|
5760
|
-
"description": "描述",
|
5761
|
-
"value": {
|
5762
|
-
"type": "string",
|
5763
|
-
"kind": "expression"
|
5764
|
-
}
|
5765
|
-
},
|
5766
|
-
{
|
5767
|
-
"name": "status",
|
5768
|
-
"default": "-",
|
5769
|
-
"description": "状态",
|
5710
|
+
{
|
5711
|
+
"name": "show-page-size",
|
5712
|
+
"default": "`5`",
|
5713
|
+
"description": "显示的页码个数",
|
5770
5714
|
"value": {
|
5771
|
-
"type": "string",
|
5715
|
+
"type": "number | string",
|
5772
5716
|
"kind": "expression"
|
5773
5717
|
}
|
5774
5718
|
},
|
5775
5719
|
{
|
5776
|
-
"name": "
|
5777
|
-
"default": "
|
5778
|
-
"description": "
|
5720
|
+
"name": "force-ellipses",
|
5721
|
+
"default": "`false`",
|
5722
|
+
"description": "是否显示省略号",
|
5779
5723
|
"value": {
|
5780
|
-
"type": "
|
5724
|
+
"type": "boolean",
|
5781
5725
|
"kind": "expression"
|
5782
5726
|
}
|
5783
5727
|
}
|
@@ -6033,6 +5977,62 @@
|
|
6033
5977
|
}
|
6034
5978
|
]
|
6035
5979
|
},
|
5980
|
+
{
|
5981
|
+
"name": "van-panel",
|
5982
|
+
"slots": [
|
5983
|
+
{
|
5984
|
+
"name": "default",
|
5985
|
+
"description": "自定义内容"
|
5986
|
+
},
|
5987
|
+
{
|
5988
|
+
"name": "header",
|
5989
|
+
"description": "自定义 header"
|
5990
|
+
},
|
5991
|
+
{
|
5992
|
+
"name": "footer",
|
5993
|
+
"description": "自定义 footer"
|
5994
|
+
}
|
5995
|
+
],
|
5996
|
+
"events": [],
|
5997
|
+
"attributes": [
|
5998
|
+
{
|
5999
|
+
"name": "title",
|
6000
|
+
"default": "-",
|
6001
|
+
"description": "标题",
|
6002
|
+
"value": {
|
6003
|
+
"type": "string",
|
6004
|
+
"kind": "expression"
|
6005
|
+
}
|
6006
|
+
},
|
6007
|
+
{
|
6008
|
+
"name": "desc",
|
6009
|
+
"default": "-",
|
6010
|
+
"description": "描述",
|
6011
|
+
"value": {
|
6012
|
+
"type": "string",
|
6013
|
+
"kind": "expression"
|
6014
|
+
}
|
6015
|
+
},
|
6016
|
+
{
|
6017
|
+
"name": "status",
|
6018
|
+
"default": "-",
|
6019
|
+
"description": "状态",
|
6020
|
+
"value": {
|
6021
|
+
"type": "string",
|
6022
|
+
"kind": "expression"
|
6023
|
+
}
|
6024
|
+
},
|
6025
|
+
{
|
6026
|
+
"name": "icon",
|
6027
|
+
"default": "-",
|
6028
|
+
"description": "标题左侧[图标名称](#/zh-CN/icon)或图片链接",
|
6029
|
+
"value": {
|
6030
|
+
"type": "string",
|
6031
|
+
"kind": "expression"
|
6032
|
+
}
|
6033
|
+
}
|
6034
|
+
]
|
6035
|
+
},
|
6036
6036
|
{
|
6037
6037
|
"name": "van-popover",
|
6038
6038
|
"slots": [
|
@@ -9342,99 +9342,6 @@
|
|
9342
9342
|
}
|
9343
9343
|
]
|
9344
9344
|
},
|
9345
|
-
{
|
9346
|
-
"name": "van-tag",
|
9347
|
-
"slots": [
|
9348
|
-
{
|
9349
|
-
"name": "default",
|
9350
|
-
"description": "标签显示内容"
|
9351
|
-
}
|
9352
|
-
],
|
9353
|
-
"events": [
|
9354
|
-
{
|
9355
|
-
"name": "click",
|
9356
|
-
"description": "点击时触发"
|
9357
|
-
},
|
9358
|
-
{
|
9359
|
-
"name": "close",
|
9360
|
-
"description": "关闭标签时触发"
|
9361
|
-
}
|
9362
|
-
],
|
9363
|
-
"attributes": [
|
9364
|
-
{
|
9365
|
-
"name": "type",
|
9366
|
-
"default": "`default`",
|
9367
|
-
"description": "类型,可选值为`primary` `success` `danger` `warning`",
|
9368
|
-
"value": {
|
9369
|
-
"type": "string",
|
9370
|
-
"kind": "expression"
|
9371
|
-
}
|
9372
|
-
},
|
9373
|
-
{
|
9374
|
-
"name": "size",
|
9375
|
-
"default": "-",
|
9376
|
-
"description": "大小, 可选值为`large` `medium`",
|
9377
|
-
"value": {
|
9378
|
-
"type": "string",
|
9379
|
-
"kind": "expression"
|
9380
|
-
}
|
9381
|
-
},
|
9382
|
-
{
|
9383
|
-
"name": "color",
|
9384
|
-
"default": "-",
|
9385
|
-
"description": "标签颜色",
|
9386
|
-
"value": {
|
9387
|
-
"type": "string",
|
9388
|
-
"kind": "expression"
|
9389
|
-
}
|
9390
|
-
},
|
9391
|
-
{
|
9392
|
-
"name": "plain",
|
9393
|
-
"default": "`false`",
|
9394
|
-
"description": "是否为空心样式",
|
9395
|
-
"value": {
|
9396
|
-
"type": "boolean",
|
9397
|
-
"kind": "expression"
|
9398
|
-
}
|
9399
|
-
},
|
9400
|
-
{
|
9401
|
-
"name": "round",
|
9402
|
-
"default": "`false`",
|
9403
|
-
"description": "是否为圆角样式",
|
9404
|
-
"value": {
|
9405
|
-
"type": "boolean",
|
9406
|
-
"kind": "expression"
|
9407
|
-
}
|
9408
|
-
},
|
9409
|
-
{
|
9410
|
-
"name": "mark",
|
9411
|
-
"default": "`false`",
|
9412
|
-
"description": "是否为标记样式",
|
9413
|
-
"value": {
|
9414
|
-
"type": "boolean",
|
9415
|
-
"kind": "expression"
|
9416
|
-
}
|
9417
|
-
},
|
9418
|
-
{
|
9419
|
-
"name": "text-color",
|
9420
|
-
"default": "`white`",
|
9421
|
-
"description": "文本颜色,优先级高于`color`属性",
|
9422
|
-
"value": {
|
9423
|
-
"type": "string",
|
9424
|
-
"kind": "expression"
|
9425
|
-
}
|
9426
|
-
},
|
9427
|
-
{
|
9428
|
-
"name": "closeable",
|
9429
|
-
"default": "`false`",
|
9430
|
-
"description": "是否为可关闭标签",
|
9431
|
-
"value": {
|
9432
|
-
"type": "boolean",
|
9433
|
-
"kind": "expression"
|
9434
|
-
}
|
9435
|
-
}
|
9436
|
-
]
|
9437
|
-
},
|
9438
9345
|
{
|
9439
9346
|
"name": "van-toast",
|
9440
9347
|
"slots": [],
|
@@ -9759,6 +9666,99 @@
|
|
9759
9666
|
}
|
9760
9667
|
}
|
9761
9668
|
]
|
9669
|
+
},
|
9670
|
+
{
|
9671
|
+
"name": "van-tag",
|
9672
|
+
"slots": [
|
9673
|
+
{
|
9674
|
+
"name": "default",
|
9675
|
+
"description": "标签显示内容"
|
9676
|
+
}
|
9677
|
+
],
|
9678
|
+
"events": [
|
9679
|
+
{
|
9680
|
+
"name": "click",
|
9681
|
+
"description": "点击时触发"
|
9682
|
+
},
|
9683
|
+
{
|
9684
|
+
"name": "close",
|
9685
|
+
"description": "关闭标签时触发"
|
9686
|
+
}
|
9687
|
+
],
|
9688
|
+
"attributes": [
|
9689
|
+
{
|
9690
|
+
"name": "type",
|
9691
|
+
"default": "`default`",
|
9692
|
+
"description": "类型,可选值为`primary` `success` `danger` `warning`",
|
9693
|
+
"value": {
|
9694
|
+
"type": "string",
|
9695
|
+
"kind": "expression"
|
9696
|
+
}
|
9697
|
+
},
|
9698
|
+
{
|
9699
|
+
"name": "size",
|
9700
|
+
"default": "-",
|
9701
|
+
"description": "大小, 可选值为`large` `medium`",
|
9702
|
+
"value": {
|
9703
|
+
"type": "string",
|
9704
|
+
"kind": "expression"
|
9705
|
+
}
|
9706
|
+
},
|
9707
|
+
{
|
9708
|
+
"name": "color",
|
9709
|
+
"default": "-",
|
9710
|
+
"description": "标签颜色",
|
9711
|
+
"value": {
|
9712
|
+
"type": "string",
|
9713
|
+
"kind": "expression"
|
9714
|
+
}
|
9715
|
+
},
|
9716
|
+
{
|
9717
|
+
"name": "plain",
|
9718
|
+
"default": "`false`",
|
9719
|
+
"description": "是否为空心样式",
|
9720
|
+
"value": {
|
9721
|
+
"type": "boolean",
|
9722
|
+
"kind": "expression"
|
9723
|
+
}
|
9724
|
+
},
|
9725
|
+
{
|
9726
|
+
"name": "round",
|
9727
|
+
"default": "`false`",
|
9728
|
+
"description": "是否为圆角样式",
|
9729
|
+
"value": {
|
9730
|
+
"type": "boolean",
|
9731
|
+
"kind": "expression"
|
9732
|
+
}
|
9733
|
+
},
|
9734
|
+
{
|
9735
|
+
"name": "mark",
|
9736
|
+
"default": "`false`",
|
9737
|
+
"description": "是否为标记样式",
|
9738
|
+
"value": {
|
9739
|
+
"type": "boolean",
|
9740
|
+
"kind": "expression"
|
9741
|
+
}
|
9742
|
+
},
|
9743
|
+
{
|
9744
|
+
"name": "text-color",
|
9745
|
+
"default": "`white`",
|
9746
|
+
"description": "文本颜色,优先级高于`color`属性",
|
9747
|
+
"value": {
|
9748
|
+
"type": "string",
|
9749
|
+
"kind": "expression"
|
9750
|
+
}
|
9751
|
+
},
|
9752
|
+
{
|
9753
|
+
"name": "closeable",
|
9754
|
+
"default": "`false`",
|
9755
|
+
"description": "是否为可关闭标签",
|
9756
|
+
"value": {
|
9757
|
+
"type": "boolean",
|
9758
|
+
"kind": "expression"
|
9759
|
+
}
|
9760
|
+
}
|
9761
|
+
]
|
9762
9762
|
}
|
9763
9763
|
],
|
9764
9764
|
"attributes": [],
|