popupAlignment property

ElPopupAlignment? get popupAlignment
inherited

默认对齐方式可能放不下内容,所以在渲染前会进行一次预估,此变量是弹出层最终的对齐位置

Implementation

ElPopupAlignment? get popupAlignment => _popupAlignment;
set popupAlignment (ElPopupAlignment? v)
inherited

Implementation

set popupAlignment(ElPopupAlignment? v) {
  if (_popupAlignment == null || v == null) {
    _popupAlignment = v;
  } else {
    if (_popupAlignment != v) {
      _popupAlignment = v;
      if (animationController.isCompleted) {
        animationController.reverse().then((e) {
          animationController.forward();
        });
      }
    }
  }
}