Vue 传入一个对象的所有 property #705
Unanswered
richard1015
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
使用场景 所有依赖
Popup
的组件,需要透传所有 prop 参数传入一个对象的所有 property 原文链接
如果你想要将一个对象的所有
property
都作为prop
传入,你可以使用不带参数的v-bind
(取代v-bind:prop-name
)。例如,对于一个给定的对象post
:下面的模板:
等价于:
Beta Was this translation helpful? Give feedback.
All reactions