mcrm-mobile 2.0.0 → 2.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -246,245 +246,443 @@
246
246
  ]
247
247
  },
248
248
  {
249
- "name": "mm-biz",
249
+ "name": "mm-address-picker",
250
250
  "slots": [],
251
251
  "events": [],
252
252
  "attributes": [
253
253
  {
254
- "name": "tab-list",
255
- "default": "normal-list 和 tab-list 二选一",
256
- "description": "tab 列表",
257
- "options": [
258
- "--"
259
- ],
254
+ "name": "landscape",
255
+ "default": "false",
256
+ "description": "是否横向展示 tab",
257
+ "options": [],
260
258
  "value": {
261
- "type": "`array`",
259
+ "type": "`boolean`",
262
260
  "kind": "expression"
263
261
  }
264
262
  },
265
263
  {
266
- "name": "normal-list",
267
- "default": "normal-list 和 tab-list 二选一",
268
- "description": "菜单列表",
269
- "options": [
270
- "--"
271
- ],
264
+ "name": "provinceName",
265
+ "default": "--",
266
+ "description": "限制省份",
267
+ "options": [],
272
268
  "value": {
273
- "type": "`array`",
269
+ "type": "`string`",
274
270
  "kind": "expression"
275
271
  }
276
272
  },
277
273
  {
278
- "name": "offset-top",
279
- "default": "非必传",
280
- "description": "吸顶距离",
281
- "options": [
282
- "0"
283
- ],
274
+ "name": "level",
275
+ "default": "3",
276
+ "description": "省市区选择,可选择项:省:1;市:2;区县:3",
277
+ "options": [],
284
278
  "value": {
285
- "type": "`string, Nunber`",
279
+ "type": "`number`",
286
280
  "kind": "expression"
287
281
  }
288
282
  },
289
283
  {
290
- "name": "show-more",
291
- "default": "非必传",
292
- "description": "展示更多按钮",
293
- "options": [
294
- "false"
295
- ],
284
+ "name": "isShow",
285
+ "default": "false",
286
+ "description": "是否显示",
287
+ "options": [],
296
288
  "value": {
297
289
  "type": "`boolean`",
298
290
  "kind": "expression"
299
291
  }
292
+ }
293
+ ]
294
+ },
295
+ {
296
+ "name": "mm-badge",
297
+ "slots": [
298
+ {
299
+ "name": "default",
300
+ "description": "徽标包裹的子元素"
300
301
  },
301
302
  {
302
- "name": "custom-event",
303
- "default": "非必传",
304
- "description": "自定义点击事件",
305
- "options": [
306
- "false"
307
- ],
303
+ "name": "content",
304
+ "description": "自定义徽标内容"
305
+ }
306
+ ],
307
+ "events": [],
308
+ "attributes": [
309
+ {
310
+ "name": "content",
311
+ "default": "-",
312
+ "description": "徽标内容",
313
+ "options": [],
308
314
  "value": {
309
- "type": "`boolean`",
315
+ "type": "number | string",
310
316
  "kind": "expression"
311
317
  }
312
318
  },
313
319
  {
314
- "name": "disabled",
315
- "default": "非必传",
316
- "description": "禁用点击事件",
317
- "options": [
318
- "false"
319
- ],
320
+ "name": "color",
321
+ "default": "`#ee0a24`",
322
+ "description": "徽标背景颜色",
323
+ "options": [],
320
324
  "value": {
321
- "type": "`boolean`",
325
+ "type": "string",
322
326
  "kind": "expression"
323
327
  }
324
328
  },
325
329
  {
326
- "name": "disabled-text",
327
- "default": "非必传",
328
- "description": "禁用提示",
329
- "options": [
330
- "''"
331
- ],
330
+ "name": "text-color",
331
+ "default": "`#fff`",
332
+ "description": "徽标字体颜色",
333
+ "options": [],
332
334
  "value": {
333
- "type": "`string`",
335
+ "type": "string",
334
336
  "kind": "expression"
335
337
  }
336
338
  },
337
339
  {
338
- "name": "gray",
339
- "default": "非必传",
340
- "description": "是否置灰",
341
- "options": [
342
- "false"
343
- ],
340
+ "name": "dot",
341
+ "default": "`false`",
342
+ "description": "是否展示为小红点",
343
+ "options": [],
344
344
  "value": {
345
- "type": "`boolean`",
345
+ "type": "boolean",
346
346
  "kind": "expression"
347
347
  }
348
348
  },
349
349
  {
350
- "name": "syb-info",
351
- "default": "非必传",
352
- "description": "[网格通参数](#/menu-jump#wang-ge-tong-can-shu-sybinfo)",
353
- "options": [
354
- "--"
355
- ],
350
+ "name": "max",
351
+ "default": "-",
352
+ "description": "最大值,超过最大值会显示 `{max}+`,仅当 content 为数字时有效",
353
+ "options": [],
356
354
  "value": {
357
- "type": "`object`",
355
+ "type": "number | string",
358
356
  "kind": "expression"
359
357
  }
358
+ }
359
+ ]
360
+ },
361
+ {
362
+ "name": "mm-calendar",
363
+ "slots": [
364
+ {
365
+ "name": "title",
366
+ "description": "自定义标题"
360
367
  },
361
368
  {
362
- "name": "show-hot",
363
- "default": "非必传",
364
- "description": "是否展示热门角标(需与 isHot 同时使用)",
369
+ "name": "footer",
370
+ "description": "自定义底部区域内容"
371
+ },
372
+ {
373
+ "name": "top-info",
374
+ "description": "自定义日期上方的提示信息"
375
+ },
376
+ {
377
+ "name": "bottom-info",
378
+ "description": "自定义日期下方的提示信息"
379
+ }
380
+ ],
381
+ "events": [
382
+ {
383
+ "name": "select",
384
+ "description": "点击并选中任意日期时触发"
385
+ },
386
+ {
387
+ "name": "confirm",
388
+ "description": "日期选择完成后触发,若`show-confirm`为`true`,则点击确认按钮后触发"
389
+ },
390
+ {
391
+ "name": "open",
392
+ "description": "打开弹出层时触发"
393
+ },
394
+ {
395
+ "name": "close",
396
+ "description": "关闭弹出层时触发"
397
+ },
398
+ {
399
+ "name": "opened",
400
+ "description": "打开弹出层且动画结束后触发"
401
+ },
402
+ {
403
+ "name": "closed",
404
+ "description": "关闭弹出层且动画结束后触发"
405
+ },
406
+ {
407
+ "name": "unselect",
408
+ "description": "当日历组件的 `type` 为 `multiple` 时,取消选中日期时触发"
409
+ },
410
+ {
411
+ "name": "month-show",
412
+ "description": "当某个月份进入可视区域时触发"
413
+ }
414
+ ],
415
+ "attributes": [
416
+ {
417
+ "name": "type",
418
+ "default": "`single`",
419
+ "description": "选择类型:<br>`single`表示选择单个日期,<br>`multiple`表示选择多个日期,<br>`range`表示选择日期区间",
420
+ "options": [],
421
+ "value": {
422
+ "type": "string",
423
+ "kind": "expression"
424
+ }
425
+ },
426
+ {
427
+ "name": "title",
428
+ "default": "`日期选择`",
429
+ "description": "日历标题",
430
+ "options": [],
431
+ "value": {
432
+ "type": "string",
433
+ "kind": "expression"
434
+ }
435
+ },
436
+ {
437
+ "name": "color",
438
+ "default": "`#0095FD`",
439
+ "description": "主题色,对底部按钮和选中日期生效",
440
+ "options": [],
441
+ "value": {
442
+ "type": "string",
443
+ "kind": "expression"
444
+ }
445
+ },
446
+ {
447
+ "name": "min-date",
448
+ "default": "当前日期",
449
+ "description": "可选择的最小日期",
450
+ "options": [],
451
+ "value": {
452
+ "type": "Date",
453
+ "kind": "expression"
454
+ }
455
+ },
456
+ {
457
+ "name": "max-date",
458
+ "default": "当前日期的六个月后",
459
+ "description": "可选择的最大日期",
460
+ "options": [],
461
+ "value": {
462
+ "type": "Date",
463
+ "kind": "expression"
464
+ }
465
+ },
466
+ {
467
+ "name": "default-date",
468
+ "default": "null_",
469
+ "description": "默认选中的日期,`type` 为 `multiple` 或 `range` 时为数组,传入 `null` 表示默认不选择",
365
470
  "options": [
366
- "true"
471
+ "今天"
367
472
  ],
368
473
  "value": {
369
- "type": "`boolean`",
474
+ "type": "Date | Date[] \\",
475
+ "kind": "expression"
476
+ }
477
+ },
478
+ {
479
+ "name": "row-height",
480
+ "default": "`64`",
481
+ "description": "日期行高",
482
+ "options": [],
483
+ "value": {
484
+ "type": "number | string",
485
+ "kind": "expression"
486
+ }
487
+ },
488
+ {
489
+ "name": "formatter",
490
+ "default": "-",
491
+ "description": "日期格式化函数",
492
+ "options": [],
493
+ "value": {
494
+ "type": "(day: Day) => Day",
495
+ "kind": "expression"
496
+ }
497
+ },
498
+ {
499
+ "name": "poppable",
500
+ "default": "`true`",
501
+ "description": "是否以弹层的形式展示日历",
502
+ "options": [],
503
+ "value": {
504
+ "type": "boolean",
505
+ "kind": "expression"
506
+ }
507
+ },
508
+ {
509
+ "name": "lazy-render",
510
+ "default": "`true`",
511
+ "description": "是否只渲染可视区域的内容",
512
+ "options": [],
513
+ "value": {
514
+ "type": "boolean",
515
+ "kind": "expression"
516
+ }
517
+ },
518
+ {
519
+ "name": "show-mark",
520
+ "default": "`true`",
521
+ "description": "是否显示月份背景水印",
522
+ "options": [],
523
+ "value": {
524
+ "type": "boolean",
525
+ "kind": "expression"
526
+ }
527
+ },
528
+ {
529
+ "name": "show-title",
530
+ "default": "`true`",
531
+ "description": "是否展示日历标题",
532
+ "options": [],
533
+ "value": {
534
+ "type": "boolean",
535
+ "kind": "expression"
536
+ }
537
+ },
538
+ {
539
+ "name": "show-subtitle",
540
+ "default": "`true`",
541
+ "description": "是否展示日历副标题(年月)",
542
+ "options": [],
543
+ "value": {
544
+ "type": "boolean",
545
+ "kind": "expression"
546
+ }
547
+ },
548
+ {
549
+ "name": "show-confirm",
550
+ "default": "`true`",
551
+ "description": "是否展示确认按钮",
552
+ "options": [],
553
+ "value": {
554
+ "type": "boolean",
370
555
  "kind": "expression"
371
556
  }
372
557
  },
373
558
  {
374
- "name": "row",
375
- "default": "number`",
376
- "description": "一行数量",
377
- "options": [
378
- "非必传"
379
- ],
559
+ "name": "readonly",
560
+ "default": "`false`",
561
+ "description": "是否为只读状态,只读状态下不能选择日期",
562
+ "options": [],
380
563
  "value": {
381
- "type": "`string",
564
+ "type": "boolean",
382
565
  "kind": "expression"
383
566
  }
384
567
  },
385
568
  {
386
- "name": "custom-event-list",
387
- "default": "非必传",
388
- "description": "根据 menuPageCode 自定义点击事件",
389
- "options": [
390
- "[]"
391
- ],
569
+ "name": "confirm-text",
570
+ "default": "`确定`",
571
+ "description": "确认按钮的文字",
572
+ "options": [],
392
573
  "value": {
393
- "type": "`array`",
574
+ "type": "string",
394
575
  "kind": "expression"
395
576
  }
396
577
  },
397
578
  {
398
- "name": "route-list",
399
- "default": "非必传",
400
- "description": "根据 menuPageCode 路由列表跳转",
401
- "options": [
402
- "[]"
403
- ],
579
+ "name": "confirm-disabled-text",
580
+ "default": "`确定`",
581
+ "description": "确认按钮处于禁用状态时的文字",
582
+ "options": [],
404
583
  "value": {
405
- "type": "`array`",
584
+ "type": "string",
406
585
  "kind": "expression"
407
586
  }
408
587
  },
409
588
  {
410
- "name": "hide-header-list",
411
- "default": "非必传",
412
- "description": "根据 menuPageCode 隐藏原生提供的头部",
413
- "options": [
414
- "[]"
415
- ],
589
+ "name": "first-day-of-week",
590
+ "default": "`0`",
591
+ "description": "设置周起始日",
592
+ "options": [],
416
593
  "value": {
417
- "type": "`array`",
594
+ "type": "0-6",
418
595
  "kind": "expression"
419
596
  }
420
597
  }
421
598
  ]
422
599
  },
