forked from p96170835/amis
dialog size 支持 full 配置
This commit is contained in:
parent
f03e45d478
commit
ee5d7f986a
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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: (
|
||||
|
|
Loading…
Reference in New Issue