ContactList
Install
Register component globally via app.use, refer to Component Registration for more registration ways。
Usage
Basic Usage
API
Props
| Attribute |
Description |
Type |
Default |
| v-model |
Id of chosen contact |
number | string |
- |
| list |
Contact list |
Contact[] |
[] |
| add-text |
Add button text |
string |
Add new contact |
| default-tag-text |
Default tag text |
string |
- |
Events
| Event |
Description |
Arguments |
| add |
Emitted when the add button is clicked |
- |
| edit |
Emitted when the edit button is clicked |
contact: Contact,index: number |
| select |
Emitted when a contact is selected |
contact: Contact, index: number |
Data Structure of Contact
| key |
Description |
Type |
| id |
ID |
number | string |
| name |
Name |
string |
| tel |
Phone |
string |
| isDefault |
Is default contact |
boolean |
Less Variables
How to use: Custom Theme.
| Name |
Default Value |
Description |
| @contact-list-edit-icon-size |
16px |
- |
| @contact-list-add-button-z-index |
999 |
- |
| @contact-list-item-padding |
@padding-md |
- |
| @contact-list-item-radio-icon-color |
@red |
- |