mirror of
https://gitee.com/baidu/amis.git
synced 2024-11-30 02:48:55 +08:00
style: fix close button hide delay (#3082)
This commit is contained in:
parent
4cb27d54e2
commit
06118d22a8
@ -225,12 +225,14 @@ export class Drawer extends React.Component<DrawerProps, DrawerState> {
|
||||
fadeStyles[status]
|
||||
)}
|
||||
>
|
||||
<a
|
||||
onClick={disabled ? undefined : onHide}
|
||||
className={`${ns}Drawer-close`}
|
||||
>
|
||||
<Icon icon="close" className="icon" />
|
||||
</a>
|
||||
{show ? (
|
||||
<a
|
||||
onClick={disabled ? undefined : onHide}
|
||||
className={`${ns}Drawer-close`}
|
||||
>
|
||||
<Icon icon="close" className="icon" />
|
||||
</a>
|
||||
) : null}
|
||||
{status === EXITED ? null : children}
|
||||
</div>
|
||||
</div>
|
||||
|
Loading…
Reference in New Issue
Block a user