{"meta":"<h2 id=\"Guide\">Guide <a class=\"header-anchor scroll-count-item\" href=\"#Guide\" data-scroll-id=\"Guide\">#</a></h2>\n<h3 id=\"When To Use\">When to use <a class=\"header-anchor scroll-count-item\" href=\"#When To Use\" data-scroll-id=\"When To Use\">#</a></h3>\n<p>Number input and auto correct data.</p>\n<h3 id=\"Attentions\">Attentions <a class=\"header-anchor scroll-count-item\" href=\"#Attentions\" data-scroll-id=\"Attentions\">#</a></h3>\n<ol>\n<li>\n<p>auto Correct may change the input value and make it different from the value which is from onChange.</p>\n</li>\n<li>\n<p>Some interval value may not trigger the onChange, For example:</p>\n<ul>\n<li><code>0</code>=&gt;<code>0.</code>=&gt;<code>0.0</code>=&gt;<code>0.01</code> the second &amp; third step will not trigger onChange, because auto correct will let value always be &apos;0&apos;</li>\n<li>Assume min=10, <code>1</code>=&gt;<code>12</code> the step one ,<code>1</code>, will not not trigger onChange, because the numbers are input one by one</li>\n</ul>\n</li>\n<li>\n<p>if input action does not trigger onChange, it will correct data and trigger onChange when it gets blur</p>\n</li>\n</ol>\n","api":"<h2 id=\"API\">API <a class=\"header-anchor scroll-count-item\" href=\"#API\" data-scroll-id=\"API\">#</a></h2>\n<h3 id=\"Number Picker\">NumberPicker <a class=\"header-anchor scroll-count-item\" href=\"#Number Picker\" data-scroll-id=\"Number Picker\">#</a></h3>\n<table>\n<thead>\n<tr>\n<th>Param</th>\n<th>Description</th>\n<th>Type</th>\n<th>Default Value</th>\n<th>Required</th>\n<th>Supported Version</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>size</td>\n<td>Size</td>\n<td>&apos;large&apos; | &apos;medium&apos; | &apos;small&apos;</td>\n<td>&apos;medium&apos;</td>\n<td></td>\n<td>-</td>\n</tr>\n<tr>\n<td>type</td>\n<td>Display type</td>\n<td>&apos;normal&apos; | &apos;inline&apos;</td>\n<td>&apos;normal&apos;</td>\n<td></td>\n<td>-</td>\n</tr>\n<tr>\n<td>value</td>\n<td>Current value</td>\n<td>number | string</td>\n<td>-</td>\n<td></td>\n<td>-</td>\n</tr>\n<tr>\n<td>defaultValue</td>\n<td>Default value</td>\n<td>number | string</td>\n<td>-</td>\n<td></td>\n<td>-</td>\n</tr>\n<tr>\n<td>disabled</td>\n<td>Disabled or not</td>\n<td>boolean</td>\n<td>-</td>\n<td></td>\n<td>-</td>\n</tr>\n<tr>\n<td>step</td>\n<td>Number changes per click</td>\n<td>number | string</td>\n<td>1</td>\n<td></td>\n<td>-</td>\n</tr>\n<tr>\n<td>precision</td>\n<td>Precision for decimals number</td>\n<td>number</td>\n<td>0</td>\n<td></td>\n<td>-</td>\n</tr>\n<tr>\n<td>editable</td>\n<td>Editable or not</td>\n<td>boolean</td>\n<td>true</td>\n<td></td>\n<td>-</td>\n</tr>\n<tr>\n<td>autoFocus</td>\n<td>Auto get focused or not</td>\n<td>boolean</td>\n<td>-</td>\n<td></td>\n<td>-</td>\n</tr>\n<tr>\n<td>onChange</td>\n<td>Callback when value changes<br><br><strong>signature</strong>:<br><strong>params</strong>:<br><em>value</em>: value<br><em>e</em>: e</td>\n<td>(<br> value: number | string | undefined,<br> e: (<br> | React.ChangeEvent&lt;HTMLInputElement&gt;<br> | React.CompositionEvent&lt;HTMLInputElement&gt;<br> | React.KeyboardEvent&lt;HTMLInputElement&gt;<br> | React.FocusEvent&lt;HTMLInputElement&gt;<br> | React.KeyboardEvent&lt;HTMLInputElement&gt;<br> ) &amp; {<br> triggerType: &apos;up&apos; | &apos;down&apos; | undefined;<br> }<br> ) =&gt; void</td>\n<td>func.noop</td>\n<td></td>\n<td>-</td>\n</tr>\n<tr>\n<td>onKeyDown</td>\n<td>Callback when key press<br><br><strong>signature</strong>:<br><strong>params</strong>:<br><em>e</em>: e</td>\n<td>InputProps[&apos;onKeyDown&apos;]</td>\n<td>func.noop</td>\n<td></td>\n<td>-</td>\n</tr>\n<tr>\n<td>onFocus</td>\n<td>Callback when get focus<br><br><strong>signature</strong>:<br><strong>params</strong>:<br><em>e</em>: e</td>\n<td>InputProps[&apos;onFocus&apos;]</td>\n<td>-</td>\n<td></td>\n<td>-</td>\n</tr>\n<tr>\n<td>onBlur</td>\n<td>Callback when lose focus<br><br><strong>signature</strong>:<br><strong>params</strong>:<br><em>e</em>: e</td>\n<td>InputProps[&apos;onBlur&apos;]</td>\n<td>func.noop</td>\n<td></td>\n<td>-</td>\n</tr>\n<tr>\n<td>onCorrect</td>\n<td>Callback when data are corrected<br><br><strong>signature</strong>:<br><strong>params</strong>:<br><em>obj</em>: obj</td>\n<td>(obj: { currentValue: number | string; oldValue: number | string }) =&gt; void</td>\n<td>func.noop</td>\n<td></td>\n<td>-</td>\n</tr>\n<tr>\n<td>max</td>\n<td>Maximum value</td>\n<td>number | string</td>\n<td>-</td>\n<td></td>\n<td>-</td>\n</tr>\n<tr>\n<td>min</td>\n<td>Minimum value</td>\n<td>number | string</td>\n<td>-</td>\n<td></td>\n<td>-</td>\n</tr>\n<tr>\n<td>format</td>\n<td>Format value for display<br><br><strong>signature</strong>:<br><strong>params</strong>:<br><em>value</em>: value</td>\n<td>(value: string | number) =&gt; string | number</td>\n<td>-</td>\n<td></td>\n<td>-</td>\n</tr>\n<tr>\n<td>hasTrigger</td>\n<td>Display btn trigger</td>\n<td>boolean</td>\n<td>true</td>\n<td></td>\n<td>-</td>\n</tr>\n<tr>\n<td>alwaysShowTrigger</td>\n<td>Always show btn trigger without hover</td>\n<td>boolean</td>\n<td>false</td>\n<td></td>\n<td>-</td>\n</tr>\n<tr>\n<td>label</td>\n<td>Inline left label</td>\n<td>React.ReactNode</td>\n<td>-</td>\n<td></td>\n<td>-</td>\n</tr>\n<tr>\n<td>innerAfter</td>\n<td>Inline right additional content</td>\n<td>React.ReactNode</td>\n<td>-</td>\n<td></td>\n<td>-</td>\n</tr>\n<tr>\n<td>upBtnProps</td>\n<td>Increase button props</td>\n<td>ButtonProps</td>\n<td>-</td>\n<td></td>\n<td>-</td>\n</tr>\n<tr>\n<td>downBtnProps</td>\n<td>Decrease button props</td>\n<td>ButtonProps</td>\n<td>-</td>\n<td></td>\n<td>-</td>\n</tr>\n<tr>\n<td>isPreview</td>\n<td>Is preview</td>\n<td>boolean</td>\n<td>-</td>\n<td></td>\n<td>-</td>\n</tr>\n<tr>\n<td>renderPreview</td>\n<td>Render content in preview mode<br><br><strong>signature</strong>:<br><strong>params</strong>:<br><em>value</em>: value<br><em>props</em>: props</td>\n<td>(value: number | string, props: NumberPickerProps) =&gt; React.ReactNode</td>\n<td>-</td>\n<td></td>\n<td>-</td>\n</tr>\n<tr>\n<td>stringMode</td>\n<td>Enable big number support, input and output are all string types</td>\n<td>boolean</td>\n<td>false</td>\n<td></td>\n<td>1.24</td>\n</tr>\n<tr>\n<td>state</td>\n<td>State</td>\n<td>&apos;error&apos; | &apos;success&apos;</td>\n<td>-</td>\n<td></td>\n<td>-</td>\n</tr>\n</tbody>\n</table>\n<h2 id=\"ARIA And Key Board\">ARIA and KeyBoard <a class=\"header-anchor scroll-count-item\" href=\"#ARIA And Key Board\" data-scroll-id=\"ARIA And Key Board\">#</a></h2>\n<table>\n<thead>\n<tr>\n<th style=\"text-align:left\">KeyBoard</th>\n<th style=\"text-align:left\">Descripiton</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td style=\"text-align:left\">Up Arrow</td>\n<td style=\"text-align:left\">increase the number</td>\n</tr>\n<tr>\n<td style=\"text-align:left\">Down Arrow</td>\n<td style=\"text-align:left\">decrease the number</td>\n</tr>\n</tbody>\n</table>\n"}