Files
element-plus/docs/examples/dialog/destroy-on-close.vue
linzx-jess a8e22a0654 docs: fix typo and improve sentence in destroy-on-close example (#22630)
docs(docs): fix typo and improve sentence in destroy-on-close example

When I was reading the guide documentation,
I found this sentence a bit confusing.
It turned out that there was a small typo (“bellow” → “below”)
and the phrasing wasn’t very natural.
So I tried to fix it for better readability.
Thanks to all the maintainers for your hard work!

Co-authored-by: Linzx <14808625+sheldorplus@user.noreply.gitee.com>
2025-10-30 17:49:06 +08:00

36 lines
841 B
Vue

<template>
<el-button plain @click="centerDialogVisible = true">
Click to open Dialog
</el-button>
<el-dialog
v-model="centerDialogVisible"
title="Notice"
width="500"
destroy-on-close
center
>
<span>
Notice: before the dialog is opened for the first time, this node and the
one below will not be rendered.
</span>
<div>
<strong>Extra content (Not rendered)</strong>
</div>
<template #footer>
<div class="dialog-footer">
<el-button @click="centerDialogVisible = false">Cancel</el-button>
<el-button type="primary" @click="centerDialogVisible = false">
Confirm
</el-button>
</div>
</template>
</el-dialog>
</template>
<script lang="ts" setup>
import { ref } from 'vue'
const centerDialogVisible = ref(false)
</script>