@varlet/ui 2.7.5 → 2.8.0-alpha.1676455225773

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 (62) hide show
  1. package/README.md +3 -1
  2. package/README.zh-CN.md +6 -4
  3. package/es/app-bar/AppBar.mjs +30 -6
  4. package/es/app-bar/appBar.css +1 -1
  5. package/es/app-bar/props.mjs +6 -0
  6. package/es/avatar/Avatar.mjs +148 -0
  7. package/es/avatar/AvatarSfc.css +0 -0
  8. package/es/avatar/avatar.css +1 -0
  9. package/es/avatar/index.mjs +9 -0
  10. package/es/avatar/props.mjs +53 -0
  11. package/es/avatar/style/index.mjs +3 -0
  12. package/es/avatar-group/AvatarGroup.mjs +46 -0
  13. package/es/avatar-group/AvatarGroupSfc.css +0 -0
  14. package/es/avatar-group/avatarGroup.css +1 -0
  15. package/es/avatar-group/index.mjs +9 -0
  16. package/es/avatar-group/props.mjs +9 -0
  17. package/es/avatar-group/style/index.mjs +3 -0
  18. package/es/badge/Badge.mjs +3 -2
  19. package/es/cell/Cell.mjs +59 -31
  20. package/es/cell/cell.css +1 -1
  21. package/es/cell/props.mjs +10 -1
  22. package/es/collapse/Collapse.mjs +2 -2
  23. package/es/ellipsis/Ellipsis.mjs +106 -0
  24. package/es/ellipsis/EllipsisSfc.css +0 -0
  25. package/es/ellipsis/ellipsis.css +1 -0
  26. package/es/ellipsis/index.mjs +8 -0
  27. package/es/ellipsis/props.mjs +16 -0
  28. package/es/ellipsis/style/index.mjs +4 -0
  29. package/es/index.bundle.mjs +25 -1
  30. package/es/index.mjs +21 -1
  31. package/es/paper/Paper.mjs +55 -0
  32. package/es/paper/PaperSfc.css +0 -0
  33. package/es/paper/index.mjs +9 -0
  34. package/es/paper/paper.css +1 -0
  35. package/es/paper/props.mjs +28 -0
  36. package/es/paper/style/index.mjs +4 -0
  37. package/es/ripple/index.mjs +2 -2
  38. package/es/snackbar/style/index.mjs +1 -1
  39. package/es/style.css +1 -1
  40. package/es/style.mjs +4 -0
  41. package/es/tabs/Tabs.mjs +5 -4
  42. package/es/themes/dark/avatar.mjs +4 -0
  43. package/es/themes/dark/index.mjs +2 -1
  44. package/es/tooltip/Tooltip.mjs +6 -1
  45. package/es/tooltip/props.mjs +4 -0
  46. package/es/tooltip/tooltip.css +1 -1
  47. package/es/varlet.esm.js +7878 -7400
  48. package/highlight/web-types.en-US.json +294 -2
  49. package/highlight/web-types.zh-CN.json +294 -2
  50. package/lib/style.css +1 -1
  51. package/lib/varlet.cjs.js +6012 -5455
  52. package/package.json +5 -5
  53. package/types/appBar.d.ts +2 -0
  54. package/types/avatar.d.ts +29 -0
  55. package/types/avatarGroup.d.ts +14 -0
  56. package/types/cell.d.ts +4 -1
  57. package/types/ellipsis.d.ts +23 -0
  58. package/types/index.d.ts +8 -0
  59. package/types/paper.d.ts +25 -0
  60. package/types/tooltip.d.ts +1 -0
  61. package/umd/style.css +1 -1
  62. 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.7.5",
4
+ "version": "2.8.0-alpha.1676455225773",
5
5
  "name": "VARLET",
