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
+18 -18
View File
@@ -52,10 +52,10 @@ Vue.use(IndexAnchor);
export default {
data() {
return {
indexList: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
}
}
}
indexList: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10],
};
},
};
```
## API
@@ -63,27 +63,27 @@ export default {
### IndexBar Props
| Attribute | Description | Type | Default |
|------|------|------|------|
| index-list | Index List | *string[] \| number[]* | `A-Z` |
| z-index | z-index | *number \| string* | `1` |
| sticky | Whether to enable anchor sticky top | *boolean* | `true` |
| sticky-offset-top `v2.0.7` | Anchor offset top when sticky | *number* | `0` |
| highlight-color | Index character highlight color | *string* | `#07c160` | - |
| --- | --- | --- | --- |
| index-list | Index List | _string[] \| number[]_ | `A-Z` |
| z-index | z-index | _number \| string_ | `1` |
| sticky | Whether to enable anchor sticky top | _boolean_ | `true` |
| sticky-offset-top `v2.0.7` | Anchor offset top when sticky | _number_ | `0` |
| highlight-color | Index character highlight color | _string_ | `#07c160` | - |
### IndexAnchor Props
| Attribute | Description | Type | Default |
|------|------|------|------|
| index | Index | *number \| string* | - |
| Attribute | Description | Type | Default |
| --------- | ----------- | ------------------ | ------- |
| index | Index | _number \| string_ | - |
### IndexBar Events
| Event | Description | Arguments |
|------|------|------|
| select | Triggered when select index | index |
| Event | Description | Arguments |
| ------ | --------------------------- | --------- |
| select | Triggered when select index | index |
### IndexAnchor Slots
| Name | Description |
|------|------|
| Name | Description |
| ------- | ------------------------------------- |
| default | Anchor content, show index by default |