docs: display all less variables (#7604)
This commit is contained in:
@@ -113,3 +113,19 @@ Vue.use(NoticeBar);
|
||||
| default | Notice text content |
|
||||
| left-icon | Custom left icon |
|
||||
| right-icon | Custom right icon |
|
||||
|
||||
### Less Variables
|
||||
|
||||
How to use: [Custom Theme](#/en-US/theme).
|
||||
|
||||
| Name | Default Value | Description |
|
||||
| ---------------------------- | ------------------------- | ----------- |
|
||||
| @notice-bar-height | `40px` | - |
|
||||
| @notice-bar-padding | `0 @padding-md` | - |
|
||||
| @notice-bar-wrapable-padding | `@padding-xs @padding-md` | - |
|
||||
| @notice-bar-text-color | `@orange-dark` | - |
|
||||
| @notice-bar-font-size | `@font-size-md` | - |
|
||||
| @notice-bar-line-height | `24px` | - |
|
||||
| @notice-bar-background-color | `@orange-light` | - |
|
||||
| @notice-bar-icon-size | `16px` | - |
|
||||
| @notice-bar-icon-min-width | `24px` | - |
|
||||
|
||||
@@ -136,3 +136,19 @@ Vue.use(NoticeBar);
|
||||
| default | 通知文本内容 |
|
||||
| left-icon | 自定义左侧图标 |
|
||||
| right-icon | 自定义右侧图标 |
|
||||
|
||||
### 样式变量
|
||||
|
||||
组件提供了下列 Less 变量,可用于自定义样式,使用方法请参考[主题定制](#/zh-CN/theme)。
|
||||
|
||||
| 名称 | 默认值 | 描述 |
|
||||
| ---------------------------- | ------------------------- | ---- |
|
||||
| @notice-bar-height | `40px` | - |
|
||||
| @notice-bar-padding | `0 @padding-md` | - |
|
||||
| @notice-bar-wrapable-padding | `@padding-xs @padding-md` | - |
|
||||
| @notice-bar-text-color | `@orange-dark` | - |
|
||||
| @notice-bar-font-size | `@font-size-md` | - |
|
||||
| @notice-bar-line-height | `24px` | - |
|
||||
| @notice-bar-background-color | `@orange-light` | - |
|
||||
| @notice-bar-icon-size | `16px` | - |
|
||||
| @notice-bar-icon-min-width | `24px` | - |
|
||||
|
||||
Reference in New Issue
Block a user