[Doc] detailed Array typing
This commit is contained in:
@@ -69,12 +69,12 @@ export default {
|
||||
|
||||
| Attribute | Description | Type | Default |
|
||||
|------|------|------|------|
|
||||
| v-model | Id of chosen address | string | - |
|
||||
| list | Address list | Array | `[]` |
|
||||
| disabled-list | Disabled address list | `Array` | `[]` |
|
||||
| v-model | Id of chosen address | `string` | - |
|
||||
| list | Address list | `Address[]` | `[]` |
|
||||
| disabled-list | Disabled address list | `Address[]` | `[]` |
|
||||
| disabled-text | Disabled text | `string` | - |
|
||||
| switchable | Whether to allow switch address | `boolean` | `true` |
|
||||
| add-button-text | Add button text | string | `Add new address` |
|
||||
| add-button-text | Add button text | `string` | `Add new address` |
|
||||
|
||||
### Events
|
||||
|
||||
|
||||
@@ -71,11 +71,11 @@ export default {
|
||||
| 参数 | 说明 | 类型 | 默认值 | 版本 |
|
||||
|------|------|------|------|------|
|
||||
| v-model | 当前选中地址的 id | `string` | - | - |
|
||||
| list | 地址列表 | `Array` | `[]` | - |
|
||||
| add-button-text | 底部按钮文字 | `string` | `新增地址` | - |
|
||||
| disabled-list | 不可配送地址列表 | `Array` | `[]` | - |
|
||||
| list | 地址列表 | `Address[]` | `[]` | - |
|
||||
| disabled-list | 不可配送地址列表 | `Address[]` | `[]` | - |
|
||||
| disabled-text | 不可配送提示文案 | `string` | - | - |
|
||||
| switchable | 是否允许切换地址 | `boolean` | `true` | - |
|
||||
| add-button-text | 底部按钮文字 | `string` | `新增地址` | - |
|
||||
|
||||
### Events
|
||||
|
||||
@@ -87,7 +87,7 @@ export default {
|
||||
| edit-disabled | 编辑不可配送的地址时触发 | item: 地址对象,index: 索引 |
|
||||
| select-disabled | 选中不可配送的地址时触发 | item: 地址对象,index: 索引 |
|
||||
|
||||
### 地址列表字段说明
|
||||
### Address 数据结构
|
||||
|
||||
| key | 说明 | 类型 |
|
||||
|------|------|------|
|
||||
|
||||
Reference in New Issue
Block a user