@varlet/ui 2.17.0 → 2.18.0-alpha.1697472019506

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.
Files changed (55) hide show
  1. package/es/action-sheet/actionSheet.css +1 -1
  2. package/es/dialog/dialog.css +1 -1
  3. package/es/drag/Drag.mjs +2 -2
  4. package/es/form/Form.mjs +3 -3
  5. package/es/image-preview/ImagePreview.mjs +2 -2
  6. package/es/index-bar/indexBar.css +1 -1
  7. package/es/index.bundle.mjs +13 -1
  8. package/es/index.mjs +11 -1
  9. package/es/input/Input.mjs +2 -2
  10. package/es/menu/style/index.mjs +1 -1
  11. package/es/menu-option/MenuOption.mjs +122 -0
  12. package/es/menu-option/MenuOptionSfc.css +0 -0
  13. package/es/menu-option/index.mjs +11 -0
  14. package/es/menu-option/menuOption.css +1 -0
  15. package/es/menu-option/props.mjs +8 -0
  16. package/es/menu-option/provide.mjs +19 -0
  17. package/es/menu-option/style/index.mjs +5 -0
  18. package/es/menu-select/MenuSelect.mjs +110 -0
  19. package/es/menu-select/MenuSelectSfc.css +0 -0
  20. package/es/menu-select/index.mjs +9 -0
  21. package/es/menu-select/menuSelect.css +1 -0
  22. package/es/menu-select/props.mjs +58 -0
  23. package/es/menu-select/provide.mjs +16 -0
  24. package/es/menu-select/style/index.mjs +5 -0
  25. package/es/option/Option.mjs +28 -28
  26. package/es/option/option.css +1 -1
  27. package/es/option/props.mjs +2 -1
  28. package/es/popup/popup.css +1 -1
  29. package/es/pull-refresh/PullRefresh.mjs +2 -2
  30. package/es/ripple/index.mjs +2 -0
  31. package/es/select/Select.mjs +14 -47
  32. package/es/select/useSelectController.mjs +67 -0
  33. package/es/slider/Slider.mjs +2 -2
  34. package/es/style.css +1 -1
  35. package/es/style.mjs +2 -0
  36. package/es/swipe/Swipe.mjs +13 -13
  37. package/es/themes/dark/index.mjs +3 -2
  38. package/es/themes/dark/menuOption.mjs +6 -0
  39. package/es/themes/dark/option.mjs +1 -1
  40. package/es/time-picker/TimePicker.mjs +2 -2
  41. package/es/uploader/Uploader.mjs +8 -4
  42. package/es/uploader/props.mjs +2 -0
  43. package/es/utils/shared.mjs +4 -4
  44. package/es/varlet.esm.js +5429 -5139
  45. package/highlight/web-types.en-US.json +359 -90
  46. package/highlight/web-types.zh-CN.json +271 -2
  47. package/lib/style.css +1 -1
  48. package/lib/varlet.cjs.js +2101 -1744
  49. package/package.json +7 -7
  50. package/types/index.d.ts +4 -0
  51. package/types/menuOption.d.ts +20 -0
  52. package/types/menuSelect.d.ts +70 -0
  53. package/types/option.d.ts +1 -0
  54. package/types/uploader.d.ts +2 -0
  55. package/umd/varlet.js +6 -6
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://raw.githubusercontent.com/JetBrains/web-types/master/schema/web-types.json",
3
3
  "framework": "vue",
4
- "version": "2.17.0",
4
+ "version": "2.18.0-alpha.1697472019506",
5
5
  "name": "VARLET",
