fix: fix doc for get-length

This commit is contained in:
Justineo
2022-05-07 00:55:30 +08:00
committed by GU Yiling
parent 1f37be0095
commit 9c98bc65e2
4 changed files with 4 additions and 4 deletions

View File

@@ -36,7 +36,7 @@ Use the [`disabled`](#props-disabled) prop to set an input to disabled state.
| ``composition`` | `boolean=` | `false` | Whether the input process should be aware of composition. |
| ``select-on-focus`` | `boolean=` | `false` | Whether to select text content when focused. |
| ``maxlength`` | `number=` | - | The maximum length of characters that can be entered. |
| ``get-length`` | `function(string): number=` | Used to customize length calculation of the input. |
| ``get-length`` | `function(string): number=` | - | Used to customize length calculation of the input. |
| ``strict`` | `boolean=` | `false` | Whether to disallow further input after reaching the maximum character length. |
| ``trim`` | `boolean | string=` | `false` | [^trim] |

View File

@@ -40,7 +40,7 @@ Available size values for the [`ui`](#props-ui) prop: `xs` / `s` / `m` / `l`.
| ``suggestions`` | `Array<string>|Array<Object>` | - | [^suggestions] |
| ``replace-on-select`` | `boolean` | `true` | Whether to replace the content with suggestion item value when it's selected. |
| ``maxlength`` | `number=` | - | The maximum length of characters that can be entered. |
| ``get-length`` | `function(string): number=` | Used to customize length calculation of the input. |
| ``get-length`` | `function(string): number=` | - | Used to customize length calculation of the input. |
| ``strict`` | `boolean=` | `false` | Whether to disallow further input after reaching the maximum character length. |
| ``trim`` | `boolean | string=` | `false` | [^trim] |
| ``suggest-trigger`` | `Array<string>|string` | `input` | [^suggest-trigger] |