mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-02 12:09:14 +08:00
fix: revert color count (#41111)
This commit is contained in:
parent
5c1c5f7e9e
commit
53b9559cc6
@ -32,7 +32,7 @@ const Palette: React.FC<PaletteProps> = (props) => {
|
||||
showTitle,
|
||||
direction,
|
||||
dark,
|
||||
color: { name, count, description, english, chinese } = { name: 'gray', count: 13 },
|
||||
color: { name, count = 10, description, english, chinese } = { name: 'gray', count: 13 },
|
||||
} = props;
|
||||
const [hexColors, setHexColors] = React.useState<Record<PropertyKey, string>>({});
|
||||
const colorNodesRef = React.useRef<Record<PropertyKey, HTMLDivElement>>({});
|
||||
|
Loading…
Reference in New Issue
Block a user