Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/packages/inputnumber/demos/taro/demo3.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React, { useState } from 'react'
import { Cell, InputNumber } from '@nutui/nutui-react-taro'
import { Cell, InputNumber, Toast } from '@nutui/nutui-react-taro'

const Demo3 = () => {
const overlimit = () => {
Expand Down Expand Up @@ -28,14 +28,14 @@ const Demo3 = () => {
onOverlimit={overlimit}
/>
</Cell>
{/* <Toast
<Toast
type={toastType}
visible={show}
content={toastMsg}
onClose={() => {
SetShow(false)
}}
/> */}
/>
</>
)
}
Expand Down
14 changes: 3 additions & 11 deletions src/packages/inputnumber/demos/taro/demo8.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React, { useState } from 'react'
import { Cell, InputNumber } from '@nutui/nutui-react-taro'
import { Cell, InputNumber, Toast } from '@nutui/nutui-react-taro'

const Demo8 = () => {
const [inputValue, setInputValue] = useState(0)
Expand Down Expand Up @@ -28,23 +28,15 @@ const Demo8 = () => {
<Cell>
<InputNumber value={inputValue} min="-6" onChange={onChange} async />
</Cell>
{/* <Toast
<InputNumber
value={inputValue}
min={-6}
max={6}
onChange={onChange}
onOverlimit={overlimit}
async
/>

<Toast
type={toastType}
visible={show}
content={toastMsg}
onClose={() => {
SetShow(false)
}}
/> */}
/>
</>
)
}
Expand Down
8 changes: 5 additions & 3 deletions src/packages/inputnumber/demos/taro/demo9.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import React, { useState } from 'react'
import { Cell, ConfigProvider, InputNumber } from '@nutui/nutui-react-taro'
import { Cell, InputNumber, Toast } from '@nutui/nutui-react-taro'
import ConfigProvider from '@/packages/configprovider'

const Demo9 = () => {
const customTheme3 = {
Expand All @@ -8,6 +9,7 @@ const Demo9 = () => {
const [toastType, SetToastType] = useState('text')
const [show, SetShow] = useState(false)
const [toastMsg, SetToastMsg] = useState('')

return (
<>
<Cell>
Expand All @@ -34,14 +36,14 @@ const Demo9 = () => {
/>
</ConfigProvider>
</Cell>
{/* <Toast
<Toast
type={toastType}
visible={show}
content={toastMsg}
onClose={() => {
SetShow(false)
}}
/> */}
/>
</>
)
}
Expand Down
15 changes: 7 additions & 8 deletions src/packages/inputnumber/doc.en-US.md
Original file line number Diff line number Diff line change
Expand Up @@ -139,17 +139,16 @@ The component provides the following CSS variables, which can be used to customi

| Name | Description | Default Value |
| --- | --- | --- |
| \--nutui-inputnumber-input-width | The width of the input in the number input box | `40px` |
| \--nutui-inputnumber-input-height | The height of the input in the number input box | `24px` |
| \--nutui-inputnumber-input-width | The width of the input in the number input box | `26px` |
| \--nutui-inputnumber-input-height | The height of the input in the number input box | `20px` |
| \--nutui-inputnumber-input-background-color | The background color of the input in the number input box | `$color-background` |
| \--nutui-inputnumber-input-font-color | The font size color of the input in the number input box | `$color-title` |
| \--nutui-inputnumber-input-font-size | The font size of the input in the number input box | `14px` |
| \--nutui-inputnumber-input-font-size | The font size of the input in the number input box | `12px` |
| \--nutui-inputnumber-input-border | The border value of the input in the number input box | `0` |
| \--nutui-inputnumber-input-border-radius | The rounded corners of the input in the number input box | `6px` |
| \--nutui-inputnumber-input-margin | The rounded corners of the input in the number input box | `0` |
| \--nutui-inputnumber-button-width | The width of the left and right buttons of the number input box | `14px` |
| \--nutui-inputnumber-button-height | The height of the left and right buttons of the number input box | `16px` |
| \--nutui-inputnumber-button-border-radius | The rounded corners of the left and right buttons of the number input box | `30px` |
| \--nutui-inputnumber-input-border-radius | The rounded corners of the input in the number input box | `4px` |
| \--nutui-inputnumber-input-margin | The rounded corners of the input in the number input box | `0px` |
| \--nutui-inputnumber-button-width | The width of the left and right buttons of the number input box | `20px` |
| \--nutui-inputnumber-button-height | The height of the left and right buttons of the number input box | `20px` |
| \--nutui-inputnumber-button-background-color | The background color of the left and right buttons of the number input box | `transparent` |
| \--nutui-inputnumber-icon-color | The color of the icon in the number input box | `$color-text` |
| \--nutui-inputnumber-icon-size | The size of the icon in the number input box | `8px` |
Expand Down
15 changes: 7 additions & 8 deletions src/packages/inputnumber/doc.md
Original file line number Diff line number Diff line change
Expand Up @@ -139,17 +139,16 @@ import { InputNumber } from '@nutui/nutui-react'

| 名称 | 说明 | 默认值 |
| --- | --- | --- |
| \--nutui-inputnumber-input-width | 数字输入框中input的宽度 | `40px` |
| \--nutui-inputnumber-input-height | 数字输入框中input的高度 | `24px` |
| \--nutui-inputnumber-input-width | 数字输入框中input的宽度 | `26px` |
| \--nutui-inputnumber-input-height | 数字输入框中input的高度 | `20px` |
| \--nutui-inputnumber-input-background-color | 数字输入框中input的背景颜色 | `$color-background` |
| \--nutui-inputnumber-input-font-color | 数字输入框中input的字号颜色 | `$color-title` |
| \--nutui-inputnumber-input-font-size | 数字输入框中input的字号大小 | `14px` |
| \--nutui-inputnumber-input-font-size | 数字输入框中input的字号大小 | `12px` |
| \--nutui-inputnumber-input-border | 数字输入框中input的border值 | `0` |
| \--nutui-inputnumber-input-border-radius | 数字输入框中input的圆角 | `6px` |
| \--nutui-inputnumber-input-margin | 数字输入框中input的margin值 | `0` |
| \--nutui-inputnumber-button-width | 数字输入框左右按钮的宽度 | `14px` |
| \--nutui-inputnumber-button-height | 数字输入框左右按钮的高度 | `16px` |
| \--nutui-inputnumber-button-border-radius | 数字输入框左右按钮的圆角 | `30px` |
| \--nutui-inputnumber-input-border-radius | 数字输入框中input的圆角 | `4px` |
| \--nutui-inputnumber-input-margin | 数字输入框中input的margin值 | `0px` |
| \--nutui-inputnumber-button-width | 数字输入框左右按钮的宽度 | `20px` |
| \--nutui-inputnumber-button-height | 数字输入框左右按钮的高度 | `20px` |
| \--nutui-inputnumber-button-background-color | 数字输入框左右按钮的背景色 | `transparent` |
| \--nutui-inputnumber-icon-color | 数字输入框中icon的颜色 | `$color-text` |
| \--nutui-inputnumber-icon-size | 数字输入框中icon的大小 | `8px` |
Expand Down
Loading
Loading