mirror of
https://github.com/element-plus/element-plus.git
synced 2026-03-13 07:51:17 +08:00
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>
36 lines
841 B
Vue
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>
|