docs: prettier all markdown files
This commit is contained in:
+18
-18
@@ -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 |
|
||||
|
||||
Reference in New Issue
Block a user