Compare commits

...

2 Commits

Author SHA1 Message Date
chenjiahan
3f7427b771 chore: fix NoticeBar snapshot 2021-05-11 15:52:15 +08:00
neverland
28a3ef7bdf
feat(NoticeBar): increase default speed to 60 (#8694) 2021-05-11 15:49:59 +08:00
4 changed files with 4 additions and 4 deletions

View File

@ -39,7 +39,7 @@ export default defineComponent({
},
speed: {
type: [Number, String],
default: 50,
default: 60,
},
},

View File

@ -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` | - |

View File

@ -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` |

View File

@ -41,7 +41,7 @@ exports[`should start scrolling when content width > wrap width 1`] = `
<div role="marquee"
class="van-notice-bar__wrap"
>
<div style="transition-duration: 2s; transform: translateX(-100px);"
<div style="transition-duration: 1.6666666666666667s; transform: translateX(-100px);"
class="van-notice-bar__content"
>
foo