naive-ui/demo/documentation/components/back-top/enUS/change-position.demo.md

25 lines
545 B
Markdown
Raw Normal View History

2019-10-16 13:45:13 +08:00
# Change Position
2020-01-29 19:48:38 +08:00
For example: right 40px & bottom 160px.
2019-10-16 13:45:13 +08:00
```html
<n-back-top
:right="40"
2019-12-06 13:42:00 +08:00
:bottom="160"
:style="{
transition: 'all .3s cubic-bezier(.4, 0, .2, 1)'
}"
:themed-style="{
light: {
color: 'rgb(0, 0, 0)',
backgroundColor: 'rgba(0, 0, 0, .3)'
},
dark: {
color: 'rgb(255, 255, 255)',
backgroundColor: 'rgba(255, 255, 255, .3)'
}
}"
2019-10-16 13:45:13 +08:00
>
2019-12-06 13:42:00 +08:00
<div style="width: 200px; height: 40px; line-height: 40px; text-align: center; font-size: 14px;">
Change Position
2019-10-16 13:45:13 +08:00
</div>
</n-back-top>
```