refactor: improve union type formatting

This commit is contained in:
Justineo
2021-10-18 16:51:48 +08:00
parent 87e976bb7e
commit 85ef96d46b
38 changed files with 72 additions and 72 deletions

View File

@@ -57,7 +57,7 @@
| -- | -- | -- |
| `fields` | `Array` | 对应 `Field``field` 描述的集合。事件会绑定到对应 `Field` 中的输入组件上。 |
| `validate` | `function` | 自定义校验函数,传入参数为 `(data[fields[0]], data[fields[1]], ...)``data` 为表单 `data` 属性值的引用。返回 `undefined`/`true` 代表校验成功,返回 `{[field]: message, ...}` 表示校验失败信息,详见[表单 表单校验逻辑](#表单校验逻辑)。 |
| `triggers` | `string|Array<string>` | 事件名称集合。 |
| `triggers` | `string | Array<string>` | 事件名称集合。 |
+++