6
6
  "contributions": {
7
7
  "html": {
@@ -193,6 +193,24 @@
193
193
  "type": "boolean",
194
194
  "kind": "expression"
195
195
  }
196
+ },
197
+ {
198
+ "name": "image",
199
+ "description": "Background image",
200
+ "default": "-",
201
+ "value": {
202
+ "type": "string",
203
+ "kind": "expression"
204
+ }
205
+ },
206
+ {
207
+ "name": "image-linear-gradient",
208
+ "description": "Background image linear gradient",
209
+ "default": "-",
210
+ "value": {
211
+ "type": "string",
212
+ "kind": "expression"
213
+ }
196
214
  }
197
215
  ],
198
216
  "events": [],
@@ -208,6 +226,125 @@
208
226
  {
209
227
  "name": "right",
210
228
  "description": "Insert the content to the right of the app bar"
229
+ },
230
+ {
231
+ "name": "content",
232
+ "description": "Insert the content to the extra content of the app bar"
233
+ }
234
+ ]
235
+ },
236
+ {
237
+ "name": "var-avatar",
238
+ "attributes": [
239
+ {
240
+ "name": "round",
241
+ "description": "Whether the avatar is round or not",
242
+ "default": "true",
243
+ "value": {
244
+ "type": "boolean",
245
+ "kind": "expression"
246
+ }
247
+ },
248
+ {
249
+ "name": "size",
250
+ "description": "The size of the avatar, with optional values of `mini small normal large`",
251
+ "default": "normal",
252
+ "value": {
253
+ "type": "string | number",
254
+ "kind": "expression"
255
+ }
256
+ },
257
+ {
258
+ "name": "color",
259
+ "description": "Background color of the avatar",
260
+ "default": "-",
261
+ "value": {
262
+ "type": "string",
263
+ "kind": "expression"
264
+ }
265
+ },
266
+ {
267
+ "name": "src",
268
+ "description": "Address of avatar",
269
+ "default": "-",
270
+ "value": {
271
+ "type": "string",
272
+ "kind": "expression"
273
+ }
274
+ },
275
+ {
276
+ "name": "fit",
277
+ "description": "Filling mode of avatar image, optional value `fill contain cover none scale-down`",
278
+ "default": "cover",
279
+ "value": {
280
+ "type": "string",
281
+ "kind": "expression"
282
+ }
283
+ },
284
+ {
285
+ "name": "bordered",
286
+ "description": "Avatar with or without border",
287
+ "default": "false",
288
+ "value": {
289
+ "type": "boolean",
290
+ "kind": "expression"
291
+ }
292
+ },
293
+ {
294
+ "name": "border-color",
295
+ "description": "Avatar border color",
296
+ "default": "-",
297
+ "value": {
298
+ "type": "string",
299
+ "kind": "expression"
300
+ }
301
+ },
302
+ {
303
+ "name": "loading",
304
+ "description": "When lazy loading is enabled, the image displayed in the load",
305
+ "default": "-",
306
+ "value": {
307
+ "type": "string",
308
+ "kind": "expression"
309
+ }
310
+ },
311
+ {
312
+ "name": "error",
313
+ "description": "When lazy loading is enabled, the image displayed when loading fails",
314
+ "default": "-",
315
+ "value": {
316
+ "type": "string",
317
+ "kind": "expression"
318
+ }
319
+ },
320
+ {
321
+ "name": "lazy",
322
+ "description": "Whether to enable lazy loading",
323
+ "default": "false",
324
+ "value": {
325
+ "type": "boolean",
326
+ "kind": "expression"
327
+ }
328
+ }
329
+ ],
330
+ "events": [
331
+ {
332
+ "name": "click",
333
+ "description": "Triggered when clicking on avatar"
334
+ },
335
+ {
336
+ "name": "load",
337
+ "description": "Triggered when the avatar image is successfully loaded (failure in lazy loading mode will try to load the avatar image multiple times and will only be triggered when successfully loaded)"
338
+ },
339
+ {
340
+ "name": "error",
341
+ "description": "Triggered when the avatar image fails to load (failure in lazy loading mode will try to load the avatar image multiple times, will only be triggered at the end of the number of attempts)"
342
+ }
343
+ ],
344
+ "slots": [
345
+ {
346
+ "name": "default",
347
+ "description": "Customize avatar content"
211
348
  }
212
349
  ]
213
350
  },
