AddressEdit
Install
Usage
Basic Usage
API
Attribute |
Description |
Type |
Default |
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-delete |
Whether to show delete button |
Boolean |
false |
show-set-default |
Whether to show default address switch |
Boolean |
false |
show-search-result |
Whether to show address search result |
Boolean |
false |
save-button-text |
Save button text |
String |
Save |
delete-button-text |
Delete button text |
String |
Delete |
is-saving |
Whether to show save button loading status |
Boolean |
false |
is-deleting |
Whether to show delete button loading status |
Boolean |
false |
tel-validator |
The method to validate tel |
(tel: string) => boolean |
- |
Event
Event |
Description |
Arguments |
save |
Triggered when click save button |
content:form content |
focus |
Triggered when focus field |
key: field name |
delete |
Triggered when confirm delete |
content:form content |
cancel-delete |
Triggered when cancel delete |
content:form content |
select-search |
Triggered when select search result |
value: search content |
change-area |
Triggered when change area |
values: area values |
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 |
addressDetail |
Detailed Address |
String |
areaCode |
Area code |
String |
postalCode |
Postal code |
String |
isDefault |
Is default address |
Boolean |
searchResult Data Structure
key |
Description |
Type |
name |
Name |
String |
address |
Address |
String |
Area Data Structure
Please refer to Area component。