2022-02-03 21:04:25 +08:00
|
|
|
<template>
|
2022-05-06 17:33:52 +08:00
|
|
|
<el-button text @click="dialogVisible = true"
|
2022-02-03 21:04:25 +08:00
|
|
|
>Click to open Dialog
|
|
|
|
</el-button>
|
|
|
|
|
|
|
|
<el-dialog v-model="dialogVisible" title="Tips" width="30%" draggable>
|
|
|
|
<span>It's a draggable Dialog</span>
|
|
|
|
<template #footer>
|
|
|
|
<span class="dialog-footer">
|
|
|
|
<el-button @click="dialogVisible = false">Cancel</el-button>
|
|
|
|
<el-button type="primary" @click="dialogVisible = false"
|
|
|
|
>Confirm</el-button
|
|
|
|
>
|
|
|
|
</span>
|
|
|
|
</template>
|
|
|
|
</el-dialog>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script lang="ts" setup>
|
|
|
|
import { ref } from 'vue'
|
|
|
|
|
|
|
|
const dialogVisible = ref(false)
|
|
|
|
</script>
|