formily icon indicating copy to clipboard operation
formily copied to clipboard

编辑 virtualBox 中的字段无法触发重新渲染

Open fanxiaokun opened this issue 7 years ago • 2 comments

Help us to manage our issues by answering the following:

  1. How would you tag this issue?

bug

  1. Describe your issue:
  • What is the current behavior? 当 type 为 object 的属性设置了 x-component 是 virtualBox 的时候,编辑该属性的字段无法触发更新

  • What is the expected behavior? 编辑字段后应该可以正常触发更新

  • Which versions of UForm? 0.3.10

  • Did this work in previous versions of UForm?

  1. If your issue is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem via Bug Report Template on CodeSandbox .重现 https://codesandbox.io/s/magical-cookies-l9toc?fontsize=14

fanxiaokun avatar Aug 15 '19 02:08 fanxiaokun

不是bug,用法问题,因为你自己的组件没有接收enum属性,具体看看这个例子 https://codesandbox.io/s/elegant-cdn-t6biv

janryWang avatar Aug 15 '19 15:08 janryWang

不是bug,用法问题,因为你自己的组件没有接收enum属性,具体看看这个例子 https://codesandbox.io/s/elegant-cdn-t6biv

不好意思啊,应该是上个例子我举的不太对,按照你给我的例子,我重新试了下,应该还是有问题。 具体问题如下:VirtualBox放在组件内创建,会导致字段不会重新update,而按照常规做法,放在组件外,就会正常update。 重现:https://codesandbox.io/s/magical-cookies-l9toc?fontsize=14

fanxiaokun avatar Aug 16 '19 06:08 fanxiaokun