mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-23 23:18:36 +08:00
92d813b543
* fix: input-number inputFontSize * chore: clean up * chore: back of demo * test: update snapshot
65 lines
1.3 KiB
TypeScript
65 lines
1.3 KiB
TypeScript
import React from 'react';
|
|
import { ConfigProvider, InputNumber, Space } from 'antd';
|
|
|
|
export default () => (
|
|
<ConfigProvider
|
|
theme={{
|
|
components: {
|
|
InputNumber: {
|
|
handleWidth: 50,
|
|
},
|
|
},
|
|
}}
|
|
>
|
|
<Space wrap>
|
|
<InputNumber />
|
|
|
|
<ConfigProvider
|
|
theme={{
|
|
components: {
|
|
InputNumber: {
|
|
handleWidth: 25,
|
|
},
|
|
},
|
|
}}
|
|
>
|
|
<InputNumber />
|
|
</ConfigProvider>
|
|
|
|
<ConfigProvider
|
|
theme={{
|
|
components: {
|
|
InputNumber: {
|
|
paddingBlockLG: 12,
|
|
paddingInlineLG: 16,
|
|
},
|
|
},
|
|
}}
|
|
>
|
|
<Space wrap>
|
|
<InputNumber size="large" />
|
|
<InputNumber size="large" prefix="$" />
|
|
</Space>
|
|
</ConfigProvider>
|
|
|
|
<ConfigProvider
|
|
theme={{
|
|
components: {
|
|
InputNumber: {
|
|
inputFontSize: 30,
|
|
inputFontSizeSM: 20,
|
|
inputFontSizeLG: 40,
|
|
},
|
|
},
|
|
}}
|
|
>
|
|
<Space wrap>
|
|
<InputNumber defaultValue={11111} size="small" />
|
|
<InputNumber defaultValue={11111} />
|
|
<InputNumber defaultValue={11111} size="large" />
|
|
</Space>
|
|
</ConfigProvider>
|
|
</Space>
|
|
</ConfigProvider>
|
|
);
|