@varlet/ui 2.17.1 → 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 (44) hide show
  1. package/es/action-sheet/actionSheet.css +1 -1
  2. package/es/drag/Drag.mjs +2 -2
  3. package/es/form/Form.mjs +3 -3
  4. package/es/image-preview/ImagePreview.mjs +2 -2
  5. package/es/index-bar/indexBar.css +1 -1
  6. package/es/index.bundle.mjs +13 -1
  7. package/es/index.mjs +11 -1
  8. package/es/input/Input.mjs +2 -2
  9. package/es/menu/style/index.mjs +1 -1
  10. package/es/menu-option/MenuOption.mjs +122 -0
  11. package/es/menu-option/MenuOptionSfc.css +0 -0
  12. package/es/menu-option/index.mjs +11 -0
  13. package/es/menu-option/menuOption.css +1 -0
  14. package/es/menu-option/props.mjs +8 -0
  15. package/es/menu-option/provide.mjs +19 -0
  16. package/es/menu-option/style/index.mjs +5 -0
  17. package/es/menu-select/MenuSelect.mjs +110 -0
  18. package/es/menu-select/MenuSelectSfc.css +0 -0
  19. package/es/menu-select/index.mjs +9 -0
  20. package/es/menu-select/menuSelect.css +1 -0
  21. package/es/menu-select/props.mjs +58 -0
  22. package/es/menu-select/provide.mjs +16 -0
  23. package/es/menu-select/style/index.mjs +5 -0
  24. package/es/pull-refresh/PullRefresh.mjs +2 -2
  25. package/es/ripple/index.mjs +2 -0
  26. package/es/select/Select.mjs +14 -47
  27. package/es/select/useSelectController.mjs +67 -0
  28. package/es/slider/Slider.mjs +2 -2
  29. package/es/style.css +1 -1
  30. package/es/style.mjs +2 -0
  31. package/es/swipe/Swipe.mjs +13 -13
  32. package/es/themes/dark/index.mjs +3 -2
  33. package/es/themes/dark/menuOption.mjs +6 -0
  34. package/es/time-picker/TimePicker.mjs +2 -2
  35. package/es/varlet.esm.js +5546 -5256
  36. package/highlight/web-types.en-US.json +336 -89
  37. package/highlight/web-types.zh-CN.json +249 -2
  38. package/lib/style.css +1 -1
  39. package/lib/varlet.cjs.js +2120 -1770
  40. package/package.json +7 -7
  41. package/types/index.d.ts +4 -0
  42. package/types/menuOption.d.ts +20 -0
  43. package/types/menuSelect.d.ts +70 -0
  44. 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.1",
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": [
@@ -4117,7 +4364,7 @@
4117
4364
  "events": [
4118
4365
  {
4119
4366
  "name": "click",
4120
- "description": "Triggered when you click on overlay"
4367
+ "description": "Triggered when clicking on overlay"
4121
4368
  }
4122
4369
  ],
4123
4370
  "slots": [
@@ -4770,7 +5017,7 @@
4770
5017
  },
