Merge branch '2.x' into dev
This commit is contained in:
+21
-1
@@ -64,7 +64,7 @@ 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` |
|
||||
@@ -89,3 +89,23 @@ export default {
|
||||
| Name | Description |
|
||||
| ------- | ------------------------------------- |
|
||||
| default | Anchor content, show index by default |
|
||||
|
||||
### Less Variables
|
||||
|
||||
How to use: [Custom Theme](#/en-US/theme).
|
||||
|
||||
| Name | Default Value | Description |
|
||||
| ------------------------------------- | ------------------- | ----------- |
|
||||
| @index-bar-sidebar-z-index | `2` | - |
|
||||
| @index-bar-index-font-size | `@font-size-xs` | - |
|
||||
| @index-bar-index-line-height | `@line-height-xs` | - |
|
||||
| @index-bar-index-active-color | `@green` | - |
|
||||
| @index-anchor-z-index | `1` | - |
|
||||
| @index-anchor-padding | `0 @padding-md` | - |
|
||||
| @index-anchor-text-color | `@text-color` | - |
|
||||
| @index-anchor-font-weight | `@font-weight-bold` | - |
|
||||
| @index-anchor-font-size | `@font-size-md` | - |
|
||||
| @index-anchor-line-height | `32px` | - |
|
||||
| @index-anchor-background-color | `transparent` | - |
|
||||
| @index-anchor-sticky-text-color | `@green` | - |
|
||||
| @index-anchor-sticky-background-color | `@white` | - |
|
||||
|
||||
Reference in New Issue
Block a user