Files
ant-design/docs/react/demo/preset-algorithm.md
二货爱吃白萝卜 6e91b7f8af docs: Use direct dumi code demo instead of sandpack (#56862)
* docs(replace): replace sandpack demos with code blocks in customize-theme.en-US.md

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

* docs: update demo paths in theme customization docs

* docs: add first example demo and update documentation

* docs(demo): add Radio component to disable-motion example

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

* fix(demo): initialize timerRef with null for proper typing

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-04 20:37:02 +08:00

699 B

zh-CN

通过修改算法可以快速生成风格迥异的主题,我们默认提供三套预设算法:默认算法 theme.defaultAlgorithm、暗色算法 theme.darkAlgorithm 和紧凑算法 theme.compactAlgorithm。你可以通过 theme 中的 algorithm 属性来切换算法,并且支持配置多种算法,将会依次生效。

en-US

You can quickly generate distinct themes by modifying algorithms. We provide three preset algorithms by default: theme.defaultAlgorithm, theme.darkAlgorithm, and theme.compactAlgorithm. You can switch algorithms through the algorithm property in theme, and multiple algorithms can be configured, which will take effect in order.