mercs600 / vue2-perfect-scrollbar

Vue.js wrapper for perfect scrollbar
https://mercs600.github.io/vue2-perfect-scrollbar/
MIT License
275 stars 43 forks source link

Use as attribute #27

Closed keenthemes closed 4 years ago

keenthemes commented 4 years ago

Hello,

Great plugin! Is there any way to use it as an attribute instead of using a component tag? For example,

<ul perfectScrollbar...

Basically, we want to avoid using it this way.

<perfect-scrollbar>
   <ul></ul>
</perfect-scrollbar>

Thanks

keenthemes commented 4 years ago

Nevermind. It seems we find a way for it.

<perfect-scrollbar v-bind:tag="'ul'">
   <li></li>
</perfect-scrollbar>

Thanks~!