@varlet/ui 3.4.0 → 3.5.0-alpha.1726330414687
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.
- package/es/auto-complete/AutoComplete.mjs +20 -11
- package/es/auto-complete/props.mjs +1 -1
- package/es/checkbox/props.mjs +1 -1
- package/es/checkbox-group/props.mjs +1 -1
- package/es/counter/props.mjs +2 -2
- package/es/field-decorator/FieldDecorator.mjs +7 -0
- package/es/index.bundle.mjs +1 -1
- package/es/index.mjs +1 -1
- package/es/input/props.mjs +1 -1
- package/es/menu-select/MenuSelect.mjs +1 -0
- package/es/menu-select/props.mjs +9 -2
- package/es/radio/props.mjs +1 -1
- package/es/radio-group/props.mjs +1 -1
- package/es/select/props.mjs +1 -1
- package/es/slider/props.mjs +1 -1
- package/es/snackbar/style/index.mjs +1 -1
- package/es/swipe/Swipe.mjs +6 -1
- package/es/swipe/provide.mjs +26 -2
- package/es/switch/props.mjs +1 -1
- package/es/tooltip/Tooltip.mjs +5 -1
- package/es/tooltip/props.mjs +1 -0
- package/es/uploader/props.mjs +1 -1
- package/es/utils/components.mjs +30 -9
- package/es/varlet.esm.js +5521 -5466
- package/highlight/web-types.en-US.json +33 -24
- package/highlight/web-types.zh-CN.json +34 -25
- package/lib/varlet.cjs.js +137 -72
- package/package.json +8 -7
- package/types/autoComplete.d.ts +2 -1
- package/types/checkbox.d.ts +2 -2
- package/types/checkboxGroup.d.ts +2 -1
- package/types/counter.d.ts +4 -4
- package/types/input.d.ts +9 -2
- package/types/radio.d.ts +2 -2
- package/types/radioGroup.d.ts +2 -1
- package/types/rate.d.ts +2 -2
- package/types/select.d.ts +9 -2
- package/types/slider.d.ts +2 -1
- package/types/switch.d.ts +2 -2
- package/types/tooltip.d.ts +1 -0
- package/types/uploader.d.ts +2 -2
- package/types/varComponent.d.ts +4 -0
- package/umd/varlet.js +7 -7
|
@@ -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": "3.
|
|
4
|
+
"version": "3.5.0-alpha.1726330414687",
|
|
5
5
|
"name": "VARLET",
|
|
6
6
|
"contributions": {
|
|
7
7
|
"html": {
|
|
@@ -404,10 +404,10 @@
|
|
|
404
404
|
},
|
|
405
405
|
{
|
|
406
406
|
"name": "rules",
|
|
407
|
-
"description": "
|
|
407
|
+
"description": "Validation rules, return `true` to indicate verification passes, other types of values will be converted into text as user prompts. [Zod validation](#/en-US/zodValidation) is supported since `3.5.0`",
|
|
408
408
|
"default": "-",
|
|
409
409
|
"value": {
|
|
410
|
-
"type": "Array<(v: string) => any>",
|
|
410
|
+
"type": "((v: string) => any) | ZodType | Array<((v: string) => any) | ZodType>",
|
|
411
411
|
"kind": "expression"
|
|
412
412
|
}
|
|
413
413
|
},
|
|
@@ -1630,10 +1630,10 @@
|
|
|
1630
1630
|
},
|
|
1631
1631
|
{
|
|
1632
1632
|
"name": "rules",
|
|
1633
|
-
"description": "
|
|
1633
|
+
"description": "Validation rules, return `true` to indicate verification passes, other types of values will be converted into text as user prompts. [Zod validation](#/en-US/zodValidation) is supported since `3.5.0`",
|
|
1634
1634
|
"default": "-",
|
|
1635
1635
|
"value": {
|
|
1636
|
-
"type": "Array<(
|
|
1636
|
+
"type": "((v: any) => any) | ZodType | Array<((v: any) => any) | ZodType>",
|
|
1637
1637
|
"kind": "expression"
|
|
1638
1638
|
}
|
|
1639
1639
|
}
|
|
@@ -1726,10 +1726,10 @@
|
|
|
1726
1726
|
},
|
|
1727
1727
|
{
|
|
1728
1728
|
"name": "rules",
|
|
1729
|
-
"description": "
|
|
1729
|
+
"description": "Validation rules, return `true` to indicate verification passes, other types of values will be converted into text as user prompts. [Zod validation](#/en-US/zodValidation) is supported since `3.5.0`",
|
|
1730
1730
|
"default": "-",
|
|
1731
1731
|
"value": {
|
|
1732
|
-
"type": "Array<(
|
|
1732
|
+
"type": "((v: any[]) => any) | ZodType | Array<((v: any[]) => any) | ZodType>",
|
|
1733
1733
|
"kind": "expression"
|
|
1734
1734
|
}
|
|
1735
1735
|
}
|
|
@@ -2173,7 +2173,7 @@
|
|
|
2173
2173
|
"description": "The value of the binding",
|
|
2174
2174
|
"default": "0",
|
|
2175
2175
|
"value": {
|
|
2176
|
-
"type": "
|
|
2176
|
+
"type": "number",
|
|
2177
2177
|
"kind": "expression"
|
|
2178
2178
|
}
|
|
2179
2179
|
},
|
|
@@ -2359,10 +2359,10 @@
|
|
|
2359
2359
|
},
|
|
2360
2360
|
{
|
|
2361
2361
|
"name": "rules",
|
|
2362
|
-
"description": "
|
|
2362
|
+
"description": "Validation rules, return `true` to indicate verification passes, other types of values will be converted into text as user prompts. [Zod validation](#/en-US/zodValidation) is supported since `3.5.0`",
|
|
2363
2363
|
"default": "-",
|
|
2364
2364
|
"value": {
|
|
2365
|
-
"type": "Array<(
|
|
2365
|
+
"type": "((v: number) => any) | ZodType | Array<((v: number) => any) | ZodType>",
|
|
2366
2366
|
"kind": "expression"
|
|
2367
2367
|
}
|
|
2368
2368
|
}
|
|
@@ -4092,10 +4092,10 @@
|
|
|
4092
4092
|
},
|
|
4093
4093
|
{
|
|
4094
4094
|
"name": "rules",
|
|
4095
|
-
"description": "
|
|
4095
|
+
"description": "Validation rules, return `true` to indicate verification passes, other types of values will be converted into text as user prompts. [Zod validation](#/en-US/zodValidation) is supported since `3.5.0`",
|
|
4096
4096
|
"default": "-",
|
|
4097
4097
|
"value": {
|
|
4098
|
-
"type": "Array<(v: string) => any>",
|
|
4098
|
+
"type": "((v: string) => any) | ZodType | Array<((v: string) => any) | ZodType>",
|
|
4099
4099
|
"kind": "expression"
|
|
4100
4100
|
}
|
|
4101
4101
|
},
|
|
@@ -5912,10 +5912,10 @@
|
|
|
5912
5912
|
},
|
|
5913
5913
|
{
|
|
5914
5914
|
"name": "rules",
|
|
5915
|
-
"description": "
|
|
5915
|
+
"description": "Validation rules, return `true` to indicate verification passes, other types of values will be converted into text as user prompts. [Zod validation](#/en-US/zodValidation) is supported since `3.5.0`",
|
|
5916
5916
|
"default": "-",
|
|
5917
5917
|
"value": {
|
|
5918
|
-
"type": "Array<(
|
|
5918
|
+
"type": "((v: any) => any) | ZodType | Array<((v: any) => any) | ZodType>",
|
|
5919
5919
|
"kind": "expression"
|
|
5920
5920
|
}
|
|
5921
5921
|
}
|
|
@@ -5995,10 +5995,10 @@
|
|
|
5995
5995
|
},
|
|
5996
5996
|
{
|
|
5997
5997
|
"name": "rules",
|
|
5998
|
-
"description": "
|
|
5998
|
+
"description": "Validation rules, return `true` to indicate verification passes, other types of values will be converted into text as user prompts. [Zod validation](#/en-US/zodValidation) is supported since `3.5.0`",
|
|
5999
5999
|
"default": "-",
|
|
6000
6000
|
"value": {
|
|
6001
|
-
"type": "Array<(
|
|
6001
|
+
"type": "(v: any) => any | ZodType | Array<(v: any) => any | ZodType>",
|
|
6002
6002
|
"kind": "expression"
|
|
6003
6003
|
}
|
|
6004
6004
|
}
|
|
@@ -6322,10 +6322,10 @@
|
|
|
6322
6322
|
},
|
|
6323
6323
|
{
|
|
6324
6324
|
"name": "rules",
|
|
6325
|
-
"description": "
|
|
6325
|
+
"description": "Validation rules, return `true` to indicate verification passes, other types of values will be converted into text as user prompts. [Zod validation](#/en-US/zodValidation) is supported since `3.5.0`",
|
|
6326
6326
|
"default": "-",
|
|
6327
6327
|
"value": {
|
|
6328
|
-
"type": "
|
|
6328
|
+
"type": "((v: any) => any) | ZodType | Array<((v: any) => any) | ZodType>",
|
|
6329
6329
|
"kind": "expression"
|
|
6330
6330
|
}
|
|
6331
6331
|
}
|
|
@@ -6639,10 +6639,10 @@
|
|
|
6639
6639
|
},
|
|
6640
6640
|
{
|
|
6641
6641
|
"name": "rules",
|
|
6642
|
-
"description": "Validation rules",
|
|
6642
|
+
"description": "Validation rules, return `true` to indicate verification passes, other types of values will be converted into text as user prompts. [Zod validation](#/en-US/zodValidation) is supported since `3.5.0`",
|
|
6643
6643
|
"default": "-",
|
|
6644
6644
|
"value": {
|
|
6645
|
-
"type": "Array<(v: number | number
|
|
6645
|
+
"type": "((v: number | [number, number]) => any) | ZodType | Array<((v: number | [number, number]) => any) | ZodType>",
|
|
6646
6646
|
"kind": "expression"
|
|
6647
6647
|
}
|
|
6648
6648
|
}
|
|
@@ -7348,10 +7348,10 @@
|
|
|
7348
7348
|
},
|
|
7349
7349
|
{
|
|
7350
7350
|
"name": "rules",
|
|
7351
|
-
"description": "Validation rules",
|
|
7351
|
+
"description": "Validation rules, return `true` to indicate verification passes, other types of values will be converted into text as user prompts. [Zod validation](#/en-US/zodValidation) is supported since `3.5.0`",
|
|
7352
7352
|
"default": "-",
|
|
7353
7353
|
"value": {
|
|
7354
|
-
"type": "Array<(
|
|
7354
|
+
"type": "((v: any) => any) | ZodType | Array<((v: any) => any) | ZodType>",
|
|
7355
7355
|
"kind": "expression"
|
|
7356
7356
|
}
|
|
7357
7357
|
},
|
|
@@ -7876,6 +7876,15 @@
|
|
|
7876
7876
|
"kind": "expression"
|
|
7877
7877
|
}
|
|
7878
7878
|
},
|
|
7879
|
+
{
|
|
7880
|
+
"name": "text-color",
|
|
7881
|
+
"description": "Tooltip text color",
|
|
7882
|
+
"default": "-",
|
|
7883
|
+
"value": {
|
|
7884
|
+
"type": "string",
|
|
7885
|
+
"kind": "expression"
|
|
7886
|
+
}
|
|
7887
|
+
},
|
|
7879
7888
|
{
|
|
7880
7889
|
"name": "type",
|
|
7881
7890
|
"description": "Tooltip type, can be set to `default` `primary` `info` `success` `warning` `danger`",
|
|
@@ -8171,10 +8180,10 @@
|
|
|
8171
8180
|
},
|
|
8172
8181
|
{
|
|
8173
8182
|
"name": "rules",
|
|
8174
|
-
"description": "
|
|
8183
|
+
"description": "Validation rules, return `true` to indicate verification passes, other types of values will be converted into text as user prompts. [Zod validation](#/en-US/zodValidation) is supported since `3.5.0`",
|
|
8175
8184
|
"default": "-",
|
|
8176
8185
|
"value": {
|
|
8177
|
-
"type": "
|
|
8186
|
+
"type": "((v: VarFile[]) => any) | ZodType | Array<((v: VarFile[]) => any) | ZodType>",
|
|
8178
8187
|
"kind": "expression"
|
|
8179
8188
|
}
|
|
8180
8189
|
}
|
|
@@ -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": "3.
|
|
4
|
+
"version": "3.5.0-alpha.1726330414687",
|
|
5
5
|
"name": "VARLET",
|
|
6
6
|
"contributions": {
|
|
7
7
|
"html": {
|
|
@@ -407,7 +407,7 @@
|
|
|
407
407
|
"description": "验证规则,返回 `true` 表示验证通过,其余的值则转换为文本作为用户提示",
|
|
408
408
|
"default": "-",
|
|
409
409
|
"value": {
|
|
410
|
-
"type": "Array<(v: string) => any>",
|
|
410
|
+
"type": "((v: string) => any) | ZodType | Array<((v: string) => any) | ZodType>",
|
|
411
411
|
"kind": "expression"
|
|
412
412
|
}
|
|
413
413
|
},
|
|
@@ -1789,10 +1789,10 @@
|
|
|
1789
1789
|
},
|
|
1790
1790
|
{
|
|
1791
1791
|
"name": "rules",
|
|
1792
|
-
"description": "验证规则,返回 `true`
|
|
1792
|
+
"description": "验证规则,返回 `true` 表示验证通过,其它类型的值将转换为文本作为用户提示。自 `3.5.0` 开始支持 [Zod 验证](#/zh-CN/zodValidation)",
|
|
1793
1793
|
"default": "-",
|
|
1794
1794
|
"value": {
|
|
1795
|
-
"type": "Array<(
|
|
1795
|
+
"type": "((v: any) => any) | ZodType | Array<((v: any) => any) | ZodType>",
|
|
1796
1796
|
"kind": "expression"
|
|
1797
1797
|
}
|
|
1798
1798
|
}
|
|
@@ -1885,10 +1885,10 @@
|
|
|
1885
1885
|
},
|
|
1886
1886
|
{
|
|
1887
1887
|
"name": "rules",
|
|
1888
|
-
"description": "验证规则,返回 `true`
|
|
1888
|
+
"description": "验证规则,返回 `true` 表示验证通过,其它类型的值将转换为文本作为用户提示。自 `3.5.0` 开始支持 [Zod 验证](#/zh-CN/zodValidation)",
|
|
1889
1889
|
"default": "-",
|
|
1890
1890
|
"value": {
|
|
1891
|
-
"type": "Array<(
|
|
1891
|
+
"type": "((v: any[]) => any) | ZodType | Array<((v: any[]) => any) | ZodType>",
|
|
1892
1892
|
"kind": "expression"
|
|
1893
1893
|
}
|
|
1894
1894
|
}
|
|
@@ -2332,7 +2332,7 @@
|
|
|
2332
2332
|
"description": "绑定的值",
|
|
2333
2333
|
"default": "0",
|
|
2334
2334
|
"value": {
|
|
2335
|
-
"type": "
|
|
2335
|
+
"type": "number",
|
|
2336
2336
|
"kind": "expression"
|
|
2337
2337
|
}
|
|
2338
2338
|
},
|
|
@@ -2518,10 +2518,10 @@
|
|
|
2518
2518
|
},
|
|
2519
2519
|
{
|
|
2520
2520
|
"name": "rules",
|
|
2521
|
-
"description": "验证规则,返回 `true`
|
|
2521
|
+
"description": "验证规则,返回 `true` 表示验证通过,其它类型的值将转换为文本作为用户提示。自 `3.5.0` 开始支持 [Zod 验证](#/zh-CN/zodValidation)",
|
|
2522
2522
|
"default": "-",
|
|
2523
2523
|
"value": {
|
|
2524
|
-
"type": "Array<(
|
|
2524
|
+
"type": "((v: number) => any) | ZodType | Array<((v: number) => any) | ZodType>",
|
|
2525
2525
|
"kind": "expression"
|
|
2526
2526
|
}
|
|
2527
2527
|
}
|
|
@@ -4251,10 +4251,10 @@
|
|
|
4251
4251
|
},
|
|
4252
4252
|
{
|
|
4253
4253
|
"name": "rules",
|
|
4254
|
-
"description": "验证规则,返回 `true`
|
|
4254
|
+
"description": "验证规则,返回 `true` 表示验证通过,其它类型的值将转换为文本作为用户提示。自 `3.5.0` 开始支持 [Zod 验证](#/zh-CN/zodValidation)",
|
|
4255
4255
|
"default": "-",
|
|
4256
4256
|
"value": {
|
|
4257
|
-
"type": "Array<(v: string) => any>",
|
|
4257
|
+
"type": "((v: string) => any) | ZodType | Array<((v: string) => any) | ZodType>",
|
|
4258
4258
|
"kind": "expression"
|
|
4259
4259
|
}
|
|
4260
4260
|
},
|
|
@@ -6071,10 +6071,10 @@
|
|
|
6071
6071
|
},
|
|
6072
6072
|
{
|
|
6073
6073
|
"name": "rules",
|
|
6074
|
-
"description": "验证规则,返回 `true`
|
|
6074
|
+
"description": "验证规则,返回 `true` 表示验证通过,其它类型的值将转换为文本作为用户提示。自 `3.5.0` 开始支持 [Zod 验证](#/zh-CN/zodValidation)",
|
|
6075
6075
|
"default": "-",
|
|
6076
6076
|
"value": {
|
|
6077
|
-
"type": "Array<(
|
|
6077
|
+
"type": "((v: any) => any) | ZodType | Array<((v: any) => any) | ZodType>",
|
|
6078
6078
|
"kind": "expression"
|
|
6079
6079
|
}
|
|
6080
6080
|
}
|
|
@@ -6154,10 +6154,10 @@
|
|
|
6154
6154
|
},
|
|
6155
6155
|
{
|
|
6156
6156
|
"name": "rules",
|
|
6157
|
-
"description": "验证规则,返回 `true`
|
|
6157
|
+
"description": "验证规则,返回 `true` 表示验证通过,其它类型的值将转换为文本作为用户提示。自 `3.5.0` 开始支持 [Zod 验证](#/zh-CN/zodValidation)",
|
|
6158
6158
|
"default": "-",
|
|
6159
6159
|
"value": {
|
|
6160
|
-
"type": "Array<(
|
|
6160
|
+
"type": "((v: any) => any) | ZodType | Array<((v: any) => any) | ZodType>",
|
|
6161
6161
|
"kind": "expression"
|
|
6162
6162
|
}
|
|
6163
6163
|
}
|
|
@@ -6342,10 +6342,10 @@
|
|
|
6342
6342
|
},
|
|
6343
6343
|
{
|
|
6344
6344
|
"name": "rules",
|
|
6345
|
-
"description": "验证规则,返回 `true`
|
|
6345
|
+
"description": "验证规则,返回 `true` 表示验证通过,其它类型的值将转换为文本作为用户提示。自 `3.5.0` 开始支持 [Zod 验证](#/zh-CN/zodValidation)",
|
|
6346
6346
|
"default": "-",
|
|
6347
6347
|
"value": {
|
|
6348
|
-
"type": "Array<(v: number) => any>",
|
|
6348
|
+
"type": "((v: number) => any) | ZodType | Array<((v: number) => any) | ZodType>",
|
|
6349
6349
|
"kind": "expression"
|
|
6350
6350
|
}
|
|
6351
6351
|
}
|
|
@@ -6653,10 +6653,10 @@
|
|
|
6653
6653
|
},
|
|
6654
6654
|
{
|
|
6655
6655
|
"name": "rules",
|
|
6656
|
-
"description": "验证规则,返回 `true`
|
|
6656
|
+
"description": "验证规则,返回 `true` 表示验证通过,其它类型的值将转换为文本作为用户提示。自 `3.5.0` 开始支持 [Zod 验证](#/zh-CN/zodValidation)",
|
|
6657
6657
|
"default": "-",
|
|
6658
6658
|
"value": {
|
|
6659
|
-
"type": "
|
|
6659
|
+
"type": "((v: any) => any) | ZodType | Array<((v: any) => any) | ZodType>",
|
|
6660
6660
|
"kind": "expression"
|
|
6661
6661
|
}
|
|
6662
6662
|
}
|
|
@@ -6970,10 +6970,10 @@
|
|
|
6970
6970
|
},
|
|
6971
6971
|
{
|
|
6972
6972
|
"name": "rules",
|
|
6973
|
-
"description": "
|
|
6973
|
+
"description": "验证规则,返回 `true` 表示验证通过,其它类型的值将转换为文本作为用户提示。自 `3.5.0` 开始支持 [Zod 验证](#/zh-CN/zodValidation)",
|
|
6974
6974
|
"default": "-",
|
|
6975
6975
|
"value": {
|
|
6976
|
-
"type": "Array<(v: number | number
|
|
6976
|
+
"type": "((v: number | [number, number]) => any) | ZodType | Array<((v: number | [number, number]) => any) | ZodType>",
|
|
6977
6977
|
"kind": "expression"
|
|
6978
6978
|
}
|
|
6979
6979
|
}
|
|
@@ -7679,10 +7679,10 @@
|
|
|
7679
7679
|
},
|
|
7680
7680
|
{
|
|
7681
7681
|
"name": "rules",
|
|
7682
|
-
"description": "
|
|
7682
|
+
"description": "验证规则,返回 `true` 表示验证通过,其它类型的值将转换为文本作为用户提示。自 `3.5.0` 开始支持 [Zod 验证](#/zh-CN/zodValidation)",
|
|
7683
7683
|
"default": "-",
|
|
7684
7684
|
"value": {
|
|
7685
|
-
"type": "Array<(
|
|
7685
|
+
"type": "((v: any) => any) | ZodType | Array<((v: any) => any) | ZodType>",
|
|
7686
7686
|
"kind": "expression"
|
|
7687
7687
|
}
|
|
7688
7688
|
},
|
|
@@ -8212,6 +8212,15 @@
|
|
|
8212
8212
|
"kind": "expression"
|
|
8213
8213
|
}
|
|
8214
8214
|
},
|
|
8215
|
+
{
|
|
8216
|
+
"name": "text-color",
|
|
8217
|
+
"description": "文字颜色",
|
|
8218
|
+
"default": "-",
|
|
8219
|
+
"value": {
|
|
8220
|
+
"type": "string",
|
|
8221
|
+
"kind": "expression"
|
|
8222
|
+
}
|
|
8223
|
+
},
|
|
8215
8224
|
{
|
|
8216
8225
|
"name": "type",
|
|
8217
8226
|
"description": "类型,可选值为 `default` `primary` `info` `success` `warning` `danger`",
|
|
@@ -8503,10 +8512,10 @@
|
|
|
8503
8512
|
},
|
|
8504
8513
|
{
|
|
8505
8514
|
"name": "rules",
|
|
8506
|
-
"description": "验证规则,返回 `true`
|
|
8515
|
+
"description": "验证规则,返回 `true` 表示验证通过,其它类型的值将转换为文本作为用户提示。自 `3.5.0` 开始支持 [Zod 验证](#/zh-CN/zodValidation)",
|
|
8507
8516
|
"default": "-",
|
|
8508
8517
|
"value": {
|
|
8509
|
-
"type": "
|
|
8518
|
+
"type": "((v: VarFile[]) => any) | ZodType | Array<((v: VarFile[]) => any) | ZodType>",
|
|
8510
8519
|
"kind": "expression"
|
|
8511
8520
|
}
|
|
8512
8521
|
}
|