vue3 文档 reactive-props-destructure #8580
Unanswered
fxjzz
asked this question in
Help/Questions
Replies: 3 comments 3 replies
-
好像是废弃了。。 |
Beta Was this translation helpful? Give feedback.
0 replies
-
并没有废弃哦,你看下这个demo |
Beta Was this translation helpful? Give feedback.
2 replies
-
参考 vuejs/rfcs#502 这是一个实验性功能,需要显式开启。 // vite.config.js
export default {
plugins: [
vue({
script: {
propsDestructure: true
}
})
]
} |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
照着这个示例去做,修改props值 发现并没有成功打印,是我哪里做错了吗
Beta Was this translation helpful? Give feedback.
All reactions