ant-design/components/input-number/demo/debug-token.md

40 lines
610 B
Markdown
Raw Normal View History

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