AddressEdit
Install
Usage
Basic Usage
API
Attribute |
Description |
Type |
Default |
Accepted Values |
area-list |
Area List |
Object |
- |
- |
address-info |
Address Info |
Object |
{} |
- |
search-result |
Address search result |
Array |
[] |
- |
show-postal |
Whether to show postal field |
Boolean |
false |
- |
show-set-default |
Whether to show default address switch |
Boolean |
false |
- |
show-search-result |
Whether to show address search result |
Boolean |
false |
- |
is-saving |
Whether to show save button loading status |
Boolean |
false |
- |
is-deleting |
Whether to show delete button loading status |
Boolean |
false |
- |
Event
Event |
Description |
Arguments |
save |
Triggered when click save button |
content:Form content |
delete |
Triggered when click delete |
content:Form content |
change-detail |
Triggered when address detail changed |
value: address detail |
Slot
Name |
Description |
- |
Custom content below postal |
Data Structure
addressInfo Data Structure
key |
Description |
Type |
id |
Address Id |
`String |
name |
Name |
String |
tel |
Phone |
String |
province |
Province |
String |
city |
City |
String |
county |
County |
String |
address_detail |
Detailed Address |
String |
area_code |
Area code |
String |
postal_code |
Postal code |
String |
is_default |
Is default address |
String |
searchResult Data Structure
key |
Description |
Type |
name |
Name |
String |
address |
Address |
String |
Area Data Structure
Please refer to Area component。