@varlet/ui 2.19.1 → 2.19.2-alpha.1700638874586
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/badge/badge.css +1 -1
- package/es/index-bar/IndexBar.mjs +1 -4
- package/es/index.bundle.mjs +1 -1
- package/es/index.mjs +1 -1
- package/es/style.css +1 -1
- package/es/tab/tab.css +1 -1
- package/es/varlet.esm.js +1360 -1362
- package/highlight/web-types.en-US.json +7586 -0
- package/highlight/web-types.zh-CN.json +7922 -0
- package/lib/style.css +1 -1
- package/lib/varlet.cjs.js +2 -4
- package/package.json +7 -7
- package/types/index.d.ts +2 -0
- package/types/styleProvider.d.ts +2 -1
- package/types/styleVars.d.ts +1376 -0
- package/umd/varlet.js +6 -6
package/lib/varlet.cjs.js
CHANGED
|
@@ -15774,11 +15774,9 @@ const __sfc__$F = vue.defineComponent({
|
|
|
15774
15774
|
}
|
|
15775
15775
|
}
|
|
15776
15776
|
function getOffsetTop() {
|
|
15777
|
-
if (isWindow(scroller))
|
|
15778
|
-
return 0;
|
|
15779
15777
|
const { top: parentTop } = getRect(scroller);
|
|
15780
|
-
const { scrollTop } = scroller;
|
|
15781
15778
|
const { top: targetTop } = getRect(barEl.value);
|
|
15779
|
+
const scrollTop = getScrollTop(scroller);
|
|
15782
15780
|
return scrollTop - parentTop + targetTop;
|
|
15783
15781
|
}
|
|
15784
15782
|
function handleScroll() {
|
|
@@ -25040,7 +25038,7 @@ const uploader = "";
|
|
|
25040
25038
|
const UploaderSfc = "";
|
|
25041
25039
|
const watermark = "";
|
|
25042
25040
|
const WatermarkSfc = "";
|
|
25043
|
-
const version = "2.19.
|
|
25041
|
+
const version = "2.19.2-alpha.1700638874586";
|
|
25044
25042
|
function install(app) {
|
|
25045
25043
|
stdin_default$3k.install && app.use(stdin_default$3k);
|
|
25046
25044
|
stdin_default$3i.install && app.use(stdin_default$3i);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@varlet/ui",
|
|
3
|
-
"version": "2.19.
|
|
3
|
+
"version": "2.19.2-alpha.1700638874586",
|
|
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": "2.19.
|
|
52
|
-
"@varlet/shared": "2.19.
|
|
53
|
-
"@varlet/use": "2.19.
|
|
51
|
+
"@varlet/icons": "2.19.2-alpha.1700638874586",
|
|
52
|
+
"@varlet/shared": "2.19.2-alpha.1700638874586",
|
|
53
|
+
"@varlet/use": "2.19.2-alpha.1700638874586"
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|
|
56
56
|
"@vue/runtime-core": "3.3.4",
|
|
@@ -66,9 +66,9 @@
|
|
|
66
66
|
"typescript": "^5.1.5",
|
|
67
67
|
"vue": "3.3.4",
|
|
68
68
|
"vue-router": "4.2.0",
|
|
69
|
-
"@varlet/ui": "2.19.
|
|
70
|
-
"@varlet/cli": "2.19.
|
|
71
|
-
"@varlet/touch-emulator": "2.19.
|
|
69
|
+
"@varlet/ui": "2.19.2-alpha.1700638874586",
|
|
70
|
+
"@varlet/cli": "2.19.2-alpha.1700638874586",
|
|
71
|
+
"@varlet/touch-emulator": "2.19.2-alpha.1700638874586"
|
|
72
72
|
},
|
|
73
73
|
"scripts": {
|
|
74
74
|
"dev": "varlet-cli dev",
|
package/types/index.d.ts
CHANGED
|
@@ -75,6 +75,7 @@ export * from './step'
|
|
|
75
75
|
export * from './steps'
|
|
76
76
|
export * from './sticky'
|
|
77
77
|
export * from './styleProvider'
|
|
78
|
+
export * from './styleVars'
|
|
78
79
|
export * from './swipe'
|
|
79
80
|
export * from './swipeItem'
|
|
80
81
|
export * from './switch'
|
|
@@ -162,6 +163,7 @@ declare module 'vue' {
|
|
|
162
163
|
VarSteps: typeof import('@varlet/ui')['_StepsComponent']
|
|
163
164
|
VarSticky: typeof import('@varlet/ui')['_StickyComponent']
|
|
164
165
|
VarStyleProvider: typeof import('@varlet/ui')['_StyleProviderComponent']
|
|
166
|
+
VarStyleVars: typeof import('@varlet/ui')['_StyleVarsComponent']
|
|
165
167
|
VarSwipe: typeof import('@varlet/ui')['_SwipeComponent']
|
|
166
168
|
VarSwipeItem: typeof import('@varlet/ui')['_SwipeItemComponent']
|
|
167
169
|
VarSwitch: typeof import('@varlet/ui')['_SwitchComponent']
|
package/types/styleProvider.d.ts
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { VarComponent, BasicAttributes, SetPropsDefaults } from './varComponent'
|
|
2
2
|
import { App, VNode } from 'vue'
|
|
3
|
+
import { StyleVars as ExtractedStyleVars } from './styleVars'
|
|
3
4
|
|
|
4
5
|
export declare const styleProviderProps: Record<keyof StyleProviderProps, any>
|
|
5
6
|
|
|
6
|
-
export type StyleVars =
|
|
7
|
+
export type StyleVars = ExtractedStyleVars
|
|
7
8
|
|
|
8
9
|
export interface StyleProviderProps extends BasicAttributes {
|
|
9
10
|
styleVars?: StyleVars
|