[Doc] detailed Array typing

This commit is contained in:
陈嘉涵
2019-07-11 20:44:51 +08:00
parent 019c75506a
commit 2c4adff307
34 changed files with 67 additions and 66 deletions
+4 -4
View File
@@ -63,8 +63,8 @@ export default {
| Attribute | Description | Type | Default |
|------|------|------|------|
| area-list | Area List | `object` | - |
| address-info | Address Info | `object` | `{}` |
| search-result | Address search result | `Array` | `[]` |
| address-info | Address Info | `AddressInfo` | `{}` |
| search-result | Address search result | `SearchResult[]` | `[]` |
| show-postal | Whether to show postal field | `boolean` | `false` |
| show-delete | Whether to show delete button | `boolean` | `false` |
| show-set-default | Whether to show default address switch | `boolean` | `false` |
@@ -105,7 +105,7 @@ Use ref to get address-edit instance and call instance methods
|------|------|------|------|
| setAddressDetail | addressDetail: string | - | Set address detail |
### addressInfo Data Structure
### AddressInfo Data Structure
| key | Description | Type |
|------|------|------|
@@ -120,7 +120,7 @@ Use ref to get address-edit instance and call instance methods
| postalCode | Postal code | `string` |
| isDefault | Is default address | `boolean` |
### searchResult Data Structure
### SearchResult Data Structure
| key | Description | Type |
|------|------|------|
+5 -5
View File
@@ -62,8 +62,8 @@ export default {
| 参数 | 说明 | 类型 | 默认值 | 版本 |
|------|------|------|------|------|
| area-list | 地区列表 | `object` | - | - |
| address-info | 收货人信息初始值 | `object` | `{}` | - |
| search-result | 详细地址搜索结果 | `Array` | `[]` | - |
| address-info | 收货人信息初始值 | `AddressInfo` | `{}` | - |
| search-result | 详细地址搜索结果 | `SearchResult[]` | `[]` | - |
| show-postal | 是否显示邮政编码 | `boolean` | `false` | - |
| show-delete | 是否显示删除按钮 | `boolean` | `false` | - |
| show-set-default | 是否显示默认地址栏 | `boolean` | `false` | - |
@@ -104,9 +104,9 @@ export default {
|------|------|------|------|
| setAddressDetail | addressDetail: string | - | 设置详细地址 |
### addressInfo 数据格式
### AddressInfo 数据格式
注意:addressInfo 仅作为初始值传入,表单最终内容可以在 save 事件中获取
注意:AddressInfo 仅作为初始值传入,表单最终内容可以在 save 事件中获取
| key | 说明 | 类型 |
|------|------|------|
@@ -121,7 +121,7 @@ export default {
| postalCode | 邮政编码 | `string` |
| isDefault | 是否为默认地址 | `boolean` |
### searchResult 数据格式
### SearchResult 数据格式
| key | 说明 | 类型 |
|------|------|------|