2022-03-24 18:44:42 +08:00
|
|
|
---
|
|
|
|
order: 999
|
|
|
|
title:
|
|
|
|
zh-CN: 覆盖组件样式
|
|
|
|
en-US: Override Component Style
|
|
|
|
debug: true
|
|
|
|
---
|
|
|
|
|
|
|
|
```tsx
|
2022-06-27 21:26:12 +08:00
|
|
|
import { ConfigProvider, InputNumber, Space } from 'antd';
|
2022-03-24 18:44:42 +08:00
|
|
|
|
2022-04-12 16:46:19 +08:00
|
|
|
export default () => (
|
2022-03-24 18:44:42 +08:00
|
|
|
<ConfigProvider
|
|
|
|
theme={{
|
|
|
|
override: {
|
2022-06-27 21:26:12 +08:00
|
|
|
InputNumber: {
|
|
|
|
handleWidth: 50,
|
2022-03-24 18:44:42 +08:00
|
|
|
},
|
|
|
|
},
|
|
|
|
}}
|
|
|
|
>
|
|
|
|
<Space>
|
2022-06-27 21:26:12 +08:00
|
|
|
<InputNumber />
|
2022-03-24 18:44:42 +08:00
|
|
|
|
|
|
|
<ConfigProvider
|
|
|
|
theme={{
|
|
|
|
override: {
|
2022-06-27 21:26:12 +08:00
|
|
|
InputNumber: {
|
|
|
|
handleWidth: 25,
|
2022-03-24 18:44:42 +08:00
|
|
|
},
|
|
|
|
},
|
|
|
|
}}
|
|
|
|
>
|
2022-06-27 21:26:12 +08:00
|
|
|
<InputNumber />
|
2022-03-24 18:44:42 +08:00
|
|
|
</ConfigProvider>
|
|
|
|
</Space>
|
2022-04-12 16:46:19 +08:00
|
|
|
</ConfigProvider>
|
2022-03-24 18:44:42 +08:00
|
|
|
);
|
|
|
|
```
|