423
600
  {
424
- "name": "mm-address-picker",
601
+ "name": "mm-poppable",
425
602
  "slots": [],
426
603
  "events": [],
427
604
  "attributes": [
428
605
  {
429
- "name": "landscape",
430
- "default": "false",
431
- "description": "是否横向展示 tab",
606
+ "name": "v-model",
607
+ "default": "`false`",
608
+ "description": "是否显示日历弹窗",
432
609
  "options": [],
433
610
  "value": {
434
- "type": "`boolean`",
611
+ "type": "boolean",
435
612
  "kind": "expression"
436
613
  }
437
614
  },
438
615
  {
439
- "name": "provinceName",
440
- "default": "--",
441
- "description": "限制省份",
616
+ "name": "position",
617
+ "default": "`bottom`",
618
+ "description": "弹出位置,可选值为 `top` `right` `left`",
442
619
  "options": [],
443
620
  "value": {
444
- "type": "`string`",
621
+ "type": "string",
445
622
  "kind": "expression"
446
623
  }
447
624
  },
448
625
  {
449
- "name": "level",
450
- "default": "3",
451
- "description": "省市区选择,可选择项:省:1;市:2;区县:3",
626
+ "name": "round",
627
+ "default": "`true`",
628
+ "description": "是否显示圆角弹窗",
452
629
  "options": [],
453
630
  "value": {
454
- "type": "`number`",
631
+ "type": "boolean",
455
632
  "kind": "expression"
456
633
  }
457
634
  },
458
635
  {
459
- "name": "isShow",
460
- "default": "false",
461
- "description": "是否显示",
636
+ "name": "close-on-popstate",
637
+ "default": "`true`",
638
+ "description": "是否在页面回退时自动关闭",
462
639
  "options": [],
463
640
  "value": {
464
- "type": "`boolean`",
641
+ "type": "boolean",
465
642
  "kind": "expression"
466
643
  }
467
- }
468
- ]
469
- },
470
- {
471
- "name": "mm-badge",
472
- "slots": [
644
+ },
473
645
  {
474
- "name": "default",
475
- "description": "徽标包裹的子元素"
646
+ "name": "close-on-click-overlay",
647
+ "default": "`true`",
648
+ "description": "是否在点击遮罩层后关闭",
649
+ "options": [],
650
+ "value": {
651
+ "type": "boolean",
652
+ "kind": "expression"
653
+ }
476
654
  },
477
655
  {
478
- "name": "content",
479
- "description": "自定义徽标内容"
656
+ "name": "safe-area-inset-bottom",
657
+ "default": "`true`",
658
+ "description": "是否开启[底部安全区适配](#/quickstart#di-bu-an-quan-qu-gua-pei)",
659
+ "options": [],
660
+ "value": {
661
+ "type": "boolean",
662
+ "kind": "expression"
663
+ }
664
+ },
665
+ {
666
+ "name": "get-container",
667
+ "default": "-",
668
+ "description": "指定挂载的节点,[用法示例](#/popup#zhi-ding-gua-zai-wei-zhi)",
669
+ "options": [],
670
+ "value": {
671
+ "type": "string | () => Element",
672
+ "kind": "expression"
673
+ }
480
674
  }
481
- ],
675
+ ]
676
+ },
677
+ {
678
+ "name": "mm-range",
679
+ "slots": [],
482
680
  "events": [],
483
681
  "attributes": [
484
682
  {
485
- "name": "content",
486
- "default": "-",
487
- "description": "徽标内容",
683
+ "name": "max-range",
684
+ "default": "无限制",
685
+ "description": "日期区间最多可选天数",
488
686
  "options": [],
489
687
  "value": {
490
688
  "type": "number | string",
@@ -492,9 +690,9 @@
492
690
  }
493
691
  },
494
692
  {
495
- "name": "color",
496
- "default": "`#ee0a24`",
497
- "description": "徽标背景颜色",
693
+ "name": "range-prompt",
694
+ "default": "`选择天数不能超过 xx 天`",
695
+ "description": "范围选择超过最多可选天数时的提示文案",
498
696
  "options": [],
499
697
  "value": {
500
698
  "type": "string",
@@ -502,32 +700,39 @@
502
700
  }
503
701
  },
504
702
  {
505
- "name": "text-color",
506
- "default": "`#fff`",
507
- "description": "徽标字体颜色",
703
+ "name": "allow-same-day",
704
+ "default": "`fasle`",
705
+ "description": "是否允许日期范围的起止时间为同一天",
508
706
  "options": [],
509
707
  "value": {
510
- "type": "string",
708
+ "type": "boolean",
511
709
  "kind": "expression"
512
710
  }
513
- },
711
+ }
712
+ ]
713
+ },
714
+ {
715
+ "name": "mm-multiple",
716
+ "slots": [],
717
+ "events": [],
718
+ "attributes": [
514
719
  {
515
- "name": "dot",
516
- "default": "`false`",
517
- "description": "是否展示为小红点",
720
+ "name": "max-range",
721
+ "default": "无限制",
722
+ "description": "日期最多可选天数",
518
723
  "options": [],
519
724
  "value": {
520
- "type": "boolean",
725
+ "type": "number | string",
521
726
  "kind": "expression"
522
727
  }
523
728
  },
524
729
  {
525
- "name": "max",
526
- "default": "-",
527
- "description": "最大值,超过最大值会显示 `{max}+`,仅当 content 为数字时有效",
730
+ "name": "range-prompt",
731
+ "default": "`选择天数不能超过 xx 天`",
732
+ "description": "选择超过最多可选天数时的提示文案",
528
733
  "options": [],
529
734
  "value": {
530
- "type": "number | string",
735
+ "type": "string",
531
736
  "kind": "expression"
532
737
  }
533
738
  }
@@ -691,144 +896,175 @@
691
896
  ]
692
897
  },
693
898
  {
694
- "name": "mm-card",
695
- "slots": [
899
+ "name": "mm-biz",
900
+ "slots": [],
901
+ "events": [],
902
+ "attributes": [
696
903
  {
697
- "name": "default",
698
- "description": "卡片内容"
904
+ "name": "tab-list",
905
+ "default": "normal-list 和 tab-list 二选一",
906
+ "description": "tab 列表",
907
+ "options": [
908
+ "--"
909
+ ],
910
+ "value": {
911
+ "type": "`array`",
912
+ "kind": "expression"
913
+ }
699
914
  },
700
915
  {
701
- "name": "header",
702
- "description": "头部"
916
+ "name": "normal-list",
917
+ "default": "normal-list 和 tab-list 二选一",
918
+ "description": "菜单列表",
919
+ "options": [
920
+ "--"
921
+ ],
922
+ "value": {
923
+ "type": "`array`",
924
+ "kind": "expression"
925
+ }
703
926
  },
704
927
  {
705
- "name": "title",
706
- "description": "头部标题"
928
+ "name": "offset-top",
929
+ "default": "非必传",
930
+ "description": "吸顶距离",
931
+ "options": [
932
+ "0"
933
+ ],
934
+ "value": {
935
+ "type": "`string, Nunber`",
936
+ "kind": "expression"
937
+ }
707
938
  },
708
939
  {
709
- "name": "right-op",
710
- "description": "头部右边操作按钮"
711
- }
712
- ],
713
- "events": [],
714
- "attributes": [
940
+ "name": "show-more",
941
+ "default": "非必传",
942
+ "description": "展示更多按钮",
943
+ "options": [
944
+ "false"
945
+ ],
946
+ "value": {
947
+ "type": "`boolean`",
948
+ "kind": "expression"
949
+ }
950
+ },
715
951
  {
716
- "name": "shadow",
717
- "default": "`always / active / never`",
718
- "description": "设置阴影显示时机",
952
+ "name": "custom-event",
953
+ "default": "非必传",
954
+ "description": "自定义点击事件",
719
955
  "options": [
720
- "always"
956
+ "false"
721
957
  ],
722
958
  "value": {
723
- "type": "string",
959
+ "type": "`boolean`",
724
960
  "kind": "expression"
725
961
  }
726
962
  },
727
963
  {
728
- "name": "icon",
729
- "default": "`-`",
730
- "description": "头部右侧按钮图标名称([icon](#/icon))",
964
+ "name": "disabled",
965
+ "default": "非必传",
966
+ "description": "禁用点击事件",
731
967
  "options": [
732
- "chevron-right"
968
+ "false"
733
969
  ],
734
970
  "value": {
735
- "type": "string",
971
+ "type": "`boolean`",
736
972
  "kind": "expression"
737
973
  }
738
974
  },
739
975
  {
740
- "name": "radius",
741
- "default": "`-`",
742
- "description": "卡片圆角值",
976
+ "name": "disabled-text",
977
+ "default": "非必传",
978
+ "description": "禁用提示",
743
979
  "options": [
744
- "8"
980
+ "''"
745
981
  ],
746
982
  "value": {
747
- "type": "string|number",
983
+ "type": "`string`",
748
984
  "kind": "expression"
749
985
  }
750
986
  },
751
987
  {
752
- "name": "title",
753
- "default": "`-`",
754
- "description": "卡片名称",
988
+ "name": "gray",
989
+ "default": "非必传",
990
+ "description": "是否置灰",
755
991
  "options": [
756
- "-"
992
+ "false"
757
993
  ],
758
994
  "value": {
759
- "type": "string",
995
+ "type": "`boolean`",
760
996
  "kind": "expression"
761
997
  }
762
998
  },
763
999
  {
764
- "name": "background",
765
- "default": "`-`",
766
- "description": "卡片背景颜色",
1000
+ "name": "syb-info",
1001
+ "default": "非必传",
1002
+ "description": "[网格通参数](#/menu-jump#wang-ge-tong-can-shu-sybinfo)",
767
1003
  "options": [
768
- "-"
1004
+ "--"
769
1005
  ],
770
1006
  "value": {
771
- "type": "string",
1007
+ "type": "`object`",
772
1008
  "kind": "expression"
773
1009
  }
774
1010
  },
775
1011
  {
776
- "name": "color",
777
- "default": "`-`",
778
- "description": "卡片字体颜色",
1012
+ "name": "show-hot",
1013
+ "default": "非必传",
1014
+ "description": "是否展示热门角标(需与 isHot 同时使用)",
779
1015
  "options": [
780
- "-"
1016
+ "true"
781
1017
  ],
782
1018
  "value": {
783
- "type": "string",
1019
+ "type": "`boolean`",
784
1020
  "kind": "expression"
785
1021
  }
786
1022
  },
787
1023
  {
788
- "name": "box-shadow",
789
- "default": "`-`",
790
- "description": "卡片盒子阴影",
1024
+ "name": "row",
1025
+ "default": "number`",
1026
+ "description": "一行数量",
791
1027
  "options": [
792
- "-"
1028
+ "非必传"
793
1029
  ],
794
1030
  "value": {
795
- "type": "string",
1031
+ "type": "`string",
796
1032
  "kind": "expression"
797
1033
  }
798
1034
  },
799
1035
  {
800
- "name": "is-margin",
801
- "default": "`-`",
802
- "description": "卡片外边距",
1036
+ "name": "custom-event-list",
1037
+ "default": "非必传",
1038
+ "description": "根据 menuPageCode 自定义点击事件",
803
1039
  "options": [
804
- "true"
1040
+ "[]"
805
1041
  ],
806
1042
  "value": {
807
- "type": "boolean",
1043
+ "type": "`array`",
808
1044
  "kind": "expression"
809
1045
  }
810
1046
  },
811
1047
  {
812
- "name": "is-padding",
813
- "default": "`-`",
814
- "description": "卡片内边距",
1048
+ "name": "route-list",
1049
+ "default": "非必传",
1050
+ "description": "根据 menuPageCode 路由列表跳转",
815
1051
  "options": [
816
- "true"
1052
+ "[]"
817
1053
  ],
818
1054
  "value": {
819
- "type": "boolean",
1055
+ "type": "`array`",
820
1056
  "kind": "expression"
821
1057
  }
822
1058
  },
823
1059
  {
824
- "name": "is-link",
825
- "default": "`-`",
826
- "description": "是否展示右侧箭头并开启点击反馈",
1060
+ "name": "hide-header-list",
1061
+ "default": "非必传",
1062
+ "description": "根据 menuPageCode 隐藏原生提供的头部",
827
1063
  "options": [
828
- "true"
1064
+ "[]"
829
1065
  ],
830
1066
  "value": {
831
- "type": "boolean",
1067
+ "type": "`array`",
832
1068
  "kind": "expression"
833
1069
  }
834
1070
  }
@@ -1101,206 +1337,176 @@
1101
1337
  ]
1102
1338
  },
