mirror of
https://github.com/Tencent/tmagic-editor.git
synced 2025-06-19 20:19:20 +08:00
feat(form): form-dialog重新打开是form重新渲染
This commit is contained in:
parent
1c3565035c
commit
6cf1f8636c
@ -1,16 +1,20 @@
|
||||
<template>
|
||||
<teleport to="body">
|
||||
<div class="m-form-dialog" v-show="dialogVisible">
|
||||
<el-dialog
|
||||
v-model="dialogVisible"
|
||||
class="m-form-dialog"
|
||||
top="20px"
|
||||
append-to-body
|
||||
:title="title"
|
||||
:width="width"
|
||||
:fullscreen="fullscreen"
|
||||
:close-on-click-modal="false"
|
||||
@close="closeHandler"
|
||||
>
|
||||
<div class="m-dialog-body" :style="`max-height: ${bodyHeight}; overflow-y: auto; overflow-x: hidden;`">
|
||||
<div
|
||||
v-if="dialogVisible"
|
||||
class="m-dialog-body"
|
||||
:style="`max-height: ${bodyHeight}; overflow-y: auto; overflow-x: hidden;`"
|
||||
>
|
||||
<m-form
|
||||
v-model="stepActive"
|
||||
ref="form"
|
||||
@ -46,8 +50,6 @@
|
||||
</el-row>
|
||||
</template>
|
||||
</el-dialog>
|
||||
</div>
|
||||
</teleport>
|
||||
</template>
|
||||
|
||||
<script lang="ts">
|
||||
|
Loading…
x
Reference in New Issue
Block a user