@varlet/ui 2.9.0 → 2.9.1-alpha.1678874318012
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/button/Button.mjs +17 -14
- package/es/button/button.css +1 -1
- package/es/button/style/index.mjs +1 -0
- package/es/counter/Counter.mjs +36 -22
- package/es/counter/counter.css +1 -1
- package/es/counter/style/index.mjs +2 -0
- package/es/hover-overlay/HoverOverlay.mjs +32 -0
- package/es/hover-overlay/HoverOverlaySfc.css +0 -0
- package/es/hover-overlay/hoverOverlay.css +1 -0
- package/es/hover-overlay/index.mjs +21 -0
- package/es/hover-overlay/props.mjs +6 -0
- package/es/hover-overlay/style/index.mjs +2 -0
- package/es/image-preview/index.mjs +32 -5
- package/es/index.bundle.mjs +7 -1
- package/es/index.mjs +6 -1
- package/es/input/Input.mjs +1 -3
- package/es/slider/Slider.mjs +54 -12
- package/es/slider/slider.css +1 -1
- package/es/slider/style/index.mjs +1 -0
- package/es/snackbar/style/index.mjs +1 -1
- package/es/style.css +1 -1
- package/es/style.mjs +1 -0
- package/es/switch/Switch.mjs +29 -6
- package/es/switch/style/index.mjs +1 -0
- package/es/varlet.esm.js +5860 -5736
- package/highlight/web-types.en-US.json +1 -1
- package/highlight/web-types.zh-CN.json +1 -1
- package/lib/style.css +1 -1
- package/lib/varlet.cjs.js +399 -240
- package/package.json +6 -6
- package/types/hoverOverlay.d.ts +13 -0
- package/types/imagePreview.d.ts +5 -1
- package/types/index.d.ts +2 -0
- package/umd/varlet.js +5 -5
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@varlet/ui",
|
|
3
|
-
"version": "2.9.
|
|
3
|
+
"version": "2.9.1-alpha.1678874318012",
|
|
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/icons": "2.9.
|
|
50
|
-
"@varlet/
|
|
51
|
-
"@varlet/
|
|
49
|
+
"@varlet/icons": "2.9.1-alpha.1678874318012",
|
|
50
|
+
"@varlet/shared": "2.9.1-alpha.1678874318012",
|
|
51
|
+
"@varlet/use": "2.9.1-alpha.1678874318012"
|
|
52
52
|
},
|
|
53
53
|
"devDependencies": {
|
|
54
54
|
"@types/jest": "^26.0.15",
|
|
@@ -63,8 +63,8 @@
|
|
|
63
63
|
"typescript": "^4.4.4",
|
|
64
64
|
"vue": "3.2.25",
|
|
65
65
|
"vue-router": "4.0.12",
|
|
66
|
-
"@varlet/cli": "2.9.
|
|
67
|
-
"@varlet/touch-emulator": "2.9.
|
|
66
|
+
"@varlet/cli": "2.9.1-alpha.1678874318012",
|
|
67
|
+
"@varlet/touch-emulator": "2.9.1-alpha.1678874318012"
|
|
68
68
|
},
|
|
69
69
|
"browserslist": [
|
|
70
70
|
"Chrome >= 54",
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { VarComponent, BasicAttributes } from './varComponent'
|
|
2
|
+
|
|
3
|
+
export declare const hoverOverlayProps: Record<string, any>
|
|
4
|
+
|
|
5
|
+
export interface HoverOverlayProps extends BasicAttributes {
|
|
6
|
+
hovering?: boolean
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
export class HoverOverlay extends VarComponent {
|
|
10
|
+
$props: HoverOverlayProps
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export class _HoverOverlayComponent extends HoverOverlay {}
|
package/types/imagePreview.d.ts
CHANGED
|
@@ -21,7 +21,6 @@ export interface ImagePreviewProps extends BasicAttributes {
|
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
export interface ImagePreviewOptions {
|
|
24
|
-
show?: boolean
|
|
25
24
|
current?: string
|
|
26
25
|
images?: string[]
|
|
27
26
|
zoom?: string | number
|
|
@@ -47,8 +46,13 @@ export class ImagePreviewComponent extends VarComponent {
|
|
|
47
46
|
|
|
48
47
|
export interface IImagePreview {
|
|
49
48
|
(options: string | string[] | ImagePreviewOptions): void
|
|
49
|
+
|
|
50
50
|
Component: typeof ImagePreviewComponent
|
|
51
51
|
|
|
52
|
+
setDefaultOptions(options: ImagePreviewOptions): void
|
|
53
|
+
|
|
54
|
+
resetDefaultOptions(): void
|
|
55
|
+
|
|
52
56
|
close(): void
|
|
53
57
|
|
|
54
58
|
install(app: App): void
|
package/types/index.d.ts
CHANGED
|
@@ -33,6 +33,7 @@ export * from './fab'
|
|
|
33
33
|
export * from './form'
|
|
34
34
|
export * from './formDetails'
|
|
35
35
|
export * from './hover'
|
|
36
|
+
export * from './hoverOverlay'
|
|
36
37
|
export * from './icon'
|
|
37
38
|
export * from './image'
|
|
38
39
|
export * from './imagePreview'
|
|
@@ -116,6 +117,7 @@ declare module 'vue' {
|
|
|
116
117
|
VarForm: typeof import('@varlet/ui')['_FormComponent']
|
|
117
118
|
VarFormDetails: typeof import('@varlet/ui')['_FormDetailsComponent']
|
|
118
119
|
VarHover: typeof import('@varlet/ui')['_HoverComponent']
|
|
120
|
+
VarHoverOverlay: typeof import('@varlet/ui')['_HoverOverlayComponent']
|
|
119
121
|
VarIcon: typeof import('@varlet/ui')['_IconComponent']
|
|
120
122
|
VarImage: typeof import('@varlet/ui')['_ImageComponent']
|
|
121
123
|
VarImagePreview: typeof import('@varlet/ui')['_ImagePreviewComponent']
|