feat: login rest
This commit is contained in:
+4
-1
@@ -1,8 +1,11 @@
|
||||
function getPopupStyles(zIndex, distanceTop, placement) {
|
||||
function getPopupStyles(zIndex, distanceTop, placement, duration) {
|
||||
var zIndexStyle = zIndex ? 'z-index:' + zIndex + ';' : '';
|
||||
if ((placement === 'top' || placement === 'left' || placement === 'right') && distanceTop) {
|
||||
zIndexStyle = zIndexStyle + 'top:' + distanceTop + 'px;' + '--td-popup-distance-top:' + distanceTop + 'px;';
|
||||
}
|
||||
if (duration) {
|
||||
zIndexStyle = zIndexStyle + '--td-popup-transition:all ' + duration + 'ms ease;';
|
||||
}
|
||||
return zIndexStyle;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user