2022-08-29 10:58:54 +08:00
|
|
|
<template>
|
2024-01-25 15:03:34 +08:00
|
|
|
<el-button plain @click="centerDialogVisible = true">
|
2022-10-19 22:07:48 +08:00
|
|
|
Click to open the Dialog
|
|
|
|
</el-button>
|
2022-08-29 10:58:54 +08:00
|
|
|
|
|
|
|
<el-dialog
|
|
|
|
v-model="centerDialogVisible"
|
|
|
|
title="Warning"
|
2024-01-25 15:03:34 +08:00
|
|
|
width="500"
|
2022-08-29 10:58:54 +08:00
|
|
|
align-center
|
|
|
|
>
|
|
|
|
<span>Open the dialog from the center from the screen</span>
|
|
|
|
<template #footer>
|
2024-01-25 15:03:34 +08:00
|
|
|
<div class="dialog-footer">
|
2022-08-29 10:58:54 +08:00
|
|
|
<el-button @click="centerDialogVisible = false">Cancel</el-button>
|
2022-10-19 22:07:48 +08:00
|
|
|
<el-button type="primary" @click="centerDialogVisible = false">
|
|
|
|
Confirm
|
|
|
|
</el-button>
|
2024-01-25 15:03:34 +08:00
|
|
|
</div>
|
2022-08-29 10:58:54 +08:00
|
|
|
</template>
|
|
|
|
</el-dialog>
|
|
|
|
</template>
|
|
|
|
<script lang="ts" setup>
|
|
|
|
import { ref } from 'vue'
|
|
|
|
|
|
|
|
const centerDialogVisible = ref(false)
|
|
|
|
</script>
|