docs: prettier all markdown files

This commit is contained in:
chenjiahan
2020-04-11 09:17:33 +08:00
committed by neverland
parent 48067f79db
commit 7f84f8a487
140 changed files with 4441 additions and 4723 deletions
+31 -31
View File
@@ -37,24 +37,24 @@ export default {
id: '1',
name: 'John Snow',
tel: '13000000000',
address: 'Somewhere'
address: 'Somewhere',
},
{
id: '2',
name: 'Ned Stark',
tel: '1310000000',
address: 'Somewhere'
}
address: 'Somewhere',
},
],
disabledList: [
{
id: '3',
name: 'Tywin',
tel: '1320000000',
address: 'Somewhere'
}
]
}
address: 'Somewhere',
},
],
};
},
methods: {
onAdd() {
@@ -62,9 +62,9 @@ export default {
},
onEdit(item, index) {
Toast('Edit:' + index);
}
}
}
},
},
};
```
## API
@@ -72,19 +72,19 @@ export default {
### 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* | - |
| --- | --- | --- | --- |
| 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 objectindex |
| select | Triggered when select address | item: address objectindex |
@@ -94,18 +94,18 @@ export default {
### 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* |
| 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 |
| Name | Description | SlotProps |
| -------------------- | ------------------------------ | --------- |
| default | Custom content after list | - |
| top | Custom content before list | - |
| item-bottom `v2.5.0` | Custom content after list item | item |