feat(Search): add error-message prop (#8442)

This commit is contained in:
neverland
2021-04-01 10:19:50 +08:00
committed by GitHub
parent 522ce16159
commit 96ae24496e
5 changed files with 8 additions and 4 deletions
+1
View File
@@ -128,6 +128,7 @@ Use `action` slot to custom right button, `cancel` event will no longer be Emitt
| disabled | Whether to disable field | _boolean_ | `false` |
| readonly | Whether to be readonly | _boolean_ | `false` |
| error | Whether to mark the input content in red | _boolean_ | `false` |
| error-message `v3.0.12` | Error message | _string_ | - |
| 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` |