fix: fix doc for get-length
This commit is contained in:
parent
1f37be0095
commit
9c98bc65e2
@ -48,7 +48,7 @@
|
||||
| ``composition`` | `boolean=` | `false` | 是否感知输入法输入过程的值。 |
|
||||
| ``select-on-focus`` | `boolean=` | `false` | 聚焦时是否自动选中输入框文本。 |
|
||||
| ``maxlength`` | `number=` | - | 最大可输入的字符长度。 |
|
||||
| ``get-length`` | `function(string): number=` | 自定义的字符长度计算函数。 |
|
||||
| ``get-length`` | `function(string): number=` | - | 自定义的字符长度计算函数。 |
|
||||
| ``strict`` | `boolean=` | `false` | 是否超出最大字符长度后不允许继续输入。 |
|
||||
| ``trim`` | `boolean | string=` | `false` | [^trim] |
|
||||
|
||||
|
@ -40,7 +40,7 @@
|
||||
| ``suggestions`` | `Array<string>|Array<Object>` | - | [^suggestions] |
|
||||
| ``replace-on-select`` | `boolean` | `true` | 选择推荐项时是否自动使用其内容填充文本框。 |
|
||||
| ``maxlength`` | `number=` | - | 最大可输入的字符长度。 |
|
||||
| ``get-length`` | `function(string): number=` | 自定义的字符长度计算函数。 |
|
||||
| ``get-length`` | `function(string): number=` | - | 自定义的字符长度计算函数。 |
|
||||
| ``strict`` | `boolean=` | `false` | 是否超出最大字符长度后不允许继续输入。 |
|
||||
| ``trim`` | `boolean | string=` | `false` | [^trim] |
|
||||
| ``suggest-trigger`` | `Array<string>|string` | `input` | [^suggest-trigger] |
|
||||
|
@ -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] |
|
||||
|
||||
|
@ -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] |
|
||||
|
Loading…
Reference in New Issue
Block a user