mirror of
https://gitee.com/baidu/amis.git
synced 2024-12-02 03:58:07 +08:00
Merge remote-tracking branch 'baidu/master'
This commit is contained in:
commit
a4cc7bdd9a
@ -61,6 +61,7 @@
|
||||
&:before {
|
||||
color: $Switch-onDisabled-color;
|
||||
background-color: $Switch-onDisabled-bgColor;
|
||||
cursor: not-allowed;
|
||||
}
|
||||
|
||||
&:after {
|
||||
|
@ -257,7 +257,7 @@ export function calculatePosition(
|
||||
|
||||
positionLeft += leftDelta;
|
||||
arrowOffsetLeft = 50 * (1 - (2 * leftDelta) / overlayHeight) + '%';
|
||||
} else if ((placement = 'center')) {
|
||||
} else if ((placement === 'center')) {
|
||||
// atX = atY = myX = myY = 'center';
|
||||
positionLeft = childOffset.left + (childOffset.width - overlayWidth) / 2;
|
||||
positionTop = childOffset.top + (childOffset.height - overlayHeight) / 2;
|
||||
|
Loading…
Reference in New Issue
Block a user