二货爱吃白萝卜
2 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
10 additions and
1 deletions
-
components/drawer/__tests__/Drawer.test.js
-
components/drawer/index.tsx
|
|
@ -198,4 +198,14 @@ describe('Drawer', () => { |
|
|
|
|
|
|
|
errorSpy.mockRestore(); |
|
|
|
}); |
|
|
|
|
|
|
|
it('zIndex should work', () => { |
|
|
|
const { container } = render(<Drawer getContainer={false} visible zIndex={903} />); |
|
|
|
expect(container.querySelector('.ant-drawer-mask')).toHaveStyle({ |
|
|
|
zIndex: 903, |
|
|
|
}); |
|
|
|
expect(container.querySelector('.ant-drawer-content-wrapper')).toHaveStyle({ |
|
|
|
zIndex: 903, |
|
|
|
}); |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
@ -52,7 +52,6 @@ function Drawer({ |
|
|
|
className, |
|
|
|
visible, |
|
|
|
children, |
|
|
|
zIndex, |
|
|
|
style, |
|
|
|
title, |
|
|
|
headerStyle, |
|
|
|