v-bind="$props" 是什么意思?


猜想是绑定啥东东,在国内一直找不到答案,然后跑到一个帅哥找到答案,其实在官方文档中也有,也没有细致注意到

 

If you need to bind all props to a inner component like this:

<input :placeholder="placeholder" :required="required" :value="value">

You instead can do this:

<input v-bind="$props">

But only if defined in props.

 

官网解释,就妹的一行


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM