mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-23 18:00:27 +08:00
feat(NoticeBar): speed can be string
This commit is contained in:
parent
b32705cf93
commit
bb5f28e10e
@ -65,13 +65,13 @@ Vue.use(NoticeBar);
|
|||||||
|------|------|------|------|
|
|------|------|------|------|
|
||||||
| mode | Mode, can be set to `closeable` `link` | *string* | `''` |
|
| mode | Mode, can be set to `closeable` `link` | *string* | `''` |
|
||||||
| text | Notice text content | *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` |
|
| color | Text color | *string* | `#f60` |
|
||||||
| background | Background color | *string* | `#fff7cc` |
|
| background | Background color | *string* | `#fff7cc` |
|
||||||
|
| left-icon | Left Icon | *string* | - |
|
||||||
|
| delay | Animation delay (s) | *number \| string* | `1` |
|
||||||
|
| speed | Scroll speed (px/s) | *number \| string* | `50` |
|
||||||
|
| scrollable | Whether to scroll content | *boolean* | `true` |
|
||||||
|
| wrapable | Whether to enable text wrap | *boolean* | `false` | - |
|
||||||
|
|
||||||
### Events
|
### Events
|
||||||
|
|
||||||
|
@ -73,13 +73,13 @@ Vue.use(NoticeBar);
|
|||||||
|------|------|------|------|
|
|------|------|------|------|
|
||||||
| mode | 通知栏模式,可选值为 `closeable` `link` | *string* | `''` |
|
| mode | 通知栏模式,可选值为 `closeable` `link` | *string* | `''` |
|
||||||
| text | 通知文本内容 | *string* | `''` |
|
| text | 通知文本内容 | *string* | `''` |
|
||||||
| delay | 动画延迟时间 (s) | *number* | `1` |
|
|
||||||
| speed | 滚动速率 (px/s) | *number* | `50` |
|
|
||||||
| scrollable | 是否在长度溢出时滚动播放 | *boolean* | `true` |
|
|
||||||
| wrapable | 是否开启文本换行,只在禁用滚动时生效 | *boolean* | `false` |
|
|
||||||
| left-icon | 左侧 [图标名称](#/zh-CN/icon) 或图片链接 | *string* | - |
|
|
||||||
| color | 文本颜色 | *string* | `#f60` |
|
| color | 文本颜色 | *string* | `#f60` |
|
||||||
| background | 滚动条背景 | *string* | `#fff7cc` |
|
| background | 滚动条背景 | *string* | `#fff7cc` |
|
||||||
|
| left-icon | 左侧 [图标名称](#/zh-CN/icon) 或图片链接 | *string* | - |
|
||||||
|
| delay | 动画延迟时间 (s) | *number \| string* | `1` |
|
||||||
|
| speed | 滚动速率 (px/s) | *number \| string* | `50` |
|
||||||
|
| scrollable | 是否在长度溢出时滚动播放 | *boolean* | `true` |
|
||||||
|
| wrapable | 是否开启文本换行,只在禁用滚动时生效 | *boolean* | `false` |
|
||||||
|
|
||||||
### Events
|
### Events
|
||||||
|
|
||||||
|
@ -11,16 +11,16 @@ export default createComponent({
|
|||||||
leftIcon: String,
|
leftIcon: String,
|
||||||
wrapable: Boolean,
|
wrapable: Boolean,
|
||||||
background: String,
|
background: String,
|
||||||
delay: {
|
|
||||||
type: [Number, String],
|
|
||||||
default: 1,
|
|
||||||
},
|
|
||||||
scrollable: {
|
scrollable: {
|
||||||
type: Boolean,
|
type: Boolean,
|
||||||
default: true,
|
default: true,
|
||||||
},
|
},
|
||||||
|
delay: {
|
||||||
|
type: [Number, String],
|
||||||
|
default: 1,
|
||||||
|
},
|
||||||
speed: {
|
speed: {
|
||||||
type: Number,
|
type: [Number, String],
|
||||||
default: 50,
|
default: 50,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user