Skip to content

Image 组件的 fetchPriority 属性无法正常传递给内部 img 节点,错误作用在了外部的 div 节点 #57335

@wangshu-g

Description

@wangshu-g

Reproduction link

https://github.com/wangshu-g/antd-Image-fetchPriority

Steps to reproduce

git clone https://github.com/wangshu-g/antd-Image-fetchPriority
cd antd-Image-fetchPriority
npm install
npm run dev
// F12 查看源代码
// fetchPriority 属性没有正确传递给内部的 img 节点上
// 而是错误地出现在了外部的 div 节点

What is expected?

期望 Image 组件的 fetchPriority 属性可以正常传递到内部 img 节点上

What is actually happening?

目前 fetchPriority 属性无法正确传递

Environment Info
antd 6.3.3
React 18.2.0
System Ubuntu Resolute Raccoon (development branch) x86_64
Browser Microsoft Edge 145.0.3800.82 (正式版本) (64 位)

该属性提供获取图像时应使用的相对优先级提示

Metadata

Metadata

Assignees

Labels

🐛 BugAnt Design Team had proved that this is a bug.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions