[Doc] use ts-style type
This commit is contained in:
@@ -69,12 +69,12 @@ export default {
|
||||
|
||||
| Attribute | Description | Type | Default |
|
||||
|------|------|------|------|
|
||||
| v-model | Id of chosen address | String | - |
|
||||
| v-model | Id of chosen address | string | - |
|
||||
| list | Address list | Array | `[]` |
|
||||
| disabled-list | Disabled address list | `Array` | `[]` |
|
||||
| disabled-text | Disabled text | `String` | - |
|
||||
| switchable | Whether to allow switch address | `Boolean` | `true` |
|
||||
| add-button-text | Add button text | String | `Add new address` |
|
||||
| disabled-text | Disabled text | `string` | - |
|
||||
| switchable | Whether to allow switch address | `boolean` | `true` |
|
||||
| add-button-text | Add button text | string | `Add new address` |
|
||||
|
||||
### Events
|
||||
|
||||
@@ -90,10 +90,10 @@ export default {
|
||||
|
||||
| key | Description | Type |
|
||||
|------|------|------|
|
||||
| id | Id | `String | Number` |
|
||||
| name | Name | `String` |
|
||||
| tel | Phone | `String | Number` |
|
||||
| address | Address | `String` |
|
||||
| id | Id | `string | number` |
|
||||
| name | Name | `string` |
|
||||
| tel | Phone | `string | number` |
|
||||
| address | Address | `string` |
|
||||
|
||||
### Slots
|
||||
|
||||
|
||||
@@ -70,12 +70,12 @@ export default {
|
||||
|
||||
| 参数 | 说明 | 类型 | 默认值 | 版本 |
|
||||
|------|------|------|------|------|
|
||||
| v-model | 当前选中地址的 id | `String` | - | - |
|
||||
| v-model | 当前选中地址的 id | `string` | - | - |
|
||||
| list | 地址列表 | `Array` | `[]` | - |
|
||||
| add-button-text | 底部按钮文字 | `String` | `新增地址` | - |
|
||||
| add-button-text | 底部按钮文字 | `string` | `新增地址` | - |
|
||||
| disabled-list | 不可配送地址列表 | `Array` | `[]` | - |
|
||||
| disabled-text | 不可配送提示文案 | `String` | - | - |
|
||||
| switchable | 是否允许切换地址 | `Boolean` | `true` | - |
|
||||
| disabled-text | 不可配送提示文案 | `string` | - | - |
|
||||
| switchable | 是否允许切换地址 | `boolean` | `true` | - |
|
||||
|
||||
### Events
|
||||
|
||||
@@ -91,10 +91,10 @@ export default {
|
||||
|
||||
| key | 说明 | 类型 |
|
||||
|------|------|------|
|
||||
| id | 每条地址的唯一标识 | `String | Number` |
|
||||
| name | 收货人姓名 | `String` |
|
||||
| tel | 收货人手机号 | `String | Number` |
|
||||
| address | 收货地址 | `String` |
|
||||
| id | 每条地址的唯一标识 | `string | number` |
|
||||
| name | 收货人姓名 | `string` |
|
||||
| tel | 收货人手机号 | `string | number` |
|
||||
| address | 收货地址 | `string` |
|
||||
|
||||
### Slots
|
||||
|
||||
|
||||
Reference in New Issue
Block a user