auto-animate icon indicating copy to clipboard operation
auto-animate copied to clipboard

vue版本useAutoAnimate允许传入el,兼容旧版

Open 17359898647 opened this issue 2 years ago • 7 comments

17359898647 avatar Sep 01 '23 02:09 17359898647

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
auto-animate ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 6, 2023 8:51am

vercel[bot] avatar Sep 01 '23 02:09 vercel[bot]

Sorry, not sure what this PR improves exactly — can you help clear that up for me?

justin-schroeder avatar Sep 04 '23 02:09 justin-schroeder

Sorry, not sure what this PR improves exactly — can you help clear that up for me?

Sorry for my poor English, the following passage is from Google Translate。 If you want to use the ref variable returned by your function to bind the vue component, my modification allows the user to pass in the ref variable of the bound component while retaining the original usage method.

17359898647 avatar Sep 04 '23 03:09 17359898647

Sorry still not following what API this enabled. Could you share a code sample of what the desired API is?

justin-schroeder avatar Sep 05 '23 18:09 justin-schroeder

Sorry still not following what API this enabled. Could you share a code sample of what the desired API is?

I submitted a sample code that can be run directly. I just added a new parameter based on the original one to implement a new usage method without any impact on the original usage method.

17359898647 avatar Sep 06 '23 01:09 17359898647

Now ref can not only bind native html tags, but also bind custom components of vue.

17359898647 avatar Sep 06 '23 08:09 17359898647

Can it be allowed

17359898647 avatar Sep 12 '23 01:09 17359898647