@varlet/ui 3.6.5 → 3.7.0
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/count-to/CountTo.mjs +71 -0
- package/es/count-to/CountToSfc.css +0 -0
- package/es/count-to/countTo.css +1 -0
- package/es/count-to/index.mjs +12 -0
- package/es/count-to/props.mjs +30 -0
- package/es/count-to/style/index.mjs +3 -0
- package/es/index.bundle.mjs +7 -1
- package/es/index.mjs +6 -1
- package/es/snackbar/style/index.mjs +1 -1
- package/es/style.css +1 -1
- package/es/style.mjs +1 -0
- package/es/varlet.esm.js +6204 -6020
- package/highlight/web-types.en-US.json +72 -1
- package/highlight/web-types.zh-CN.json +72 -1
- package/lib/style.css +1 -1
- package/lib/varlet.cjs.js +996 -768
- package/package.json +8 -8
- package/types/countTo.d.ts +35 -0
- package/types/index.d.ts +2 -0
- package/types/styleVars.d.ts +2 -0
- package/umd/varlet.js +8 -8
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@varlet/ui",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.7.0",
|
|
4
4
|
"description": "A material like components library",
|
|
5
5
|
"main": "lib/varlet.cjs.js",
|
|
6
6
|
"module": "es/index.mjs",
|
|
@@ -48,9 +48,9 @@
|
|
|
48
48
|
"@popperjs/core": "^2.11.6",
|
|
49
49
|
"dayjs": "^1.10.4",
|
|
50
50
|
"decimal.js": "^10.2.1",
|
|
51
|
-
"@varlet/icons": "3.
|
|
52
|
-
"@varlet/shared": "3.
|
|
53
|
-
"@varlet/use": "3.
|
|
51
|
+
"@varlet/icons": "3.7.0",
|
|
52
|
+
"@varlet/shared": "3.7.0",
|
|
53
|
+
"@varlet/use": "3.7.0"
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|
|
56
56
|
"@types/node": "^18.7.18",
|
|
@@ -61,14 +61,14 @@
|
|
|
61
61
|
"jsdom": "24.1.1",
|
|
62
62
|
"live-server": "^1.2.1",
|
|
63
63
|
"shiki": "^1.21.0",
|
|
64
|
-
"typescript": "5.
|
|
64
|
+
"typescript": "5.3.3",
|
|
65
65
|
"vitest": "2.0.5",
|
|
66
66
|
"vue": "3.4.21",
|
|
67
67
|
"vue-router": "4.2.0",
|
|
68
68
|
"zod": "^3.23.8",
|
|
69
|
-
"@varlet/cli": "3.
|
|
70
|
-
"@varlet/
|
|
71
|
-
"@varlet/
|
|
69
|
+
"@varlet/cli": "3.7.0",
|
|
70
|
+
"@varlet/ui": "3.7.0",
|
|
71
|
+
"@varlet/touch-emulator": "3.7.0"
|
|
72
72
|
},
|
|
73
73
|
"scripts": {
|
|
74
74
|
"dev": "varlet-cli dev",
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { VarComponent, BasicAttributes, SetPropsDefaults, ListenerProp } from './varComponent'
|
|
2
|
+
|
|
3
|
+
export declare const countToProps: Record<keyof CountToProps, any>
|
|
4
|
+
|
|
5
|
+
export interface CountToData {
|
|
6
|
+
value: number
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
export interface CountToProps extends BasicAttributes {
|
|
10
|
+
from?: string | number
|
|
11
|
+
to?: string | number
|
|
12
|
+
duration?: string | number
|
|
13
|
+
precision?: string | number
|
|
14
|
+
autoStart?: boolean
|
|
15
|
+
timingFunction?: (v: number) => number
|
|
16
|
+
onEnd?: ListenerProp<() => void>
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export class CountTo extends VarComponent {
|
|
20
|
+
static setPropsDefaults: SetPropsDefaults<CountToProps>
|
|
21
|
+
|
|
22
|
+
$props: CountToProps
|
|
23
|
+
|
|
24
|
+
$slots: {
|
|
25
|
+
default(data: CountToData): VNode[]
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
start(): void
|
|
29
|
+
|
|
30
|
+
pause(): void
|
|
31
|
+
|
|
32
|
+
reset(): void
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export class _CountToComponent extends CountTo {}
|
package/types/index.d.ts
CHANGED
|
@@ -28,6 +28,7 @@ export * from './collapse'
|
|
|
28
28
|
export * from './collapseItem'
|
|
29
29
|
export * from './collapseTransition'
|
|
30
30
|
export * from './context'
|
|
31
|
+
export * from './countTo'
|
|
31
32
|
export * from './countdown'
|
|
32
33
|
export * from './counter'
|
|
33
34
|
export * from './datePicker'
|
|
@@ -125,6 +126,7 @@ declare module 'vue' {
|
|
|
125
126
|
VarCollapseItem: typeof import('@varlet/ui')['_CollapseItemComponent']
|
|
126
127
|
VarCollapseTransition: typeof import('@varlet/ui')['_CollapseTransitionComponent']
|
|
127
128
|
VarContext: typeof import('@varlet/ui')['_ContextComponent']
|
|
129
|
+
VarCountTo: typeof import('@varlet/ui')['_CountToComponent']
|
|
128
130
|
VarCountdown: typeof import('@varlet/ui')['_CountdownComponent']
|
|
129
131
|
VarCounter: typeof import('@varlet/ui')['_CounterComponent']
|
|
130
132
|
VarDatePicker: typeof import('@varlet/ui')['_DatePickerComponent']
|
package/types/styleVars.d.ts
CHANGED
|
@@ -263,6 +263,8 @@ interface BaseStyleVars {
|
|
|
263
263
|
'--collapse-item-margin-top'?: string
|
|
264
264
|
'--collapse-disable-color'?: string
|
|
265
265
|
'--collapse-border-top'?: string
|
|
266
|
+
'--count-to-text-color'?: string
|
|
267
|
+
'--count-to-text-font-size'?: string
|
|
266
268
|
'--countdown-text-color'?: string
|
|
267
269
|
'--countdown-text-font-size'?: string
|
|
268
270
|
'--counter-padding'?: string
|