alibaba / formily

📱🚀 🧩 Cross Device & High Performance Normal Form/Dynamic(JSON Schema) Form/Form Builder -- Support React/React Native/Vue 2/Vue 3
https://formilyjs.org/
MIT License
11.48k stars 1.49k forks source link

[Bug Report] 表单联动,x-visible数据不会清空 #3746

Closed ghost closed 1 year ago

ghost commented 1 year ago

Reproduction link

Edit on CodeSandbox

Steps to reproduce

step1: 输入框输入:1,会显示分组1

step2: 在分组1输入内容

step3: 输入框输入改为2,会显示分组2

step4: 在分组2输入内容

step5: 输入框再切到1

What is expected?

设置了x-visible, 预期效果 分组1的内容会被清空, 实际上并不会

What is actually happening?

Package

@formily/vue@2.2.20


janryWang commented 1 year ago

设计如此,重新显示会恢复现场