feat(Search): add formatter、format-trigger prop (#8441)

This commit is contained in:
neverland
2021-04-01 10:04:55 +08:00
committed by GitHub
parent d1196f885d
commit 522ce16159
4 changed files with 12 additions and 4 deletions
+3 -1
View File
@@ -127,7 +127,9 @@ Use `action` slot to custom right button, `cancel` event will no longer be Emitt
| action-text | Text of action button | _boolean_ | `Cancel` |
| disabled | Whether to disable field | _boolean_ | `false` |
| readonly | Whether to be readonly | _boolean_ | `false` |
| error | Whether to show error info | _boolean_ | `false` |
| error | Whether to mark the input content in red | _boolean_ | `false` |
| formatter `v3.0.12` | Input value formatter | _(val: string) => string_ | - |
| format-trigger `v3.0.12` | When to format valuecan be set to `onBlur` | _string_ | `onChange` |
| input-align | Text align of field, can be set to `center` `right` | _string_ | `left` |
| left-icon | Left icon name | _string_ | `search` |
| right-icon | Right icon name | _string_ | - |