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.

 

官网解释,就妹的一行

原文地址:https://www.cnblogs.com/szatpig/p/7777458.html