docs: type highlight (#4264)
This commit is contained in:
@@ -66,15 +66,15 @@ Vue.use(NoticeBar);
|
||||
|
||||
| Attribute | Description | Type | Default | Version |
|
||||
|------|------|------|------|------|
|
||||
| mode | Mode, can be set to `closeable` `link` | `string` | `''` | - |
|
||||
| text | Notice text content | `string` | `''` | - | - |
|
||||
| delay | Animation delay (s) | `number` | `1` | - |
|
||||
| speed | Scroll speed (px/s) | `number` | `50` | - |
|
||||
| scrollable | Whether to scroll content | `boolean` | `true` | - |
|
||||
| wrapable | Whether to enable text wrap | `boolean` | `false` | - | - |
|
||||
| left-icon | Left Icon | `string` | - | - |
|
||||
| color | Text color | `string` | `#f60` | - |
|
||||
| background | Background color | `string` | `#fff7cc` | - |
|
||||
| mode | Mode, can be set to `closeable` `link` | *string* | `''` | - |
|
||||
| text | Notice text content | *string* | `''` | - | - |
|
||||
| delay | Animation delay (s) | *number* | `1` | - |
|
||||
| speed | Scroll speed (px/s) | *number* | `50` | - |
|
||||
| scrollable | Whether to scroll content | *boolean* | `true` | - |
|
||||
| wrapable | Whether to enable text wrap | *boolean* | `false` | - | - |
|
||||
| left-icon | Left Icon | *string* | - | - |
|
||||
| color | Text color | *string* | `#f60` | - |
|
||||
| background | Background color | *string* | `#fff7cc` | - |
|
||||
|
||||
### Events
|
||||
|
||||
|
||||
@@ -74,15 +74,15 @@ Vue.use(NoticeBar);
|
||||
|
||||
| 参数 | 说明 | 类型 | 默认值 | 版本 |
|
||||
|------|------|------|------|------|
|
||||
| mode | 通知栏模式,可选值为 `closeable` `link` | `string` | `''` | - |
|
||||
| text | 通知文本内容 | `string` | `''` | - |
|
||||
| delay | 动画延迟时间 (s) | `number` | `1` | - |
|
||||
| speed | 滚动速率 (px/s) | `number` | `50` | - |
|
||||
| scrollable | 是否在长度溢出时滚动播放 | `boolean` | `true` | - |
|
||||
| wrapable | 是否开启文本换行,只在禁用滚动时生效 | `boolean` | `false` | - |
|
||||
| left-icon | 左侧图标名称或图片链接,可选值见 Icon 组件 | `string` | - | - |
|
||||
| color | 文本颜色 | `string` | `#f60` | - |
|
||||
| background | 滚动条背景 | `string` | `#fff7cc` | - |
|
||||
| mode | 通知栏模式,可选值为 `closeable` `link` | *string* | `''` | - |
|
||||
| text | 通知文本内容 | *string* | `''` | - |
|
||||
| delay | 动画延迟时间 (s) | *number* | `1` | - |
|
||||
| speed | 滚动速率 (px/s) | *number* | `50` | - |
|
||||
| scrollable | 是否在长度溢出时滚动播放 | *boolean* | `true` | - |
|
||||
| wrapable | 是否开启文本换行,只在禁用滚动时生效 | *boolean* | `false` | - |
|
||||
| left-icon | 左侧图标名称或图片链接,可选值见 Icon 组件 | *string* | - | - |
|
||||
| color | 文本颜色 | *string* | `#f60` | - |
|
||||
| background | 滚动条背景 | *string* | `#fff7cc` | - |
|
||||
|
||||
### Events
|
||||
|
||||
|
||||
Reference in New Issue
Block a user