chore(form): form-dialog放到body下

This commit is contained in:
roymondchen 2022-09-15 19:09:14 +08:00 committed by jia000
parent 3b4a57fa94
commit 39cd7d8ab7
2 changed files with 48 additions and 48 deletions

View File

@ -1,11 +1,10 @@
<template>
<div>
<teleport to="body">
<div class="m-form-dialog" v-show="dialogVisible">
<el-dialog
v-model="dialogVisible"
class="m-form-dialog"
top="20px"
:title="title"
:appendToBody="true"
:width="width"
:fullscreen="fullscreen"
:close-on-click-modal="false"
@ -47,6 +46,7 @@
</template>
</el-dialog>
</div>
</teleport>
</template>
<script lang="ts">

View File

@ -97,7 +97,7 @@ export interface ContainerCommonConfig {
export interface Rule {
message?: string;
/** 系统提供的验证器类型。有string,number,boolean,method,regexp,integer,float,array,object,enum,date,url,hex,email,any */
type: string;
type?: string;
/** 是否必填 */
required?: boolean;
/** 自定义验证器 */