[Doc] detailed Array typing
This commit is contained in:
@@ -152,7 +152,7 @@ export default {
|
||||
| Attribute | Description | Type | Default |
|
||||
|------|------|------|------|------|
|
||||
| v-model | Id of chosen contact | `string | number` | - |
|
||||
| list | Contact list | `Array` | `[]` |
|
||||
| list | Contact list | `Contact[]` | `[]` |
|
||||
| add-text | Add button text | `string` | `Add new contact` |
|
||||
|
||||
### ContactList Events
|
||||
|
||||
@@ -156,7 +156,7 @@ export default {
|
||||
| 参数 | 说明 | 类型 | 默认值 | 版本 |
|
||||
|------|------|------|------|------|
|
||||
| v-model | 当前选中联系人的 id | `string | number` | - | - |
|
||||
| list | 联系人列表 | `Array` | `[]` | - |
|
||||
| list | 联系人列表 | `Contact[]` | `[]` | - |
|
||||
| add-text | 新建按钮文案 | `string` | `新建联系人` | - |
|
||||
|
||||
### ContactList Events
|
||||
@@ -184,7 +184,7 @@ export default {
|
||||
| save | 点击保存按钮时触发 | content:表单内容 |
|
||||
| delete | 点击删除按钮时触发 | content:表单内容 |
|
||||
|
||||
### 联系人数据格式
|
||||
### Contact 数据结构
|
||||
|
||||
| key | 说明 | 类型 |
|
||||
|------|------|------|
|
||||
|
||||
Reference in New Issue
Block a user