mirror of
https://gitee.com/element-plus/element-plus.git
synced 2024-12-14 17:31:02 +08:00
25 lines
467 B
Vue
25 lines
467 B
Vue
|
<template>
|
||
|
<el-button plain @click="open"> Hide close button </el-button>
|
||
|
</template>
|
||
|
|
||
|
<script lang="ts">
|
||
|
import { defineComponent } from 'vue'
|
||
|
import { ElNotification } from 'element-plus'
|
||
|
|
||
|
export default defineComponent({
|
||
|
setup() {
|
||
|
const open = () => {
|
||
|
ElNotification.success({
|
||
|
title: 'Info',
|
||
|
message: 'This is a message without close button',
|
||
|
showClose: false,
|
||
|
})
|
||
|
}
|
||
|
|
||
|
return {
|
||
|
open,
|
||
|
}
|
||
|
},
|
||
|
})
|
||
|
</script>
|