AddressList
Install
Usage
Basic Usage
API
Props
| Attribute |
Description |
Type |
Default |
| 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 |
default-tag-text v2.3.0 |
Default tag text |
string |
- |
Events
| Event |
Description |
Arguments |
| add |
Triggered when click add button |
- |
| edit |
Triggered when edit address |
item: address object,index |
| select |
Triggered when select address |
item: address object,index |
| edit-disabled |
Triggered when edit disabled address |
item: address object,index |
| select-disabled |
Triggered when select disabled address |
item: address object,index |
| click-item |
Triggered when click address item |
item: address object,index |
Data Structure of Address
| Key |
Description |
Type |
| id |
Id |
number | string |
| name |
Name |
string |
| tel |
Phone |
number | string |
| address |
Address |
string |
| isDefault |
Is default address |
boolean |
Slots
| Name |
Description |
SlotProps |
| default |
Custom content after list |
- |
| top |
Custom content before list |
- |
item-bottom v2.5.0 |
Custom content after list item |
item |