mirror of
https://github.com/Tencent/tmagic-editor.git
synced 2025-09-14 23:59:49 +08:00
chore(form): form-dialog放到body下
This commit is contained in:
parent
3b4a57fa94
commit
39cd7d8ab7
@ -1,11 +1,10 @@
|
|||||||
<template>
|
<template>
|
||||||
<div>
|
<teleport to="body">
|
||||||
|
<div class="m-form-dialog" v-show="dialogVisible">
|
||||||
<el-dialog
|
<el-dialog
|
||||||
v-model="dialogVisible"
|
v-model="dialogVisible"
|
||||||
class="m-form-dialog"
|
|
||||||
top="20px"
|
top="20px"
|
||||||
:title="title"
|
:title="title"
|
||||||
:appendToBody="true"
|
|
||||||
:width="width"
|
:width="width"
|
||||||
:fullscreen="fullscreen"
|
:fullscreen="fullscreen"
|
||||||
:close-on-click-modal="false"
|
:close-on-click-modal="false"
|
||||||
@ -47,6 +46,7 @@
|
|||||||
</template>
|
</template>
|
||||||
</el-dialog>
|
</el-dialog>
|
||||||
</div>
|
</div>
|
||||||
|
</teleport>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
|
@ -97,7 +97,7 @@ export interface ContainerCommonConfig {
|
|||||||
export interface Rule {
|
export interface Rule {
|
||||||
message?: string;
|
message?: string;
|
||||||
/** 系统提供的验证器类型。有:string,number,boolean,method,regexp,integer,float,array,object,enum,date,url,hex,email,any */
|
/** 系统提供的验证器类型。有:string,number,boolean,method,regexp,integer,float,array,object,enum,date,url,hex,email,any */
|
||||||
type: string;
|
type?: string;
|
||||||
/** 是否必填 */
|
/** 是否必填 */
|
||||||
required?: boolean;
|
required?: boolean;
|
||||||
/** 自定义验证器 */
|
/** 自定义验证器 */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user