@@ -900,6 +1037,15 @@
900
1037
  "kind": "expression"
901
1038
  }
902
1039
  },
1040
+ {
1041
+ "name": "border-offset",
1042
+ "description": "Border offset",
1043
+ "default": "-",
1044
+ "value": {
1045
+ "type": "string | number",
1046
+ "kind": "expression"
1047
+ }
1048
+ },
903
1049
  {
904
1050
  "name": "icon-class",
905
1051
  "description": "Icon className",
@@ -935,9 +1081,23 @@
935
1081
  "type": "string",
936
1082
  "kind": "expression"
937
1083
  }
1084
+ },
1085
+ {
1086
+ "name": "ripple",
1087
+ "description": "Whether to enable the water wave effect",
1088
+ "default": "false",
1089
+ "value": {
1090
+ "type": "boolean",
1091
+ "kind": "expression"
1092
+ }
1093
+ }
1094
+ ],
1095
+ "events": [
1096
+ {
1097
+ "name": "click",
1098
+ "description": "Triggered when the cell is clicked."
938
1099
  }
939
1100
  ],
940
- "events": [],
941
1101
  "slots": [
942
1102
  {
943
1103
  "name": "default",
@@ -2143,6 +2303,49 @@
2143
2303
  }
2144
2304
  ]
2145
2305
  },
2306
+ {
2307
+ "name": "var-ellipsis",
2308
+ "attributes": [
2309
+ {
2310
+ "name": "expand-trigger",
2311
+ "description": "Expand trigger method, optional value `click`",
2312
+ "default": "-",
2313
+ "value": {
2314
+ "type": "string",
2315
+ "kind": "expression"
2316
+ }
2317
+ },
2318
+ {
2319
+ "name": "line-clamp",
2320
+ "description": "Maximum number of display lines, see [line-clamp](https://caniuse.com/?search=line-clamp) for compatibility",
2321
+ "default": "-",
2322
+ "value": {
2323
+ "type": "string",
2324
+ "kind": "expression"
2325
+ }
2326
+ },
2327
+ {
2328
+ "name": "tooltip",
2329
+ "description": "Tooltip component props, for deep customization. For more convenience, `sameWidth` defaults to `true` here",
2330
+ "default": "-",
2331
+ "value": {
2332
+ "type": "boolean | TooltipProps",
2333
+ "kind": "expression"
2334
+ }
2335
+ }
2336
+ ],
2337
+ "events": [],
2338
+ "slots": [
2339
+ {
2340
+ "name": "default",
2341
+ "description": "Text content"
2342
+ },
2343
+ {
2344
+ "name": "tooltip-content",
2345
+ "description": "Tooltip content"
2346
+ }
2347
+ ]
2348
+ },
2146
2349
  {
2147
2350
  "name": "var-form",
2148
2351
  "attributes": [
@@ -3376,6 +3579,86 @@
3376
3579
  }
3377
3580
  ]
3378
3581
  },