1103
1339
  {
1104
- "name": "mm-calendar",
1340
+ "name": "mm-card",
1105
1341
  "slots": [
1106
1342
  {
1107
- "name": "title",
1108
- "description": "自定义标题"
1109
- },
1110
- {
1111
- "name": "footer",
1112
- "description": "自定义底部区域内容"
1113
- },
1114
- {
1115
- "name": "top-info",
1116
- "description": "自定义日期上方的提示信息"
1117
- },
1118
- {
1119
- "name": "bottom-info",
1120
- "description": "自定义日期下方的提示信息"
1121
- }
1122
- ],
1123
- "events": [
1124
- {
1125
- "name": "select",
1126
- "description": "点击并选中任意日期时触发"
1127
- },
1128
- {
1129
- "name": "confirm",
1130
- "description": "日期选择完成后触发,若`show-confirm`为`true`,则点击确认按钮后触发"
1131
- },
1132
- {
1133
- "name": "open",
1134
- "description": "打开弹出层时触发"
1135
- },
1136
- {
1137
- "name": "close",
1138
- "description": "关闭弹出层时触发"
1139
- },
1140
- {
1141
- "name": "opened",
1142
- "description": "打开弹出层且动画结束后触发"
1343
+ "name": "default",
1344
+ "description": "卡片内容"
1143
1345
  },
1144
1346
  {
1145
- "name": "closed",
1146
- "description": "关闭弹出层且动画结束后触发"
1347
+ "name": "header",
1348
+ "description": "头部"
1147
1349
  },
1148
1350
  {
1149
- "name": "unselect",
1150
- "description": "当日历组件的 `type` 为 `multiple` 时,取消选中日期时触发"
1351
+ "name": "title",
1352
+ "description": "头部标题"
1151
1353
  },
1152
1354
  {
1153
- "name": "month-show",
1154
- "description": "当某个月份进入可视区域时触发"
1355
+ "name": "right-op",
1356
+ "description": "头部右边操作按钮"
1155
1357
  }
1156
1358
  ],
1359
+ "events": [],
1157
1360
  "attributes": [
1158
1361
  {
1159
- "name": "type",
1160
- "default": "`single`",
1161
- "description": "选择类型:<br>`single`表示选择单个日期,<br>`multiple`表示选择多个日期,<br>`range`表示选择日期区间",
1162
- "options": [],
1163
- "value": {
1164
- "type": "string",
1165
- "kind": "expression"
1166
- }
1167
- },
1168
- {
1169
- "name": "title",
1170
- "default": "`日期选择`",
1171
- "description": "日历标题",
1172
- "options": [],
1362
+ "name": "shadow",
1363
+ "default": "`always / active / never`",
1364
+ "description": "设置阴影显示时机",
1365
+ "options": [
1366
+ "always"
1367
+ ],
1173
1368
  "value": {
1174
1369
  "type": "string",
1175
1370
  "kind": "expression"
1176
1371
  }
1177
1372
  },
1178
1373
  {
1179
- "name": "color",
1180
- "default": "`#0095FD`",
1181
- "description": "主题色,对底部按钮和选中日期生效",
1182
- "options": [],
1374
+ "name": "icon",
1375
+ "default": "`-`",
1376
+ "description": "头部右侧按钮图标名称([icon](#/icon))",
1377
+ "options": [
1378
+ "chevron-right"
1379
+ ],
1183
1380
  "value": {
1184
1381
  "type": "string",
1185
1382
  "kind": "expression"
1186
1383
  }
1187
1384
  },
1188
1385
  {
1189
- "name": "min-date",
1190
- "default": "当前日期",
1191
- "description": "可选择的最小日期",
1192
- "options": [],
1193
- "value": {
1194
- "type": "Date",
1195
- "kind": "expression"
1196
- }
1197
- },
1198
- {
1199
- "name": "max-date",
1200
- "default": "当前日期的六个月后",
1201
- "description": "可选择的最大日期",
1202
- "options": [],
1203
- "value": {
1204
- "type": "Date",
1205
- "kind": "expression"
1206
- }
1207
- },
1208
- {
1209
- "name": "default-date",
1210
- "default": "null_",
1211
- "description": "默认选中的日期,`type` 为 `multiple` 或 `range` 时为数组,传入 `null` 表示默认不选择",
1386
+ "name": "radius",
1387
+ "default": "`-`",
1388
+ "description": "卡片圆角值",
1212
1389
  "options": [
1213
- "今天"
1390
+ "8"
1214
1391
  ],
1215
1392
  "value": {
1216
- "type": "Date | Date[] \\",
1217
- "kind": "expression"
1218
- }
1219
- },
1220
- {
1221
- "name": "row-height",
1222
- "default": "`64`",
1223
- "description": "日期行高",
1224
- "options": [],
1225
- "value": {
1226
- "type": "number | string",
1393
+ "type": "string|number",
1227
1394
  "kind": "expression"
1228
1395
  }
1229
1396
  },
1230
1397
  {
1231
- "name": "formatter",
1232
- "default": "-",
1233
- "description": "日期格式化函数",
1234
- "options": [],
1398
+ "name": "title",
1399
+ "default": "`-`",
1400
+ "description": "卡片名称",
1401
+ "options": [
1402
+ "-"
1403
+ ],
1235
1404
  "value": {
1236
- "type": "(day: Day) => Day",
1405
+ "type": "string",
1237
1406
  "kind": "expression"
1238
1407
  }
1239
1408
  },
1240
1409
  {
1241
- "name": "poppable",
1242
- "default": "`true`",
1243
- "description": "是否以弹层的形式展示日历",
1244
- "options": [],
1410
+ "name": "background",
1411
+ "default": "`-`",
1412
+ "description": "卡片背景颜色",
1413
+ "options": [
1414
+ "-"
1415
+ ],
1245
1416
  "value": {
1246
- "type": "boolean",
1417
+ "type": "string",
1247
1418
  "kind": "expression"
1248
1419
  }
1249
1420
  },
1250
1421
  {
1251
- "name": "lazy-render",
1252
- "default": "`true`",
1253
- "description": "是否只渲染可视区域的内容",
1254
- "options": [],
1422
+ "name": "color",
1423
+ "default": "`-`",
1424
+ "description": "卡片字体颜色",
1425
+ "options": [
1426
+ "-"
1427
+ ],
1255
1428
  "value": {
1256
- "type": "boolean",
1429
+ "type": "string",
1257
1430
  "kind": "expression"
1258
1431
  }
1259
1432
  },
1260
1433
  {
1261
- "name": "show-mark",
1262
- "default": "`true`",
1263
- "description": "是否显示月份背景水印",
1264
- "options": [],
1434
+ "name": "box-shadow",
1435
+ "default": "`-`",
1436
+ "description": "卡片盒子阴影",
1437
+ "options": [
1438
+ "-"
1439
+ ],
1265
1440
  "value": {
1266
- "type": "boolean",
1441
+ "type": "string",
1267
1442
  "kind": "expression"
1268
1443
  }
1269
1444
  },
1270
1445
  {
1271
- "name": "show-title",
1272
- "default": "`true`",
1273
- "description": "是否展示日历标题",
1274
- "options": [],
1446
+ "name": "is-margin",
1447
+ "default": "`-`",
1448
+ "description": "卡片外边距",
1449
+ "options": [
1450
+ "true"
1451
+ ],
1275
1452
  "value": {
1276
1453
  "type": "boolean",
1277
1454
  "kind": "expression"
1278
1455
  }
1279
1456
  },
1280
1457
  {
1281
- "name": "show-subtitle",
1282
- "default": "`true`",
1283
- "description": "是否展示日历副标题(年月)",
1284
- "options": [],
1458
+ "name": "is-padding",
1459
+ "default": "`-`",
1460
+ "description": "卡片内边距",
1461
+ "options": [
1462
+ "true"
1463
+ ],
1285
1464
  "value": {
1286
1465
  "type": "boolean",
1287
1466
  "kind": "expression"
1288
1467
  }
1289
1468
  },
1290
1469
  {
1291
- "name": "show-confirm",
1292
- "default": "`true`",
1293
- "description": "是否展示确认按钮",
1294
- "options": [],
1470
+ "name": "is-link",
1471
+ "default": "`-`",
1472
+ "description": "是否展示右侧箭头并开启点击反馈",
1473
+ "options": [
1474
+ "true"
1475
+ ],
1295
1476
  "value": {
1296
1477
  "type": "boolean",
1297
1478
  "kind": "expression"
1298
1479
  }
1480
+ }
1481
+ ]
1482
+ },
1483
+ {
1484
+ "name": "mm-checkbox",
1485
+ "slots": [
1486
+ {
1487
+ "name": "default",
1488
+ "description": "自定义文本"
1299
1489
  },
1300
1490
  {
1301
- "name": "readonly",
1491
+ "name": "icon",
1492
+ "description": "自定义图标"
1493
+ }
1494
+ ],
1495
+ "events": [
1496
+ {
1497
+ "name": "change",
1498
+ "description": "当绑定值变化时触发的事件"
1499
+ },
1500
+ {
1501
+ "name": "click",
1502
+ "description": "点击复选框时触发"
1503
+ }
1504
+ ],
1505
+ "attributes": [
1506
+ {
1507
+ "name": "v-model (value)",
1302
1508
  "default": "`false`",
1303
- "description": "是否为只读状态,只读状态下不能选择日期",
1509
+ "description": "是否为选中状态",
1304
1510
  "options": [],
1305
1511
  "value": {
1306
1512
  "type": "boolean",
@@ -1308,19 +1514,19 @@
1308
1514
  }
1309
1515
  },
1310
1516
  {
1311
- "name": "confirm-text",
1312
- "default": "`确定`",
1313
- "description": "确认按钮的文字",
1517
+ "name": "name",
1518
+ "default": "-",
1519
+ "description": "标识符",
1314
1520
  "options": [],
1315
1521
  "value": {
1316
- "type": "string",
1522
+ "type": "any",
1317
1523
  "kind": "expression"
1318
1524
  }
1319
1525
  },
1320
1526
  {
1321
- "name": "confirm-disabled-text",
1322
- "default": "`确定`",
1323
- "description": "确认按钮处于禁用状态时的文字",
1527
+ "name": "shape",
1528
+ "default": "`round`",
1529
+ "description": "形状,可选值为 `square`",
1324
1530
  "options": [],
1325
1531
  "value": {
1326
1532
  "type": "string",
@@ -1328,26 +1534,19 @@
1328
1534
  }
1329
1535
  },
1330
1536
  {
1331
- "name": "first-day-of-week",
1332
- "default": "`0`",
1333
- "description": "设置周起始日",
1537
+ "name": "disabled",
1538
+ "default": "`false`",
1539
+ "description": "是否禁用复选框",
1334
1540
  "options": [],
1335
1541
  "value": {
1336
- "type": "0-6",
1542
+ "type": "boolean",
1337
1543
  "kind": "expression"
1338
1544
  }
1339
- }
1340
- ]
1341
- },
1342
- {
1343
- "name": "mm-poppable",
1344
- "slots": [],
1345
- "events": [],
1346
- "attributes": [
1545
+ },
1347
1546
  {
1348
- "name": "v-model",
1547
+ "name": "label-disabled",
1349
1548
  "default": "`false`",
1350
- "description": "是否显示日历弹窗",
1549
+ "description": "是否禁用复选框文本点击",
1351
1550
  "options": [],
1352
1551
  "value": {
1353
1552
  "type": "boolean",
@@ -1355,9 +1554,9 @@
1355
1554
  }
1356
1555
  },
1357
1556
  {
1358
- "name": "position",
1359
- "default": "`bottom`",
1360
- "description": "弹出位置,可选值为 `top` `right` `left`",
1557
+ "name": "label-position",
1558
+ "default": "`right`",
1559
+ "description": "文本位置,可选值为 `left`",
1361
1560
  "options": [],
1362
1561
  "value": {
1363
1562
  "type": "string",
@@ -1365,66 +1564,71 @@
1365
1564
  }
1366
1565
  },
1367
1566
  {
1368
- "name": "round",
1369
- "default": "`true`",
1370
- "description": "是否显示圆角弹窗",
1567
+ "name": "icon-size",
1568
+ "default": "`20px`",
1569
+ "description": "图标大小,默认单位为`px`",
1371
1570
  "options": [],
1372
1571
  "value": {
1373
- "type": "boolean",
1572
+ "type": "number | string",
1374
1573
  "kind": "expression"
1375
1574
  }
1376
1575
  },
1377
1576
  {
1378
- "name": "close-on-popstate",
1379
- "default": "`true`",
1380
- "description": "是否在页面回退时自动关闭",
1577
+ "name": "checked-color",
1578
+ "default": "`#1989fa`",
1579
+ "description": "选中状态颜色",
1381
1580
  "options": [],
1382
1581
  "value": {
1383
- "type": "boolean",
1582
+ "type": "string",
1384
1583
  "kind": "expression"
1385
1584
  }
1386
1585
  },
1387
1586
  {
1388
- "name": "close-on-click-overlay",
1587
+ "name": "bind-group",
1389
1588
  "default": "`true`",
1390
- "description": "是否在点击遮罩层后关闭",
1589
+ "description": "是否与复选框组绑定",
1391
1590
  "options": [],
1392
1591
  "value": {
1393
1592
  "type": "boolean",
1394
1593
  "kind": "expression"
1395
1594
  }
1396
- },
1595
+ }
1596
+ ]
1597
+ },
1598
+ {
1599
+ "name": "mm-checkbox-group",
1600
+ "slots": [],
1601
+ "events": [
1397
1602
  {
1398
- "name": "safe-area-inset-bottom",
1399
- "default": "`true`",
1400
- "description": "是否开启[底部安全区适配](#/quickstart#di-bu-an-quan-qu-gua-pei)",
1603
+ "name": "change",
1604
+ "description": "当绑定值变化时触发的事件"
1605
+ }
1606
+ ],
1607
+ "attributes": [
1608
+ {
1609
+ "name": "v-model (value)",
1610
+ "default": "-",
1611
+ "description": "所有选中项的标识符",
1401
1612
  "options": [],
1402
1613
  "value": {
1403
- "type": "boolean",
1614
+ "type": "any[]",
1404
1615
  "kind": "expression"
1405
1616
  }
1406
1617
  },
1407
1618
  {
1408
- "name": "get-container",
1409
- "default": "-",
1410
- "description": "指定挂载的节点,[用法示例](#/popup#zhi-ding-gua-zai-wei-zhi)",
1619
+ "name": "disabled",
1620
+ "default": "`false`",
1621
+ "description": "是否禁用所有复选框",
1411
1622
  "options": [],
1412
1623
  "value": {
1413
- "type": "string | () => Element",
1624
+ "type": "boolean",
1414
1625
  "kind": "expression"
1415
1626
  }
1416
- }
1417
- ]
1418
- },
1419
- {
1420
- "name": "mm-range",
1421
- "slots": [],
1422
- "events": [],
1423
- "attributes": [
1627
+ },
1424
1628
  {
1425
- "name": "max-range",
1426
- "default": "无限制",
1427
- "description": "日期区间最多可选天数",
1629
+ "name": "max",
1630
+ "default": "`0`",
1631
+ "description": "最大可选数,`0`为无限制",
1428
1632
  "options": [],
1429
1633
  "value": {
1430
1634
  "type": "number | string",
@@ -1432,9 +1636,9 @@
1432
1636
  }
1433
1637
  },
1434
1638
  {
1435
- "name": "range-prompt",
1436
- "default": "`选择天数不能超过 xx 天`",
1437
- "description": "范围选择超过最多可选天数时的提示文案",
1639
+ "name": "direction",
1640
+ "default": "`vertical`",
1641
+ "description": "排列方向,可选值为`horizontal`",
1438
1642
  "options": [],
1439
1643
  "value": {
1440
1644
  "type": "string",
@@ -1442,26 +1646,9 @@
1442
1646
  }
1443
1647
  },
1444
1648
  {
1445
- "name": "allow-same-day",
1446
- "default": "`fasle`",
1447
- "description": "是否允许日期范围的起止时间为同一天",
1448
- "options": [],
1449
- "value": {
1450
- "type": "boolean",
1451
- "kind": "expression"
1452
- }
1453
- }
1454
- ]
1455
- },
1456
- {
1457
- "name": "mm-multiple",
1458
- "slots": [],
1459
- "events": [],
1460
- "attributes": [
1461
- {
1462
- "name": "max-range",
1463
- "default": "无限制",
1464
- "description": "日期最多可选天数",
1649
+ "name": "icon-size",
1650
+ "default": "`20px`",
1651
+ "description": "所有复选框的图标大小,默认单位为`px`",
1465
1652
  "options": [],
1466
1653
  "value": {
1467
1654
  "type": "number | string",
@@ -1469,9 +1656,9 @@
1469
1656
  }
1470
1657
  },
1471
1658
  {
1472
- "name": "range-prompt",
1473
- "default": "`选择天数不能超过 xx 天`",
1474
- "description": "选择超过最多可选天数时的提示文案",
1659
+ "name": "checked-color",
1660
+ "default": "`#1989fa`",
1661
+ "description": "所有复选框的选中状态颜色",
1475
1662
  "options": [],
1476
1663
  "value": {
1477
1664
  "type": "string",
@@ -1481,102 +1668,59 @@
1481
1668
  ]
1482
1669
  },
1483
1670
  {
1484
- "name": "mm-checkbox",
1671
+ "name": "mm-circle",
1485
1672
  "slots": [
1486
1673
  {
1487
1674
  "name": "default",
1488
- "description": "自定义文本"
1489
- },
1490
- {
1491
- "name": "icon",
1492
- "description": "自定义图标"
1493
- }
1494
- ],
1495
- "events": [
1496
- {
1497
- "name": "change",
1498
- "description": "当绑定值变化时触发的事件"
1499
- },
1500
- {
1501
- "name": "click",
1502
- "description": "点击复选框时触发"
1675
+ "description": "自定义文字内容"
1503
1676
  }
1504
1677
  ],
1678
+ "events": [],
1505
1679
  "attributes": [
1506
1680
  {
1507
- "name": "v-model (value)",
1508
- "default": "`false`",
1509
- "description": "是否为选中状态",
1510
- "options": [],
1511
- "value": {
1512
- "type": "boolean",
1513
- "kind": "expression"
1514
- }
1515
- },
1516
- {
1517
- "name": "name",
1681
+ "name": "v-model",
1518
1682
  "default": "-",
1519
- "description": "标识符",
1520
- "options": [],
1521
- "value": {
1522
- "type": "any",
1523
- "kind": "expression"
1524
- }
1525
- },
1526
- {
1527
- "name": "shape",
1528
- "default": "`round`",
1529
- "description": "形状,可选值为 `square`",
1530
- "options": [],
1531
- "value": {
1532
- "type": "string",
1533
- "kind": "expression"
1534
- }
1535
- },
1536
- {
1537
- "name": "disabled",
1538
- "default": "`false`",
1539
- "description": "是否禁用复选框",
1683
+ "description": "当前进度",
1540
1684
  "options": [],
1541
1685
  "value": {
1542
- "type": "boolean",
1686
+ "type": "number",
1543
1687
  "kind": "expression"
1544
1688
  }
1545
1689
  },
1546
1690
  {
1547
- "name": "label-disabled",
1548
- "default": "`false`",
1549
- "description": "是否禁用复选框文本点击",
1691
+ "name": "rate",
1692
+ "default": "`100`",
1693
+ "description": "目标进度",
1550
1694
  "options": [],
1551
1695
  "value": {
1552
- "type": "boolean",
1696
+ "type": "number | string",
1553
1697
  "kind": "expression"
1554
1698
  }
1555
1699
  },
1556
1700
  {
1557
- "name": "label-position",
1558
- "default": "`right`",
1559
- "description": "文本位置,可选值为 `left`",
1701
+ "name": "size",
1702
+ "default": "`100px`",
1703
+ "description": "圆环直径,默认单位为 `px`",
1560
1704
  "options": [],
1561
1705
  "value": {
1562
- "type": "string",
1706
+ "type": "number | string",
1563
1707
  "kind": "expression"
1564
1708
  }
1565
1709
  },
1566
1710
  {
1567
- "name": "icon-size",
1568
- "default": "`20px`",
1569
- "description": "图标大小,默认单位为`px`",
1711
+ "name": "color",
1712
+ "default": "`#1989fa`",
1713
+ "description": "进度条颜色,传入对象格式可以定义渐变色",
1570
1714
  "options": [],
1571
1715
  "value": {
1572
- "type": "number | string",
1716
+ "type": "string | object",
1573
1717
  "kind": "expression"
1574
1718
  }
1575
1719
  },
1576
1720
  {
1577
- "name": "checked-color",
1578
- "default": "`#1989fa`",
1579
- "description": "选中状态颜色",
1721
+ "name": "layer-color",
1722
+ "default": "`white`",
1723
+ "description": "轨道颜色",
1580
1724
  "options": [],
1581
1725
  "value": {
1582
1726
  "type": "string",
@@ -1584,51 +1728,39 @@
1584
1728
  }
1585
1729
  },
1586
1730
  {
1587
- "name": "bind-group",
1588
- "default": "`true`",
1589
- "description": "是否与复选框组绑定",
1731
+ "name": "fill",
1732
+ "default": "`none`",
1733
+ "description": "填充颜色",
1590
1734
  "options": [],
1591
1735
  "value": {
1592
- "type": "boolean",
1736
+ "type": "string",
1593
1737
  "kind": "expression"
1594
1738
  }
1595
- }
1596
- ]
1597
- },
1598
- {
1599
- "name": "mm-checkbox-group",
1600
- "slots": [],
1601
- "events": [
1602
- {
1603
- "name": "change",
1604
- "description": "当绑定值变化时触发的事件"
1605
- }
1606
- ],
1607
- "attributes": [
1739
+ },
1608
1740
  {
1609
- "name": "v-model (value)",
1610
- "default": "-",
1611
- "description": "所有选中项的标识符",
1741
+ "name": "speed",
1742
+ "default": "`0`",
1743
+ "description": "动画速度(单位为 rate/s)",
1612
1744
  "options": [],
1613
1745
  "value": {
1614
- "type": "any[]",
1746
+ "type": "number | string",
1615
1747
  "kind": "expression"
1616
1748
  }
1617
1749
  },
1618
1750
  {
1619
- "name": "disabled",
1620
- "default": "`false`",
1621
- "description": "是否禁用所有复选框",
1751
+ "name": "text",
1752
+ "default": "-",
1753
+ "description": "文字",
1622
1754
  "options": [],
1623
1755
  "value": {
1624
- "type": "boolean",
1756
+ "type": "string",
1625
1757
  "kind": "expression"
1626
1758
  }
1627
1759
  },
1628
1760
  {
1629
- "name": "max",
1630
- "default": "`0`",
1631
- "description": "最大可选数,`0`为无限制",
1761
+ "name": "stroke-width",
1762
+ "default": "`40`",
1763
+ "description": "进度条宽度",
1632
1764
  "options": [],
1633
1765
  "value": {
1634
1766
  "type": "number | string",
@@ -1636,9 +1768,9 @@
1636
1768
  }
1637
1769
  },
1638
1770
  {
1639
- "name": "direction",
1640
- "default": "`vertical`",
1641
- "description": "排列方向,可选值为`horizontal`",
1771
+ "name": "stroke-linecap",
1772
+ "default": "`round`",
1773
+ "description": "进度条端点的形状,可选值为`sqaure` `butt`",
1642
1774
  "options": [],
1643
1775
  "value": {
1644
1776
  "type": "string",
@@ -1646,22 +1778,22 @@
1646
1778
  }
1647
1779
  },
1648
1780
  {
1649
- "name": "icon-size",
1650
- "default": "`20px`",
1651
- "description": "所有复选框的图标大小,默认单位为`px`",
1781
+ "name": "clockwise",
1782
+ "default": "`true`",
1783
+ "description": "是否顺时针增加",
1652
1784
  "options": [],
1653
1785
  "value": {
1654
- "type": "number | string",
1786
+ "type": "boolean",
1655
1787
  "kind": "expression"
1656
1788
  }
1657
1789
  },
1658
1790
  {
1659
- "name": "checked-color",
1660
- "default": "`#1989fa`",
1661
- "description": "所有复选框的选中状态颜色",
1791
+ "name": "total",
1792
+ "default": "`100`",
1793
+ "description": "进度条总数",
1662
1794
  "options": [],
1663
1795
  "value": {
1664
- "type": "string",
1796
+ "type": "number | string",
1665
1797
  "kind": "expression"
1666
1798
  }
1667
1799
  }
@@ -1957,138 +2089,6 @@
1957
2089
  }
1958
2090
  ]
1959
2091
  },
