通过mount挂载的vue组件,能否提供一个更新props字段的方法 #7765
Unanswered
wibetter
asked this question in
Help/Questions
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.
-
What problem does this feature solve?
在react页面中,通过mount挂载的vue组件,后续外部props字段有更新后,没法手动同步到组件的props数据。
What does the proposed API look like?
挂载到节点的方式:this.vm = this.app.mount(this.domRef.current),
能否提供类似这样的方法:this.vm.updateProps({xxxProp: xxValue}),即可更新vue组件中的对应prop字段,并自动更新到页面。
Beta Was this translation helpful? Give feedback.
All reactions