mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-07 06:29:28 +08:00
2cff1fce48
* fix: inputnumber padding token * chore: update * chore: clean * chore: update
45 lines
845 B
TypeScript
45 lines
845 B
TypeScript
import React from 'react';
|
|
import { ConfigProvider, InputNumber, Space } from 'antd';
|
|
|
|
export default () => (
|
|
<ConfigProvider
|
|
theme={{
|
|
components: {
|
|
InputNumber: {
|
|
handleWidth: 50,
|
|
},
|
|
},
|
|
}}
|
|
>
|
|
<Space>
|
|
<InputNumber />
|
|
|
|
<ConfigProvider
|
|
theme={{
|
|
components: {
|
|
InputNumber: {
|
|
handleWidth: 25,
|
|
},
|
|
},
|
|
}}
|
|
>
|
|
<InputNumber />
|
|
</ConfigProvider>
|
|
|
|
<ConfigProvider
|
|
theme={{
|
|
components: {
|
|
InputNumber: {
|
|
paddingBlockLG: 12,
|
|
paddingInlineLG: 16,
|
|
},
|
|
},
|
|
}}
|
|
>
|
|
<InputNumber size="large" />
|
|
<InputNumber size="large" prefix="$" />
|
|
</ConfigProvider>
|
|
</Space>
|
|
</ConfigProvider>
|
|
);
|