@varlet/ui 1.24.11 → 1.25.0-alpha.1642582155449

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.
@@ -53,7 +53,7 @@
53
53
  },
54
54
  "var-app-bar/title-position": {
55
55
  "type": "string",
56
- "description": "标题位置,可选值为 `left`, `center`, `right` 默认值:left"
56
+ "description": "标题位置,可选值为 `left` `center` `right` 默认值:left"
57
57
  },
58
58
  "var-app-bar/elevation": {
59
59
  "type": "boolean",
@@ -73,7 +73,7 @@
73
73
  },
74
74
  "var-badge/type": {
75
75
  "type": "string",
76
- "description": "类型, 可选值为 `default` `primary` `info` `success` `warning` `danger` 默认值:default"
76
+ "description": "类型,可选值为 `default` `primary` `info` `success` `warning` `danger` 默认值:default"
77
77
  },
78
78
  "var-badge/dot": {
79
79
  "type": "boolean",
@@ -97,7 +97,7 @@
97
97
  },
98
98
  "var-badge/icon": {
99
99
  "type": "string",
100
- "description": "自定义徽标中图标的内容(优先级高于`value`) 默认值:-"
100
+ "description": "自定义徽标中图标的内容(优先级高于 `value`) 默认值:-"
101
101
  },
102
102
  "var-button/type": {
103
103
  "type": "string",
@@ -112,8 +112,8 @@
112
112
  "description": "加载状态 默认值:false"
113
113
  },
114
114
  "var-button/loading-radius": {
115
- "type": "string | number",
116
- "description": "loading 的半径,只作用于 `loading-type=\"circle\"` 时 默认值:12"
115
+ "type": "string \\",
116
+ "description": "loading 的半径,只作用于 `loading-type=\"circle\"` 时 默认值:number_"
117
117
  },
118
118
  "var-button/loading-type": {
119
119
  "type": "string",
@@ -123,6 +123,10 @@
123
123
  "type": "string",
124
124
  "description": "loading 的尺寸,可选值为 `large` `normal` `small` `mini` 不作用于 `loading-type=\"circle\"` 时 默认值:normal"
125
125
  },
126
+ "var-button/auto-loading": {
127
+ "type": "boolean",
128
+ "description": "自动 loading 模式,方便处理异步任务 默认值:false"
129
+ },
126
130
  "var-button/round": {
127
131
  "type": "boolean",
128
132
  "description": "是否是圆形按钮 默认值:false"
@@ -285,7 +289,7 @@
285
289
  },
286
290
  "var-chip/size": {
287
291
  "type": "string",
288
- "description": "尺寸, 可选值为 `normal` `mini` `small` `large` 默认值:normal"
292
+ "description": "尺寸,可选值为 `normal` `mini` `small` `large` 默认值:normal"
289
293
  },
290
294
  "var-chip/plain": {
291
295
  "type": "boolean",
@@ -353,7 +357,7 @@
353
357
  },
354
358
  "var-countdown/time": {
355
359
  "type": "string | number",
356
- "description": "倒计时时长(ms) 默认值:0"
360
+ "description": "倒计时时长(ms) 默认值:0"
357
361
  },
358
362
  "var-countdown/format": {
359
363
  "type": "string",
@@ -437,7 +441,7 @@
437
441
  },
438
442
  "var-counter/validate-trigger": {
439
443
  "type": "ValidateTriggers[]",
440
- "description": "触发验证的时机, 可选值为 `onInputChange` `onLazyChange` `onIncrement` `onDecrement` 默认值:['onIncrement', 'onDecrement', 'onInputChange', 'onLazyChange']"
444
+ "description": "触发验证的时机,可选值为 `onInputChange` `onLazyChange` `onIncrement` `onDecrement` 默认值:['onIncrement', 'onDecrement', 'onInputChange', 'onLazyChange']"
441
445
  },
442
446
  "var-counter/rules": {
443
447
  "type": "Array<(value: number) => any>",
@@ -445,11 +449,11 @@
445
449
  },
446
450
  "var-date-picker/v-model": {
447
451
  "type": "string[] | string",
448
- "description": "被选择的日期(ISO 8601 格式,`YYYY-MM-DD` 或 `YYYY-MM`) 默认值:-"
452
+ "description": "被选择的日期(ISO 8601 格式,`YYYY-MM-DD` 或 `YYYY-MM`) 默认值:undefined"
449
453
  },
450
454
  "var-date-picker/type": {
451
455
  "type": "string",
452
- "description": "选择器类型,可选值为 `date, month` 默认值:date"
456
+ "description": "选择器类型,可选值为 `date month` 默认值:date"
453
457
  },
