mirror of
https://gitee.com/element-plus/element-plus.git
synced 2024-12-14 01:11:25 +08:00
e900aac6ea
* feat(message): add message component - [WIP] Messages component - TODOs: tests, VNode Bug re #101 * test(message): add tests for message component * fix(message): fix message z-index Co-authored-by: Herrington Darkholme <2883231+HerringtonDarkholme@users.noreply.github.com>
21 lines
368 B
Vue
21 lines
368 B
Vue
<template>
|
|
<div>
|
|
<el-button class="item" @click="onClick">Use HTML String</el-button>
|
|
</div>
|
|
</template>
|
|
|
|
<script lang="ts">
|
|
import Message from '../src/message'
|
|
|
|
export default {
|
|
methods: {
|
|
onClick(): void {
|
|
Message({
|
|
message: '<strong>This is <i>HTML</i><strong>',
|
|
dangerouslyUseHTMLString: true,
|
|
})
|
|
},
|
|
},
|
|
}
|
|
</script>
|