@varlet/ui 2.21.0 → 2.22.0-alpha.1705845515578
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/index-bar/IndexBar.mjs +10 -2
- package/es/index.bundle.mjs +1 -1
- package/es/index.mjs +1 -1
- package/es/locale/fa-IR.d.ts +5 -0
- package/es/locale/fa-IR.mjs +108 -0
- package/es/locale/index.mjs +2 -0
- package/es/picker/Picker.mjs +27 -34
- package/es/popup/Popup.mjs +1 -1
- package/es/popup/popup.css +1 -1
- package/es/snackbar/Snackbar.mjs +21 -18
- package/es/snackbar/core.mjs +18 -16
- package/es/snackbar/props.mjs +1 -3
- package/es/snackbar/snackbar.css +1 -1
- package/es/snackbar/style/index.mjs +1 -2
- package/es/style.css +1 -1
- package/es/switch/Switch.mjs +18 -6
- package/es/switch/props.mjs +6 -0
- package/es/varlet.esm.js +4241 -4112
- package/highlight/web-types.en-US.json +39 -8
- package/highlight/web-types.zh-CN.json +40 -9
- package/lib/style.css +1 -1
- package/lib/varlet.cjs.js +299 -171
- package/package.json +7 -7
- package/types/form.d.ts +1 -1
- package/types/indexBar.d.ts +1 -0
- package/types/rate.d.ts +1 -1
- package/types/styleVars.d.ts +2 -0
- package/types/switch.d.ts +7 -2
- package/umd/varlet.js +5 -5
|
@@ -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.
|
|
4
|
+
"version": "2.22.0-alpha.1705845515578",
|
|
5
5
|
"name": "VARLET",
|
|
6
6
|
"contributions": {
|
|
7
7
|
"html": {
|
|
@@ -1268,9 +1268,9 @@
|
|
|
1268
1268
|
{
|
|
1269
1269
|
"name": "icon-size",
|
|
1270
1270
|
"description": "Icon size",
|
|
1271
|
-
"default": "
|
|
1271
|
+
"default": "-",
|
|
1272
1272
|
"value": {
|
|
1273
|
-
"type": "string",
|
|
1273
|
+
"type": "string | number",
|
|
1274
1274
|
"kind": "expression"
|
|
1275
1275
|
}
|
|
1276
1276
|
},
|
|
@@ -1382,7 +1382,7 @@
|
|
|
1382
1382
|
{
|
|
1383
1383
|
"name": "rules",
|
|
1384
1384
|
"description": "The validation rules, return `true` to indicate that the validation passed. The remaining values are converted to text as user prompts",
|
|
1385
|
-
"default": "
|
|
1385
|
+
"default": "-",
|
|
1386
1386
|
"value": {
|
|
1387
1387
|
"type": "Array<(value: any[]) => any>",
|
|
1388
1388
|
"kind": "expression"
|
|
@@ -1844,7 +1844,7 @@
|
|
|
1844
1844
|
{
|
|
1845
1845
|
"name": "step",
|
|
1846
1846
|
"description": "Step size",
|
|
1847
|
-
"default": "
|
|
1847
|
+
"default": "1",
|
|
1848
1848
|
"value": {
|
|
1849
1849
|
"type": "string | number",
|
|
1850
1850
|
"kind": "expression"
|
|
@@ -1889,9 +1889,9 @@
|
|
|
1889
1889
|
{
|
|
1890
1890
|
"name": "button-size",
|
|
1891
1891
|
"description": "Button size",
|
|
1892
|
-
"default": "
|
|
1892
|
+
"default": "-",
|
|
1893
1893
|
"value": {
|
|
1894
|
-
"type": "string",
|
|
1894
|
+
"type": "string | number",
|
|
1895
1895
|
"kind": "expression"
|
|
1896
1896
|
}
|
|
1897
1897
|
},
|
|
@@ -1985,6 +1985,15 @@
|
|
|
1985
1985
|
"kind": "expression"
|
|
1986
1986
|
}
|
|
1987
1987
|
},
|
|
1988
|
+
{
|
|
1989
|
+
"name": "lazy-change",
|
|
1990
|
+
"description": "Whether to prevent the component itself from updating the bound value",
|
|
1991
|
+
"default": "false",
|
|
1992
|
+
"value": {
|
|
1993
|
+
"type": "boolean",
|
|
1994
|
+
"kind": "expression"
|
|
1995
|
+
}
|
|
1996
|
+
},
|
|
1988
1997
|
{
|
|
1989
1998
|
"name": "validate-trigger",
|
|
1990
1999
|
"description": "Timing to trigger validation,Optional value is `onInputChange` `onLazyChange` `onIncrement` `onDecrement`",
|
|
@@ -6681,7 +6690,25 @@
|
|
|
6681
6690
|
"description": "Validation rules",
|
|
6682
6691
|
"default": "-",
|
|
6683
6692
|
"value": {
|
|
6684
|
-
"type": "
|
|
6693
|
+
"type": "Array<(value: any) => any>",
|
|
6694
|
+
"kind": "expression"
|
|
6695
|
+
}
|
|
6696
|
+
},
|
|
6697
|
+
{
|
|
6698
|
+
"name": "lazy-change",
|
|
6699
|
+
"description": "Whether to allow the `before-change` event to be triggered",
|
|
6700
|
+
"default": "false",
|
|
6701
|
+
"value": {
|
|
6702
|
+
"type": "boolean",
|
|
6703
|
+
"kind": "expression"
|
|
6704
|
+
}
|
|
6705
|
+
},
|
|
6706
|
+
{
|
|
6707
|
+
"name": "validate-trigger",
|
|
6708
|
+
"description": "Timing to trigger verification, optional values are `onChange` `onLazyChange`",
|
|
6709
|
+
"default": "['onChange', 'onLazyChange']",
|
|
6710
|
+
"value": {
|
|
6711
|
+
"type": "ValidateTriggers[]",
|
|
6685
6712
|
"kind": "expression"
|
|
6686
6713
|
}
|
|
6687
6714
|
}
|
|
@@ -6694,6 +6721,10 @@
|
|
|
6694
6721
|
{
|
|
6695
6722
|
"name": "change",
|
|
6696
6723
|
"description": "Emitted when check status changed"
|
|
6724
|
+
},
|
|
6725
|
+
{
|
|
6726
|
+
"name": "before-change",
|
|
6727
|
+
"description": "Triggered before a change event (`lazy-change` mode only)"
|
|
6697
6728
|
}
|
|
6698
6729
|
],
|
|
6699
6730
|
"slots": []
|
|
@@ -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.
|
|
4
|
+
"version": "2.22.0-alpha.1705845515578",
|
|
5
5
|
"name": "VARLET",
|
|
6
6
|
"contributions": {
|
|
7
7
|
"html": {
|
|
@@ -1541,7 +1541,7 @@
|
|
|
1541
1541
|
{
|
|
1542
1542
|
"name": "rules",
|
|
1543
1543
|
"description": "验证规则,返回 `true` 表示验证通过,其余的值则转换为文本作为用户提示",
|
|
1544
|
-
"default": "
|
|
1544
|
+
"default": "-",
|
|
1545
1545
|
"value": {
|
|
1546
1546
|
"type": "Array<(value: any[]) => any>",
|
|
1547
1547
|
"kind": "expression"
|
|
@@ -2003,7 +2003,7 @@
|
|
|
2003
2003
|
{
|
|
2004
2004
|
"name": "step",
|
|
2005
2005
|
"description": "步长",
|
|
2006
|
-
"default": "
|
|
2006
|
+
"default": "1",
|
|
2007
2007
|
"value": {
|
|
2008
2008
|
"type": "string | number",
|
|
2009
2009
|
"kind": "expression"
|
|
@@ -2048,9 +2048,9 @@
|
|
|
2048
2048
|
{
|
|
2049
2049
|
"name": "button-size",
|
|
2050
2050
|
"description": "按钮大小",
|
|
2051
|
-
"default": "
|
|
2051
|
+
"default": "-",
|
|
2052
2052
|
"value": {
|
|
2053
|
-
"type": "string",
|
|
2053
|
+
"type": "string | number",
|
|
2054
2054
|
"kind": "expression"
|
|
2055
2055
|
}
|
|
2056
2056
|
},
|
|
@@ -2144,6 +2144,15 @@
|
|
|
2144
2144
|
"kind": "expression"
|
|
2145
2145
|
}
|
|
2146
2146
|
},
|
|
2147
|
+
{
|
|
2148
|
+
"name": "lazy-change",
|
|
2149
|
+
"description": "是否阻止组件本身的绑定值更新操作",
|
|
2150
|
+
"default": "false",
|
|
2151
|
+
"value": {
|
|
2152
|
+
"type": "boolean",
|
|
2153
|
+
"kind": "expression"
|
|
2154
|
+
}
|
|
2155
|
+
},
|
|
2147
2156
|
{
|
|
2148
2157
|
"name": "validate-trigger",
|
|
2149
2158
|
"description": "触发验证的时机,可选值为 `onInputChange` `onLazyChange` `onIncrement` `onDecrement`",
|
|
@@ -5447,9 +5456,9 @@
|
|
|
5447
5456
|
{
|
|
5448
5457
|
"name": "icon-size",
|
|
5449
5458
|
"description": "图标尺寸",
|
|
5450
|
-
"default": "
|
|
5459
|
+
"default": "-",
|
|
5451
5460
|
"value": {
|
|
5452
|
-
"type": "string",
|
|
5461
|
+
"type": "string | number",
|
|
5453
5462
|
"kind": "expression"
|
|
5454
5463
|
}
|
|
5455
5464
|
},
|
|
@@ -5729,7 +5738,7 @@
|
|
|
5729
5738
|
"description": "验证规则,返回 `true` 表示验证通过,其余的值则转换为文本作为用户提示",
|
|
5730
5739
|
"default": "-",
|
|
5731
5740
|
"value": {
|
|
5732
|
-
"type": "Array<(v:
|
|
5741
|
+
"type": "Array<(v: number) => any>",
|
|
5733
5742
|
"kind": "expression"
|
|
5734
5743
|
}
|
|
5735
5744
|
}
|
|
@@ -7021,7 +7030,25 @@
|
|
|
7021
7030
|
"description": "校验规则",
|
|
7022
7031
|
"default": "-",
|
|
7023
7032
|
"value": {
|
|
7024
|
-
"type": "
|
|
7033
|
+
"type": "Array<(value: any) => any>",
|
|
7034
|
+
"kind": "expression"
|
|
7035
|
+
}
|
|
7036
|
+
},
|
|
7037
|
+
{
|
|
7038
|
+
"name": "lazy-change",
|
|
7039
|
+
"description": "是否允许触发 `before-change` 事件",
|
|
7040
|
+
"default": "false",
|
|
7041
|
+
"value": {
|
|
7042
|
+
"type": "boolean",
|
|
7043
|
+
"kind": "expression"
|
|
7044
|
+
}
|
|
7045
|
+
},
|
|
7046
|
+
{
|
|
7047
|
+
"name": "validate-trigger",
|
|
7048
|
+
"description": "触发验证的时机,可选值为 `onChange` `onLazyChange`",
|
|
7049
|
+
"default": "['onChange', 'onLazyChange']",
|
|
7050
|
+
"value": {
|
|
7051
|
+
"type": "ValidateTriggers[]",
|
|
7025
7052
|
"kind": "expression"
|
|
7026
7053
|
}
|
|
7027
7054
|
}
|
|
@@ -7034,6 +7061,10 @@
|
|
|
7034
7061
|
{
|
|
7035
7062
|
"name": "change",
|
|
7036
7063
|
"description": "开关状态切换时触发"
|
|
7064
|
+
},
|
|
7065
|
+
{
|
|
7066
|
+
"name": "before-change",
|
|
7067
|
+
"description": "变更之前(仅限 `lazy-change` 模式)触发"
|
|
7037
7068
|
}
|
|
7038
7069
|
],
|
|
7039
7070
|
"slots": []
|