/** 子窗口默认 z-index */
export const DEFAULT_SUB_WINDOW_Z_INDEX = 10000;

/** 子窗口内 Ant Design 弹出层 inject key */
export const SUB_WINDOW_POPUP_Z_INDEX_KEY = Symbol('subWindowPopupZIndex');

/** 根据子窗口 z-index 计算弹出层层级 */
export function getSubWindowPopupZIndex(baseZIndex = DEFAULT_SUB_WINDOW_Z_INDEX) {
  return baseZIndex + 100;
}
