Skip to content

Commit ff1d377

Browse files
docs: ✏️ 优化 NoticeBar 垂直滚动示例
1 parent a1e20af commit ff1d377

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

docs/.vitepress/theme/components/ExternalLink.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ const ExternalLinkIconComponent = defineComponent({
2929
</script>
3030

3131
<template>
32-
<el-link :href="href" style="text-decoration: none;font-size: 1.2em;" :underline="false">
32+
<el-link :href="href" target="_blank" style="text-decoration: none;font-size: 1.2em;" :underline="false">
3333
<slot />
3434
<ExternalLinkIconComponent style="margin-left: 0.25em;"> </ExternalLinkIconComponent>
3535
</el-link>

docs/component/notice-bar.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,8 +111,8 @@ const onNext = (index: number) => {
111111
2. `text`为数组时才会进行滚动
112112

113113
```html
114-
<wd-notice-bar prefix="warn-bold" direction="vertical" :text="textArray" :speed="0.5" :delay="3" custom-class="space" />
115-
<wd-notice-bar prefix="warn-bold" direction="vertical" text="只有一条消息不会滚动" :speed="0.5" :delay="3" custom-class="space" />
114+
<wd-notice-bar prefix="warn-bold" direction="vertical" :text="textArray" :delay="3" custom-class="space" />
115+
<wd-notice-bar prefix="warn-bold" direction="vertical" text="只有一条消息不会滚动" :delay="3" custom-class="space" />
116116
```
117117

118118
## 重置播放动画 <el-tag text style="vertical-align: middle;margin-left:8px;" effect="plain">1.3.13</el-tag>

0 commit comments

Comments
 (0)