-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
30 changed files
with
469 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,6 +10,7 @@ bordered.vue | |
closable.vue | ||
icon.vue | ||
no-icon.vue | ||
marquee.vue | ||
``` | ||
|
||
## API | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<markdown> | ||
# Marquee | ||
|
||
You can use `n-marquee` to achieve marquee effect. | ||
</markdown> | ||
|
||
<template> | ||
<n-alert type="error" title="Warning"> | ||
<n-marquee> | ||
<div style="margin-right: 64px"> | ||
Test environment is offline again. | ||
</div> | ||
</n-marquee> | ||
</n-alert> | ||
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,6 +12,7 @@ bordered.vue | |
closable.vue | ||
icon.vue | ||
no-icon.vue | ||
marquee.vue | ||
rtl-debug.vue | ||
empty-debug.vue | ||
``` | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<markdown> | ||
# 跑马灯 | ||
|
||
你可以配合 `n-marquee` 实现轮播的效果。 | ||
</markdown> | ||
|
||
<template> | ||
<n-alert type="error" title="呵呵"> | ||
<n-marquee> | ||
<div style="margin-right: 64px"> | ||
测试环境又挂了。 | ||
</div> | ||
</n-marquee> | ||
</n-alert> | ||
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<markdown> | ||
# Auto fill | ||
|
||
Use `auto-fill` prop to fill all the blank space that left. | ||
</markdown> | ||
|
||
<template> | ||
<n-marquee auto-fill> | ||
<n-image | ||
width="80" | ||
height="80" | ||
src="https://07akioni.oss-cn-beijing.aliyuncs.com/07akioni.jpeg" | ||
style="margin-right: 24px" | ||
/> | ||
</n-marquee> | ||
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<markdown> | ||
# Basic | ||
|
||
Put text into marquee: | ||
</markdown> | ||
|
||
<template> | ||
<n-marquee> | ||
<div style="margin-right: 64px"> | ||
In 2020 Noel returned to the legendary Rockfield Studios in Wales for the | ||
first time since the band recorded the album, looking back at his memories | ||
and reflecting on the album’s legacy. | ||
</div> | ||
</n-marquee> | ||
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<markdown> | ||
# Image | ||
|
||
You can put any content inside marquee. | ||
</markdown> | ||
|
||
<template> | ||
<n-marquee> | ||
<n-image | ||
width="80" | ||
height="80" | ||
src="https://07akioni.oss-cn-beijing.aliyuncs.com/07akioni.jpeg" | ||
style="margin-right: 24px" | ||
/> | ||
</n-marquee> | ||
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# Marquee | ||
|
||
A trivia: There's a deprecated HTML Element called `marquee`. | ||
|
||
Available since `NEXT_VERSION`. | ||
|
||
## Demos | ||
|
||
```demo | ||
basic.vue | ||
image.vue | ||
auto-fill.vue | ||
``` | ||
|
||
## API | ||
|
||
### Marquee Props | ||
|
||
| Name | Type | Default | Description | Version | | ||
| --- | --- | --- | --- | --- | | ||
| auto-fill | `boolean` | `false` | Whether to fill the blank of the container using its content repeatly. | NEXT_VERSION | | ||
| speed | `number` | `48` | The speed calculated as pixels/second. | NEXT_VERSION | | ||
|
||
### Marquee Slots | ||
|
||
| Name | Parameters | Description | Version | | ||
| ------- | ---------- | ----------- | ------------ | | ||
| default | `()` | Content. | NEXT_VERSION | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<markdown> | ||
# 自动填充 | ||
|
||
使用 `auto-fill` 属性让内容铺满空白空间。 | ||
</markdown> | ||
|
||
<template> | ||
<n-marquee auto-fill> | ||
<n-image | ||
width="80" | ||
height="80" | ||
src="https://07akioni.oss-cn-beijing.aliyuncs.com/07akioni.jpeg" | ||
style="margin-right: 24px" | ||
/> | ||
</n-marquee> | ||
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<markdown> | ||
# 基础用法 | ||
|
||
在跑马灯中输入文字: | ||
</markdown> | ||
|
||
<template> | ||
<n-marquee> | ||
谁用运气换呼吸 谁用灵魂换稻米 谁用运气换呼吸 谁用灵魂换稻米 | ||
</n-marquee> | ||
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<markdown> | ||
# 图片 | ||
|
||
你可以将任何内容放入跑马灯中。 | ||
</markdown> | ||
|
||
<template> | ||
<n-marquee> | ||
<n-image | ||
width="80" | ||
height="80" | ||
src="https://07akioni.oss-cn-beijing.aliyuncs.com/07akioni.jpeg" | ||
style="margin-right: 24px" | ||
/> | ||
</n-marquee> | ||
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# 跑马灯 Marquee | ||
|
||
我有一个高中同学,当时他的口头禅是:“滚滚滚。” | ||
|
||
自 `NEXT_VERSION` 开始提供。 | ||
|
||
## 演示 | ||
|
||
```demo | ||
basic.vue | ||
image.vue | ||
auto-fill.vue | ||
``` | ||
|
||
## API | ||
|
||
### Marquee Props | ||
|
||
| 名称 | 类型 | 默认值 | 说明 | 版本 | | ||
| --- | --- | --- | --- | --- | | ||
| auto-fill | `boolean` | `false` | 是否重复的用内容铺满容器的空白 | NEXT_VERSION | | ||
| speed | `number` | `48` | 移动的速度,单位是像素每秒 | NEXT_VERSION | | ||
|
||
### Marquee Slots | ||
|
||
| 名称 | 参数 | 说明 | 版本 | | ||
| ------- | ---- | ---- | ------------ | | ||
| default | `()` | 内容 | NEXT_VERSION | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
export { default as NMarqueue } from './src/Marquee' | ||
export type * from './src/public-types' |
Oops, something went wrong.