forked from jdf2e/nutui-react
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'dev-harmony' into rn-avatar
- Loading branch information
Showing
27 changed files
with
293 additions
and
215 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 2 additions & 1 deletion
3
packages/nutui-taro-demo-rn/src/dentry/pages/inputnumber/index.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
export default <>button</>; | ||
import Demo from '@/packages/inputnumber/demo.taro'; | ||
export default Demo; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,11 @@ | ||
import React from 'react' | ||
import { InputNumber } from '@nutui/nutui-react' | ||
import { Cell, InputNumber } from '@nutui/nutui-react' | ||
|
||
const Demo1 = () => { | ||
return <InputNumber defaultValue={1} allowEmpty /> | ||
return ( | ||
<Cell> | ||
<InputNumber defaultValue={1} allowEmpty /> | ||
</Cell> | ||
) | ||
} | ||
export default Demo1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,11 @@ | ||
import React from 'react' | ||
import { InputNumber } from '@nutui/nutui-react' | ||
import { Cell, InputNumber } from '@nutui/nutui-react' | ||
|
||
const Demo2 = () => { | ||
return <InputNumber defaultValue={0} min={0} step={5} /> | ||
return ( | ||
<Cell> | ||
<InputNumber defaultValue={0} min={0} step={5} /> | ||
</Cell> | ||
) | ||
} | ||
export default Demo2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,19 @@ | ||
import React from 'react' | ||
import { InputNumber, Toast } from '@nutui/nutui-react' | ||
import { Cell, InputNumber, Toast } from '@nutui/nutui-react' | ||
|
||
const Demo3 = () => { | ||
const overlimit = () => { | ||
Toast.show({ content: '超出限制事件触发', icon: 'warn' }) | ||
} | ||
return ( | ||
<InputNumber defaultValue={10} min={10} max={20} onOverlimit={overlimit} /> | ||
<Cell> | ||
<InputNumber | ||
defaultValue={10} | ||
min={10} | ||
max={20} | ||
onOverlimit={overlimit} | ||
/> | ||
</Cell> | ||
) | ||
} | ||
export default Demo3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,11 @@ | ||
import React from 'react' | ||
import { InputNumber } from '@nutui/nutui-react' | ||
import { Cell, InputNumber } from '@nutui/nutui-react' | ||
|
||
const Demo4 = () => { | ||
return <InputNumber defaultValue={0} disabled /> | ||
return ( | ||
<Cell> | ||
<InputNumber defaultValue={0} disabled /> | ||
</Cell> | ||
) | ||
} | ||
export default Demo4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,11 @@ | ||
import React from 'react' | ||
import { InputNumber } from '@nutui/nutui-react' | ||
import { Cell, InputNumber } from '@nutui/nutui-react' | ||
|
||
const Demo5 = () => { | ||
return <InputNumber defaultValue={1} readOnly /> | ||
return ( | ||
<Cell> | ||
<InputNumber defaultValue={1} readOnly /> | ||
</Cell> | ||
) | ||
} | ||
export default Demo5 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,11 @@ | ||
import React from 'react' | ||
import { InputNumber } from '@nutui/nutui-react' | ||
import { Cell, InputNumber } from '@nutui/nutui-react' | ||
|
||
const Demo7 = () => { | ||
return <InputNumber defaultValue={5.5} step={0.1} digits={1} readOnly /> | ||
return ( | ||
<Cell> | ||
<InputNumber defaultValue={5.5} step={0.1} digits={1} readOnly /> | ||
</Cell> | ||
) | ||
} | ||
export default Demo7 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,11 @@ | ||
import React from 'react' | ||
import { InputNumber } from '@nutui/nutui-react-taro' | ||
import { Cell, InputNumber } from '@nutui/nutui-react-taro' | ||
|
||
const Demo1 = () => { | ||
return <InputNumber defaultValue={1} allowEmpty /> | ||
return ( | ||
<Cell> | ||
<InputNumber defaultValue={1} allowEmpty /> | ||
</Cell> | ||
) | ||
} | ||
export default Demo1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,11 @@ | ||
import React from 'react' | ||
import { InputNumber } from '@nutui/nutui-react-taro' | ||
import { Cell, InputNumber } from '@nutui/nutui-react-taro' | ||
|
||
const Demo2 = () => { | ||
return <InputNumber defaultValue={0} min={0} step={5} /> | ||
return ( | ||
<Cell> | ||
<InputNumber defaultValue={0} min={0} step={5} /> | ||
</Cell> | ||
) | ||
} | ||
export default Demo2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,11 @@ | ||
import React from 'react' | ||
import { InputNumber } from '@nutui/nutui-react-taro' | ||
import { Cell, InputNumber } from '@nutui/nutui-react-taro' | ||
|
||
const Demo4 = () => { | ||
return <InputNumber defaultValue={0} disabled /> | ||
return ( | ||
<Cell> | ||
<InputNumber defaultValue={0} disabled /> | ||
</Cell> | ||
) | ||
} | ||
export default Demo4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,11 @@ | ||
import React from 'react' | ||
import { InputNumber } from '@nutui/nutui-react-taro' | ||
import { Cell, InputNumber } from '@nutui/nutui-react-taro' | ||
|
||
const Demo5 = () => { | ||
return <InputNumber defaultValue={1} readOnly /> | ||
return ( | ||
<Cell> | ||
<InputNumber defaultValue={1} readOnly /> | ||
</Cell> | ||
) | ||
} | ||
export default Demo5 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,11 @@ | ||
import React from 'react' | ||
import { InputNumber } from '@nutui/nutui-react-taro' | ||
import { Cell, InputNumber } from '@nutui/nutui-react-taro' | ||
|
||
const Demo7 = () => { | ||
return <InputNumber defaultValue={5.5} step={0.1} digits={1} readOnly /> | ||
return ( | ||
<Cell> | ||
<InputNumber defaultValue={5.5} step={0.1} digits={1} readOnly /> | ||
</Cell> | ||
) | ||
} | ||
export default Demo7 |
Oops, something went wrong.