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().
Version
3.2.4
Reproduction link
https://github.com/Fiona-SUN/vue3-minimal-reproduction
Steps to reproduce
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().