关于 provide/inject 使用的一些疑问 #8583
trry-hub
started this conversation in
General Discussions
Replies: 3 comments 10 replies
-
Beta Was this translation helpful? Give feedback.
0 replies
-
哥们你这set方法都没进去。。 你这双向绑定是直接改了get方法里获取到的message.value 也就是readonly的那个message。。。 |
Beta Was this translation helpful? Give feedback.
7 replies
-
刚才看了el-checkbox 的源码 它的 mode 也是通过 computed 实现的,所以, 中model-value ts 会报 是只读属性。这样感觉 provide/inject 并不是很好用 |
Beta Was this translation helpful? Give feedback.
3 replies
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.
-
vue-project.zip
上边是一个demo
Beta Was this translation helpful? Give feedback.
All reactions