Skip to content
New issue

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

[Bug Report] Vue 3 使用 JSON Schema 模式,当 schema 为响应式数据时,同样 property key 即使值发生变化,表单仍然渲染的是一开始的元素 #4170

Closed
1 task done
zhuscat opened this issue Jun 29, 2024 · 1 comment

Comments

@zhuscat
Copy link

zhuscat commented Jun 29, 2024

  • I have searched the issues of this repository and believe that this is not a duplicate.

Reproduction link

Edit on CodeSandbox

Steps to reproduce

打开 CodeSandbox,点击 change schema

What is expected?

渲染表单与 schema 一致

What is actually happening?

变化后的 schema,input 属性的值变了,但还是渲染 input 框而不是 textarea,这是预期中的行为吗?

Package

@formily/[email protected]


@qq1037305420
Copy link
Contributor

qq1037305420 commented Jul 3, 2024

https://codesandbox.io/p/sandbox/twilight-cookies-778ny3?file=%2Fsrc%2FApp.vue%3A64%2C22
form实例也需要被重置,或者清空实例里面的field实例
73行下面加 this.form.clearFormGraph();

@yiyunwan yiyunwan closed this as completed Jul 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants