mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-04 08:59:40 +08:00
932398333e
* test: add override component token test * test: update snapshot
40 lines
610 B
Markdown
40 lines
610 B
Markdown
---
|
|
order: 999
|
|
title:
|
|
zh-CN: 覆盖组件样式
|
|
en-US: Override Component Style
|
|
debug: true
|
|
---
|
|
|
|
```tsx
|
|
import { ConfigProvider, InputNumber, Space } from 'antd';
|
|
|
|
export default () => (
|
|
<ConfigProvider
|
|
theme={{
|
|
override: {
|
|
InputNumber: {
|
|
handleWidth: 50,
|
|
},
|
|
},
|
|
}}
|
|
>
|
|
<Space>
|
|
<InputNumber />
|
|
|
|
<ConfigProvider
|
|
theme={{
|
|
override: {
|
|
InputNumber: {
|
|
handleWidth: 25,
|
|
},
|
|
},
|
|
}}
|
|
>
|
|
<InputNumber />
|
|
</ConfigProvider>
|
|
</Space>
|
|
</ConfigProvider>
|
|
);
|
|
```
|