We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
import { h, ref } from "mini-vue.esm-bundler.js"; export const App = { name: "APP", render() { return h("div", { id: "root", ...this.props }, [ h( "button", { onClick: this.change1, }, "修改值修改" ), ]); }, setup() { const props = ref({a:10}); const change1 = () => { props.value.foo = "new foo"; }; return { change1, props, }; }, }; 点击按钮时 error: dep is not iterable (cannot read property undefined) Q2: import { h, ref } from "mini-vue.esm-bundler.js"; export const App = { name: "APP", render() { return h("div", { id: "root", ...this.props }, [ h( "button", { onClick: this.change1, }, "修改值修改" ), ]); }, setup() { const props = ref({ }); const change1 = () => { props.value.foo = "new foo"; }; return { change1, props, }; }, }; 点击修改时更改的按钮 这时候 按理说 props 改变了 视图应该更新,但因为 之前没有收集到依赖,视图没有重新渲染
The text was updated successfully, but these errors were encountered:
Sorry, something went wrong.
Well, since there's no reply, let's all go
No branches or pull requests
Q1
The text was updated successfully, but these errors were encountered: