mirror of
https://github.com/vbenjs/gf-vben-admin.git
synced 2025-02-03 03:32:59 +08:00
fix(modal): setModalProps
support defaultFullscreen
修复setModalProps不支持设置defaultFullscreen的问题
This commit is contained in:
parent
829b366cb2
commit
c7de65ebba
@ -187,9 +187,13 @@
|
|||||||
function setModalProps(props: Partial<ModalProps>): void {
|
function setModalProps(props: Partial<ModalProps>): void {
|
||||||
// Keep the last setModalProps
|
// Keep the last setModalProps
|
||||||
propsRef.value = deepMerge(unref(propsRef) || ({} as any), props);
|
propsRef.value = deepMerge(unref(propsRef) || ({} as any), props);
|
||||||
if (!Reflect.has(props, 'visible')) return;
|
if (Reflect.has(props, 'visible')) {
|
||||||
visibleRef.value = !!props.visible;
|
visibleRef.value = !!props.visible;
|
||||||
}
|
}
|
||||||
|
if (Reflect.has(props, 'defaultFullscreen')) {
|
||||||
|
fullScreenRef.value = !!props.defaultFullscreen;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
function handleOk(e: Event) {
|
function handleOk(e: Event) {
|
||||||
emit('ok', e);
|
emit('ok', e);
|
||||||
|
@ -39,6 +39,7 @@ export interface ModalProps {
|
|||||||
|
|
||||||
// 是否可以进行全屏
|
// 是否可以进行全屏
|
||||||
canFullscreen?: boolean;
|
canFullscreen?: boolean;
|
||||||
|
defaultFullscreen?: boolean;
|
||||||
visible?: boolean;
|
visible?: boolean;
|
||||||
// 温馨提醒信息
|
// 温馨提醒信息
|
||||||
helpMessage: string | string[];
|
helpMessage: string | string[];
|
||||||
|
Loading…
Reference in New Issue
Block a user