Skip to content

Commit

Permalink
feat: optimize code
Browse files Browse the repository at this point in the history
  • Loading branch information
mumiao committed Dec 10, 2020
1 parent fbc718c commit 2ddcbb8
Show file tree
Hide file tree
Showing 3 changed files with 2,352 additions and 2,398 deletions.
2 changes: 2 additions & 0 deletions src/components/button/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@

&--disabled {
cursor: not-allowed;
cursor: default;
opacity: 0.4;
}

&:hover {
Expand Down
6 changes: 3 additions & 3 deletions src/components/dialog/ConfirmDialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ const ConfirmDialog = (props: ConfirmDialogProps) => {
prefixCls={confirmClassName}
className={classString}
wrapClassName={classNames({
[getBEMElement(confirmClassName, 'centered')]: !!props.centered,
[getBEMModifier(confirmClassName, 'centered')]: !!props.centered,
})}
onCancel={() => close({ triggerCancel: true })}
visible={visible}
Expand Down Expand Up @@ -114,10 +114,10 @@ const ConfirmDialog = (props: ConfirmDialogProps) => {
</span>
)}
<div
className={`${getBEMModifier(
className={getBEMModifier(
messageClassName,
'detail'
)}`}
)}
>
{props.content}
</div>
Expand Down
Loading

0 comments on commit 2ddcbb8

Please sign in to comment.