Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor(BackTop): update docs and _index.less #1309

Merged
merged 2 commits into from
Apr 27, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/mobile/api_v2/back-top.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ toc: false

通过 `icon` 属性可以自定义按钮 icon

{{ round }}
{{ base }}

### 半圆型返回顶部

Expand Down
11 changes: 9 additions & 2 deletions style/mobile/components/back-top/v2/_index.less
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,15 @@
width: @back-top-round-width;
height: @back-top-round-width;
border-radius: @back-top-round-border-radius;
&::after {
.hairline(@back-top-round-border-color);
border-radius: @back-top-round-border-radius;
}
}

&--round,
&--half-round {
color: @back-top-round-color;
border: 1rpx solid @back-top-round-border-color;
background-color: @back-top-round-bg-color;
}

Expand All @@ -46,6 +49,10 @@
border-radius: @back-top-half-round-border-radius 0 0 @back-top-half-round-border-radius;
flex-direction: row;
right: 0;
&::after {
.hairline(@back-top-round-border-color);
border-radius: @back-top-half-round-border-radius 0 0 @back-top-half-round-border-radius;
}
}

&__text--round,
Expand All @@ -63,7 +70,7 @@

&__icon:not(:empty) + &__text--half-round,
&__icon:not(:empty) + &__text--half-round-dark {
margin-left: 8rpx;
margin-left: 2px;
}

&__icon {
Expand Down