Skip to content

Latest commit

 

History

History
66 lines (52 loc) · 1.28 KB

InputNumber.mdx

File metadata and controls

66 lines (52 loc) · 1.28 KB
title
InputNumber 数字输入框

示例

import { InputNumber } from '@tarojsx/ui'; import { UI } from '@/ui';

<InputNumber />
{() => { const [value, setValue] = React.useState(0); return setValue(e.detail.value)} />; }}
<InputNumber step={0.1} />
{() => { const [value, setValue] = React.useState(0); return setValue(e.detail.value)} />; }}
<InputNumber min={5} max={8} />
{() => { const [value, setValue] = React.useState(6); return setValue(e.detail.value)} />; }}
<InputNumber disabledInput />
{() => { const [value, setValue] = React.useState(0); return setValue(e.detail.value)} />; }}
<InputNumber disabled />

API