mirror of
https://github.com/element-plus/element-plus.git
synced 2025-08-14 18:11:48 +08:00
15 lines
316 B
Vue
15 lines
316 B
Vue
<template>
|
|
<el-button :plain="true" @click="openHTML">Use HTML string</el-button>
|
|
</template>
|
|
|
|
<script lang="ts" setup>
|
|
import { ElMessage } from 'element-plus'
|
|
|
|
const openHTML = () => {
|
|
ElMessage({
|
|
dangerouslyUseHTMLString: true,
|
|
message: '<strong>This is <i>HTML</i> string</strong>',
|
|
})
|
|
}
|
|
</script>
|