@vant/compat
Advanced tools
Comparing version 1.0.0 to 1.0.1-beta.0
@@ -58,3 +58,3 @@ import type { App } from 'vue'; | ||
closeOnClickOverlay: BooleanConstructor; | ||
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("keydown" | "update:show" | "cancel" | "confirm")[], "keydown" | "update:show" | "cancel" | "confirm", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{ | ||
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("cancel" | "keydown" | "update:show" | "confirm")[], "cancel" | "keydown" | "update:show" | "confirm", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{ | ||
show: BooleanConstructor; | ||
@@ -132,3 +132,3 @@ zIndex: (NumberConstructor | StringConstructor)[]; | ||
showConfirmButton: boolean; | ||
}>>; | ||
}, {}>>; | ||
alert: any; | ||
@@ -135,0 +135,0 @@ config: (options: import("vant").DialogOptions) => Promise<unknown>; |
@@ -57,3 +57,4 @@ import type { App } from 'vue'; | ||
}; | ||
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:show" | "change" | "close" | "closed" | "scale")[], "update:show" | "change" | "close" | "closed" | "scale", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{ | ||
teleport: import("vue").PropType<string | import("vue").RendererElement | null | undefined>; | ||
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:show" | "change" | "close" | "closed" | "scale" | "longPress")[], "update:show" | "change" | "close" | "closed" | "scale" | "longPress", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{ | ||
show: BooleanConstructor; | ||
@@ -111,2 +112,3 @@ loop: { | ||
}; | ||
teleport: import("vue").PropType<string | import("vue").RendererElement | null | undefined>; | ||
}>> & { | ||
@@ -118,2 +120,3 @@ onChange?: ((...args: any[]) => any) | undefined; | ||
onScale?: ((...args: any[]) => any) | undefined; | ||
onLongPress?: ((...args: any[]) => any) | undefined; | ||
}, { | ||
@@ -134,4 +137,4 @@ loop: boolean; | ||
showIndex: boolean; | ||
}>>; | ||
}, {}>>; | ||
install(app: App): void; | ||
}; |
@@ -94,3 +94,3 @@ import type { App } from 'vue'; | ||
closeOnClickOverlay: boolean; | ||
}>>; | ||
}, {}>>; | ||
setDefaultOptions: (options: import("vant").NotifyOptions) => import("vant").NotifyOptions; | ||
@@ -97,0 +97,0 @@ resetDefaultOptions: () => void; |
@@ -17,9 +17,9 @@ import { setToastDefaultOptions } from 'vant'; | ||
$slots: Readonly<{ | ||
[name: string]: import("vue").Slot | undefined; | ||
[name: string]: import("vue").Slot<any> | undefined; | ||
}>; | ||
$root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null; | ||
$parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null; | ||
$root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}> | null; | ||
$parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}> | null; | ||
$emit: (event: string, ...args: any[]) => void; | ||
$el: any; | ||
$options: import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}> & { | ||
$options: import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}> & { | ||
beforeCreate?: ((() => void) | (() => void)[]) | undefined; | ||
@@ -39,7 +39,7 @@ created?: ((() => void) | (() => void)[]) | undefined; | ||
renderTriggered?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined; | ||
errorCaptured?: (((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null, info: string) => boolean | void)[]) | undefined; | ||
errorCaptured?: (((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}> | null, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}> | null, info: string) => boolean | void)[]) | undefined; | ||
}; | ||
$forceUpdate: () => void; | ||
$nextTick: typeof import("vue").nextTick; | ||
$watch(source: string | Function, cb: Function, options?: import("vue").WatchOptions<boolean> | undefined): import("vue").WatchStopHandle; | ||
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (args_0: R, args_1: R) => any : (...args: any) => any, options?: import("vue").WatchOptions<boolean> | undefined): import("vue").WatchStopHandle; | ||
message: import("packages/vant/lib/utils").Numeric; | ||
@@ -111,3 +111,3 @@ close: () => void; | ||
closeOnClickOverlay: BooleanConstructor; | ||
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("keydown" | "update:show" | "cancel" | "confirm")[], "keydown" | "update:show" | "cancel" | "confirm", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{ | ||
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("cancel" | "keydown" | "update:show" | "confirm")[], "cancel" | "keydown" | "update:show" | "confirm", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{ | ||
show: BooleanConstructor; | ||
@@ -185,3 +185,3 @@ zIndex: (NumberConstructor | StringConstructor)[]; | ||
showConfirmButton: boolean; | ||
}>>; | ||
}, {}>>; | ||
alert: any; | ||
@@ -287,3 +287,3 @@ config: (options: import("vant").DialogOptions) => Promise<unknown>; | ||
closeOnClickOverlay: boolean; | ||
}>>; | ||
}, {}>>; | ||
setDefaultOptions: (options: import("vant").NotifyOptions) => import("vant").NotifyOptions; | ||
@@ -308,9 +308,9 @@ resetDefaultOptions: () => void; | ||
$slots: Readonly<{ | ||
[name: string]: import("vue").Slot | undefined; | ||
[name: string]: import("vue").Slot<any> | undefined; | ||
}>; | ||
$root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null; | ||
$parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null; | ||
$root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}> | null; | ||
$parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}> | null; | ||
$emit: (event: string, ...args: any[]) => void; | ||
$el: any; | ||
$options: import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}> & { | ||
$options: import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}> & { | ||
beforeCreate?: ((() => void) | (() => void)[]) | undefined; | ||
@@ -330,7 +330,7 @@ created?: ((() => void) | (() => void)[]) | undefined; | ||
renderTriggered?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined; | ||
errorCaptured?: (((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null, info: string) => boolean | void)[]) | undefined; | ||
errorCaptured?: (((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}> | null, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}> | null, info: string) => boolean | void)[]) | undefined; | ||
}; | ||
$forceUpdate: () => void; | ||
$nextTick: typeof import("vue").nextTick; | ||
$watch(source: string | Function, cb: Function, options?: import("vue").WatchOptions<boolean> | undefined): import("vue").WatchStopHandle; | ||
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (args_0: R, args_1: R) => any : (...args: any) => any, options?: import("vue").WatchOptions<boolean> | undefined): import("vue").WatchStopHandle; | ||
message: import("packages/vant/lib/utils").Numeric; | ||
@@ -402,3 +402,3 @@ close: () => void; | ||
closeOnClickOverlay: BooleanConstructor; | ||
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("keydown" | "update:show" | "cancel" | "confirm")[], "keydown" | "update:show" | "cancel" | "confirm", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{ | ||
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("cancel" | "keydown" | "update:show" | "confirm")[], "cancel" | "keydown" | "update:show" | "confirm", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{ | ||
show: BooleanConstructor; | ||
@@ -476,3 +476,3 @@ zIndex: (NumberConstructor | StringConstructor)[]; | ||
showConfirmButton: boolean; | ||
}>>; | ||
}, {}>>; | ||
alert: any; | ||
@@ -578,3 +578,3 @@ config: (options: import("vant").DialogOptions) => Promise<unknown>; | ||
closeOnClickOverlay: boolean; | ||
}>>; | ||
}, {}>>; | ||
setDefaultOptions: (options: import("vant").NotifyOptions) => import("vant").NotifyOptions; | ||
@@ -599,9 +599,9 @@ resetDefaultOptions: () => void; | ||
$slots: Readonly<{ | ||
[name: string]: import("vue").Slot | undefined; | ||
[name: string]: import("vue").Slot<any> | undefined; | ||
}>; | ||
$root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null; | ||
$parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null; | ||
$root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}> | null; | ||
$parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}> | null; | ||
$emit: (event: string, ...args: any[]) => void; | ||
$el: any; | ||
$options: import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}> & { | ||
$options: import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}> & { | ||
beforeCreate?: ((() => void) | (() => void)[]) | undefined; | ||
@@ -621,7 +621,7 @@ created?: ((() => void) | (() => void)[]) | undefined; | ||
renderTriggered?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined; | ||
errorCaptured?: (((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null, info: string) => boolean | void)[]) | undefined; | ||
errorCaptured?: (((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}> | null, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}> | null, info: string) => boolean | void)[]) | undefined; | ||
}; | ||
$forceUpdate: () => void; | ||
$nextTick: typeof import("vue").nextTick; | ||
$watch(source: string | Function, cb: Function, options?: import("vue").WatchOptions<boolean> | undefined): import("vue").WatchStopHandle; | ||
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (args_0: R, args_1: R) => any : (...args: any) => any, options?: import("vue").WatchOptions<boolean> | undefined): import("vue").WatchStopHandle; | ||
message: import("packages/vant/lib/utils").Numeric; | ||
@@ -693,3 +693,3 @@ close: () => void; | ||
closeOnClickOverlay: BooleanConstructor; | ||
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("keydown" | "update:show" | "cancel" | "confirm")[], "keydown" | "update:show" | "cancel" | "confirm", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{ | ||
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("cancel" | "keydown" | "update:show" | "confirm")[], "cancel" | "keydown" | "update:show" | "confirm", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{ | ||
show: BooleanConstructor; | ||
@@ -767,3 +767,3 @@ zIndex: (NumberConstructor | StringConstructor)[]; | ||
showConfirmButton: boolean; | ||
}>>; | ||
}, {}>>; | ||
alert: any; | ||
@@ -869,3 +869,3 @@ config: (options: import("vant").DialogOptions) => Promise<unknown>; | ||
closeOnClickOverlay: boolean; | ||
}>>; | ||
}, {}>>; | ||
setDefaultOptions: (options: import("vant").NotifyOptions) => import("vant").NotifyOptions; | ||
@@ -872,0 +872,0 @@ resetDefaultOptions: () => void; |
{ | ||
"name": "@vant/compat", | ||
"version": "1.0.0", | ||
"version": "1.0.1-beta.0", | ||
"description": "Provide Vant 3 compatible behavior for Vant 4", | ||
@@ -22,10 +22,2 @@ "main": "dist/index.cjs.js", | ||
}, | ||
"scripts": { | ||
"clean": "rimraf ./dist", | ||
"dev": "node ./build.js -w", | ||
"build:types": "tsc -p ./tsconfig.json --emitDeclarationOnly", | ||
"build:bundle": "node ./build.js", | ||
"build": "pnpm clean && pnpm build:bundle && pnpm build:types", | ||
"release": "pnpm build && release-it" | ||
}, | ||
"repository": { | ||
@@ -40,15 +32,17 @@ "type": "git", | ||
"devDependencies": { | ||
"@vue/runtime-core": "^3.2.27", | ||
"vant": "workspace:*", | ||
"vue": "^3.2.27", | ||
"esbuild": "^0.14.29", | ||
"release-it": "^15.1.1", | ||
"typescript": "^4.7.4" | ||
"@vue/runtime-core": "^3.3.4", | ||
"vue": "^3.3.4", | ||
"esbuild": "^0.18.11", | ||
"rimraf": "^5.0.0", | ||
"typescript": "^5.0.4", | ||
"vant": "4.6.3" | ||
}, | ||
"release-it": { | ||
"git": { | ||
"tag": false, | ||
"commitMessage": "release: @vant/compat ${version}" | ||
} | ||
"scripts": { | ||
"clean": "rimraf ./dist", | ||
"dev": "node ./build.js -w", | ||
"build:types": "tsc -p ./tsconfig.json --emitDeclarationOnly", | ||
"build:bundle": "node ./build.js", | ||
"build": "pnpm clean && pnpm build:bundle && pnpm build:types", | ||
"release": "vant-cli release" | ||
} | ||
} | ||
} |
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
72292
1470
2