dialog size 支持 full 配置

This commit is contained in:
2betop 2019-12-31 15:39:21 +08:00
parent f03e45d478
commit ee5d7f986a
2 changed files with 12 additions and 1 deletions

View File

@ -218,3 +218,14 @@
.#{$ns}Dialog-error {
color: $danger;
}
.#{$ns}Modal--full .#{$ns}Modal-content {
width: calc(100% - 60px);
height: calc(100% - 60px);
max-width: unset;
margin: px2rem(30px);
.#{$ns}Modal-body {
overflow: auto;
}
}

View File

@ -17,7 +17,7 @@ import {Spinner} from '../components';
export interface DialogProps extends RendererProps {
title?: string; // 标题
size?: 'md' | 'lg' | 'sm' | 'xl';
size?: 'md' | 'lg' | 'sm' | 'xl' | 'full';
closeOnEsc?: boolean;
onClose: () => void;
onConfirm: (