1960
- {
1961
- "name": "mm-circle",
1962
- "slots": [
1963
- {
1964
- "name": "default",
1965
- "description": "自定义文字内容"
1966
- }
1967
- ],
1968
- "events": [],
1969
- "attributes": [
1970
- {
1971
- "name": "v-model",
1972
- "default": "-",
1973
- "description": "当前进度",
1974
- "options": [],
1975
- "value": {
1976
- "type": "number",
1977
- "kind": "expression"
1978
- }
1979
- },
1980
- {
1981
- "name": "rate",
1982
- "default": "`100`",
1983
- "description": "目标进度",
1984
- "options": [],
1985
- "value": {
1986
- "type": "number | string",
1987
- "kind": "expression"
1988
- }
1989
- },
1990
- {
1991
- "name": "size",
1992
- "default": "`100px`",
1993
- "description": "圆环直径,默认单位为 `px`",
1994
- "options": [],
1995
- "value": {
1996
- "type": "number | string",
1997
- "kind": "expression"
1998
- }
1999
- },
2000
- {
2001
- "name": "color",
2002
- "default": "`#1989fa`",
2003
- "description": "进度条颜色,传入对象格式可以定义渐变色",
2004
- "options": [],
2005
- "value": {
2006
- "type": "string | object",
2007
- "kind": "expression"
2008
- }
2009
- },
2010
- {
2011
- "name": "layer-color",
2012
- "default": "`white`",
2013
- "description": "轨道颜色",
2014
- "options": [],
2015
- "value": {
2016
- "type": "string",
2017
- "kind": "expression"
2018
- }
2019
- },
2020
- {
2021
- "name": "fill",
2022
- "default": "`none`",
2023
- "description": "填充颜色",
2024
- "options": [],
2025
- "value": {
2026
- "type": "string",
2027
- "kind": "expression"
2028
- }
2029
- },
2030
- {
2031
- "name": "speed",
2032
- "default": "`0`",
2033
- "description": "动画速度(单位为 rate/s)",
2034
- "options": [],
2035
- "value": {
2036
- "type": "number | string",
2037
- "kind": "expression"
2038
- }
2039
- },
2040
- {
2041
- "name": "text",
2042
- "default": "-",
2043
- "description": "文字",
2044
- "options": [],
2045
- "value": {
2046
- "type": "string",
2047
- "kind": "expression"
2048
- }
2049
- },
2050
- {
2051
- "name": "stroke-width",
2052
- "default": "`40`",
2053
- "description": "进度条宽度",
2054
- "options": [],
2055
- "value": {
2056
- "type": "number | string",
2057
- "kind": "expression"
2058
- }
2059
- },
2060
- {
2061
- "name": "stroke-linecap",
2062
- "default": "`round`",
2063
- "description": "进度条端点的形状,可选值为`sqaure` `butt`",
2064
- "options": [],
2065
- "value": {
2066
- "type": "string",
2067
- "kind": "expression"
2068
- }
2069
- },
2070
- {
2071
- "name": "clockwise",
2072
- "default": "`true`",
2073
- "description": "是否顺时针增加",
2074
- "options": [],
2075
- "value": {
2076
- "type": "boolean",
2077
- "kind": "expression"
2078
- }
2079
- },
2080
- {
2081
- "name": "total",
2082
- "default": "`100`",
2083
- "description": "进度条总数",
2084
- "options": [],
2085
- "value": {
2086
- "type": "number | string",
2087
- "kind": "expression"
2088
- }
2089
- }
2090
- ]
2091
- },
2092
2092
  {
2093
2093
  "name": "mm-count-down",
2094
2094
  "slots": [
@@ -2230,108 +2230,86 @@
2230
2230
  ]
2231
2231
  },
