mini-antui
mini-antui copied to clipboard
fix: 修复Modal样式
First of all, thank you for your contribution! :-)
Please makes sure that these checkboxes are checked before submitting your PR, thank you!
- [x] Rebase before creating a PR to keep commit history clear.
- [x] Add some descriptions and refer relative issues for you PR.
Extra checklist:
if isNewFeature :
- [ ] Update API docs for the component.
- [ ] Update/Add demo to demonstrate new feature.
- [ ] Update TypeScript definition for the component.
- Modal的展示与否既然是靠样式的
display: none;
而非a:if
来确定,就要让这个操作是最高层级的,否则如果外面有对view
设置额外样式,就可能导致Modal无法隐藏。 - Modal目前没有自动在屏幕水平垂直居中,我实在想不出有什么场景需要这样处理,姑且认为是一个bug吧。