3582
+ {
3583
+ "name": "var-paper",
3584
+ "attributes": [
3585
+ {
3586
+ "name": "elevation",
3587
+ "description": "Elevation, value `0-24`",
3588
+ "default": "-",
3589
+ "value": {
3590
+ "type": "string | number",
3591
+ "kind": "expression"
3592
+ }
3593
+ },
3594
+ {
3595
+ "name": "ripple",
3596
+ "description": "Whether to enable ripple effect",
3597
+ "default": "-",
3598
+ "value": {
3599
+ "type": "boolean",
3600
+ "kind": "expression"
3601
+ }
3602
+ },
3603
+ {
3604
+ "name": "radius",
3605
+ "description": "Paper border radius",
3606
+ "default": "-",
3607
+ "value": {
3608
+ "type": "string | number",
3609
+ "kind": "expression"
3610
+ }
3611
+ },
3612
+ {
3613
+ "name": "width",
3614
+ "description": "Paper width",
3615
+ "default": "-",
3616
+ "value": {
3617
+ "type": "string | number",
3618
+ "kind": "expression"
3619
+ }
3620
+ },
3621
+ {
3622
+ "name": "height",
3623
+ "description": "Paper height",
3624
+ "default": "-",
3625
+ "value": {
3626
+ "type": "string | number",
3627
+ "kind": "expression"
3628
+ }
3629
+ },
3630
+ {
3631
+ "name": "round",
3632
+ "description": "Whether to enable round paper",
3633
+ "default": "false",
3634
+ "value": {
3635
+ "type": "boolean",
3636
+ "kind": "expression"
3637
+ }
3638
+ },
3639
+ {
3640
+ "name": "inline",
3641
+ "description": "Whether to use inline paper",
3642
+ "default": "false",
3643
+ "value": {
3644
+ "type": "boolean",
3645
+ "kind": "expression"
3646
+ }
3647
+ }
3648
+ ],
3649
+ "events": [
3650
+ {
3651
+ "name": "click",
3652
+ "description": "Triggered when the paper is clicked"
3653
+ }
3654
+ ],
3655
+ "slots": [
3656
+ {
3657
+ "name": "default",
3658
+ "description": "Paper content"
3659
+ }
3660
+ ]
3661
+ },
3379
3662
  {
3380
3663
  "name": "var-picker",
3381
3664
  "attributes": [
@@ -5717,6 +6000,15 @@
5717
6000
  "kind": "expression"
5718
6001
  }
5719
6002
  },
6003
+ {
6004
+ "name": "same-width",
6005
+ "description": "Whether to same width as trigger element",
6006
+ "default": "false",
6007
+ "value": {
6008
+ "type": "boolean",
6009
+ "kind": "expression"
6010
+ }
6011
+ },
5720
6012
  {
5721
6013
  "name": "disabled",
5722
6014
  "description": "whether to disable the tooltip",
@@ -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.7.5",
4
+ "version": "2.8.0-alpha.1676455225773",
5
5
  "name": "VARLET",
6
6
  "contributions": {
7
7
  "html": {
@@ -193,6 +193,24 @@
193
193
  "type": "boolean",
194
194
  "kind": "expression"
195
195
  }
196
+ },
197
+ {
198
+ "name": "image",
199
+ "description": "背景图片",
200
+ "default": "-",
201
+ "value": {
202
+ "type": "string",
203
+ "kind": "expression"
204
+ }
205
+ },
206
+ {
207
+ "name": "image-linear-gradient",
208
+ "description": "背景图片渐变色",
209
+ "default": "-",
210
+ "value": {
211
+ "type": "string",
212
+ "kind": "expression"
213
+ }
196
214
  }
197
215
  ],
198
216
  "events": [],