2232
2232
  {
2233
- "name": "mm-datetime-picker",
2233
+ "name": "mm-dialog",
2234
2234
  "slots": [],
2235
2235
  "events": [],
2236
2236
  "attributes": [
2237
2237
  {
2238
- "name": "type",
2239
- "default": "`datetime`",
2240
- "description": "类型,可选值为 `date` <br> `time` `year-month`",
2241
- "options": [
2242
- "-"
2243
- ],
2244
- "value": {
2245
- "type": "`string`",
2246
- "kind": "expression"
2247
- }
2248
- },
2249
- {
2250
- "name": "min-date",
2251
- "default": "十年前",
2252
- "description": "可选的最小时间,精确到分钟",
2253
- "options": [],
2254
- "value": {
2255
- "type": "`Date`",
2256
- "kind": "expression"
2257
- }
2258
- },
2259
- {
2260
- "name": "max-date",
2261
- "default": "十年后",
2262
- "description": "可选的最大时间,精确到分钟",
2238
+ "name": "v-model",
2239
+ "default": "-",
2240
+ "description": "是否显示弹窗",
2263
2241
  "options": [
2264
2242
  "-"
2265
2243
  ],
2266
2244
  "value": {
2267
- "type": "`Date`",
2245
+ "type": "`boolean`",
2268
2246
  "kind": "expression"
2269
2247
  }
2270
2248
  },
2271
2249
  {
2272
- "name": "min-hour",
2273
- "default": "`0`",
2274
- "description": "可选的最小小时,针对 time 类型",
2250
+ "name": "title",
2251
+ "default": "-",
2252
+ "description": "标题",
2275
2253
  "options": [
2276
2254
  "-"
2277
2255
  ],
2278
2256
  "value": {
2279
- "type": "`number`",
2257
+ "type": "`string`",
2280
2258
  "kind": "expression"
2281
2259
  }
2282
2260
  },
2283
2261
  {
2284
- "name": "max-hour",
2285
- "default": "`23`",
2286
- "description": "可选的最大小时,针对 time 类型",
2262
+ "name": "message",
2263
+ "default": "-",
2264
+ "description": "内容",
2287
2265
  "options": [
2288
2266
  "-"
2289
2267
  ],
2290
2268
  "value": {
2291
- "type": "`number`",
2269
+ "type": "`string`",
2292
2270
  "kind": "expression"
2293
2271
  }
2294
2272
  },
2295
2273
  {
2296
- "name": "min-minute",
2297
- "default": "`0`",
2298
- "description": "可选的最小分钟,针对 time 类型",
2274
+ "name": "message-align",
2275
+ "default": "`center`",
2276
+ "description": "内容对齐方式,可选值为`left` `right`",
2299
2277
  "options": [
2300
2278
  "-"
2301
2279
  ],
2302
2280
  "value": {
2303
- "type": "`number`",
2281
+ "type": "`string`",
2304
2282
  "kind": "expression"
2305
2283
  }
2306
2284
  },
2307
2285
  {
2308
- "name": "max-minute",
2309
- "default": "`59`",
2310
- "description": "可选的最大分钟,针对 time 类型",
2286
+ "name": "show-confirm-button",
2287
+ "default": "`true`",
2288
+ "description": "是否展示确认按钮",
2311
2289
  "options": [
2312
2290
  "-"
2313
2291
  ],
2314
2292
  "value": {
2315
- "type": "`number`",
2293
+ "type": "`boolean`",
2316
2294
  "kind": "expression"
2317
2295
  }
2318
2296
  },
2319
2297
  {
2320
- "name": "formatter",
2321
- "default": "-",
2322
- "description": "选项格式化函数",
2298
+ "name": "show-cancel-button",
2299
+ "default": "`false`",
2300
+ "description": "是否展示取消按钮",
2323
2301
  "options": [
2324
2302
  "-"
2325
2303
  ],
2326
2304
  "value": {
2327
- "type": "`(type, value) => value`",
2305
+ "type": "`boolean`",
2328
2306
  "kind": "expression"
2329
2307
  }
2330
2308
  },
2331
2309
  {
2332
- "name": "title",
2333
- "default": "`''`",
2334
- "description": "顶部栏标题",
2310
+ "name": "confirm-button-text",
2311
+ "default": "`确认`",
2312
+ "description": "确认按钮的文案",
2335
2313
  "options": [
2336
2314
  "-"
2337
2315
  ],
@@ -2341,21 +2319,21 @@
2341
2319
  }
2342
2320
  },
2343
2321
  {
2344
- "name": "show-toolbar",
2345
- "default": "`true`",
2346
- "description": "是否显示顶部栏",
2322
+ "name": "cancel-button-text",
2323
+ "default": "`取消`",
2324
+ "description": "取消按钮的文案",
2347
2325
  "options": [
2348
2326
  "-"
2349
2327
  ],
2350
2328
  "value": {
2351
- "type": "`boolean`",
2329
+ "type": "`string`",
2352
2330
  "kind": "expression"
2353
2331
  }
2354
2332
  },
2355
2333
  {
2356
- "name": "loading",
2357
- "default": "`false`",
2358
- "description": "是否显示加载状态",
2334
+ "name": "overlay",
2335
+ "default": "`true`",
2336
+ "description": "是否展示蒙层",
2359
2337
  "options": [
2360
2338
  "-"
2361
2339
  ],
@@ -2365,148 +2343,158 @@
2365
2343
  }
2366
2344
  },