454
458
  "var-date-picker/allowed-dates": {
455
459
  "type": "function",
@@ -509,7 +513,7 @@
509
513
  },
510
514
  "var-dialog/message-align": {
511
515
  "type": "string",
512
- "description": "对话框内容文字对齐方式,可选值 `center`, `left`, `right` 默认值:left"
516
+ "description": "对话框内容文字对齐方式,可选值 `center` `left` `right` 默认值:left"
513
517
  },
514
518
  "var-dialog/confirm-button": {
515
519
  "type": "boolean",
@@ -613,7 +617,7 @@
613
617
  },
614
618
  "var-icon/transition": {
615
619
  "type": "string | number",
616
- "description": "过渡动画时间(毫秒) 默认值:0"
620
+ "description": "过渡动画时间(ms) 默认值:0"
617
621
  },
618
622
  "var-image/src": {
619
623
  "type": "string",
@@ -621,7 +625,7 @@
621
625
  },
622
626
  "var-image/fit": {
623
627
  "type": "string",
624
- "description": "填充模式, 可选值为 `fill` `contain` `cover` `none` `scale-down` 默认值:fill"
628
+ "description": "填充模式, 可选值为 `fill contain cover none scale-down` 默认值:fill"
625
629
  },
626
630
  "var-image/alt": {
627
631
  "type": "string",
@@ -789,7 +793,7 @@
789
793
  },
790
794
  "var-input/validate-trigger": {
791
795
  "type": "ValidateTriggers[]",
792
- "description": "触发验证的时机, 可选值为 `onFocus` `onBlur` `onChange` `onClick` `onClear` `onInput` 默认值:['onInput', 'onClear']"
796
+ "description": "触发验证的时机,可选值为 `onFocus` `onBlur` `onChange` `onClick` `onClear` `onInput` 默认值:['onInput', 'onClear']"
793
797
  },
794
798
  "var-input/rules": {
795
799
  "type": "Array<(v: string) => any>",
@@ -857,15 +861,15 @@
857
861
  },
858
862
  "var-menu/alignment": {
859
863
  "type": "string",
860
- "description": "菜单的对齐方式, 可选值为 `top` `bottom`, 源点为默认插槽的左上角,top为菜单顶部对齐源点,bottom为菜单底部对齐 默认值:top"
864
+ "description": "菜单的对齐方式, 可选值为 `top` `bottom`, 源点为默认插槽的左上角,top 为菜单顶部对齐源点,bottom 为菜单底部对齐 默认值:top"
861
865
  },
862
866
  "var-menu/offset-x": {
863
867
  "type": "number | string",
864
- "description": "x轴偏移量, 相对于菜单对齐后的位置 默认值:0"
868
+ "description": "x 轴偏移量, 相对于菜单对齐后的位置 默认值:0"
865
869
  },
866
870
  "var-menu/offset-y": {
867
871
  "type": "number | string",
868
- "description": "y轴偏移量, 相对于菜单对齐后的位置 默认值:0"
872
+ "description": "y 轴偏移量, 相对于菜单对齐后的位置 默认值:0"
869
873
  },
870
874
  "var-menu/teleport": {
871
875
  "type": "TeleportProps['to']",
@@ -929,7 +933,7 @@
929
933
  },
930
934
  "var-picker/text-key": {
931
935
  "type": "string",
932
- "description": "文本的属性key 默认值:text"
936
+ "description": "文本的属性 key 默认值:text"
933
937
  },
934
938
  "var-picker/toolbar": {
935
939
  "type": "string",
@@ -977,11 +981,11 @@
977
981
  },
978
982
  "var-popup/overlay-class": {
979
983
  "type": "string",
980
- "description": "自定义遮罩层的class 默认值:-"
984
+ "description": "自定义遮罩层的 class 默认值:-"
981
985
  },
982
986
  "var-popup/overlay-style": {
983
987
  "type": "string",
984
- "description": "自定义遮罩层的style 默认值:-"
988
+ "description": "自定义遮罩层的 style 默认值:-"
985
989
  },
986
990
  "var-popup/transition": {
987
991
  "type": "string",
@@ -989,7 +993,7 @@
989
993
  },
990
994
  "var-popup/lock-scroll": {
991
995
  "type": "boolean",
992
- "description": "是否禁止滚动穿透,禁止时滚动弹出层不会引发body的滚动 默认值:true"
996
+ "description": "是否禁止滚动穿透,禁止时滚动弹出层不会引发 body 的滚动 默认值:true"
993
997
  },
