We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
常规方法:
const getMaxZIndex=() => { const zIndexArr = [...document.body.querySelectorAll('*')].map(e=>{ return Number(window.getComputedStyle(document.body).zIndex) || 0 }) return Math.max(...zIndexArr) }
在组件库中一般不用这个方法,组件库应该维护一个弹窗基础组件,在每一次的弹窗出现时候,均会对该次弹出的z-index进行记录,下次弹出就会在本次弹出的基础上+1
The text was updated successfully, but these errors were encountered:
No branches or pull requests
常规方法:
在组件库中一般不用这个方法,组件库应该维护一个弹窗基础组件,在每一次的弹窗出现时候,均会对该次弹出的z-index进行记录,下次弹出就会在本次弹出的基础上+1
The text was updated successfully, but these errors were encountered: