Skip to content

Commit

Permalink
feat: uploader disabled add less opacity
Browse files Browse the repository at this point in the history
  • Loading branch information
yhy committed Dec 6, 2022
1 parent 097d325 commit e15ac47
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/quark/src/uploader/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ class QuarkUploader extends QuarkElement {
<Fragment>
{!this.readonly && (
<div
class="quark-uploader"
class={ `quark-uploader ${disabled && 'uploader-disabled'}`}
style={{ display: !hiddenUpload ? "block" : "none" }}
>
<slot name="uploader">
Expand Down
9 changes: 7 additions & 2 deletions packages/quark/src/uploader/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,11 @@
}

:host .uploading-text {
font-size: var(--van-uploader-mask-font-size, 10px);
color: var(--van-uploader-mask-color, #fff);
font-size: var(--uploader-mask-font-size, 10px);
color: var(--uploader-mask-color, #fff);
}
:host .uploader-disabled {
opacity: var(--uploader-disabled-opacity, .5);
cursor: not-allowed;
pointer-events: none;
}

0 comments on commit e15ac47

Please sign in to comment.