@@ -208,6 +226,125 @@
208
226
  {
209
227
  "name": "right",
210
228
  "description": "插入至导航栏右侧的内容"
229
+ },
230
+ {
231
+ "name": "content",
232
+ "description": "扩展内容"
233
+ }
234
+ ]
235
+ },
236
+ {
237
+ "name": "var-avatar",
238
+ "attributes": [
239
+ {
240
+ "name": "round",
241
+ "description": "头像是否为圆形",
242
+ "default": "true",
243
+ "value": {
244
+ "type": "boolean",
245
+ "kind": "expression"
246
+ }
247
+ },
248
+ {
249
+ "name": "size",
250
+ "description": "头像的尺寸,可选值为 `mini small normal large`",
251
+ "default": "normal",
252
+ "value": {
253
+ "type": "string | number",
254
+ "kind": "expression"
255
+ }
256
+ },
257
+ {
258
+ "name": "color",
259
+ "description": "头像的背景颜色",
260
+ "default": "-",
261
+ "value": {
262
+ "type": "string",
263
+ "kind": "expression"
264
+ }
265
+ },
266
+ {
267
+ "name": "src",
268
+ "description": "头像的地址",
269
+ "default": "-",
270
+ "value": {
271
+ "type": "string",
272
+ "kind": "expression"
273
+ }
274
+ },
275
+ {
276
+ "name": "fit",
277
+ "description": "头像图片的填充模式,可选值 `fill contain cover none scale-down`",
278
+ "default": "cover",
279
+ "value": {
280
+ "type": "string",
281
+ "kind": "expression"
282
+ }
283
+ },
284
+ {
285
+ "name": "bordered",
286
+ "description": "头像是否带边框",
287
+ "default": "false",
288
+ "value": {
289
+ "type": "boolean",
290
+ "kind": "expression"
291
+ }
292
+ },
293
+ {
294
+ "name": "border-color",
295
+ "description": "头像边框颜色",
296
+ "default": "-",
297
+ "value": {
298
+ "type": "string",
299
+ "kind": "expression"
300
+ }
301
+ },
302
+ {
303
+ "name": "loading",
304
+ "description": "当开启懒加载时, 加载中显示的图片",
305
+ "default": "-",
306
+ "value": {
307
+ "type": "string",
308
+ "kind": "expression"
309
+ }
310
+ },
311
+ {
312
+ "name": "error",
313
+ "description": "当开启懒加载时, 加载失败显示的图片",
314
+ "default": "-",
315
+ "value": {
316
+ "type": "string",
317
+ "kind": "expression"
318
+ }
319
+ },
320
+ {
321
+ "name": "lazy",
322
+ "description": "是否开启懒加载",
323
+ "default": "false",
324
+ "value": {
325
+ "type": "boolean",
326
+ "kind": "expression"
327
+ }
328
+ }
329
+ ],
330
+ "events": [
331
+ {
332
+ "name": "click",
333
+ "description": "点击头像时触发"
334
+ },
335
+ {
336
+ "name": "load",
337
+ "description": "头像图片成功加载时触发(懒加载模式下失败时会多次尝试加载头像图片,只会在成功加载时触发)"
338
+ },
339
+ {
340
+ "name": "error",
341
+ "description": "头像图片失败加载时触发(懒加载模式下失败时会多次尝试加载头像图片,只会在尝试次数结束时触发)"
342
+ }
343
+ ],
344
+ "slots": [
345
+ {
346
+ "name": "default",
347
+ "description": "自定义头像内容"
211
348
  }
212
349
  ]
213
350
  },
@@ -960,6 +1097,15 @@
960
1097
  "kind": "expression"
961
1098
  }
962
1099
  },
1100
+ {
1101
+ "name": "border-offset",
1102
+ "description": "边框偏移量",
1103
+ "default": "-",
1104
+ "value": {
1105
+ "type": "string | number",
1106
+ "kind": "expression"
1107
+ }
1108
+ },
963
1109
  {
964
1110
  "name": "icon-class",
965
1111
  "description": "图标额外类名",
@@ -995,9 +1141,23 @@
995
1141
  "type": "string",
996
1142
  "kind": "expression"
997
1143
  }
1144
+ },
1145
+ {
1146
+ "name": "ripple",
1147
+ "description": "是否启用水波效果",
1148
+ "default": "false",
1149
+ "value": {
1150
+ "type": "boolean",
1151
+ "kind": "expression"
1152
+ }
1153
+ }
1154
+ ],
1155
+ "events": [
1156
+ {
1157
+ "name": "click",
1158
+ "description": "点击时触发"
998
1159
  }
999
1160
  ],
1000
- "events": [],
1001
1161
  "slots": [
1002
1162
  {
1003
1163
  "name": "default",
@@ -2203,6 +2363,49 @@
2203
2363
  }
2204
2364
  ]
2205
2365
  },
