mirror of
https://gitee.com/element-plus/element-plus.git
synced 2024-12-14 09:20:51 +08:00
25 lines
483 B
Vue
25 lines
483 B
Vue
|
<template>
|
||
|
<el-button plain @click="open"> Use HTML String </el-button>
|
||
|
</template>
|
||
|
|
||
|
<script lang="ts">
|
||
|
import { defineComponent } from 'vue'
|
||
|
import { ElNotification } from 'element-plus'
|
||
|
|
||
|
export default defineComponent({
|
||
|
setup() {
|
||
|
const open = () => {
|
||
|
ElNotification({
|
||
|
title: 'HTML String',
|
||
|
dangerouslyUseHTMLString: true,
|
||
|
message: '<strong>This is <i>HTML</i> string</strong>',
|
||
|
})
|
||
|
}
|
||
|
|
||
|
return {
|
||
|
open,
|
||
|
}
|
||
|
},
|
||
|
})
|
||
|
</script>
|