994
998
  "var-popup/close-on-click-overlay": {
995
999
  "type": "boolean",
@@ -1001,7 +1005,7 @@
1001
1005
  },
1002
1006
  "var-progress/mode": {
1003
1007
  "type": "string",
1004
- "description": "`progress` 的模式,可选值为`linear, circle` 默认值:linear"
1008
+ "description": "`progress` 的模式,可选值为 `linear, circle` 默认值:linear"
1005
1009
  },
1006
1010
  "var-progress/value": {
1007
1011
  "type": "string | number",
@@ -1049,15 +1053,15 @@
1049
1053
  },
1050
1054
  "var-pull-refresh/animation-duration": {
1051
1055
  "type": "string | number",
1052
- "description": "加载结束后回到初始位置的动画时长(ms) 默认值:300"
1056
+ "description": "加载结束后回到初始位置的动画时长(ms) 默认值:300"
1053
1057
  },
1054
1058
  "var-pull-refresh/success-duration": {
1055
1059
  "type": "string | number",
1056
- "description": "成功提示展示时长(ms) 默认值:2000"
1060
+ "description": "成功提示展示时长(ms) 默认值:2000"
1057
1061
  },
1058
1062
  "var-pull-refresh/bg-color": {
1059
1063
  "type": "string",
1060
- "description": "control的背景颜色 默认值:#005CAF"
1064
+ "description": "control 的背景颜色 默认值:#005CAF"
1061
1065
  },
1062
1066
  "var-pull-refresh/color": {
1063
1067
  "type": "string",
@@ -1065,11 +1069,11 @@
1065
1069
  },
1066
1070
  "var-pull-refresh/success-bg-color": {
1067
1071
  "type": "string",
1068
- "description": "成功状态下control的背景颜色 默认值:#4CAF50"
1072
+ "description": "成功状态下 control 的背景颜色 默认值:#4CAF50"
1069
1073
  },
1070
1074
  "var-pull-refresh/success-color": {
1071
1075
  "type": "string",
1072
- "description": "成功状态下control的颜色 默认值:ffffff"
1076
+ "description": "成功状态下 control 的颜色 默认值:ffffff"
1073
1077
  },
1074
1078
  "var-radio/v-model": {
1075
1079
  "type": "any",
@@ -1109,7 +1113,7 @@
1109
1113
  },
1110
1114
  "var-radio/rules": {
1111
1115
  "type": "Array<(value: any) => any>",
1112
- "description": "验证规则,返回`true`表示验证通过,其余的值则转换为文本作为用户提示 默认值:-"
1116
+ "description": "验证规则,返回 `true` 表示验证通过,其余的值则转换为文本作为用户提示 默认值:-"
1113
1117
  },
1114
1118
  "var-radio-group/v-model": {
1115
1119
  "type": "any",
@@ -1121,7 +1125,7 @@
1121
1125
  },
1122
1126
  "var-radio-group/rules": {
1123
1127
  "type": "Array<(value: any) => any>",
1124
- "description": "验证规则,返回`true`表示验证通过,其余的值则转换为文本作为用户提示 默认值:-"
1128
+ "description": "验证规则,返回 `true` 表示验证通过,其余的值则转换为文本作为用户提示 默认值:-"
1125
1129
  },
1126
1130
  "var-rate/v-model": {
1127
1131
  "type": "number | string",
@@ -1149,11 +1153,11 @@
1149
1153
  },
1150
1154
  "var-rate/size": {
1151
1155
  "type": "number | string",
1152
- "description": "图标大小,默认单位为`px` 默认值:20"
1156
+ "description": "图标大小,默认单位为 `px` 默认值:20"
1153
1157
  },
1154
1158
  "var-rate/gap": {
1155
1159
  "type": "number | string",
1156
- "description": "图标间隔,默认单位为`px` 默认值:4"
1160
+ "description": "图标间隔,默认单位为 `px` 默认值:4"
1157
1161
  },
1158
1162
  "var-rate/half": {
1159
1163
  "type": "boolean",
@@ -1161,7 +1165,7 @@
1161
1165
  },
1162
1166
  "var-rate/half-icon": {
1163
1167
  "type": "string",
1164
- "description": "半选时图标的样式,只有在`half`为`true`时才有效 默认值:star-half-full"
1168
+ "description": "半选时图标的样式,只有在 `half` 为 `true` 时才有效 默认值:star-half-full"
1165
1169
  },
