-
-
Notifications
You must be signed in to change notification settings - Fork 8.9k
Closed
Labels
🔨 p3-minor-bugPriority 3: this fixes a bug, but is an edge case that only affects very specific usage.Priority 3: this fixes a bug, but is an edge case that only affects very specific usage.🐞 bugSomething isn't workingSomething isn't workingscope: v2 compat
Description
Version
3.2.4
Reproduction link
https://github.com/Fiona-SUN/vue3-minimal-reproduction
Steps to reproduce
- update vue to 3.2.4, install @vue/compat of the same version
- install UI Components Vant 3.2.0
- Global Register Toast (eg: https://youzan.github.io/vant/v3/#/en-US/quickstart#cdn)
- use this.$toast.loading in .vue file
What is expected?
The project should run on Vue 3 with Vant.
What is actually happening?
Uncaught(in promise) TypeError: this.$toast.loading is not a function.project broken
PublicInstanceProxyHandlers function use Function.prototype.bind() cause Toast lost some properties.
if there have any other methos to resolve the problem instead of Function.prototype.bind().
danielelkington
Metadata
Metadata
Assignees
Labels
🔨 p3-minor-bugPriority 3: this fixes a bug, but is an edge case that only affects very specific usage.Priority 3: this fixes a bug, but is an edge case that only affects very specific usage.🐞 bugSomething isn't workingSomething isn't workingscope: v2 compat