You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
---
|
|
|
|
order: 999
|
|
|
|
title:
|
|
|
|
zh-CN: 覆盖组件样式
|
|
|
|
en-US: Override Component Style
|
|
|
|
debug: true
|
|
|
|
---
|
|
|
|
|
|
|
|
```tsx
|
|
|
|
import { ConfigProvider, InputNumber, Space } from 'antd';
|
|
|
|
|
|
|
|
export default () => (
|
|
|
|
<ConfigProvider
|
|
|
|
theme={{
|
|
|
|
components: {
|
|
|
|
InputNumber: {
|
|
|
|
handleWidth: 50,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
}}
|
|
|
|
>
|
|
|
|
<Space>
|
|
|
|
<InputNumber />
|
|
|
|
|
|
|
|
<ConfigProvider
|
|
|
|
theme={{
|
|
|
|
components: {
|
|
|
|
InputNumber: {
|
|
|
|
handleWidth: 25,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
}}
|
|
|
|
>
|
|
|
|
<InputNumber />
|
|
|
|
</ConfigProvider>
|
|
|
|
</Space>
|
|
|
|
</ConfigProvider>
|
|
|
|
);
|
|
|
|
```
|