ant-design / ant-design/pro-components

🐛[BUG] ConfigProvider 设置 hashed: false 无效,因为被 ProLayout 里的给覆盖了

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

Description

### 🐛 bug 描述

如题

### 📷 复现步骤

根据复现代码查看控制台

### 🏞 期望结果

样式没有 hash

### 💻 复现代码
ProLayout 里有 ConfigProvider,并设置了 hashed,所以导致外面设置无效

```

```

### © 版本信息

- ProComponents 版本: [e.g. 4.0.0]
- umi 版本
- 浏览器环境
- 开发环境 [e.g. mac OS]

### 🚑 其他信息

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the issue with ProLayout nested in ConfigProvider using theme={{ cssVar: true, hashed: false }}, then inspect the ConfigProvider usage inside ProLayout. Done means the outer hashed: false setting is respected and the rendered styles no longer use hashes.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.