mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-05 19:41:42 +08:00
feat(Uploader): add --van-uploader-border-radius
css variable (#12280)
* feat: add --van-uploader-border-radius css variables * chore: uploader-delelte-shadow reset border-radius. --------- Co-authored-by: xieyezi <202202409@any3.com> Co-authored-by: xieyezi <143539829@qq.com>
This commit is contained in:
parent
fae9a236e2
commit
78e4174a30
@ -451,3 +451,4 @@ The component provides the following CSS variables, which can be used to customi
|
||||
| --van-uploader-loading-icon-size | _22px_ | - |
|
||||
| --van-uploader-loading-icon-color | _var(--van-white)_ | - |
|
||||
| --van-uploader-disabled-opacity | _var(--van-disabled-opacity)_ | - |
|
||||
| --van-uploader-border-radius | _0px_ | - |
|
||||
|
@ -474,6 +474,7 @@ uploaderRef.value?.chooseFile();
|
||||
| --van-uploader-loading-icon-size | _22px_ | - |
|
||||
| --van-uploader-loading-icon-color | _var(--van-white)_ | - |
|
||||
| --van-uploader-disabled-opacity | _var(--van-disabled-opacity)_ | - |
|
||||
| --van-uploader-border-radius | _0px_ | - |
|
||||
|
||||
## 常见问题
|
||||
|
||||
|
@ -24,6 +24,7 @@
|
||||
--van-uploader-loading-icon-size: 22px;
|
||||
--van-uploader-loading-icon-color: var(--van-white);
|
||||
--van-uploader-disabled-opacity: var(--van-disabled-opacity);
|
||||
--van-uploader-border-radius: 0px;
|
||||
}
|
||||
|
||||
.van-uploader {
|
||||
@ -69,6 +70,7 @@
|
||||
height: var(--van-uploader-size);
|
||||
margin: 0 var(--van-padding-xs) var(--van-padding-xs) 0;
|
||||
background: var(--van-uploader-upload-background);
|
||||
border-radius: var(--van-uploader-border-radius);
|
||||
|
||||
&:active {
|
||||
background-color: var(--van-uploader-upload-active-color);
|
||||
@ -100,6 +102,7 @@
|
||||
width: var(--van-uploader-size);
|
||||
height: var(--van-uploader-size);
|
||||
overflow: hidden;
|
||||
border-radius: var(--van-uploader-border-radius);
|
||||
}
|
||||
|
||||
&-delete {
|
||||
@ -145,6 +148,7 @@
|
||||
justify-content: center;
|
||||
color: var(--van-uploader-mask-text-color);
|
||||
background: var(--van-uploader-mask-background);
|
||||
border-radius: var(--van-uploader-border-radius);
|
||||
|
||||
&-icon {
|
||||
font-size: var(--van-uploader-mask-icon-size);
|
||||
|
Loading…
x
Reference in New Issue
Block a user