btea
btea
cc @element-plus/backers
Perhaps we should take inspiration from Ant Design and add the `initialValues` prop to the form component and the `initialValue` prop to the form-item component.
However, if you can only set the initial value, you might reset the initial value somewhere, but you won't be able to get the latest modified result.
@l246804 用你issue中提到的例子,通过请求返回的数据,然后设置为初始值,设置之后并不能实时获取到这个值。我觉得可以随时获取设置的值更好。
This name seems a bit strange, do you have any suggestions? cc @element-plus/backers
Are you using the latest version of pnpm? I verified it locally and it's normal.
To me, the results seem normal. 🤔
@nagi233 能提供更具体的问题场景说明吗?如你所说,在元素只有两个时,为了保证动画效果一致,所以进行了节点复制。一般情况下,这个组件都是用来直接轮播元素不会有什么影响,所以对你项目中有影响的场景可能没考虑到。
你们遇到的问题似乎是相反的,@shuado 的问题是在初始化之后,原来复制的的元素没有同步后面修改的数据,而@nagi233 的问题则是初始化时复制了重复的逻辑导致导致连接报错。
@shuado 这个似乎不太好判断临界点。