2367
2345
  {
2368
- "name": "item-height",
2369
- "default": "`44`",
2370
- "description": "选项高度",
2346
+ "name": "close-on-click-overlay",
2347
+ "default": "`false`",
2348
+ "description": "是否在点击蒙层后关闭",
2371
2349
  "options": [
2372
2350
  "-"
2373
2351
  ],
2374
2352
  "value": {
2375
- "type": "`number`",
2353
+ "type": "`boolean`",
2376
2354
  "kind": "expression"
2377
2355
  }
2378
2356
  },
2379
2357
  {
2380
- "name": "confirm-button-text",
2381
- "default": "`确认`",
2382
- "description": "确认按钮文字",
2358
+ "name": "lock-scroll",
2359
+ "default": "`true`",
2360
+ "description": "是否锁定背景滚动",
2383
2361
  "options": [
2384
2362
  "-"
2385
2363
  ],
2386
2364
  "value": {
2387
- "type": "`string`",
2365
+ "type": "`boolean`",
2388
2366
  "kind": "expression"
2389
2367
  }
2390
2368
  },
2391
2369
  {
2392
- "name": "cancel-button-text",
2393
- "default": "`取消`",
2394
- "description": "取消按钮文字",
2370
+ "name": "before-close",
2371
+ "default": "-",
2372
+ "description": "关闭前的回调函数,<br>调用 done() 后关闭弹窗,<br>调用 done(false) 阻止弹窗关闭",
2395
2373
  "options": [
2396
2374
  "-"
2397
2375
  ],
2398
2376
  "value": {
2399
- "type": "`string`",
2377
+ "type": "`(action, done) => void`",
2400
2378
  "kind": "expression"
2401
2379
  }
2402
2380
  },
2403
2381
  {
2404
- "name": "visible-item-count",
2405
- "default": "`5`",
2406
- "description": "可见的选项个数",
2382
+ "name": "get-container",
2383
+ "default": "() => HTMLElement`",
2384
+ "description": "指定挂载的节点,可以传入选择器,<br>或一个返回节点的函数",
2407
2385
  "options": [
2408
2386
  "-"
2409
2387
  ],
2410
2388
  "value": {
2411
- "type": "`number`",
2389
+ "type": "`string",
2412
2390
  "kind": "expression"
2413
2391
  }
2414
2392
  }
2415
2393
  ]
2416
2394
  },
2417
2395
  {
2418
- "name": "mm-dialog",
2396
+ "name": "mm-datetime-picker",
2419
2397
  "slots": [],
2420
2398
  "events": [],
2421
2399
  "attributes": [
2422
2400
  {
2423
- "name": "v-model",
2424
- "default": "-",
2425
- "description": "是否显示弹窗",
2401
+ "name": "type",
2402
+ "default": "`datetime`",
2403
+ "description": "类型,可选值为 `date` <br> `time` `year-month`",
2426
2404
  "options": [
2427
2405
  "-"
2428
2406
  ],
2429
2407
  "value": {
2430
- "type": "`boolean`",
2408
+ "type": "`string`",
2431
2409
  "kind": "expression"
2432
2410
  }
2433
2411
  },
2434
2412
  {
2435
- "name": "title",
2436
- "default": "-",
2437
- "description": "标题",
2413
+ "name": "min-date",
2414
+ "default": "十年前",
2415
+ "description": "可选的最小时间,精确到分钟",
2416
+ "options": [],
2417
+ "value": {
2418
+ "type": "`Date`",
2419
+ "kind": "expression"
2420
+ }
2421
+ },
2422
+ {
2423
+ "name": "max-date",
2424
+ "default": "十年后",
2425
+ "description": "可选的最大时间,精确到分钟",
2438
2426
  "options": [
2439
2427
  "-"
2440
2428
  ],
2441
2429
  "value": {
2442
- "type": "`string`",
2430
+ "type": "`Date`",
2443
2431
  "kind": "expression"
2444
2432
  }
2445
2433
  },
2446
2434
  {
2447
- "name": "message",
2448
- "default": "-",
2449
- "description": "内容",
2435
+ "name": "min-hour",
2436
+ "default": "`0`",
2437
+ "description": "可选的最小小时,针对 time 类型",
2450
2438
  "options": [
2451
2439
  "-"
2452
2440
  ],
2453
2441
  "value": {
2454
- "type": "`string`",
2442
+ "type": "`number`",
2455
2443
  "kind": "expression"
2456
2444
  }
2457
2445
  },
2458
2446
  {
2459
- "name": "message-align",
2460
- "default": "`center`",
2461
- "description": "内容对齐方式,可选值为`left` `right`",
2447
+ "name": "max-hour",
2448
+ "default": "`23`",
2449
+ "description": "可选的最大小时,针对 time 类型",
2462
2450
  "options": [
2463
2451
  "-"
2464
2452
  ],
2465
2453
  "value": {
2466
- "type": "`string`",
2454
+ "type": "`number`",
2467
2455
  "kind": "expression"
2468
2456
  }
2469
2457
  },
2470
2458
  {
2471
- "name": "show-confirm-button",
2472
- "default": "`true`",
2473
- "description": "是否展示确认按钮",
2459
+ "name": "min-minute",
2460
+ "default": "`0`",
2461
+ "description": "可选的最小分钟,针对 time 类型",
2474
2462
  "options": [
2475
2463
  "-"
2476
2464
  ],
2477
2465
  "value": {
2478
- "type": "`boolean`",
2466
+ "type": "`number`",
2479
2467
  "kind": "expression"
2480
2468
  }
2481
2469
  },
2482
2470
  {
2483
- "name": "show-cancel-button",
2484
- "default": "`false`",
2485
- "description": "是否展示取消按钮",
2471
+ "name": "max-minute",
2472
+ "default": "`59`",
2473
+ "description": "可选的最大分钟,针对 time 类型",
2486
2474
  "options": [
2487
2475
  "-"
2488
2476
  ],
2489
2477
  "value": {
2490
- "type": "`boolean`",
2478
+ "type": "`number`",
2491
2479
  "kind": "expression"
2492
2480
  }
2493
2481
  },
2494
2482
  {
2495
- "name": "confirm-button-text",
2496
- "default": "`确认`",
2497
- "description": "确认按钮的文案",
2483
+ "name": "formatter",
2484
+ "default": "-",
2485
+ "description": "选项格式化函数",
2498
2486
  "options": [
2499
2487
  "-"
2500
2488
  ],
2501
2489
  "value": {
2502
- "type": "`string`",
2490
+ "type": "`(type, value) => value`",
2503
2491
  "kind": "expression"
2504
2492
  }
2505
2493
  },
2506
2494
  {
2507
- "name": "cancel-button-text",
2508
- "default": "`取消`",
2509
- "description": "取消按钮的文案",
2495
+ "name": "title",
2496
+ "default": "`''`",
2497
+ "description": "顶部栏标题",
2510
2498
  "options": [
2511
2499
  "-"
2512
2500
  ],
@@ -2516,9 +2504,9 @@
2516
2504
  }
2517
2505
  },
2518
2506
  {
2519
- "name": "overlay",
2507
+ "name": "show-toolbar",
2520
2508
  "default": "`true`",
2521
- "description": "是否展示蒙层",
2509
+ "description": "是否显示顶部栏",
2522
2510
  "options": [
2523
2511
  "-"
2524
2512
  ],
@@ -2528,9 +2516,9 @@
2528
2516
  }
2529
2517
  },
2530
2518
  {
2531
- "name": "close-on-click-overlay",
2519
+ "name": "loading",
2532
2520
  "default": "`false`",
2533
- "description": "是否在点击蒙层后关闭",
2521
+ "description": "是否显示加载状态",
2534
2522
  "options": [
2535
2523
  "-"
2536
2524
  ],
@@ -2540,38 +2528,50 @@
2540
2528
  }
2541
2529
  },
2542
2530
  {
2543
- "name": "lock-scroll",
2544
- "default": "`true`",
2545
- "description": "是否锁定背景滚动",
2531
+ "name": "item-height",
2532
+ "default": "`44`",
2533
+ "description": "选项高度",
2546
2534
  "options": [
2547
2535
  "-"
2548
2536
  ],
2549
2537
  "value": {
2550
- "type": "`boolean`",
2538
+ "type": "`number`",
2551
2539
  "kind": "expression"
2552
2540
  }
2553
2541
  },
2554
2542
  {
2555
- "name": "before-close",
2556
- "default": "-",
2557
- "description": "关闭前的回调函数,<br>调用 done() 后关闭弹窗,<br>调用 done(false) 阻止弹窗关闭",
2543
+ "name": "confirm-button-text",
2544
+ "default": "`确认`",
2545
+ "description": "确认按钮文字",
2558
2546
  "options": [
2559
2547
  "-"
2560
2548
  ],
2561
2549
  "value": {
2562
- "type": "`(action, done) => void`",
2550
+ "type": "`string`",
2563
2551
  "kind": "expression"
2564
2552
  }
2565
2553
  },
2566
2554
  {
2567
- "name": "get-container",
2568
- "default": "() => HTMLElement`",
2569
- "description": "指定挂载的节点,可以传入选择器,<br>或一个返回节点的函数",
2555
+ "name": "cancel-button-text",
2556
+ "default": "`取消`",
2557
+ "description": "取消按钮文字",
2570
2558
  "options": [
2571
2559
  "-"
2572
2560
  ],
2573
2561
  "value": {
2574
- "type": "`string",
2562
+ "type": "`string`",
2563
+ "kind": "expression"
2564
+ }
2565
+ },
2566
+ {
2567
+ "name": "visible-item-count",
2568
+ "default": "`5`",
2569
+ "description": "可见的选项个数",
2570
+ "options": [
2571
+ "-"
2572
+ ],
2573
+ "value": {
2574
+ "type": "`number`",
2575
2575
  "kind": "expression"
2576
2576
  }
2577
2577
  }
@@ -2842,92 +2842,42 @@
2842
2842
  }
2843
2843
  },