1166
1170
  "var-rate/disabled": {
1167
1171
  "type": "boolean",
@@ -1169,7 +1173,7 @@
1169
1173
  },
1170
1174
  "var-rate/disabled-color": {
1171
1175
  "type": "string",
1172
- "description": "禁止评分时图标的颜色,只有在`disabled`为`true`时才有效,优先级高于`color`、`empty-color` 默认值:-"
1176
+ "description": "禁止评分时图标的颜色,只有在 `disabled` 为 `true` 时才有效,优先级高于 `color`、`empty-color` 默认值:-"
1173
1177
  },
1174
1178
  "var-rate/readonly": {
1175
1179
  "type": "boolean",
@@ -1181,7 +1185,7 @@
1181
1185
  },
1182
1186
  "var-rate/rules": {
1183
1187
  "type": "Array<(v: string | number) => any>",
1184
- "description": "验证规则,返回`true`表示验证通过,其余的值则转换为文本作为用户提示 默认值:-"
1188
+ "description": "验证规则,返回 `true` 表示验证通过,其余的值则转换为文本作为用户提示 默认值:-"
1185
1189
  },
1186
1190
  "var-row/gutter": {
1187
1191
  "type": "string | number",
@@ -1245,11 +1249,11 @@
1245
1249
  },
1246
1250
  "var-select/validate-trigger": {
1247
1251
  "type": "ValidateTriggers[]",
1248
- "description": "触发验证的时机, 可选值为 `onFocus` `onBlur` `onChange` `onClick` `onClear` `onClose` 默认值:['onChange', 'onClear', 'onClose']"
1252
+ "description": "触发验证的时机,可选值为 `onFocus` `onBlur` `onChange` `onClick` `onClear` `onClose` 默认值:['onChange', 'onClear', 'onClose']"
1249
1253
  },
1250
1254
  "var-select/rules": {
1251
1255
  "type": "Array<(v: any | any[]) => any>",
1252
- "description": "验证规则,返回`true`表示验证通过,其余的值则转换为文本作为用户提示 默认值:-"
1256
+ "description": "验证规则,返回 `true` 表示验证通过,其余的值则转换为文本作为用户提示 默认值:-"
1253
1257
  },
1254
1258
  "var-skeleton/loading": {
1255
1259
  "type": "boolean",
@@ -1297,7 +1301,7 @@
1297
1301
  },
1298
1302
  "var-slider/step": {
1299
1303
  "type": "string | number",
1300
- "description": "步长,取值为`1 ~ 100`间的整数 默认值:1"
1304
+ "description": "步长,取值为 `1 ~ 100` 间的整数 默认值:1"
1301
1305
  },
1302
1306
  "var-slider/range": {
1303
1307
  "type": "boolean",
@@ -1305,7 +1309,7 @@
1305
1309
  },
1306
1310
  "var-slider/label-visible": {
1307
1311
  "type": "string",
1308
- "description": "是否显示标签,可选值为`always, normal, never` 默认值:normal"
1312
+ "description": "是否显示标签,可选值为 `always normal never` 默认值:normal"
1309
1313
  },
1310
1314
  "var-slider/label-text-color": {
1311
1315
  "type": "string",
@@ -1333,15 +1337,15 @@
1333
1337
  },
1334
1338
  "var-snackbar/v-model:show": {
1335
1339
  "type": "boolean",
1336
- "description": "是否显示`Snackbar` 默认值:false"
1340
+ "description": "是否显示 `Snackbar` 默认值:false"
1337
1341
  },
1338
1342
  "var-snackbar/type": {
1339
1343
  "type": "string",
1340
- "description": "`Snackbar`类型,可选值为`success, warning, info, error, loading`之一 默认值:-"
1344
+ "description": "`Snackbar` 类型,可选值为 `success warning info error loading` 默认值:-"
1341
1345
  },
1342
1346
  "var-snackbar/position": {
1343
1347
  "type": "string",
1344
- "description": "`Snackbar`位置,可选值为`top, center, bottom`之一 默认值:top"
1348
+ "description": "`Snackbar` 位置,可选值为 `top center bottom` 默认值:top"
1345
1349
  },
1346
1350
  "var-snackbar/duration": {
1347
1351
  "type": "number",
@@ -1361,11 +1365,11 @@
1361
1365
  },
1362
1366
  "var-snackbar/loading-type": {
1363
1367
  "type": "string",
1364
- "description": "加载动画类型(见`Loading`组件) 默认值:circle"
1368
+ "description": "加载动画类型(见 `Loading` 组件) 默认值:circle"
1365
1369
  },
