mirror of
https://gitee.com/element-plus/element-plus.git
synced 2024-12-02 03:08:21 +08:00
ee7a21f670
feat(components): [message-box] can drag overflow the viewport
18 lines
345 B
Vue
18 lines
345 B
Vue
<template>
|
|
<el-button plain @click="open">Click to open Message Box</el-button>
|
|
</template>
|
|
|
|
<script lang="ts" setup>
|
|
import { ElMessageBox } from 'element-plus'
|
|
|
|
const open = () => {
|
|
ElMessageBox.alert(
|
|
'<strong>proxy is <i>HTML</i> string</strong>',
|
|
'HTML String',
|
|
{
|
|
dangerouslyUseHTMLString: true,
|
|
}
|
|
)
|
|
}
|
|
</script>
|