6
6
  "contributions": {
7
7
  "html": {
@@ -112,27 +112,27 @@
112
112
  "events": [
113
113
  {
114
114
  "name": "select",
115
- "description": "Triggered when the action is click"
115
+ "description": "Triggered when selecting an action sheet"
116
116
  },
117
117
  {
118
118
  "name": "open",
119
- "description": "Triggered when the action sheet is open"
119
+ "description": "Triggered when opening an action sheet"
120
120
  },
121
121
  {
122
122
  "name": "opened",
123
- "description": "Triggered when the action sheet open-animation ends"
123
+ "description": "Triggered when an action sheet open-animation ends"
124
124
  },
125
125
  {
126
126
  "name": "close",
127
- "description": "Triggered when the action sheet is close"
127
+ "description": "Triggered when closing an action sheet"
128
128
  },
129
129
  {
130
130
  "name": "closed",
131
- "description": "Triggered when the action sheet close-animation ends"
131
+ "description": "Triggered when an action sheet close-animation ends"
132
132
  },
133
133
  {
134
134
  "name": "click-overlay",
135
- "description": "Triggered when you click on overlay"
135
+ "description": "Triggered when clicking on overlay"
136
136
  }
137
137
  ],
138
138
  "slots": [
@@ -178,7 +178,7 @@
178
178
  },
179
179
  {
180
180
  "name": "title-position",
181
- "description": "Title location,Can be set to `left`,`center`,`right`",
181
+ "description": "Title location, can be set to `left`, `center`, `right`",
182
182
  "default": "left",
183
183
  "value": {
184
184
  "type": "string",
@@ -410,7 +410,7 @@
410
410
  "attributes": [
411
411
  {
412
412
  "name": "target",
413
- "description": "The target to trigger scroll, If it is undefined back top will listen to the nearest scrollable parent.",
413
+ "description": "The target to trigger scroll. If it is undefined, back top will listen to the nearest scrollable parent.",
414
414
  "default": "-",
415
415
  "value": {
416
416
  "type": "string | HTMLElement",
@@ -466,7 +466,7 @@
466
466
  "events": [
467
467
  {
468
468
  "name": "click",
469
- "description": "Triggers when click"
469
+ "description": "Triggered when click"
470
470
  }
471
471
  ],
472
472
  "slots": [
@@ -481,7 +481,7 @@
481
481
  "attributes": [
482
482
  {
483
483
  "name": "type",
484
- "description": "Badge type. Can be set to `default` `primary` `info` `success` `warning` `danger`",
484
+ "description": "Badge type, can be set to `default` `primary` `info` `success` `warning` `danger`",
485
485
  "default": "default",
486
486
  "value": {
487
487
  "type": "string",
@@ -660,7 +660,7 @@
660
660
  },
661
661
  {
662
662
  "name": "fab-click",
663
- "description": "Triggered when fab button click"
663
+ "description": "Triggered when clicking fab button"
664
664
  }
665
665
  ],
666
666
  "slots": [
@@ -685,7 +685,7 @@
685
685
  "attributes": [
686
686
  {
687
687
  "name": "separator",
688
- "description": "separator",
688
+ "description": "Separator",
689
689
  "default": "-",
690
690
  "value": {
691
691
  "type": "string",
@@ -715,7 +715,7 @@
715
715
  "attributes": [
716
716
  {
717
717
  "name": "separator",
718
- "description": "separator",
718
+ "description": "Separator",
719
719
  "default": "/",
720
720
  "value": {
721
721
  "type": "string",
@@ -924,7 +924,7 @@
924
924
  "attributes": [
925
925
  {
926
926
  "name": "type",
927
- "description": "Button Group type, Can be set to `default` `primary` `info` `success` `warning` `danger`",
927
+ "description": "Button Group type, can be set to `default` `primary` `info` `success` `warning` `danger`",
928
928
  "default": "default",
929
929
  "value": {
930
930
  "type": "string",
@@ -933,7 +933,7 @@
933
933
  },
934
934
  {
935
935
  "name": "size",
936
- "description": "Button Group size, Can be set to `normal` `mini` `small` `large`",
936
+ "description": "Button Group size, can be set to `normal` `mini` `small` `large`",
937
937
  "default": "normal",
938
938
  "value": {
939
939
  "type": "string",
@@ -942,7 +942,7 @@
942
942
  },
943
943
  {
944
944
  "name": "mode",
945
- "description": "Button Group mode, Can be set to `normal` `text` `outline`",
945
+ "description": "Button Group mode, can be set to `normal` `text` `outline`",
946
946
  "default": "normal",
947
947
  "value": {
948
948
  "type": "string",
@@ -990,7 +990,7 @@
990
990
  "slots": [
991
991
  {
992
992
  "name": "default",
993
- "description": "Button group content"
993
+ "description": "Button Group content"
994
994
  }
995
995
  ]
996
996
  },
@@ -1028,7 +1028,7 @@
1028
1028
  "events": [
1029
1029
  {
1030
1030
  "name": "click",
1031
- "description": "Triggered when the Card is click"
1031
+ "description": "Triggered when the card is click"
1032
1032
  }
1033
1033
  ],
1034
1034
  "slots": [
@@ -1285,7 +1285,7 @@
1285
1285
  },
1286
1286
  {
1287
1287
  "name": "rules",
1288
- "description": "The validation rules,Returns `true` to indicate that the validation passedThe remaining values are converted to text as user prompts",
1288
+ "description": "The validation rules, return `true` to indicate that the validation passed. The remaining values are converted to text as user prompts",
1289
1289
  "default": "-",
1290
1290
  "value": {
1291
1291
  "type": "Array<(value: any) => any>",
@@ -1300,7 +1300,7 @@
1300
1300
  },
1301
1301
  {
1302
1302
  "name": "change",
1303
- "description": "Trigger on change"
1303
+ "description": "Triggered on change"
1304
1304
  }
1305
1305
  ],
1306
1306
  "slots": [
@@ -1345,7 +1345,7 @@
1345
1345
  },
1346
1346
  {
1347
1347
  "name": "direction",
1348
- "description": "The layout direction,Optional value is `horizontal` `vertical`",
1348
+ "description": "The layout direction, optional value is `horizontal` `vertical`",
1349
1349
  "default": "horizontal",
1350
1350
  "value": {
1351
1351
  "type": "string",
@@ -1354,7 +1354,7 @@
1354
1354
  },
1355
1355
  {
1356
1356
  "name": "rules",
1357
- "description": "The validation rules,Returns `true` to indicate that the validation passedThe remaining values are converted to text as user prompts",
1357
+ "description": "The validation rules, return `true` to indicate that the validation passed. The remaining values are converted to text as user prompts",
1358
1358
  "default": "horizontal",
1359
1359
  "value": {
1360
1360
  "type": "Array<(value: any[]) => any>",
@@ -1365,13 +1365,13 @@
1365
1365
  "events": [
1366
1366
  {
1367
1367
  "name": "change",
1368
- "description": "Trigger on change"
1368
+ "description": "Triggered on change"
1369
1369
  }
1370
1370
  ],
1371
1371
  "slots": [
1372
1372
  {
1373
1373
  "name": "default",
1374
- "description": "Checkbox group content"
1374
+ "description": "Checkbox Group content"
1375
1375
  }
1376
1376
  ]
1377
1377
  },
@@ -1380,7 +1380,7 @@
1380
1380
  "attributes": [
1381
1381
  {
1382
1382
  "name": "type",
1383
- "description": "Chip type, Can be set to `default` `primary` `info` `success` `warning` `danger`",
1383
+ "description": "Chip type, can be set to `default` `primary` `info` `success` `warning` `danger`",
1384
1384
  "default": "default",
1385
1385
  "value": {
1386
1386
  "type": "string",
@@ -1389,7 +1389,7 @@
1389
1389
  },
1390
1390
  {
1391
1391
  "name": "size",
1392
- "description": "Chip size, Can be set to `normal` `mini` `small` `large`",
1392
+ "description": "Chip size, can be set to `normal` `mini` `small` `large`",
1393
1393
  "default": "normal",
1394
1394
  "value": {
1395
1395
  "type": "string",
@@ -1522,7 +1522,7 @@
1522
1522
  },
1523
1523
  {
1524
1524
  "name": "justify",
1525
- "description": "Main axis arrangement, Can be set to `flex-start` `flex-end` `center` `space-around` `space-between`",
1525
+ "description": "Main axis arrangement, can be set to `flex-start` `flex-end` `center` `space-around` `space-between`",
1526
1526
  "default": "-",
1527
1527
  "value": {
1528
1528
  "type": "string",
@@ -1531,7 +1531,7 @@
1531
1531
  },
1532
1532
  {
1533
1533
  "name": "align",
1534
- "description": "Cross axis arrangement, Can be set to `stretch` `center` `flex-start` `flex-end` `baseline`",
1534
+ "description": "Cross axis arrangement, can be set to `stretch` `center` `flex-start` `flex-end` `baseline`",
1535
1535
  "default": "-",
1536
1536
  "value": {
1537
1537
  "type": "string",
@@ -1587,7 +1587,7 @@
1587
1587
  "events": [
1588
1588
  {
1589
1589
  "name": "click",
1590
- "description": "Triggered when you click Col"
1590
+ "description": "Triggered on click"
1591
1591
  }
1592
1592
  ],
1593
1593
  "slots": [
@@ -1691,7 +1691,7 @@
1691
1691
  },
1692
1692
  {
1693
1693
  "name": "disabled",
1694
- "description": "Whether to disabled collapse",
1694
+ "description": "Whether to disable collapse",
1695
1695
  "default": "false",
1696
1696
  "value": {
1697
1697
  "type": "boolean",
@@ -1948,7 +1948,7 @@
1948
1948
  },
1949
1949
  {
1950
1950
  "name": "rules",
1951
- "description": "The validation rules,Returns `true` to indicate that the validation passedThe remaining values are converted to text as user prompts",
1951
+ "description": "The validation rules, return `true` to indicate that the validation passed. The remaining values are converted to text as user prompts",
1952
1952
  "default": "-",
1953
1953
  "value": {
1954
1954
  "type": "Array<(value: number) => any>",
@@ -1990,7 +1990,7 @@
1990
1990
  },
1991
1991
  {
1992
1992
  "name": "type",
1993
- "description": "Picker type, optional values`date, month`",
1993
+ "description": "Picker type, optional values `date` `month`",
1994
1994
  "default": "date",
1995
1995
  "value": {
1996
1996
  "type": "string",
@@ -2364,15 +2364,15 @@
2364
2364
  },
2365
2365
  {
2366
2366
  "name": "confirm",
2367
- "description": "Trigger on confirm"
2367
+ "description": "Triggered on confirm"
2368
2368
  },
2369
2369
  {
2370
2370
  "name": "cancel",
2371
- "description": "Trigger on cancel"
2371
+ "description": "Triggered on cancel"
2372
2372
  },
2373
2373
  {
2374
2374
  "name": "click-overlay",
2375
- "description": "Triggered when you click on overlay"
2375
+ "description": "Triggered when clicking on overlay"
2376
2376
  }
2377
2377
  ],
2378
2378
  "slots": [
@@ -2391,7 +2391,7 @@
2391
2391
  "attributes": [
2392
2392
  {
2393
2393
  "name": "inset",
2394
- "description": "Set the indentation distance, and the number plus or minus sign controls the direction of indentation, The default indentation is `72px` when `true` is passed (horizontal mode only)",
2394
+ "description": "Set the indentation distance, and the number plus or minus sign controls the direction of indentation. The default indentation is `72px` when `true` is passed (horizontal mode only)",
2395
2395
  "default": "false",
2396
2396
  "value": {
2397
2397
  "type": "boolean | number | string",
@@ -2418,7 +2418,7 @@
2418
2418
  },
2419
2419
  {
2420
2420
  "name": "hairline",
2421
- "description": "Whether divider is 0.5px",
2421
+ "description": "Whether divider is `0.5px`",
2422
2422
  "default": "false",
2423
2423
  "value": {
2424
2424
  "type": "boolean",
@@ -2457,7 +2457,7 @@
2457
2457
  "attributes": [
2458
2458
  {
2459
2459
  "name": "direction",
2460
- "description": "Drag direction, optional value is `x`, `y`, `xy`",
2460
+ "description": "Drag direction, optional value is `x` `y` `xy`",
2461
2461
  "default": "xy",
2462
2462
  "value": {
2463
2463
  "type": "string",
@@ -2466,7 +2466,7 @@
2466
2466
  },
2467
2467
  {
2468
2468
  "name": "attraction",
2469
- "description": "Attraction direction, optional value is `x`, `y`, `xy`",
2469
+ "description": "Attraction direction, optional value is `x` `y` `xy`",
2470
2470
  "default": "-",
2471
2471
  "value": {
2472
2472
  "type": "string",
@@ -2513,7 +2513,7 @@
2513
2513
  "events": [
2514
2514
  {
2515
2515
  "name": "click",
2516
- "description": "Triggered when click drag component"
2516
+ "description": "Triggered when clicking drag component"
2517
2517
  }
2518
2518
  ],
2519
2519
  "slots": [
@@ -3197,7 +3197,7 @@
3197
3197
  },
3198
3198
  {
3199
3199
  "name": "image-prevent-default",
3200
- "description": "whether to disable the default behavior of images",
3200
+ "description": "Whether to disable the default behavior of images",
3201
3201
  "default": "false",
3202
3202
  "value": {
3203
3203
  "type": "boolean",
@@ -3527,7 +3527,7 @@
3527
3527
  },
3528
3528
  {
3529
3529
  "name": "rules",
3530
- "description": "The validation rules, Returns `true` to indicate that the validation passed,The remaining values are converted to text as user prompts",
3530
+ "description": "The validation rules, return `true` to indicate that the validation passed,The remaining values are converted to text as user prompts",
3531
3531
  "default": "-",
3532
3532
  "value": {
3533
3533
  "type": "Array<(v: string) => any>",
@@ -3547,7 +3547,7 @@
3547
3547
  "events": [
3548
3548
  {
3549
3549
  "name": "focus",
3550
- "description": "Trigger while focusing"
3550
+ "description": "Triggered while focusing"
3551
3551
  },
3552
3552
  {
3553
3553
  "name": "blur",
@@ -3563,11 +3563,11 @@
3563
3563
  },
3564
3564
  {
3565
3565
  "name": "input",
3566
- "description": "Trigger on input"
3566
+ "description": "Triggered on input"
3567
3567
  },
3568
3568
  {
3569
3569
  "name": "change",
3570
- "description": "Trigger on change"
3570
+ "description": "Triggered on change"
3571
3571
  }
3572
3572
  ],
3573
3573
  "slots": [
@@ -3596,7 +3596,7 @@
3596
3596
  "attributes": [
3597
3597
  {
3598
3598
  "name": "type",
3599
- "description": "Link type, Can be set to `default` `primary` `info` `success` `warning` `danger`",
3599
+ "description": "Link type, can be set to `default` `primary` `info` `success` `warning` `danger`",
3600
3600
  "default": "default",
3601
3601
  "value": {
3602
3602
  "type": "string",
@@ -3703,7 +3703,7 @@
3703
3703
  "attributes": [
3704
3704
  {
3705
3705
  "name": "v-model:loading",
3706
- "description": "loading state",
3706
+ "description": "Loading state",
3707
3707
  "default": "false",
3708
3708
  "value": {
3709
3709
  "type": "boolean",
@@ -3712,7 +3712,7 @@
3712
3712
  },
3713
3713
  {
3714
3714
  "name": "v-model:error",
3715
- "description": "error state",
3715
+ "description": "Error state",
3716
3716
  "default": "false",
3717
3717
  "value": {
3718
3718
  "type": "boolean",
@@ -3886,7 +3886,7 @@
3886
3886
  "attributes": [
3887
3887
  {
3888
3888
  "name": "v-model:show",
3889
- "description": "whether to show the menu",
3889
+ "description": "Whether to show the menu",
3890
3890
  "default": "default",
3891
3891
  "value": {
3892
3892
  "type": "string",
@@ -3895,7 +3895,7 @@
3895
3895
  },
3896
3896
  {
3897
3897
  "name": "placement",
3898
- "description": "menu popup placement",
3898
+ "description": "Menu popup placement",
3899
3899
  "default": "cover-top-start",
3900
3900
  "value": {
3901
3901
  "type": "Placement",
@@ -3904,7 +3904,7 @@
3904
3904
  },
3905
3905
  {
3906
3906
  "name": "strategy",
3907
- "description": "menu position strategyoptional value is `absolute` `fixed`",
3907
+ "description": "Menu position strategy, optional value is `absolute` `fixed`",
3908
3908
  "default": "absolute",
3909
3909
  "value": {
3910
3910
  "type": "string",
@@ -3940,7 +3940,7 @@
3940
3940
  },
3941
3941
  {
3942
3942
  "name": "disabled",
3943
- "description": "whether to disable the menu",
3943
+ "description": "Whether to disable the menu",
3944
3944
  "default": "false",
3945
3945
  "value": {
3946
3946
  "type": "boolean",
@@ -4044,6 +4044,253 @@
4044
4044
  }
4045
4045
  ]
4046
4046
  },
4047
+ {
4048
+ "name": "var-menu-option",
4049
+ "attributes": [
4050
+ {
4051
+ "name": "label",
4052
+ "description": "The text that the option displays",
4053
+ "default": "-",
4054
+ "value": {
4055
+ "type": "any",
4056
+ "kind": "expression"
4057
+ }
4058
+ },
4059
+ {
4060
+ "name": "value",
4061
+ "description": "The value of the option binding",
4062
+ "default": "-",
4063
+ "value": {
4064
+ "type": "any",
4065
+ "kind": "expression"
4066
+ }
4067
+ },
4068
+ {
4069
+ "name": "disabled",
4070
+ "description": "Whether to disable",
4071
+ "default": "false",
4072
+ "value": {
4073
+ "type": "boolean",
4074
+ "kind": "expression"
4075
+ }
4076
+ }
4077
+ ],
4078
+ "events": [],
4079
+ "slots": [
4080
+ {
4081
+ "name": "default",
4082
+ "description": "Options to display the content"
4083
+ }
4084
+ ]
4085
+ },
4086
+ {
4087
+ "name": "var-menu-select",
4088
+ "attributes": [
4089
+ {
4090
+ "name": "v-model",
4091
+ "description": "The value of the binding",
4092
+ "default": "-",
4093
+ "value": {
4094
+ "type": "any | any[]",
4095
+ "kind": "expression"
4096
+ }
4097
+ },
4098
+ {
4099
+ "name": "v-model:show",
4100
+ "description": "Whether to show the menu",
4101
+ "default": "default",
4102
+ "value": {
4103
+ "type": "string",
4104
+ "kind": "expression"
4105
+ }
4106
+ },
4107
+ {
4108
+ "name": "size",
4109
+ "description": "Menu size, optional values `normal` `mini` `small` `large`",
4110
+ "default": "normal",
4111
+ "value": {
4112
+ "type": "string",
4113
+ "kind": "expression"
4114
+ }
4115
+ },
4116
+ {
4117
+ "name": "multiple",
4118
+ "description": "Whether to select multiple",
4119
+ "default": "false",
4120
+ "value": {
4121
+ "type": "boolean",
4122
+ "kind": "expression"
4123
+ }
4124
+ },
4125
+ {
4126
+ "name": "scrollable",
4127
+ "description": "Whether to enable scrolling",
4128
+ "default": "false",
4129
+ "value": {
4130
+ "type": "boolean",
4131
+ "kind": "expression"
4132
+ }
4133
+ },
4134
+ {
4135
+ "name": "close-on-select",
4136
+ "description": "Whether to close the menu when selected (selected options in multi-select mode never close the menu)",
4137
+ "default": "true",
4138
+ "value": {
4139
+ "type": "boolean",
4140
+ "kind": "expression"
4141
+ }
4142
+ },
4143
+ {
4144
+ "name": "placement",
4145
+ "description": "Menu popup placement",
4146
+ "default": "cover-top-start",
4147
+ "value": {
4148
+ "type": "Placement",
4149
+ "kind": "expression"
4150
+ }
4151
+ },
4152
+ {
4153
+ "name": "strategy",
4154
+ "description": "Menu position strategy, optional value is `absolute` `fixed`",
4155
+ "default": "absolute",
4156
+ "value": {
4157
+ "type": "string",
4158
+ "kind": "expression"
4159
+ }
4160
+ },
4161
+ {
4162
+ "name": "offset-x",
4163
+ "description": "The x-axis offset, relative to the menu-aligned position",
4164
+ "default": "0",
4165
+ "value": {
4166
+ "type": "number | string",
4167
+ "kind": "expression"
4168
+ }
4169
+ },
4170
+ {
4171
+ "name": "offset-y",
4172
+ "description": "The y-axis offset, relative to the menu-aligned position",
4173
+ "default": "0",
4174
+ "value": {
4175
+ "type": "number | string",
4176
+ "kind": "expression"
4177
+ }
4178
+ },
4179
+ {
4180
+ "name": "teleport",
4181
+ "description": "The location of the menu mount",
4182
+ "default": "body",
4183
+ "value": {
4184
+ "type": "TeleportProps['to'] | false",
4185
+ "kind": "expression"
4186
+ }
4187
+ },
4188
+ {
4189
+ "name": "disabled",
4190
+ "description": "Whether to disable the menu",
4191
+ "default": "false",
4192
+ "value": {
4193
+ "type": "boolean",
4194
+ "kind": "expression"
4195
+ }
4196
+ },
4197
+ {
4198
+ "name": "trigger",
4199
+ "description": "Menu trigger method, optional value is `click` `hover`, `click` is triggered when clicked, `hover` is triggered when hovered",
4200
+ "default": "click",
4201
+ "value": {
4202
+ "type": "string",
4203
+ "kind": "expression"
4204
+ }
4205
+ },
4206
+ {
4207
+ "name": "reference",
4208
+ "description": "The associated trigger element selector is used to specify specific child elements as trigger elements",
4209
+ "default": "-",
4210
+ "value": {
4211
+ "type": "string",
4212
+ "kind": "expression"
4213
+ }
4214
+ },
4215
+ {
4216
+ "name": "elevation",
4217
+ "description": "Elevation level, options `true` `false` and level of `0-24`",
4218
+ "default": "true",
4219
+ "value": {
4220
+ "type": "string | number | boolean",
4221
+ "kind": "expression"
4222
+ }
4223
+ },
4224
+ {
4225
+ "name": "same-width",
4226
+ "description": "Whether to same width as trigger element",
4227
+ "default": "false",
4228
+ "value": {
4229
+ "type": "boolean",
4230
+ "kind": "expression"
4231
+ }
4232
+ },
4233
+ {
4234
+ "name": "default-style",
4235
+ "description": "Whether to enable default styles",
4236
+ "default": "true",
4237
+ "value": {
4238
+ "type": "boolean",
4239
+ "kind": "expression"
4240
+ }
4241
+ },
4242
+ {
4243
+ "name": "popover-class",
4244
+ "description": "Class of the popover",
4245
+ "default": "-",
4246
+ "value": {
4247
+ "type": "string",
4248
+ "kind": "expression"
4249
+ }
4250
+ },
4251
+ {
4252
+ "name": "close-on-click-reference",
4253
+ "description": "Whether to close the menu when clicking the reference element",
4254
+ "default": "false",
4255
+ "value": {
4256
+ "type": "boolean",
4257
+ "kind": "expression"
4258
+ }
4259
+ }
4260
+ ],
4261
+ "events": [
4262
+ {
4263
+ "name": "open",
4264
+ "description": "Triggered when the menu is opened"
4265
+ },
4266
+ {
4267
+ "name": "opened",
4268
+ "description": "Triggered when the open menu animation ends"
4269
+ },
4270
+ {
4271
+ "name": "close",
4272
+ "description": "Triggered when the menu is closed"
4273
+ },
4274
+ {
4275
+ "name": "closed",
4276
+ "description": "Triggered when the closing menu animation ends"
4277
+ },
4278
+ {
4279
+ "name": "click-outside",
4280
+ "description": "Triggered when clicking outside the menu"
4281
+ }
4282
+ ],
4283
+ "slots": [
4284
+ {
4285
+ "name": "default",
4286
+ "description": "Menu select trigger element"
4287
+ },
4288
+ {
4289
+ "name": "options",
4290
+ "description": "Menu select options"
4291
+ }
4292
+ ]
4293
+ },
4047
4294
  {
4048
4295
  "name": "var-option",
4049
4296
  "attributes": [
@@ -4064,6 +4311,15 @@
4064
4311
  "type": "any",
4065
4312
  "kind": "expression"
4066
4313
  }
4314
+ },
4315
+ {
4316
+ "name": "disabled",
4317
+ "description": "Whether to disable",
4318
+ "default": "false",
4319
+ "value": {
4320
+ "type": "boolean",
4321
+ "kind": "expression"
4322
+ }
4067
4323
  }
4068
4324
  ],
4069
4325
  "events": [],
@@ -4108,7 +4364,7 @@
4108
4364
  "events": [
4109
4365
  {
4110
4366
  "name": "click",
4111
- "description": "Triggered when you click on overlay"
4367
+ "description": "Triggered when clicking on overlay"
4112
4368
  }
4113
4369
  ],
4114
4370
  "slots": [
@@ -4761,7 +5017,7 @@
4761
5017
  },
4762
5018
  {
4763
5019
  "name": "target",
4764
- "description": "The target to trigger scroll, If it is undefined back top will listen to the nearest scrollable parent.",
5020
+ "description": "The target to trigger scroll. If it is undefined back top will listen to the nearest scrollable parent.",
4765
5021
  "default": "-",
4766
5022
  "value": {
4767
5023
  "type": "string | HTMLElement",
@@ -4797,7 +5053,7 @@
4797
5053
  },
4798
5054
  {
4799
5055
  "name": "color",
4800
- "description": "color of control",
5056
+ "description": "Color of control",
4801
5057
  "default": "#ffffff",
4802
5058
  "value": {
4803
5059
  "type": "string",
@@ -4815,7 +5071,7 @@
4815
5071
  },
4816
5072
  {
4817
5073
  "name": "success-color",
4818
- "description": "color of control when the status is success",
5074
+ "description": "Color of control when the status is success",
4819
5075
  "default": "ffffff",
4820
5076
  "value": {
4821
5077
  "type": "string",
@@ -4922,7 +5178,7 @@
4922
5178
  },
4923
5179
  {
4924
5180
  "name": "rules",
4925
- "description": "The validation rules,Returns `true` to indicate that the validation passedThe remaining values are converted to text as user prompts",
5181
+ "description": "The validation rules, return `true` to indicate that the validation passed. The remaining values are converted to text as user prompts",
4926
5182
  "default": "-",
4927
5183
  "value": {
4928
5184
  "type": "Array<(value: any) => any>",
@@ -4933,11 +5189,11 @@
4933
5189
  "events": [
4934
5190
  {
4935
5191
  "name": "click",
4936
- "description": "Triggered on Click"
5192
+ "description": "Triggered on click"
4937
5193
  },
4938
5194
  {
4939
5195
  "name": "change",
4940
- "description": "Trigger on change"
5196
+ "description": "Triggered on change"
4941
5197
  }
4942
5198
  ],
4943
5199
  "slots": [
@@ -4969,7 +5225,7 @@
4969
5225
  },
4970
5226
  {
4971
5227
  "name": "direction",
4972
- "description": "The layout direction,Optional value is `horizontal` `vertical`",
5228
+ "description": "The layout direction, optional value is `horizontal` `vertical`",
4973
5229
  "default": "horizontal",
4974
5230
  "value": {
4975
5231
  "type": "string",
@@ -4978,7 +5234,7 @@
4978
5234
  },
4979
5235
  {
4980
5236
  "name": "rules",
4981
- "description": "The validation rules,Returns `true` to indicate that the validation passedThe remaining values are converted to text as user prompts",
5237
+ "description": "The validation rules, return `true` to indicate that the validation passed. The remaining values are converted to text as user prompts",
4982
5238
  "default": "-",
4983
5239
  "value": {
4984
5240
  "type": "Array<(value: any) => any>",
@@ -4989,13 +5245,13 @@
4989
5245
  "events": [
4990
5246
  {
4991
5247
  "name": "change",
4992
- "description": "Trigger on change"
5248
+ "description": "Triggered on change"
4993
5249
  }
4994
5250
  ],
4995
5251
  "slots": [
4996
5252
  {
4997
5253
  "name": "default",
4998
- "description": "Radio group content"
5254
+ "description": "Radio Group content"
4999
5255
  }
5000
5256
  ]
5001
5257
  },
@@ -5015,7 +5271,7 @@
5015
5271
  "attributes": [
5016
5272
  {
5017
5273
  "name": "type",
5018
- "description": "Image typeoptions `info` `success` `warning` `error` `question` `empty`",
5274
+ "description": "Image type, options `info` `success` `warning` `error` `question` `empty`",
5019
5275
  "default": "success",
5020
5276
  "value": {
5021
5277
  "type": "string",
@@ -5119,7 +5375,7 @@
5119
5375
  "events": [
5120
5376
  {
5121
5377
  "name": "click",
5122
- "description": "Triggered when you click Row"
5378
+ "description": "Triggered when clicking Row"
5123
5379
  }
5124
5380
  ],
5125
5381
  "slots": [
@@ -5269,7 +5525,7 @@
5269
5525
  },
5270
5526
  {
5271
5527
  "name": "validate-trigger",
5272
- "description": "Timing to trigger validation Optional value is `onFocus` `onBlur` `onChange` `onClick` `onClear` `onClose`",
5528
+ "description": "Timing to trigger validation, optional value is `onFocus` `onBlur` `onChange` `onClick` `onClear` `onClose`",
5273
5529
  "default": "['onChange', 'onClear', 'onClose']",
5274
5530
  "value": {
5275
5531
  "type": "ValidateTriggers[]",
@@ -5278,7 +5534,7 @@
5278
5534
  },
5279
5535
  {
5280
5536
  "name": "rules",
5281
- "description": "The validation rules,Returns `true` to indicate that the validation passedThe remaining values are converted to text as user prompts",
5537
+ "description": "The validation rules, return `true` to indicate that the validation passed, The remaining values are converted to text as user prompts",
5282
5538
  "default": "-",
5283
5539
  "value": {
5284
5540
  "type": "Array<(v: any | any[]) => any>",
@@ -5289,7 +5545,7 @@
5289
5545
  "events": [
5290
5546
  {
5291
5547
  "name": "focus",
5292
- "description": "Trigger while focusing"
5548
+ "description": "Triggered when focusing"
5293
5549
  },
5294
5550
  {
5295
5551
  "name": "blur",
@@ -5706,7 +5962,7 @@
5706
5962
  },
5707
5963
  {
5708
5964
  "name": "loading-color",
5709
- "description": "loading color (see `Loading` component)",
5965
+ "description": "Loading color (see `Loading` component)",
5710
5966
  "default": "currentColor",
5711
5967
  "value": {
5712
5968
  "type": "string",
@@ -5733,7 +5989,7 @@
5733
5989
  },
5734
5990
  {
5735
5991
  "name": "forbid-click",
5736
- "description": "whether to penetrating clicks are forbidden",
5992
+ "description": "Whether to penetrating clicks are forbidden",
5737
5993
  "default": "false",
5738
5994
  "value": {
5739
5995
  "type": "boolean",
@@ -5788,7 +6044,7 @@
5788
6044
  "attributes": [
5789
6045
  {
5790
6046
  "name": "direction",
5791
- "description": "Layout direction, Can be set to `row` `column`",
6047
+ "description": "Layout direction, can be set to `row` `column`",
5792
6048
  "default": "row",
5793
6049
  "value": {
5794
6050
  "type": "string",
@@ -5815,7 +6071,7 @@
5815
6071
  },
5816
6072
  {
5817
6073
  "name": "size",
5818
- "description": "spacing, Can be set to `mini` `small` `normal` `large` or `[Vertical, Horizontal]`(Support length unit)",
6074
+ "description": "Spacing, can be set to `mini` `small` `normal` `large` or `[Vertical, Horizontal]`(Support length unit)",
5819
6075
  "default": "normal",
5820
6076
  "value": {
5821
6077
  "type": "string | number | [string | number, string | number]",
@@ -5929,7 +6185,7 @@
5929
6185
  },
5930
6186
  {
5931
6187
  "name": "direction",
5932
- "description": "Mode of steps, Can be set to `vertical`",
6188
+ "description": "Mode of steps, can be set to `horizontal` `vertical`",
5933
6189
  "default": "horizontal",
5934
6190
  "value": {
5935
6191
  "type": "string",
@@ -6307,7 +6563,7 @@
6307
6563
  "attributes": [
6308
6564
  {
6309
6565
  "name": "name",
6310
- "description": "tab's name",
6566
+ "description": "Tab's name",
6311
6567
  "default": "index",
6312
6568
  "value": {
6313
6569
  "type": "string | number",
@@ -6333,7 +6589,7 @@
6333
6589
  "slots": [
6334
6590
  {
6335
6591
  "name": "default",
6336
- "description": "tab's content"
6592
+ "description": "Tab's content"
6337
6593
  }
6338
6594
  ]
6339
6595
  },
@@ -6342,7 +6598,7 @@
6342
6598
  "attributes": [
6343
6599
  {
6344
6600
  "name": "name",
6345
- "description": "view's name",
6601
+ "description": "View's name",
6346
6602
  "default": "index",
6347
6603
  "value": {
6348
6604
  "type": "string | number",
@@ -6354,7 +6610,7 @@
6354
6610
  "slots": [
6355
6611
  {
6356
6612
  "name": "default",
6357
- "description": "tabItem's content"
6613
+ "description": "TabItem's content"
6358
6614
  }
6359
6615
  ]
6360
6616
  },
@@ -6571,7 +6827,7 @@
6571
6827
  "slots": [
6572
6828
  {
6573
6829
  "name": "default",
6574
- "description": "tabs content"
6830
+ "description": "Tabs content"
6575
6831
  }
6576
6832
  ]
6577
6833
  },
@@ -6634,7 +6890,7 @@
6634
6890
  },
6635
6891
  {
6636
6892
  "name": "format",
6637
- "description": "Picker type, optional values `ampm, 24hr`",
6893
+ "description": "Picker type, optional values `ampm` `24hr`",
6638
6894
  "default": "ampm",
6639
6895
  "value": {
6640
6896
  "type": "string",
@@ -6727,7 +6983,7 @@
6727
6983
  "attributes": [
6728
6984
  {
6729
6985
  "name": "v-model:show",
6730
- "description": "whether to show the tooltip",
6986
+ "description": "Whether to show the tooltip",
6731
6987
  "default": "false",
6732
6988
  "value": {
6733
6989
  "type": "boolean",
@@ -6736,7 +6992,7 @@
6736
6992
  },
6737
6993
  {
6738
6994
  "name": "content",
6739
- "description": "display content",
6995
+ "description": "Display content",
6740
6996
  "default": "-",
6741
6997
  "value": {
6742
6998
  "type": "string",
@@ -6754,7 +7010,7 @@
6754
7010
  },
6755
7011
  {
6756
7012
  "name": "type",
6757
- "description": "Tooltip type, Can be set to `default` `primary` `info` `success` `warning` `danger`",
7013
+ "description": "Tooltip type, can be set to `default` `primary` `info` `success` `warning` `danger`",
6758
7014
  "default": "default",
6759
7015
  "value": {
6760
7016
  "type": "string",
@@ -6772,7 +7028,7 @@
6772
7028
  },
6773
7029
  {
6774
7030
  "name": "strategy",
6775
- "description": "Tooltip position strategyoptional value is `absolute` `fixed`",
7031
+ "description": "Tooltip position strategy, optional value is `absolute` `fixed`",
6776
7032
  "default": "absolute",
6777
7033
  "value": {
6778
7034
  "type": "string",
@@ -6817,7 +7073,7 @@
6817
7073
  },
6818
7074
  {
6819
7075
  "name": "disabled",
6820
- "description": "whether to disable the tooltip",
7076
+ "description": "Whether to disable the tooltip",
6821
7077
  "default": "false",
6822
7078
  "value": {
6823
7079
  "type": "boolean",
@@ -6987,6 +7243,15 @@
6987
7243
  "kind": "expression"
6988
7244
  }
6989
7245
  },
7246
+ {
7247
+ "name": "prevent-default-preview",
7248
+ "description": "Prevent default preview behavior",
7249
+ "default": "false",
7250
+ "value": {
7251
+ "type": "boolean",
7252
+ "kind": "expression"
7253
+ }
7254
+ },
6990
7255
  {
6991
7256
  "name": "ripple",
6992
7257
  "description": "Whether to open ripple",
@@ -7007,7 +7272,7 @@
7007
7272
  },
7008
7273
  {
7009
7274
  "name": "resolve-type",
7010
- "description": "The file preprocessing type, Can be set to `default` `file` `data-url` (`default`, the image type contains dataURL and File object, other types contain only File object. `file`, which contains only File object. `data-url`, all file types contain dataURL and File object)",
7275
+ "description": "The file preprocessing type, can be set to `default` `file` `data-url` (`default`, the image type contains dataURL and File object, other types contain only File object. `file`, which contains only File object. `data-url`, all file types contain dataURL and File object)",
7011
7276
  "default": "default",
7012
7277
  "value": {
7013
7278
  "type": "string",
@@ -7016,7 +7281,7 @@
7016
7281
  },
7017
7282
  {
7018
7283
  "name": "validate-trigger",
7019
- "description": "Timing to trigger validation The optional value is `onChange` `onRemove`",
7284
+ "description": "Timing to trigger validation. The optional value is `onChange` `onRemove`",
7020
7285
  "default": "['onChange', 'onRemove']",
7021
7286
  "value": {
7022
7287
  "type": "ValidateTriggers[]",
@@ -7025,7 +7290,7 @@
7025
7290
  },
7026
7291
  {
7027
7292
  "name": "rules",
7028
- "description": "The validation rules,Returns `true` to indicate that the validation passedThe remaining values are converted to text as user prompts",
7293
+ "description": "The validation rules, return `true` to indicate that the validation passed. The remaining values are converted to text as user prompts",
7029
7294
  "default": "-",
7030
7295
  "value": {
7031
7296
  "type": "Array<(v: VarFile, u: VarFileUtils) => any>",
@@ -7040,7 +7305,7 @@
7040
7305
  },
7041
7306
  {
7042
7307
  "name": "before-read",
7043
- "description": "Trigger returns a false value before a file is read to prevent the file from being read(support promise)"
7308
+ "description": "Triggered returns a false value before a file is read to prevent the file from being read(support promise)"
7044
7309
  },
7045
7310
  {
7046
7311
  "name": "after-read",
@@ -7057,6 +7322,10 @@
7057
7322
  {
7058
7323
  "name": "remove",
7059
7324
  "description": "Triggered when deleting a file. There is a true value to prevent deleting a file (support promise)"
7325
+ },
7326
+ {
7327
+ "name": "preview",
7328
+ "description": "Triggered when a file is previewed"
7060
7329
  }
7061
7330
  ],
7062
7331
  "slots": [
@@ -7195,7 +7464,7 @@
7195
7464
  "slots": [
7196
7465
  {
7197
7466
  "name": "content",
7198
- "description": "The content of HTML `Watermark`. only supports inline styles, does not support passing in self closing tags, priority higher than `content` or `image` attributes"
7467
+ "description": "The content of HTML `Watermark`, only supports inline styles, does not support passing in self closing tags, priority higher than `content` or `image` attributes"
7199
7468
  }
7200
7469
  ]
7201
7470
  }