1366
1370
  "var-snackbar/loading-size": {
1367
1371
  "type": "string",
1368
- "description": "加载动画大小(见`Loading`组件) 默认值:normal"
1372
+ "description": "加载动画大小(见 `Loading` 组件) 默认值:normal"
1369
1373
  },
1370
1374
  "var-snackbar/lock-scroll": {
1371
1375
  "type": "boolean",
@@ -1389,7 +1393,7 @@
1389
1393
  },
1390
1394
  "var-space/size": {
1391
1395
  "type": "string | number | [string | number, string | number]",
1392
- "description": "间距,可选值为 `mini` `small` `normal` `large` 或`[垂直间距, 水平间距]`(支持长度单位) 默认值:normal"
1396
+ "description": "间距,可选值为 `mini` `small` `normal` `large` 或 `[垂直间距, 水平间距]` (支持长度单位) 默认值:normal"
1393
1397
  },
1394
1398
  "var-space/wrap": {
1395
1399
  "type": "boolean",
@@ -1441,11 +1445,11 @@
1441
1445
  },
1442
1446
  "var-sticky/css-mode": {
1443
1447
  "type": "boolean",
1444
- "description": "开启原生`css sticky`模式 默认值:false"
1448
+ "description": "开启原生 `css sticky` 模式 默认值:false"
1445
1449
  },
1446
1450
  "var-sticky/disabled": {
1447
1451
  "type": "boolean",
1448
- "description": "禁用吸顶, 设置为`true`时, 元素会回到文档流中 默认值:false"
1452
+ "description": "禁用吸顶, 设置为 `true` 时, 元素会回到文档流中 默认值:false"
1449
1453
  },
1450
1454
  "var-style-provider/style-vars": {
1451
1455
  "type": "Record<string, string>",
@@ -1457,7 +1461,7 @@
1457
1461
  },
1458
1462
  "var-swipe/autoplay": {
1459
1463
  "type": "string | number",
1460
- "description": "自动播放间隔时间(ms) 默认值:-"
1464
+ "description": "自动播放间隔时间 (ms) 默认值:-"
1461
1465
  },
1462
1466
  "var-swipe/duration": {
1463
1467
  "type": "string | number",
@@ -1525,7 +1529,7 @@
1525
1529
  },
1526
1530
  "var-switch/size": {
1527
1531
  "type": "string | number",
1528
- "description": "switch的大小 默认值:20"
1532
+ "description": "switch 的大小 默认值:20"
1529
1533
  },
1530
1534
  "var-switch/rules": {
1531
1535
  "type": "array",
@@ -1549,11 +1553,11 @@
1549
1553
  },
1550
1554
  "var-tabs/v-model:active": {
1551
1555
  "type": "string",
1552
- "description": "激活的选项卡标识, 优先匹配name,其次是index 默认值:default"
1556
+ "description": "激活的选项卡标识, 优先匹配 name,其次是 index 默认值:default"
1553
1557
  },
1554
1558
  "var-tabs/layout-direction": {
1555
1559
  "type": "string",
1556
- "description": "选项卡组的布局方向, 可选值为 `horizontal` `vertical` 默认值:horizontal"
1560
+ "description": "选项卡组的布局方向,可选值为 `horizontal` `vertical` 默认值:horizontal"
1557
1561
  },
1558
1562
  "var-tabs/item-direction": {
1559
1563
  "type": "string",
@@ -1617,7 +1621,7 @@
1617
1621
  },
1618
1622
  "var-time-picker/format": {
1619
1623
  "type": "string",
1620
- "description": "选择器时间格式,可选值为`ampm, 24hr` 默认值:ampm"
1624
+ "description": "选择器时间格式,可选值为 `ampm 24hr` 默认值:ampm"
1621
1625
  },
1622
1626
  "var-time-picker/color": {
1623
1627
  "type": "string",
@@ -1701,6 +1705,6 @@
1701
1705
  },
1702
1706
  "var-uploader/rules": {
1703
1707
  "type": "Array<(v: VarFile, u: VarFileUtils) => any>",
1704
- "description": "验证规则,返回`true`表示验证通过,其余的值则转换为文本作为用户提示 默认值:-"
1708
+ "description": "验证规则,返回 `true` 表示验证通过,其余的值则转换为文本作为用户提示 默认值:-"
1705
1709
  }
1706
1710
  }
@@ -48,6 +48,7 @@
48
48
  "loading-radius",
49
49
  "loading-type",
50
50
  "loading-size",
51
+ "auto-loading",
51
52
  "round",
52
53
  "block",
53
54
  "text",