ant-design / ant-design/pro-components

👑 [需求] ProForm loading 状态 替换/自定义 加载组件

Open
#9,679 3 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
TypeScript
Stars
4.8k
Forks
1.4k
Avg merge
10h 44m
Merged PRs (30d)
3

Description

### 🔩 所属模块或组件

对 ProForm loading 状态 可以自定义 加载组件

### 🥰 需求描述
现在的

Image

需要 的

Image

### 🧐 解决方案

实际上 就是 把 Spin 组件替换成了 Skeleton 组件.

[antd](https://ant-design.antgroup.com/components/drawer-cn#when-to-use) 自 5.17.0 版本,我们提供了 loading 属性,内置 Spin 组件作为加载状态,但是自 5.18.0 版本开始,我们修复了设计失误,将内置的 Spin 组件替换成了 Skeleton 组件.

如果不认可改变更的话, 能否暴露出来让用户可以自定义?

Contributor guide

Open the contributing guide

Research direction

Start at the ProForm loading entry point and trace how the current Spin component is used, then compare it with the requested Skeleton behavior and Ant Design's loading API. Done means ProForm supports replacing or customizing its loading component without breaking the existing loading state.

Written by the indexing model from the issue text.

Assessment

Tech stack
react, typescript
Domain
frontend
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
52/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.