4771
5018
  {
4772
5019
  "name": "target",
4773
- "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.",
4774
5021
  "default": "-",
4775
5022
  "value": {
4776
5023
  "type": "string | HTMLElement",
@@ -4806,7 +5053,7 @@
4806
5053
  },
4807
5054
  {
4808
5055
  "name": "color",
4809
- "description": "color of control",
5056
+ "description": "Color of control",
4810
5057
  "default": "#ffffff",
4811
5058
  "value": {
4812
5059
  "type": "string",
@@ -4824,7 +5071,7 @@
4824
5071
  },
4825
5072
  {
4826
5073
  "name": "success-color",
4827
- "description": "color of control when the status is success",
5074
+ "description": "Color of control when the status is success",
4828
5075
  "default": "ffffff",
4829
5076
  "value": {
4830
5077
  "type": "string",
@@ -4931,7 +5178,7 @@
4931
5178
  },
4932
5179
  {
4933
5180
  "name": "rules",
4934
- "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",
4935
5182
  "default": "-",
4936
5183
  "value": {
4937
5184
  "type": "Array<(value: any) => any>",
@@ -4942,11 +5189,11 @@
4942
5189
  "events": [
4943
5190
  {
4944
5191
  "name": "click",
4945
- "description": "Triggered on Click"
5192
+ "description": "Triggered on click"
4946
5193
  },
4947
5194
  {
4948
5195
  "name": "change",
4949
- "description": "Trigger on change"
5196
+ "description": "Triggered on change"
4950
5197
  }
4951
5198
  ],
4952
5199
  "slots": [
@@ -4978,7 +5225,7 @@
4978
5225
  },
4979
5226
  {
4980
5227
  "name": "direction",
4981
- "description": "The layout direction,Optional value is `horizontal` `vertical`",
5228
+ "description": "The layout direction, optional value is `horizontal` `vertical`",
4982
5229
  "default": "horizontal",
4983
5230
  "value": {
4984
5231
  "type": "string",
@@ -4987,7 +5234,7 @@
4987
5234
  },
4988
5235
  {
4989
5236
  "name": "rules",
4990
- "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",
4991
5238
  "default": "-",
4992
5239
  "value": {
4993
5240
  "type": "Array<(value: any) => any>",
@@ -4998,13 +5245,13 @@
4998
5245
  "events": [
4999
5246
  {
5000
5247
  "name": "change",
5001
- "description": "Trigger on change"
5248
+ "description": "Triggered on change"
5002
5249
  }
5003
5250
  ],
5004
5251
  "slots": [
5005
5252
  {
5006
5253
  "name": "default",
5007
- "description": "Radio group content"
5254
+ "description": "Radio Group content"
5008
5255
  }
5009
5256
  ]
5010
5257
  },
@@ -5024,7 +5271,7 @@
5024
5271
  "attributes": [
5025
5272
  {
5026
5273
  "name": "type",
5027
- "description": "Image typeoptions `info` `success` `warning` `error` `question` `empty`",
5274
+ "description": "Image type, options `info` `success` `warning` `error` `question` `empty`",
5028
5275
  "default": "success",
5029
5276
  "value": {
5030
5277
  "type": "string",
@@ -5128,7 +5375,7 @@
5128
5375
  "events": [
5129
5376
  {
5130
5377
  "name": "click",
5131
- "description": "Triggered when you click Row"
5378
+ "description": "Triggered when clicking Row"
5132
5379
  }
5133
5380
  ],
5134
5381
  "slots": [
@@ -5278,7 +5525,7 @@
5278
5525
  },
5279
5526
  {
5280
5527
  "name": "validate-trigger",
5281
- "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`",
5282
5529
  "default": "['onChange', 'onClear', 'onClose']",
5283
5530
  "value": {
5284
5531
  "type": "ValidateTriggers[]",
@@ -5287,7 +5534,7 @@
5287
5534
  },
5288
5535
  {
5289
5536
  "name": "rules",
5290
- "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",
5291
5538
  "default": "-",
5292
5539
  "value": {
5293
5540
  "type": "Array<(v: any | any[]) => any>",
@@ -5298,7 +5545,7 @@
5298
5545
  "events": [
5299
5546
  {
5300
5547
  "name": "focus",
5301
- "description": "Trigger while focusing"
5548
+ "description": "Triggered when focusing"
5302
5549
  },
5303
5550
  {
5304
5551
  "name": "blur",
@@ -5715,7 +5962,7 @@
5715
5962
  },
5716
5963
  {
5717
5964
  "name": "loading-color",
5718
- "description": "loading color (see `Loading` component)",
5965
+ "description": "Loading color (see `Loading` component)",
5719
5966
  "default": "currentColor",
5720
5967
  "value": {
5721
5968
  "type": "string",
@@ -5742,7 +5989,7 @@
5742
5989
  },
5743
5990
  {
5744
5991
  "name": "forbid-click",
5745
- "description": "whether to penetrating clicks are forbidden",
5992
+ "description": "Whether to penetrating clicks are forbidden",
5746
5993
  "default": "false",
5747
5994
  "value": {
5748
5995
  "type": "boolean",
@@ -5797,7 +6044,7 @@
5797
6044
  "attributes": [
5798
6045
  {
5799
6046
  "name": "direction",
5800
- "description": "Layout direction, Can be set to `row` `column`",
6047
+ "description": "Layout direction, can be set to `row` `column`",
5801
6048
  "default": "row",
5802
6049
  "value": {
5803
6050
  "type": "string",
@@ -5824,7 +6071,7 @@
5824
6071
  },
5825
6072
  {
5826
6073
  "name": "size",
5827
- "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)",
5828
6075
  "default": "normal",
5829
6076
  "value": {
5830
6077
  "type": "string | number | [string | number, string | number]",
@@ -5938,7 +6185,7 @@
5938
6185
  },
5939
6186
  {
5940
6187
  "name": "direction",
5941
- "description": "Mode of steps, Can be set to `vertical`",
6188
+ "description": "Mode of steps, can be set to `horizontal` `vertical`",
5942
6189
  "default": "horizontal",
5943
6190
  "value": {
5944
6191
  "type": "string",
@@ -6316,7 +6563,7 @@
6316
6563
  "attributes": [
6317
6564
  {
6318
6565
  "name": "name",
6319
- "description": "tab's name",
6566
+ "description": "Tab's name",
6320
6567
  "default": "index",
6321
6568
  "value": {
6322
6569
  "type": "string | number",
@@ -6342,7 +6589,7 @@
6342
6589
  "slots": [
6343
6590
  {
6344
6591
  "name": "default",
6345
- "description": "tab's content"
6592
+ "description": "Tab's content"
6346
6593
  }
6347
6594
  ]
6348
6595
  },
@@ -6351,7 +6598,7 @@
6351
6598
  "attributes": [
6352
6599
  {
6353
6600
  "name": "name",
6354
- "description": "view's name",
6601
+ "description": "View's name",
6355
6602
  "default": "index",
6356
6603
  "value": {
6357
6604
  "type": "string | number",
@@ -6363,7 +6610,7 @@
6363
6610
  "slots": [
6364
6611
  {
6365
6612
  "name": "default",
6366
- "description": "tabItem's content"
6613
+ "description": "TabItem's content"
6367
6614
  }
6368
6615
  ]
6369
6616
  },
@@ -6580,7 +6827,7 @@
6580
6827
  "slots": [
6581
6828
  {
6582
6829
  "name": "default",
6583
- "description": "tabs content"
6830
+ "description": "Tabs content"
6584
6831
  }
6585
6832
  ]
6586
6833
  },
@@ -6643,7 +6890,7 @@
6643
6890
  },
6644
6891
  {
6645
6892
  "name": "format",
6646
- "description": "Picker type, optional values `ampm, 24hr`",
6893
+ "description": "Picker type, optional values `ampm` `24hr`",
6647
6894
  "default": "ampm",
6648
6895
  "value": {
6649
6896
  "type": "string",
@@ -6736,7 +6983,7 @@
6736
6983
  "attributes": [
6737
6984
  {
6738
6985
  "name": "v-model:show",
6739
- "description": "whether to show the tooltip",
6986
+ "description": "Whether to show the tooltip",
6740
6987
  "default": "false",
6741
6988
  "value": {
6742
6989
  "type": "boolean",
@@ -6745,7 +6992,7 @@
6745
6992
  },
6746
6993
  {
6747
6994
  "name": "content",
6748
- "description": "display content",
6995
+ "description": "Display content",
6749
6996
  "default": "-",
6750
6997
  "value": {
6751
6998
  "type": "string",
@@ -6763,7 +7010,7 @@
6763
7010
  },
6764
7011
  {
6765
7012
  "name": "type",
6766
- "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`",
6767
7014
  "default": "default",
6768
7015
  "value": {
6769
7016
  "type": "string",
@@ -6781,7 +7028,7 @@
6781
7028
  },
6782
7029
  {
6783
7030
  "name": "strategy",
6784
- "description": "Tooltip position strategyoptional value is `absolute` `fixed`",
7031
+ "description": "Tooltip position strategy, optional value is `absolute` `fixed`",
6785
7032
  "default": "absolute",
6786
7033
  "value": {
6787
7034
  "type": "string",
@@ -6826,7 +7073,7 @@
6826
7073
  },
6827
7074
  {
6828
7075
  "name": "disabled",
6829
- "description": "whether to disable the tooltip",
7076
+ "description": "Whether to disable the tooltip",
6830
7077
  "default": "false",
6831
7078
  "value": {
6832
7079
  "type": "boolean",
@@ -7034,7 +7281,7 @@
7034
7281
  },
7035
7282
  {
7036
7283
  "name": "validate-trigger",
7037
- "description": "Timing to trigger validation, The optional value is `onChange` `onRemove`",
7284
+ "description": "Timing to trigger validation. The optional value is `onChange` `onRemove`",
7038
7285
  "default": "['onChange', 'onRemove']",
7039
7286
  "value": {
7040
7287
  "type": "ValidateTriggers[]",
@@ -7043,7 +7290,7 @@
7043
7290
  },
7044
7291
  {
7045
7292
  "name": "rules",
7046
- "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",
7047
7294
  "default": "-",
7048
7295
  "value": {
7049
7296
  "type": "Array<(v: VarFile, u: VarFileUtils) => any>",
@@ -7058,7 +7305,7 @@
7058
7305
  },
7059
7306
  {
7060
7307
  "name": "before-read",
7061
- "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)"
7062
7309
  },
7063
7310
  {
7064
7311
  "name": "after-read",
@@ -7217,7 +7464,7 @@
7217
7464
  "slots": [
7218
7465
  {
7219
7466
  "name": "content",
7220
- "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"
7221
7468
  }
7222
7469
  ]
7223
7470
  }