2844
2844
  {
2845
- "name": "disabled",
2846
- "default": "`false`",
2847
- "description": "是否禁用菜单",
2848
- "options": [],
2849
- "value": {
2850
- "type": "boolean",
2851
- "kind": "expression"
2852
- }
2853
- },
2854
- {
2855
- "name": "lazy-render",
2856
- "default": "`true`",
2857
- "description": "是否在首次展开时才渲染菜单内容",
2858
- "options": [],
2859
- "value": {
2860
- "type": "boolean",
2861
- "kind": "expression"
2862
- }
2863
- },
2864
- {
2865
- "name": "title-class",
2866
- "default": "-",
2867
- "description": "标题额外类名",
2868
- "options": [],
2869
- "value": {
2870
- "type": "string",
2871
- "kind": "expression"
2872
- }
2873
- },
2874
- {
2875
- "name": "get-container",
2876
- "default": "-",
2877
- "description": "指定挂载的节点,[用法示例](#/zh-CN/popup#zhi-ding-gua-zai-wei-zhi)",
2878
- "options": [],
2879
- "value": {
2880
- "type": "string | () => Element",
2881
- "kind": "expression"
2882
- }
2883
- }
2884
- ]
2885
- },
2886
- {
2887
- "name": "mm-empty",
2888
- "slots": [
2889
- {
2890
- "name": "default",
2891
- "description": "自定义底部内容"
2892
- },
2893
- {
2894
- "name": "image",
2895
- "description": "自定义图标"
2896
- },
2897
- {
2898
- "name": "description",
2899
- "description": "自定义描述文字"
2900
- }
2901
- ],
2902
- "events": [],
2903
- "attributes": [
2845
+ "name": "disabled",
2846
+ "default": "`false`",
2847
+ "description": "是否禁用菜单",
2848
+ "options": [],
2849
+ "value": {
2850
+ "type": "boolean",
2851
+ "kind": "expression"
2852
+ }
2853
+ },
2904
2854
  {
2905
- "name": "image",
2906
- "default": "`default`",
2907
- "description": "图片类型,可选值为 `error` `network` `search`,支持传入图片 URL",
2855
+ "name": "lazy-render",
2856
+ "default": "`true`",
2857
+ "description": "是否在首次展开时才渲染菜单内容",
2908
2858
  "options": [],
2909
2859
  "value": {
2910
- "type": "string",
2860
+ "type": "boolean",
2911
2861
  "kind": "expression"
2912
2862
  }
2913
2863
  },
2914
2864
  {
2915
- "name": "image-size",
2865
+ "name": "title-class",
2916
2866
  "default": "-",
2917
- "description": "图片大小,默认单位为 `px`",
2867
+ "description": "标题额外类名",
2918
2868
  "options": [],
2919
2869
  "value": {
2920
- "type": "number | string",
2870
+ "type": "string",
2921
2871
  "kind": "expression"
2922
2872
  }
2923
2873
  },
2924
2874
  {
2925
- "name": "description",
2875
+ "name": "get-container",
2926
2876
  "default": "-",
2927
- "description": "图片下方的描述文字",
2877
+ "description": "指定挂载的节点,[用法示例](#/zh-CN/popup#zhi-ding-gua-zai-wei-zhi)",
2928
2878
  "options": [],
2929
2879
  "value": {
2930
- "type": "string",
2880
+ "type": "string | () => Element",
2931
2881
  "kind": "expression"
2932
2882
  }
2933
2883
  }
@@ -3134,6 +3084,56 @@
3134
3084
  }
3135
3085
  ]
3136
3086
  },
3087
+ {
3088
+ "name": "mm-empty",
3089
+ "slots": [
3090
+ {
3091
+ "name": "default",
3092
+ "description": "自定义底部内容"
3093
+ },
3094
+ {
3095
+ "name": "image",
3096
+ "description": "自定义图标"
3097
+ },
3098
+ {
3099
+ "name": "description",
3100
+ "description": "自定义描述文字"
3101
+ }
3102
+ ],
3103
+ "events": [],
3104
+ "attributes": [
3105
+ {
3106
+ "name": "image",
3107
+ "default": "`default`",
3108
+ "description": "图片类型,可选值为 `error` `network` `search`,支持传入图片 URL",
3109
+ "options": [],
3110
+ "value": {
3111
+ "type": "string",
3112
+ "kind": "expression"
3113
+ }
3114
+ },
3115
+ {
3116
+ "name": "image-size",
3117
+ "default": "-",
3118
+ "description": "图片大小,默认单位为 `px`",
3119
+ "options": [],
3120
+ "value": {
3121
+ "type": "number | string",
3122
+ "kind": "expression"
3123
+ }
3124
+ },
3125
+ {
3126
+ "name": "description",
3127
+ "default": "-",
3128
+ "description": "图片下方的描述文字",
3129
+ "options": [],
3130
+ "value": {
3131
+ "type": "string",
3132
+ "kind": "expression"
3133
+ }
3134
+ }
3135
+ ]
3136
+ },
3137
3137
  {
3138
3138
  "name": "mm-goods-action",
3139
3139
  "slots": [],
@@ -3386,39 +3386,34 @@
3386
3386
  ]
3387
3387
  },
3388
3388
  {
3389
- "name": "mm-icon",
3389
+ "name": "mm-grid",
3390
3390
  "slots": [],
3391
- "events": [
3392
- {
3393
- "name": "click",
3394
- "description": "点击图标时触发"
3395
- }
3396
- ],
3391
+ "events": [],
3397
3392
  "attributes": [
3398
3393
  {
3399
- "name": "name",
3400
- "default": "-",
3401
- "description": "图标名称或图片链接",
3394
+ "name": "column-num",
3395
+ "default": "`4`",
3396
+ "description": "列数",
3402
3397
  "options": [],
3403
3398
  "value": {
3404
- "type": "string",
3399
+ "type": "number | string",
3405
3400
  "kind": "expression"
3406
3401
  }
3407
3402
  },
3408
3403
  {
3409
- "name": "dot",
3410
- "default": "`false`",
3411
- "description": "是否显示图标右上角小红点",
3404
+ "name": "icon-size",
3405
+ "default": "`28px`",
3406
+ "description": "图标大小,默认单位为`px`",
3412
3407
  "options": [],
3413
3408
  "value": {
3414
- "type": "boolean",
3409
+ "type": "number | string",
3415
3410
  "kind": "expression"
3416
3411
  }
3417
3412
  },
3418
3413
  {
3419
- "name": "badge",
3420
- "default": "-",
3421
- "description": "图标右上角徽标的内容",
3414
+ "name": "gutter",
3415
+ "default": "`0`",
3416
+ "description": "格子之间的间距,默认单位为`px`",
3422
3417
  "options": [],
3423
3418
  "value": {
3424
3419
  "type": "number | string",
@@ -3426,49 +3421,49 @@
3426
3421
  }
3427
3422
  },
3428
3423
  {
3429
- "name": "info",
3430
- "default": "-",
3431
- "description": "图标右上角徽标的内容(已废弃,请使用 badge 属性)",
3424
+ "name": "border",
3425
+ "default": "`true`",
3426
+ "description": "是否显示边框",
3432
3427
  "options": [],
3433
3428
  "value": {
3434
- "type": "number | string",
3429
+ "type": "boolean",
3435
3430
  "kind": "expression"
3436
3431
  }
3437
3432
  },
3438
3433
  {
3439
- "name": "color",
3440
- "default": "`inherit`",
3441
- "description": "图标颜色",
3434
+ "name": "center",
3435
+ "default": "`true`",
3436
+ "description": "是否将格子内容居中显示",
3442
3437
  "options": [],
3443
3438
  "value": {
3444
- "type": "string",
3439
+ "type": "boolean",
3445
3440
  "kind": "expression"
3446
3441
  }
3447
3442
  },
3448
3443
  {
3449
- "name": "size",
3450
- "default": "`inherit`",
3451
- "description": "图标大小,如 `20px` `2em`,默认单位为`px`",
3444
+ "name": "square",
3445
+ "default": "`false`",
3446
+ "description": "是否将格子固定为正方形",
3452
3447
  "options": [],
3453
3448
  "value": {
3454
- "type": "number | string",
3449
+ "type": "boolean",
3455
3450
  "kind": "expression"
3456
3451
  }
3457
3452
  },
3458
3453
  {
3459
- "name": "class-prefix",
3460
- "default": "`mm-icon`",
3461
- "description": "类名前缀,用于使用自定义图标",
3454
+ "name": "clickable",
3455
+ "default": "`false`",
3456
+ "description": "是否开启格子点击反馈",
3462
3457
  "options": [],
3463
3458
  "value": {
3464
- "type": "string",
3459
+ "type": "boolean",
3465
3460
  "kind": "expression"
3466
3461
  }
3467
3462
  },
3468
3463
  {
3469
- "name": "tag",
3470
- "default": "`i`",
3471
- "description": "HTML 标签",
3464
+ "name": "direction",
3465
+ "default": "`vertical`",
3466
+ "description": "格子内容排列的方向,可选值为 `horizontal`",
3472
3467
  "options": [],
3473
3468
  "value": {
3474
3469
  "type": "string",
@@ -3478,44 +3473,62 @@
3478
3473
  ]
3479
3474
  },
3480
3475
  {
3481
- "name": "mm-grid",
3482
- "slots": [],
3483
- "events": [],
3476
+ "name": "mm-grid-item",
3477
+ "slots": [
3478
+ {
3479
+ "name": "default",
3480
+ "description": "自定义宫格的所有内容"
3481
+ },
3482
+ {
3483
+ "name": "icon",
3484
+ "description": "自定义图标"
3485
+ },
3486
+ {
3487
+ "name": "text",
3488
+ "description": "自定义文字"
3489
+ }
3490
+ ],
3491
+ "events": [
3492
+ {
3493
+ "name": "click",
3494
+ "description": "点击格子时触发"
3495
+ }
3496
+ ],
3484
3497
  "attributes": [
3485
3498
  {
3486
- "name": "column-num",
3487
- "default": "`4`",
3488
- "description": "列数",
3499
+ "name": "text",
3500
+ "default": "-",
3501
+ "description": "文字",
3489
3502
  "options": [],
3490
3503
  "value": {
3491
- "type": "number | string",
3504
+ "type": "string",
3492
3505
  "kind": "expression"
3493
3506
  }
3494
3507
  },
3495
3508
  {
3496
- "name": "icon-size",
3497
- "default": "`28px`",
3498
- "description": "图标大小,默认单位为`px`",
3509
+ "name": "icon",
3510
+ "default": "-",
3511
+ "description": "[图标名称](#/icon)或图片链接",
3499
3512
  "options": [],
3500
3513
  "value": {
3501
- "type": "number | string",
3514
+ "type": "string",
3502
3515
  "kind": "expression"
3503
3516
  }
3504
3517
  },
3505
3518
  {
3506
- "name": "gutter",
3507
- "default": "`0`",
3508
- "description": "格子之间的间距,默认单位为`px`",
3519
+ "name": "icon-prefix",
3520
+ "default": "`mm-icon`",
3521
+ "description": "图标类名前缀,同 Icon 组件的 [class-prefix 属性](#/icon#props)",
3509
3522
  "options": [],
3510
3523
  "value": {
3511
- "type": "number | string",
3524
+ "type": "string",
3512
3525
  "kind": "expression"
3513
3526
  }
3514
3527
  },
3515
3528
  {
3516
- "name": "border",
3517
- "default": "`true`",
3518
- "description": "是否显示边框",
3529
+ "name": "dot",
3530
+ "default": "`false`",
3531
+ "description": "是否显示图标右上角小红点",
3519
3532
  "options": [],
3520
3533
  "value": {
3521
3534
  "type": "boolean",
@@ -3523,74 +3536,61 @@
3523
3536
  }
3524
3537
  },
3525
3538
  {
3526
- "name": "center",
3527
- "default": "`true`",
3528
- "description": "是否将格子内容居中显示",
3539
+ "name": "badge",
3540
+ "default": "-",
3541
+ "description": "图标右上角徽标的内容",
3529
3542
  "options": [],
3530
3543
  "value": {
3531
- "type": "boolean",
3544
+ "type": "number | string",
3532
3545
  "kind": "expression"
3533
3546
  }
3534
3547
  },
3535
3548
  {
3536
- "name": "square",
3537
- "default": "`false`",
3538
- "description": "是否将格子固定为正方形",
3549
+ "name": "url",
3550
+ "default": "-",
3551
+ "description": "点击后跳转的链接地址",
3539
3552
  "options": [],
3540
3553
  "value": {
3541
- "type": "boolean",
3554
+ "type": "string",
3542
3555
  "kind": "expression"
3543
3556
  }
3544
3557
  },
3545
3558
  {
3546
- "name": "clickable",
3547
- "default": "`false`",
3548
- "description": "是否开启格子点击反馈",
3559
+ "name": "to",
3560
+ "default": "-",
3561
+ "description": "点击后跳转的目标路由对象,同 vue-router 的 [to 属性](https://router.vuejs.org/zh/api/#to)",
3549
3562
  "options": [],
3550
3563
  "value": {
3551
- "type": "boolean",
3564
+ "type": "string | object",
3552
3565
  "kind": "expression"
3553
3566
  }
3554
3567
  },
3555
3568
  {
3556
- "name": "direction",
3557
- "default": "`vertical`",
3558
- "description": "格子内容排列的方向,可选值为 `horizontal`",
3569
+ "name": "replace",
3570
+ "default": "`false`",
3571
+ "description": "是否在跳转时替换当前页面历史",
3559
3572
  "options": [],
3560
3573
  "value": {
3561
- "type": "string",
3574
+ "type": "boolean",
3562
3575
  "kind": "expression"
3563
3576
  }
3564
3577
  }
3565
3578
  ]
3566
3579
  },
3567
3580
  {
3568
- "name": "mm-grid-item",
3569
- "slots": [
3570
- {
3571
- "name": "default",
3572
- "description": "自定义宫格的所有内容"
3573
- },
3574
- {
3575
- "name": "icon",
3576
- "description": "自定义图标"
3577
- },
3578
- {
3579
- "name": "text",
3580
- "description": "自定义文字"
3581
- }
3582
- ],
3581
+ "name": "mm-icon",
3582
+ "slots": [],
3583
3583
  "events": [
3584
3584
  {
3585
3585
  "name": "click",
3586
- "description": "点击格子时触发"
3586
+ "description": "点击图标时触发"
3587
3587
  }
3588
3588
  ],
3589
3589
  "attributes": [
3590
3590
  {
3591
- "name": "text",
3591
+ "name": "name",
3592
3592
  "default": "-",
3593
- "description": "文字",
3593
+ "description": "图标名称或图片链接",
3594
3594
  "options": [],
3595
3595
  "value": {
3596
3596
  "type": "string",
@@ -3598,72 +3598,72 @@
3598
3598
  }
3599
3599
  },
3600
3600
  {
3601
- "name": "icon",
3602
- "default": "-",
3603
- "description": "[图标名称](#/icon)或图片链接",
3601
+ "name": "dot",
3602
+ "default": "`false`",
3603
+ "description": "是否显示图标右上角小红点",
3604
3604
  "options": [],
3605
3605
  "value": {
3606
- "type": "string",
3606
+ "type": "boolean",
3607
3607
  "kind": "expression"
3608
3608
  }
3609
3609
  },
3610
3610
  {
3611
- "name": "icon-prefix",
3612
- "default": "`mm-icon`",
3613
- "description": "图标类名前缀,同 Icon 组件的 [class-prefix 属性](#/icon#props)",
3611
+ "name": "badge",
3612
+ "default": "-",
3613
+ "description": "图标右上角徽标的内容",
3614
3614
  "options": [],
3615
3615
  "value": {
3616
- "type": "string",
3616
+ "type": "number | string",
3617
3617
  "kind": "expression"
3618
3618
  }
3619
3619
  },
3620
3620
  {
3621
- "name": "dot",
3622
- "default": "`false`",
3623
- "description": "是否显示图标右上角小红点",
3621
+ "name": "info",
3622
+ "default": "-",
3623
+ "description": "图标右上角徽标的内容(已废弃,请使用 badge 属性)",
3624
3624
  "options": [],
3625
3625
  "value": {
3626
- "type": "boolean",
3626
+ "type": "number | string",
3627
3627
  "kind": "expression"
3628
3628
  }
3629
3629
  },
3630
3630
  {
3631
- "name": "badge",
3632
- "default": "-",
3633
- "description": "图标右上角徽标的内容",
3631
+ "name": "color",
3632
+ "default": "`inherit`",
3633
+ "description": "图标颜色",
3634
3634
  "options": [],
3635
3635
  "value": {
3636
- "type": "number | string",
3636
+ "type": "string",
3637
3637
  "kind": "expression"
3638
3638
  }
3639
3639
  },
3640
3640
  {
3641
- "name": "url",
3642
- "default": "-",
3643
- "description": "点击后跳转的链接地址",
3641
+ "name": "size",
3642
+ "default": "`inherit`",
3643
+ "description": "图标大小,如 `20px` `2em`,默认单位为`px`",
3644
3644
  "options": [],
3645
3645
  "value": {
3646
- "type": "string",
3646
+ "type": "number | string",
3647
3647
  "kind": "expression"
3648
3648
  }
3649
3649
  },
3650
3650
  {
3651
- "name": "to",
3652
- "default": "-",
3653
- "description": "点击后跳转的目标路由对象,同 vue-router 的 [to 属性](https://router.vuejs.org/zh/api/#to)",
3651
+ "name": "class-prefix",
3652
+ "default": "`mm-icon`",
3653
+ "description": "类名前缀,用于使用自定义图标",
3654
3654
  "options": [],
3655
3655
  "value": {
3656
- "type": "string | object",
3656
+ "type": "string",
3657
3657
  "kind": "expression"
3658
3658
  }
3659
3659
  },
3660
3660
  {
3661
- "name": "replace",
3662
- "default": "`false`",
3663
- "description": "是否在跳转时替换当前页面历史",
3661
+ "name": "tag",
3662
+ "default": "`i`",
3663
+ "description": "HTML 标签",
3664
3664
  "options": [],
3665
3665
  "value": {
3666
- "type": "boolean",
3666
+ "type": "string",
3667
3667
  "kind": "expression"
3668
3668
  }
3669
3669
  }
@@ -4654,6 +4654,18 @@
4654
4654
  "type": "`array`",
4655
4655
  "kind": "expression"
4656
4656
  }
4657
+ },
4658
+ {
4659
+ "name": "draggable",
4660
+ "default": "非必传",
4661
+ "description": "是否开启拖拽排序,开启后可长按/拖动菜单 cell 调整顺序",
4662
+ "options": [
4663
+ "false"
4664
+ ],
4665
+ "value": {
4666
+ "type": "`boolean`",
4667
+ "kind": "expression"
4668
+ }
4657
4669
  }
4658
4670
  ]
4659
4671
  },
@@ -7707,6 +7719,97 @@
7707
7719
  }
7708
7720
  ]
7709
7721
  },
7722
+ {
7723
+ "name": "mm-switch-cell",
7724
+ "slots": [],
7725
+ "events": [],
7726
+ "attributes": [
7727
+ {
7728
+ "name": "v-model",
7729
+ "default": "`false`",
7730
+ "description": "开关状态",
7731
+ "options": [
7732
+ "-"
7733
+ ],
7734
+ "value": {
7735
+ "type": "`null`",
7736
+ "kind": "expression"
7737
+ }
7738
+ },
7739
+ {
7740
+ "name": "title",
7741
+ "default": "`''`",
7742
+ "description": "左侧标题",
7743
+ "options": [
7744
+ "-"
7745
+ ],
7746
+ "value": {
7747
+ "type": "`string`",
7748
+ "kind": "expression"
7749
+ }
7750
+ },
7751
+ {
7752
+ "name": "disabled",
7753
+ "default": "`false`",
7754
+ "description": "是否为禁用状态",
7755
+ "options": [
7756
+ "-"
7757
+ ],
7758
+ "value": {
7759
+ "type": "`boolean`",
7760
+ "kind": "expression"
7761
+ }
7762
+ },
7763
+ {
7764
+ "name": "loading",
7765
+ "default": "`false`",
7766
+ "description": "是否为加载状态",
7767
+ "options": [
7768
+ "-"
7769
+ ],
7770
+ "value": {
7771
+ "type": "`boolean`",
7772
+ "kind": "expression"
7773
+ }
7774
+ },
7775
+ {
7776
+ "name": "size",
7777
+ "default": "`24px`",
7778
+ "description": "开关尺寸",
7779
+ "options": [
7780
+ "-"
7781
+ ],
7782
+ "value": {
7783
+ "type": "`string`",
7784
+ "kind": "expression"
7785
+ }
7786
+ },
7787
+ {
7788
+ "name": "active-color",
7789
+ "default": "`#1989fa`",
7790
+ "description": "开关时的背景色",
7791
+ "options": [
7792
+ "-"
7793
+ ],
7794
+ "value": {
7795
+ "type": "`string`",
7796
+ "kind": "expression"
7797
+ }
7798
+ },
7799
+ {
7800
+ "name": "inactive-color",
7801
+ "default": "`#fff`",
7802
+ "description": "开关时的背景色",
7803
+ "options": [
7804
+ "-"
7805
+ ],
7806
+ "value": {
7807
+ "type": "`string`",
7808
+ "kind": "expression"
7809
+ }
7810
+ }
7811
+ ]
7812
+ },
7710
7813
  {
7711
7814
  "name": "mm-switch",
7712
7815
  "slots": [],
@@ -7803,97 +7906,6 @@
7803
7906
  }
7804
7907
  ]
7805
7908
  },
7806
- {
7807
- "name": "mm-switch-cell",
7808
- "slots": [],
7809
- "events": [],
7810
- "attributes": [
7811
- {
7812
- "name": "v-model",
7813
- "default": "`false`",
7814
- "description": "开关状态",
7815
- "options": [
7816
- "-"
7817
- ],
7818
- "value": {
7819
- "type": "`null`",
7820
- "kind": "expression"
7821
- }
7822
- },
7823
- {
7824
- "name": "title",
7825
- "default": "`''`",
7826
- "description": "左侧标题",
7827
- "options": [
7828
- "-"
7829
- ],
7830
- "value": {
7831
- "type": "`string`",
7832
- "kind": "expression"
7833
- }
7834
- },
7835
- {
7836
- "name": "disabled",
7837
- "default": "`false`",
7838
- "description": "是否为禁用状态",
7839
- "options": [
7840
- "-"
7841
- ],
7842
- "value": {
7843
- "type": "`boolean`",
7844
- "kind": "expression"
7845
- }
7846
- },
7847
- {
7848
- "name": "loading",
7849
- "default": "`false`",
7850
- "description": "是否为加载状态",
7851
- "options": [
7852
- "-"
7853
- ],
7854
- "value": {
7855
- "type": "`boolean`",
7856
- "kind": "expression"
7857
- }
7858
- },
7859
- {
7860
- "name": "size",
7861
- "default": "`24px`",
7862
- "description": "开关尺寸",
7863
- "options": [
7864
- "-"
7865
- ],
7866
- "value": {
7867
- "type": "`string`",
7868
- "kind": "expression"
7869
- }
7870
- },
7871
- {
7872
- "name": "active-color",
7873
- "default": "`#1989fa`",
7874
- "description": "开关时的背景色",
7875
- "options": [
7876
- "-"
7877
- ],
7878
- "value": {
7879
- "type": "`string`",
7880
- "kind": "expression"
7881
- }
7882
- },
7883
- {
7884
- "name": "inactive-color",
7885
- "default": "`#fff`",
7886
- "description": "开关时的背景色",
7887
- "options": [
7888
- "-"
7889
- ],
7890
- "value": {
7891
- "type": "`string`",
7892
- "kind": "expression"
7893
- }
7894
- }
7895
- ]
7896
- },
7897
7909
  {
7898
7910
  "name": "mm-tabs",
7899
7911
  "slots": [