@varlet/ui 3.20.2 → 3.20.3
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.bundle.mjs +1 -1
- package/es/index.mjs +1 -1
- package/es/themes/dark/uploader.mjs +3 -0
- package/es/themes/md3-dark/uploader.mjs +3 -0
- package/es/themes/md3-light/uploader.mjs +3 -0
- package/es/uploader/Uploader.mjs +13 -2
- package/es/uploader/props.mjs +4 -0
- package/es/uploader/uploader.css +1 -1
- package/es/varlet.css +1 -1
- package/es/varlet.esm.js +796 -783
- package/highlight/web-types.en-US.json +11 -2
- package/highlight/web-types.zh-CN.json +11 -2
- package/lib/varlet.cjs.js +16 -3
- package/lib/varlet.css +1 -1
- package/package.json +7 -7
- package/types/styleVars.d.ts +3 -0
- package/types/uploader.d.ts +3 -0
- package/umd/varlet.js +3 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@varlet/ui",
|
|
3
|
-
"version": "3.20.
|
|
3
|
+
"version": "3.20.3",
|
|
4
4
|
"description": "A Vue3 component library based on Material Design 2 and 3, supporting mobile and desktop.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Vue3",
|
|
@@ -44,9 +44,9 @@
|
|
|
44
44
|
"@popperjs/core": "^2.11.6",
|
|
45
45
|
"dayjs": "^1.10.4",
|
|
46
46
|
"decimal.js": "^10.2.1",
|
|
47
|
-
"@varlet/icons": "3.20.
|
|
48
|
-
"@varlet/
|
|
49
|
-
"@varlet/
|
|
47
|
+
"@varlet/icons": "3.20.3",
|
|
48
|
+
"@varlet/shared": "3.20.3",
|
|
49
|
+
"@varlet/use": "3.20.3"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
52
|
"@types/node": "^20.19.0",
|
|
@@ -62,9 +62,9 @@
|
|
|
62
62
|
"vue": "3.5.21",
|
|
63
63
|
"vue-router": "4.5.1",
|
|
64
64
|
"zod": "^3.23.8",
|
|
65
|
-
"@varlet/cli": "3.20.
|
|
66
|
-
"@varlet/
|
|
67
|
-
"@varlet/
|
|
65
|
+
"@varlet/cli": "3.20.3",
|
|
66
|
+
"@varlet/touch-emulator": "3.20.3",
|
|
67
|
+
"@varlet/ui": "3.20.3"
|
|
68
68
|
},
|
|
69
69
|
"peerDependencies": {
|
|
70
70
|
"vue": "^3.2.0"
|
package/types/styleVars.d.ts
CHANGED
|
@@ -1060,6 +1060,9 @@ interface BaseStyleVars {
|
|
|
1060
1060
|
'--uploader-file-close-icon-color'?: string
|
|
1061
1061
|
'--uploader-file-cover-fit'?: string
|
|
1062
1062
|
'--uploader-file-cover-background'?: string
|
|
1063
|
+
'--uploader-outlined-background'?: string
|
|
1064
|
+
'--uploader-filled-background'?: string
|
|
1065
|
+
'--uploader-outline-color'?: string
|
|
1063
1066
|
'--uploader-preview-video-width'?: string
|
|
1064
1067
|
'--uploader-preview-video-height'?: string
|
|
1065
1068
|
'--uploader-file-indicator-height'?: string
|
package/types/uploader.d.ts
CHANGED
|
@@ -20,6 +20,8 @@ export interface VarFile {
|
|
|
20
20
|
|
|
21
21
|
export type UploaderResolveType = 'default' | 'file' | 'data-url'
|
|
22
22
|
|
|
23
|
+
export type UploaderVariant = 'standard' | 'outlined' | 'filled'
|
|
24
|
+
|
|
23
25
|
export type UploaderValidateTrigger = 'onChange' | 'onRemove'
|
|
24
26
|
|
|
25
27
|
export type UploaderVarFileUtils = {
|
|
@@ -38,6 +40,7 @@ export interface UploaderProps extends BasicAttributes {
|
|
|
38
40
|
readonly?: boolean
|
|
39
41
|
disabled?: boolean
|
|
40
42
|
elevation?: boolean | string | number
|
|
43
|
+
variant?: UploaderVariant
|
|
41
44
|
removable?: boolean
|
|
42
45
|
maxlength?: string | number
|
|
43
46
|
maxsize?: string | number
|