@varlet/ui 2.14.2 → 2.14.3-alpha.1692871861882
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/checkbox/Checkbox.mjs +23 -19
- package/es/checkbox/props.mjs +6 -1
- package/es/drag/Drag.mjs +20 -27
- package/es/image-preview/ImagePreview.mjs +49 -66
- package/es/index.bundle.mjs +1 -1
- package/es/index.mjs +1 -1
- package/es/option/Option.mjs +18 -4
- package/es/radio/Radio.mjs +5 -11
- package/es/swipe/Swipe.mjs +51 -65
- package/es/varlet.esm.js +6421 -6383
- package/highlight/web-types.en-US.json +17 -4
- package/highlight/web-types.zh-CN.json +15 -2
- package/lib/varlet.cjs.js +250 -184
- package/package.json +6 -6
- package/types/checkbox.d.ts +3 -0
- package/umd/varlet.js +4 -4
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@varlet/ui",
|
|
3
|
-
"version": "2.14.
|
|
3
|
+
"version": "2.14.3-alpha.1692871861882",
|
|
4
4
|
"description": "A material like components library",
|
|
5
5
|
"main": "lib/varlet.cjs.js",
|
|
6
6
|
"module": "es/index.mjs",
|
|
@@ -46,9 +46,9 @@
|
|
|
46
46
|
"@popperjs/core": "^2.11.6",
|
|
47
47
|
"dayjs": "^1.10.4",
|
|
48
48
|
"decimal.js": "^10.2.1",
|
|
49
|
-
"@varlet/
|
|
50
|
-
"@varlet/
|
|
51
|
-
"@varlet/
|
|
49
|
+
"@varlet/icons": "2.14.3-alpha.1692871861882",
|
|
50
|
+
"@varlet/shared": "2.14.3-alpha.1692871861882",
|
|
51
|
+
"@varlet/use": "2.14.3-alpha.1692871861882"
|
|
52
52
|
},
|
|
53
53
|
"devDependencies": {
|
|
54
54
|
"@vue/runtime-core": "3.3.4",
|
|
@@ -63,8 +63,8 @@
|
|
|
63
63
|
"typescript": "^5.1.5",
|
|
64
64
|
"vue": "3.3.4",
|
|
65
65
|
"vue-router": "4.2.0",
|
|
66
|
-
"@varlet/cli": "2.14.
|
|
67
|
-
"@varlet/touch-emulator": "2.14.
|
|
66
|
+
"@varlet/cli": "2.14.3-alpha.1692871861882",
|
|
67
|
+
"@varlet/touch-emulator": "2.14.3-alpha.1692871861882"
|
|
68
68
|
},
|
|
69
69
|
"browserslist": [
|
|
70
70
|
"Chrome >= 54",
|
package/types/checkbox.d.ts
CHANGED
|
@@ -13,6 +13,7 @@ export interface CheckboxProps extends BasicAttributes {
|
|
|
13
13
|
uncheckedColor?: string
|
|
14
14
|
disabled?: boolean
|
|
15
15
|
readonly?: boolean
|
|
16
|
+
indeterminate?: boolean
|
|
16
17
|
iconSize?: string | number
|
|
17
18
|
ripple?: boolean
|
|
18
19
|
validateTrigger?: Array<CheckboxValidateTriggers>
|
|
@@ -20,6 +21,7 @@ export interface CheckboxProps extends BasicAttributes {
|
|
|
20
21
|
onClick?: ListenerProp<(e: Event) => void>
|
|
21
22
|
onChange?: ListenerProp<(value: any) => void>
|
|
22
23
|
'onUpdate:modelValue'?: ListenerProp<(value: any) => void>
|
|
24
|
+
'onUpdate:indeterminate'?: ListenerProp<(value: boolean) => void>
|
|
23
25
|
}
|
|
24
26
|
|
|
25
27
|
export class Checkbox extends VarComponent {
|
|
@@ -29,6 +31,7 @@ export class Checkbox extends VarComponent {
|
|
|
29
31
|
default(): VNode[]
|
|
30
32
|
'checked-icon'(): VNode[]
|
|
31
33
|
'unchecked-icon'(): VNode[]
|
|
34
|
+
'indeterminate-icon'(): VNode[]
|
|
32
35
|
}
|
|
33
36
|
|
|
34
37
|
validate(): Promise<boolean>
|