Files
element-plus/docs/examples/message-box/customized-icon.vue
kooriookami ee7a21f670 feat(components): [message-box] MessageBox can drag overflow the viewport (#15674)
feat(components): [message-box] can drag overflow the viewport
2024-01-26 10:20:08 +08:00

21 lines
438 B
Vue

<template>
<el-button plain @click="open">Click to open Message Box</el-button>
</template>
<script lang="ts" setup>
import { markRaw } from 'vue'
import { ElMessageBox } from 'element-plus'
import { Delete } from '@element-plus/icons-vue'
const open = () => {
ElMessageBox.confirm(
'It will permanently delete the file. Continue?',
'Warning',
{
type: 'warning',
icon: markRaw(Delete),
}
)
}
</script>