mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2025-03-07 13:48:31 +08:00
docs(scrollbar): en
This commit is contained in:
parent
ea92f5c0b1
commit
bb643121f2
@ -1,12 +1,19 @@
|
||||
# 基础用法
|
||||
# Basic
|
||||
|
||||
```html
|
||||
<n-scrollbar>
|
||||
我们在田野上面找猪<br />
|
||||
想象中已找到了三只<br />
|
||||
小鸟在白云上面追逐<br />
|
||||
它们在树底下跳舞<br />
|
||||
啦啦啦啦啦啦啦啦咧<br />
|
||||
啦啦啦啦咧
|
||||
<n-scrollbar style="max-height: 120px;">
|
||||
And as I sat there, brooding on the old unknown world, I thought of Gatsby’s
|
||||
wonder when he first picked out the green light at the end of Daisy’s dock. He
|
||||
had come a long way to this blue lawn and his dream must have seemed so close
|
||||
that he could hardly fail to grasp it. He did not know that it was already
|
||||
behind him, somewhere back in that vast obscurity beyond the city, where the
|
||||
dark fields of the republic rolled on under the night.<br /><br />
|
||||
|
||||
Gatsby believed in the green light, the orgastic future that year by year
|
||||
recedes before us. It eluded us then, but that’s no matter—tomorrow we will
|
||||
run faster, stretch out our arms farther. . . . And one fine morning——<br /><br />
|
||||
|
||||
So we beat on, boats against the current, borne back ceaselessly into the
|
||||
past.
|
||||
</n-scrollbar>
|
||||
```
|
||||
|
@ -1,6 +1,8 @@
|
||||
# Scrollbar
|
||||
|
||||
## Demo
|
||||
It looks better but I'm sure it's not as reliable as native scrollbar.
|
||||
|
||||
## Demos
|
||||
|
||||
```demo
|
||||
basic
|
||||
|
@ -1,13 +1,18 @@
|
||||
# 横向滚动
|
||||
# Scroll Horizontally
|
||||
|
||||
```html
|
||||
<n-scrollbar x-scrollable>
|
||||
<div style="white-space: nowrap; padding: 12px;">
|
||||
我们在田野上面找猪 想象中已找到了三只 小鸟在白云上面追逐 它们在树底下跳舞
|
||||
啦啦啦啦啦啦啦啦咧 啦啦啦啦咧 我们在想象中度过了许多年
|
||||
想象中我们是如此的疯狂 我们在城市里面找猪 想象中已找到了几百万只
|
||||
小鸟在公园里面唱歌 它们独自在想象里跳舞 啦啦啦啦啦啦啦啦咧 啦啦啦啦咧
|
||||
我们在想象中度过了许多年 许多年之后我们又开始想象 啦啦啦啦啦啦啦啦咧
|
||||
And as I sat there, brooding on the old unknown world, I thought of Gatsby’s
|
||||
wonder when he first picked out the green light at the end of Daisy’s dock.
|
||||
He had come a long way to this blue lawn and his dream must have seemed so
|
||||
close that he could hardly fail to grasp it. He did not know that it was
|
||||
already behind him, somewhere back in that vast obscurity beyond the city,
|
||||
where the dark fields of the republic rolled on under the night. Gatsby
|
||||
believed in the green light, the orgastic future that year by year recedes
|
||||
before us. It eluded us then, but that’s no matter—tomorrow we will run
|
||||
faster, stretch out our arms farther. . . . And one fine morning—— So we
|
||||
beat on, boats against the current, borne back ceaselessly into the past.
|
||||
</div>
|
||||
</n-scrollbar>
|
||||
```
|
||||
|
@ -1,5 +1,7 @@
|
||||
# 滚动条 Scrollbar
|
||||
|
||||
看起来好看点,但是我能保证这个没有原生滚动条可靠。
|
||||
|
||||
## 演示
|
||||
|
||||
```demo
|
||||
|
Loading…
Reference in New Issue
Block a user