mirror of
https://gitee.com/element-plus/element-plus.git
synced 2024-12-05 20:58:22 +08:00
fb50b4ff8d
* feat: add use-draggable * feat: msgbox add draggable * feat: update * feat: update * feat: update * feat: update * feat: update * feat: update
24 lines
607 B
Vue
24 lines
607 B
Vue
<template>
|
|
<el-button type="text" @click="dialogVisible = true"
|
|
>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>
|