2366
+ {
2367
+ "name": "var-ellipsis",
2368
+ "attributes": [
2369
+ {
2370
+ "name": "expand-trigger",
2371
+ "description": "展开触发方式,可选值 `click`",
2372
+ "default": "-",
2373
+ "value": {
2374
+ "type": "string",
2375
+ "kind": "expression"
2376
+ }
2377
+ },
2378
+ {
2379
+ "name": "line-clamp",
2380
+ "description": "最大显示行数,兼容性见 [line-clamp](https://caniuse.com/?search=line-clamp)",
2381
+ "default": "-",
2382
+ "value": {
2383
+ "type": "string",
2384
+ "kind": "expression"
2385
+ }
2386
+ },
2387
+ {
2388
+ "name": "tooltip",
2389
+ "description": "Tooltip 组件配置,用于深度定制。为了更方便使用,`sameWidth` 在这里默认为 `true`",
2390
+ "default": "-",
2391
+ "value": {
2392
+ "type": "boolean | TooltipProps",
2393
+ "kind": "expression"
2394
+ }
2395
+ }
2396
+ ],
2397
+ "events": [],
2398
+ "slots": [
2399
+ {
2400
+ "name": "default",
2401
+ "description": "文字内容"
2402
+ },
2403
+ {
2404
+ "name": "tooltip-content",
2405
+ "description": "Tooltip 的内容"
2406
+ }
2407
+ ]
2408
+ },
2206
2409
  {
2207
2410
  "name": "var-form",
2208
2411
  "attributes": [
@@ -3449,6 +3652,86 @@
3449
3652
  }
3450
3653
  ]
3451
3654
  },
3655
+ {
3656
+ "name": "var-paper",
3657
+ "attributes": [
3658
+ {
3659
+ "name": "elevation",
3660
+ "description": "海拔, 取值 `0-24`",
3661
+ "default": "-",
3662
+ "value": {
3663
+ "type": "string | number",
3664
+ "kind": "expression"
3665
+ }
3666
+ },
3667
+ {
3668
+ "name": "ripple",
3669
+ "description": "是否启用水波效果",
3670
+ "default": "-",
3671
+ "value": {
3672
+ "type": "boolean",
3673
+ "kind": "expression"
3674
+ }
3675
+ },
3676
+ {
3677
+ "name": "radius",
3678
+ "description": "纸张圆角",
3679
+ "default": "-",
3680
+ "value": {
3681
+ "type": "string | number",
3682
+ "kind": "expression"
3683
+ }
3684
+ },
3685
+ {
3686
+ "name": "width",
3687
+ "description": "纸张宽度",
3688
+ "default": "-",
3689
+ "value": {
3690
+ "type": "string | number",
3691
+ "kind": "expression"
3692
+ }
3693
+ },
3694
+ {
3695
+ "name": "height",
3696
+ "description": "纸张高度",
3697
+ "default": "-",
3698
+ "value": {
3699
+ "type": "string | number",
3700
+ "kind": "expression"
3701
+ }
3702
+ },
3703
+ {
3704
+ "name": "round",
3705
+ "description": "是否启用圆形纸张",
3706
+ "default": "false",
3707
+ "value": {
3708
+ "type": "boolean",
3709
+ "kind": "expression"
3710
+ }
3711
+ },
3712
+ {
3713
+ "name": "inline",
3714
+ "description": "是否使用行内纸张",
3715
+ "default": "false",
3716
+ "value": {
3717
+ "type": "boolean",
3718
+ "kind": "expression"
3719
+ }
3720
+ }
3721
+ ],
3722
+ "events": [
3723
+ {
3724
+ "name": "click",
3725
+ "description": "点击纸张时触发"
3726
+ }
3727
+ ],
3728
+ "slots": [
3729
+ {
3730
+ "name": "default",
3731
+ "description": "纸张内容"
3732
+ }
3733
+ ]
3734
+ },
3452
3735
  {
3453
3736
  "name": "var-picker",
3454
3737
  "attributes": [
@@ -5935,6 +6218,15 @@
5935
6218
  "kind": "expression"
5936
6219
  }
5937
6220
  },
6221
+ {
6222
+ "name": "same-width",
6223
+ "description": "是否与触发元素同宽",
6224
+ "default": "false",
6225
+ "value": {
6226
+ "type": "boolean",
6227
+ "kind": "expression"
6228
+ }
6229
+ },
5938
6230
  {
5939
6231
  "name": "disabled",
5940
6232
  "description": "是否禁用 Tooltip",