ant-design / ant-design/x

Attachment组件显示文件的desciption无法响应式更新

Open
#804 1 comment 0 reactions 1 assignee Claimed by @kimteayon View on GitHub
Dominant language
TypeScript
Stars
4.8k
Forks
1.2k
Avg merge
3d 3h
Merged PRs (30d)
2

Description

重现步骤
如图 name中的文字可以响应式更新,因为items的属性是继承自antd 的upload组件的UploadProps 的,其中name属于UploadProps,但是desciption属性是后加的,Attachment独有的,似乎响应式更新有问题,两边内容是不同步的,只有最后解析完毕才会更新文字。
更新中,未动态更新:
![Image](https://github.com/user-attachments/assets/1034a812-625b-4020-a0ef-e9e7a01e3d17)
更新后:

![Image](https://github.com/user-attachments/assets/4981ef49-10fb-4b8b-9549-47552144257f)

![Image](https://github.com/user-attachments/assets/753ff717-d660-4389-aef8-d6de47ff46b3)

当前行为
desciption无法同步响应式更新,只在最后一次dom更新时候才更新

预期行为
desciption和name同步响应式更新

上下文
No response

## 版本
@ant-design/x@1.2.0

## 您在哪些浏览器上遇到了这个问题?
Chrome

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.