-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSWAN_completions.sublime-settings
1995 lines (1995 loc) · 73.8 KB
/
SWAN_completions.sublime-settings
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
{
// 自定义标签的completion列表
"custom_completion": [
[
"view:class\tTag",
"view class=\"$1\">$0</view>"
],
[
"view:id\tTag",
"view id=\"$1\">$0</view>"
],
[
"view:if\tTag",
"view s-if=\"$1\">$0</view>"
],
[
"view:elif\tTag",
"view s-elif=\"$1\">$0</view>"
],
[
"view:else\tTag",
"view s-else>$0</view>"
],
[
"view:for\tTag",
"view s-for=\"$1\">$0</view>"
],
[
"view:for:for\tTag",
"view s-for=\"$1\" s-for-index=\"${2:idx}\" s-for-item=\"${3:item}\">$4</view>"
],
[
"view:for:key\tTag",
"view s-for=\"$1\" s-for-index=\"${2:idx}\" s-for-item=\"${3:item}\" s-key=\"${4:*this}\">$5</view>"
],
[
"text:class\tTag",
"text class=\"$1\">$0</text>"
],
[
"image\tTag",
"image class=\"$1\" src=\"$2\"${3: mode=\"${4:scaleToFill}\"}></image>"
],
[
"navigator\tTag",
"navigator class=\"$1\" url=\"$2\"${3: open-type=\"${4:navigate}\"}>$0</navigator>"
],
],
// 标签的全局属性
"global_attributes": [
"id",
"class",
"style",
"hidden",
{
"name": "s-if",
"type": "mustache",
"def": "",
"desc": ""
},
{
"name": "s-elif",
"type": "mustache",
"def": "",
"desc": ""
},
{
"name": "s-else",
"type": "prop",
"def": "",
"desc": ""
},
{
"name": "s-for",
"type": "mustache",
"def": "",
"desc": ""
},
"s-for-index",
"s-for-item",
"s-key",
"bind:tap",
"bind:longpress",
"bind:longtap",
"bind:touchstart",
"bind:touchmove",
"bind:touchcancel",
"bind:touchend",
"bind:transitionend",
"bind:animationstart",
"bind:animationiteration",
"bind:animationend",
"bind:touchforcechange",
"catch:tap",
"catch:longpress",
"catch:longtap",
"catch:touchstart",
"catch:touchmove",
"catch:touchcancel",
"catch:touchend",
"catch:transitionend",
"catch:animationstart",
"catch:animationiteration",
"catch:animationend",
"catch:touchforcechange",
"capture-bind:tap",
"capture-bind:longpress",
"capture-bind:longtap",
"capture-bind:touchstart",
"capture-bind:touchmove",
"capture-bind:touchcancel",
"capture-bind:touchend",
"capture-bind:transitionend",
"capture-bind:animationstart",
"capture-bind:animationiteration",
"capture-bind:animationend",
"capture-bind:touchforcechange",
"capture-catch:tap",
"capture-catch:longpress",
"capture-catch:longtap",
"capture-catch:touchstart",
"capture-catch:touchmove",
"capture-catch:touchcancel",
"capture-catch:touchend",
"capture-catch:transitionend",
"capture-catch:animationstart",
"capture-catch:animationiteration",
"capture-catch:animationend",
"capture-catch:touchforcechange"
],
// 标签数据
// 数据来源于:https://github.com/qiu8310/minapp/blob/master/packages/minapp-generator/gen/tpl/components.json
"tag_data": {
"view": {
"attrs": [
{
"name": "hover-class",
"type": "string",
"def": "none",
"desc": "指定按下去的样式类。当 `hover-class=\"none\"` 时,没有点击态效果"
},
{
"name": "hover-stop-propagation",
"type": "boolean",
"def": "false",
"desc": "指定是否阻止本节点的祖先节点出现点击态"
},
{
"name": "hover-start-time",
"type": "number",
"def": "50",
"desc": "按住后多久出现点击态,单位毫秒"
},
{
"name": "hover-stay-time",
"type": "number",
"def": "400",
"desc": "手指松开后点击态保留时间,单位毫秒"
}
],
"docLink": "https://smartprogram.baidu.com/docs/develop/component/view/#view"
},
"scroll-view": {
"attrs": [
{
"name": "scroll-x",
"type": "boolean",
"def": "false",
"desc": "允许横向滚动"
},
{
"name": "scroll-y",
"type": "boolean",
"def": "false",
"desc": "允许纵向滚动"
},
{
"name": "upper-threshold",
"type": "number",
"def": "50",
"desc": "距顶部/左边多远时(单位px),触发 scrolltoupper 事件"
},
{
"name": "lower-threshold",
"type": "number",
"def": "50",
"desc": "距底部/右边多远时(单位px),触发 scrolltolower 事件"
},
{
"name": "scroll-top",
"type": "number",
"def": "",
"desc": "设置竖向滚动条位置"
},
{
"name": "scroll-left",
"type": "number",
"def": "",
"desc": "设置横向滚动条位置"
},
{
"name": "scroll-into-view",
"type": "string",
"def": "",
"desc": "值应为某子元素id(id不能以数字开头)。设置哪个方向可滚动,则在哪个方向滚动到该元素"
},
{
"name": "scroll-with-animation",
"type": "boolean",
"def": "false",
"desc": "在设置滚动条位置时使用动画过渡"
},
{
"name": "enable-back-to-top",
"type": "boolean",
"def": "false",
"desc": "iOS点击顶部状态栏、安卓双击标题栏时,滚动条返回顶部,只支持竖向"
},
{
"name": "bindscrolltoupper",
"type": "function",
"def": "",
"desc": "滚动到顶部/左边,会触发 scrolltoupper 事件"
},
{
"name": "bindscrolltolower",
"type": "function",
"def": "",
"desc": "滚动到底部/右边,会触发 scrolltolower 事件"
},
{
"name": "bindscroll",
"type": "function",
"def": "",
"desc": "滚动时触发,event.detail = {scrollLeft, scrollTop, scrollHeight, scrollWidth, deltaX, deltaY}"
}
],
"docLink": "https://smartprogram.baidu.com/docs/develop/component/view/#scroll-view"
},
"swiper": {
"attrs": [
{
"name": "indicator-dots",
"type": "boolean",
"def": "false",
"desc": "是否显示面板指示点"
},
{
"name": "indicator-color",
"type": "string",
"def": "rgba(0, 0, 0, .3)",
"desc": "指示点颜色"
},
{
"name": "indicator-active-color",
"type": "string",
"def": "#000000",
"desc": "当前选中的指示点颜色"
},
{
"name": "autoplay",
"type": "boolean",
"def": "false",
"desc": "是否自动切换"
},
{
"name": "current",
"type": "number",
"def": "0",
"desc": "当前所在滑块的 index"
},
{
"name": "current-item-id",
"type": "string",
"def": "",
"desc": "当前所在滑块的 item-id ,不能与 current 被同时指定"
},
{
"name": "interval",
"type": "number",
"def": "5000",
"desc": "自动切换时间间隔"
},
{
"name": "duration",
"type": "number",
"def": "500",
"desc": "滑动动画时长"
},
{
"name": "circular",
"type": "boolean",
"def": "false",
"desc": "是否采用衔接滑动"
},
{
"name": "vertical",
"type": "boolean",
"def": "false",
"desc": "滑动方向是否为纵向"
},
{
"name": "previous-margin",
"type": "string",
"def": "0px",
"desc": "前边距,可用于露出前一项的一小部分,接受 px 和 rpx 值"
},
{
"name": "next-margin",
"type": "string",
"def": "0px",
"desc": "后边距,可用于露出后一项的一小部分,接受 px 和 rpx 值"
},
{
"name": "display-multiple-items",
"type": "number",
"def": "1",
"desc": "同时显示的滑块数量"
},
{
"name": "skip-hidden-item-layout",
"type": "boolean",
"def": "false",
"desc": "是否跳过未显示的滑块布局,设为 true 可优化复杂情况下的滑动性能,但会丢失隐藏状态滑块的布局信息"
},
{
"name": "bindchange",
"type": "function",
"def": "",
"desc": "current 改变时会触发 change 事件,event.detail = {current: current, source: source}"
},
{
"name": "bindanimationfinish",
"type": "function",
"def": "",
"desc": "动画结束时会触发 animationfinish 事件,event.detail 同上"
}
],
"docLink": "https://smartprogram.baidu.com/docs/develop/component/view/#swiper"
},
"swiper-item": {
"attrs": [
{
"name": "item-id",
"type": "string",
"def": "",
"desc": "该 swiper-item 的标识符"
}
],
"docLink": "https://smartprogram.baidu.com/docs/develop/component/view/#swiper-item"
},
"movable-area": {
"attrs": [
{
"name": "scale-area",
"type": "boolean",
"def": "false",
"desc": "当里面的movable-view设置为支持双指缩放时,设置此值可将缩放手势生效区域修改为整个movable-area"
}
],
"docLink": "https://smartprogram.baidu.com/docs/develop/component/view/#movable-view"
},
"movable-view": {
"attrs": [],
"docLink": "https://smartprogram.baidu.com/docs/develop/component/view/#movable-view"
},
"cover-view": {
"attrs": [],
"docLink": "https://smartprogram.baidu.com/docs/develop/component/view/#cover-view"
},
"cover-image": {
"attrs": [
{
"name": "src",
"type": "string",
"def": "",
"desc": "图标路径,支持临时路径、网络地址(1.6.0起支持)。暂不支持base64格式。"
}
],
"docLink": "https://smartprogram.baidu.com/docs/develop/component/view/#cover-view"
},
"icon": {
"attrs": [
{
"name": "type",
"type": "string",
"def": "",
"desc": "icon的类型,有效值:success, success_no_circle, info, warn, waiting, cancel, download, search, clear"
},
{
"name": "size",
"type": "number",
"def": "23",
"desc": "icon的大小,单位px"
},
{
"name": "color",
"type": "string",
"def": "",
"desc": "icon的颜色,同css的color"
}
],
"docLink": "https://smartprogram.baidu.com/docs/develop/component/base/#icon"
},
"text": {
"attrs": [
{
"name": "selectable",
"type": "boolean",
"def": "false",
"desc": "文本是否可选"
},
{
"name": "space",
"type": "string",
"def": "false",
"desc": "显示连续空格",
"enum": [
{
"value": "ensp",
"desc": "中文字符空格一半大小"
},
{
"value": "emsp",
"desc": "中文字符空格大小"
},
{
"value": "nbsp",
"desc": "根据字体设置的空格大小"
}
]
},
{
"name": "decode",
"type": "boolean",
"def": "false",
"desc": "是否解码"
}
],
"docLink": "https://smartprogram.baidu.com/docs/develop/component/base/#text"
},
"rich-text": {
"attrs": [
{
"name": "nodes",
"type": "any[] | string",
"def": "",
"desc": "节点列表 / HTML String"
}
],
"docLink": "https://smartprogram.baidu.com/docs/develop/component/base/#rich-text"
},
"progress": {
"attrs": [
{
"name": "percent",
"type": "number",
"def": "无",
"desc": "百分比0~100"
},
{
"name": "show-info",
"type": "boolean",
"def": "false",
"desc": "在进度条右侧显示百分比"
},
{
"name": "stroke-width",
"type": "number",
"def": "6",
"desc": "进度条线的宽度,单位px"
},
{
"name": "color",
"type": "string",
"def": "#09BB07",
"desc": "进度条颜色 (请使用 activeColor)"
},
{
"name": "activeColor",
"type": "string",
"def": "",
"desc": "已选择的进度条的颜色"
},
{
"name": "backgroundColor",
"type": "string",
"def": "",
"desc": "未选择的进度条的颜色"
},
{
"name": "active",
"type": "boolean",
"def": "false",
"desc": "进度条从左往右的动画"
},
{
"name": "active-mode",
"type": "string",
"def": "backwards",
"desc": "backwards: 动画从头播;forwards:动画从上次结束点接着播"
}
],
"docLink": "https://smartprogram.baidu.com/docs/develop/component/base/#progress"
},
"animation-view": {
"attrs": [
{
"name": "path",
"type": "string",
"def": "",
"desc": "动画资源地址,目前只支持绝对路径"
},
{
"name": "loop",
"type": "Boolean",
"def": "false",
"desc": "动画是否循环播放"
},
{
"name": "autoplay",
"type": "Boolean",
"def": "true",
"desc": "动画是否自动播放"
},
{
"name": "action",
"type": "Boolean",
"def": "false",
"desc": "动画操作,可取值 play、pause、stop"
},
{
"name": "hidden",
"type": "Boolean",
"def": "true",
"desc": "是否隐藏动画"
}
],
"docLink": "https://smartprogram.baidu.com/docs/develop/component/base/#animation-view"
},
"button": {
"attrs": [
{
"name": "size",
"type": "string",
"def": "default",
"desc": "按钮的大小",
"enum": [
{
"value": "default"
},
{
"value": "mini"
}
]
},
{
"name": "type",
"type": "string",
"def": "default",
"desc": "按钮的样式类型",
"enum": [
{
"value": "primary"
},
{
"value": "default"
},
{
"value": "warn"
}
]
},
{
"name": "plain",
"type": "boolean",
"def": "false",
"desc": "按钮是否镂空,背景色透明"
},
{
"name": "disabled",
"type": "boolean",
"def": "false",
"desc": "是否禁用"
},
{
"name": "loading",
"type": "boolean",
"def": "false",
"desc": "名称前是否带 loading 图标"
},
{
"name": "form-type",
"type": "string",
"def": "",
"desc": "用于 `<form/>` 组件,点击分别会触发 `<form/>` 组件的 submit/reset 事件",
"enum": [
{
"value": "submit",
"desc": "提交表单"
},
{
"value": "reset",
"desc": "重置表单"
}
]
},
{
"name": "open-type",
"type": "string",
"def": "",
"desc": "手百开放能力,比如分享、获取用户信息等等。",
"enum": [
{
"value": "share",
"desc": "触发用户分享,使用前建议先阅读 swan.onShareAppMessage 用法"
},
{
"value": "getUserInfo",
"desc": "获取用户信息,可以从 bindgetuserinfo 回调中获取到用户信息"
},
{
"value": "getPhoneNumber",
"desc": "获取用户手机号,可以从 bindgetphonenumber 回调中获取到用户信息"
}
]
},
{
"name": "hover-class",
"type": "string",
"def": "button-hover",
"desc": "指定按钮按下去的样式类。当 `hover-class=\"none\"` 时,没有点击态效果"
},
{
"name": "hover-stop-propagation",
"type": "boolean",
"def": "false",
"desc": "指定是否阻止本节点的祖先节点出现点击态"
},
{
"name": "hover-start-time",
"type": "number",
"def": "20",
"desc": "按住后多久出现点击态,单位毫秒"
},
{
"name": "hover-stay-time",
"type": "number",
"def": "70",
"desc": "手指松开后点击态保留时间,单位毫秒"
},
{
"name": "bindgetuserinfo",
"type": "function",
"def": "",
"desc": "用户点击该按钮时,会返回获取到的用户信息,从返回参数的detail中获取到的值同[swan.getUserInfo](https://smartprogram.baidu.com/docs/develop/api/open_userinfo/#getUserInfo/)"
},
{
"name": "bindgetphonenumber",
"type": "function",
"def": "",
"desc": "获取用户手机号回调"
}
],
"docLink": "https://smartprogram.baidu.com/docs/develop/component/form/"
},
"checkbox-group": {
"attrs": [
{
"name": "bindchange",
"type": "function",
"def": "",
"desc": "`<checkbox-group/>`中选中项发生改变是触发 change 事件,detail = {value:\\[选中的checkbox的value的数组\\]}"
}
],
"docLink": "https://smartprogram.baidu.com/docs/develop/component/form/"
},
"checkbox": {
"attrs": [
{
"name": "value",
"type": "string",
"def": "",
"desc": "`<checkbox/>`标识,选中时触发`<checkbox-group/>`的 change 事件,并携带 `<checkbox/>` 的 value"
},
{
"name": "disabled",
"type": "boolean",
"def": "false",
"desc": "是否禁用"
},
{
"name": "checked",
"type": "boolean",
"def": "false",
"desc": "当前是否选中,可用来设置默认选中"
},
{
"name": "color",
"type": "string",
"def": "",
"desc": "checkbox的颜色,同css的color"
}
],
"docLink": "https://smartprogram.baidu.com/docs/develop/component/form/"
},
"form": {
"attrs": [
{
"name": "bindsubmit",
"type": "function",
"def": "",
"desc": "携带 form 中的数据触发 submit 事件,event.detail = {value : {'name': 'value'} , formId: ''}"
},
{
"name": "bindreset",
"type": "function",
"def": "",
"desc": "表单重置时会触发 reset 事件"
}
],
"docLink": "https://smartprogram.baidu.com/docs/develop/component/form/"
},
"input": {
"attrs": [
{
"name": "value",
"type": "string",
"def": "",
"desc": "输入框的初始内容"
},
{
"name": "type",
"type": "string",
"def": "text",
"desc": "input 的类型",
"enum": [
{
"value": "text",
"desc": "文本输入键盘"
},
{
"value": "number",
"desc": "数字输入键盘"
},
{
"value": "digit",
"desc": "带小数点的数字键盘"
}
]
},
{
"name": "password",
"type": "boolean",
"def": "false",
"desc": "是否是密码类型"
},
{
"name": "placeholder",
"type": "string",
"def": "",
"desc": "输入框为空时占位符"
},
{
"name": "placeholder-style",
"type": "string",
"def": "",
"desc": "指定 placeholder 的样式"
},
{
"name": "placeholder-class",
"type": "string",
"def": "input-placeholder",
"desc": "指定 placeholder 的样式类"
},
{
"name": "disabled",
"type": "boolean",
"def": "false",
"desc": "是否禁用"
},
{
"name": "maxlength",
"type": "number",
"def": "140",
"desc": "最大输入长度,设置为 -1 的时候不限制最大长度"
},
{
"name": "cursor-spacing",
"type": "number",
"def": "0",
"desc": "指定光标与键盘的距离,单位 px 。取 input 距离底部的距离和 cursor-spacing 指定的距离的最小值作为光标与键盘的距离"
},
{
"name": "focus",
"type": "boolean",
"def": "false",
"desc": "获取焦点"
},
{
"name": "confirm-type",
"type": "string",
"def": "done",
"desc": "设置键盘右下角按钮的文字",
"enum": [
{
"value": "send",
"desc": "右下角按钮为“发送”"
},
{
"value": "search",
"desc": "右下角按钮为“搜索”"
},
{
"value": "next",
"desc": "右下角按钮为“下一个”"
},
{
"value": "go",
"desc": "右下角按钮为“前往”"
},
{
"value": "done",
"desc": "右下角按钮为“完成”"
}
]
},
{
"name": "confirm-hold",
"type": "boolean",
"def": "false",
"desc": "点击键盘右下角按钮时是否保持键盘不收起"
},
{
"name": "cursor",
"type": "number",
"def": "",
"desc": "指定focus时的光标位置"
},
{
"name": "selection-start",
"type": "number",
"def": "-1",
"desc": "光标起始位置,自动聚集时有效,需与selection-end搭配使用 百度 APP 10.10 以上"
},
{
"name": "selection-end",
"type": "number",
"def": "-1",
"desc": "光标结束位置,自动聚集时有效,需与selection-start搭配使用 百度 APP 10.10 以上"
},
{
"name": "adjust-position",
"type": "boolean",
"def": "true",
"desc": "键盘弹起时,是否自动上推页面 百度 APP 10.10 以上"
},
{
"name": "bindinput",
"type": "function",
"def": "",
"desc": "当键盘输入时,触发input事件,event.detail = {value, cursor},处理函数可以直接 return 一个字符串,将替换输入框的内容。"
},
{
"name": "bindfocus",
"type": "function",
"def": "",
"desc": "输入框聚焦时触发,event.detail = {value, height}"
},
{
"name": "bindblur",
"type": "function",
"def": "",
"desc": "输入框失去焦点时触发,event.detail = {value: value}"
},
{
"name": "bindconfirm",
"type": "function",
"def": "",
"desc": "点击完成按钮时触发,event.detail = {value: value}"
}
],
"docLink": "https://smartprogram.baidu.com/docs/develop/component/form/"
},
"label": {
"attrs": [
{
"name": "for",
"type": "string",
"def": "",
"desc": "绑定控件的 id"
}
],
"docLink": "https://smartprogram.baidu.com/docs/develop/component/form/"
},
"picker": {
"attrs": [
{
"name": "mode",
"type": "string",
"def": "selector",
"desc": "选择器的类型",
"enum": [
{
"value": "time",
"desc": "时间选择器"
},
{
"value": "date",
"desc": "日期选择器"
},
{
"value": "selector",
"desc": "普通选择器"
},
{
"value": "multiSelector",
"desc": "多列选择器"
},
{
"value": "region",
"desc": "省市区选择器"
}
]
}
],
"docLink": "https://smartprogram.baidu.com/docs/develop/component/form/"
},
"picker-view": {
"attrs": [
{
"name": "value",
"type": "mustache",
"def": "",
"desc": "数组中的数字依次表示 picker-view 内的 picker-view-colume 选择的第几项(下标从 0 开始),数字大于 picker-view-column 可选项长度时,选择最后一项。"
},
{
"name": "indicator-style",
"type": "string",
"def": "",
"desc": "设置选择器中间选中框的样式"
},
{
"name": "indicator-class",
"type": "string",
"def": "",
"desc": "设置选择器中间选中框的类名"
},
{
"name": "mask-style",
"type": "string",
"def": "",
"desc": "设置蒙层的样式"
},
{
"name": "mask-class",
"type": "string",
"def": "",
"desc": "设置蒙层的类名"
},
{
"name": "bindchange",
"type": "function",
"def": "",
"desc": "当滚动选择,value 改变时触发 change 事件,event.detail = {value: value};value为数组,表示 picker-view 内的 picker-view-column 当前选择的是第几项(下标从 0 开始)"
}
],
"docLink": "https://smartprogram.baidu.com/docs/develop/component/form/"
},
"picker-view-column": {
"attrs": [],
"docLink": "https://smartprogram.baidu.com/docs/develop/component/form/"
},
"radio-group": {
"attrs": [
{
"name": "bindchange",
"type": "function",
"def": "",
"desc": "`<radio-group/>` 中的选中项发生变化时触发 change 事件,event.detail = {value: 选中项radio的value}"
}
],
"docLink": "https://smartprogram.baidu.com/docs/develop/component/form/"
},
"radio": {
"attrs": [
{
"name": "value",
"type": "string",
"def": "",
"desc": "`<radio/>` 标识。当该`<radio/>` 选中时,`<radio-group/>` 的 change 事件会携带`<radio/>`的value"
},
{
"name": "checked",
"type": "boolean",
"def": "false",
"desc": "当前是否选中"
},
{
"name": "disabled",