docs: ✏️ 优化 NoticeBar 垂直滚动示例

This commit is contained in:
不如摸鱼去 2024-11-10 17:45:24 +08:00
parent a1e20afef3
commit ff1d37723b
2 changed files with 3 additions and 3 deletions

View File

@ -29,7 +29,7 @@ const ExternalLinkIconComponent = defineComponent({
</script>
<template>
<el-link :href="href" style="text-decoration: none;font-size: 1.2em;" :underline="false">
<el-link :href="href" target="_blank" style="text-decoration: none;font-size: 1.2em;" :underline="false">
<slot />
<ExternalLinkIconComponent style="margin-left: 0.25em;"> </ExternalLinkIconComponent>
</el-link>

View File

@ -111,8 +111,8 @@ const onNext = (index: number) => {
2. `text`为数组时才会进行滚动
```html
<wd-notice-bar prefix="warn-bold" direction="vertical" :text="textArray" :speed="0.5" :delay="3" custom-class="space" />
<wd-notice-bar prefix="warn-bold" direction="vertical" text="只有一条消息不会滚动" :speed="0.5" :delay="3" custom-class="space" />
<wd-notice-bar prefix="warn-bold" direction="vertical" :text="textArray" :delay="3" custom-class="space" />
<wd-notice-bar prefix="warn-bold" direction="vertical" text="只有一条消息不会滚动" :delay="3" custom-class="space" />
```
## 重置播放动画 <el-tag text style="vertical-align: middle;margin-left:8px;" effect="plain">1.3.13</el-tag>