mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-05-21 22:09:16 +08:00
feat(NoticeBar): increase default speed to 60 (#8694)
This commit is contained in:
parent
c9d916a3e4
commit
28a3ef7bdf
@ -39,7 +39,7 @@ export default defineComponent({
|
||||
},
|
||||
speed: {
|
||||
type: [Number, String],
|
||||
default: 50,
|
||||
default: 60,
|
||||
},
|
||||
},
|
||||
|
||||
|
@ -95,7 +95,7 @@ app.use(NoticeBar);
|
||||
| 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` |
|
||||
| speed | Scroll speed (px/s) | _number \| string_ | `60` |
|
||||
| scrollable | Whether to scroll content | _boolean_ | - |
|
||||
| wrapable | Whether to enable text wrap | _boolean_ | `false` | - |
|
||||
|
||||
|
@ -116,7 +116,7 @@ app.use(NoticeBar);
|
||||
| background | 滚动条背景 | _string_ | `#fff7cc` |
|
||||
| left-icon | 左侧[图标名称](#/zh-CN/icon)或图片链接 | _string_ | - |
|
||||
| delay | 动画延迟时间 (s) | _number \| string_ | `1` |
|
||||
| speed | 滚动速率 (px/s) | _number \| string_ | `50` |
|
||||
| speed | 滚动速率 (px/s) | _number \| string_ | `60` |
|
||||
| scrollable | 是否开启滚动播放,内容长度溢出时默认开启 | _boolean_ | - |
|
||||
| wrapable | 是否开启文本换行,只在禁用滚动时生效 | _boolean_ | `false` |
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user