docs: type highlight (#4264)
This commit is contained in:
+10
-10
@@ -71,12 +71,12 @@ export default {
|
||||
|
||||
| Attribute | Description | Type | Default | Version |
|
||||
|------|------|------|------|------|
|
||||
| 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` | - |
|
||||
| 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` | - |
|
||||
|
||||
### Events
|
||||
|
||||
@@ -93,10 +93,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
|
||||
|
||||
|
||||
@@ -72,12 +72,12 @@ export default {
|
||||
|
||||
| 参数 | 说明 | 类型 | 默认值 | 版本 |
|
||||
|------|------|------|------|------|
|
||||
| v-model | 当前选中地址的 id | `string` | - | - |
|
||||
| list | 地址列表 | `Address[]` | `[]` | - |
|
||||
| disabled-list | 不可配送地址列表 | `Address[]` | `[]` | - |
|
||||
| disabled-text | 不可配送提示文案 | `string` | - | - |
|
||||
| switchable | 是否允许切换地址 | `boolean` | `true` | - |
|
||||
| add-button-text | 底部按钮文字 | `string` | `新增地址` | - |
|
||||
| v-model | 当前选中地址的 id | *string* | - | - |
|
||||
| list | 地址列表 | *Address[]* | `[]` | - |
|
||||
| disabled-list | 不可配送地址列表 | *Address[]* | `[]` | - |
|
||||
| disabled-text | 不可配送提示文案 | *string* | - | - |
|
||||
| switchable | 是否允许切换地址 | *boolean* | `true` | - |
|
||||
| add-button-text | 底部按钮文字 | *string* | `新增地址` | - |
|
||||
|
||||
### Events
|
||||
|
||||
@@ -94,10 +94,10 @@ export default {
|
||||
|
||||
| 键名 | 说明 | 类型 |
|
||||
|------|------|------|
|
||||
| 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