mirror of
https://gitee.com/wot-design-uni/wot-design-uni.git
synced 2025-12-06 17:18:40 +08:00
docs: ✏️ 优化 NoticeBar 垂直滚动示例
This commit is contained in:
parent
a1e20afef3
commit
ff1d37723b
@ -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>
|
||||
|
||||
@ -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>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user