解决cl-editor-preview自动弹出问题

This commit is contained in:
icssoa 2023-04-19 02:15:32 +08:00
parent 76547a61c1
commit 1a57ed15a5

View File

@ -1,18 +1,20 @@
<template> <template>
<cl-dialog width="1000px" :title="title" v-model="visible"> <div>
<cl-editor <cl-dialog width="1000px" :title="title" append-to-body v-model="visible">
:name="`cl-editor-${name}`" <cl-editor
:ref="setRefs('editor')" :name="`cl-editor-${name}`"
:height="600" :ref="setRefs('editor')"
v-bind="props.props" :height="600"
v-model="text" v-bind="props.props"
/> v-model="text"
/>
<template #footer> <template #footer>
<el-button @click="close">关闭</el-button> <el-button @click="close">关闭</el-button>
<el-button type="success" @click="toCopy">复制</el-button> <el-button type="success" @click="toCopy">复制</el-button>
</template> </template>
</cl-dialog> </cl-dialog>
</div>
</template> </template>
<script lang="ts" name="cl-editor-preview" setup> <script lang="ts" name="cl-editor-preview" setup>