element-plus/ssr-testing/cases/notification.vue
JeremyWuuuuu c2ecb3a773 test(ssr): add ssr testing cases
- Add more cases for running ssr tests
2022-03-18 16:53:37 +08:00

18 lines
329 B
Vue

<template>
<div>notify</div>
</template>
<script lang="ts" setup>
import { getCurrentInstance } from 'vue'
const vm = getCurrentInstance()!
const notify = vm.appContext.config.globalProperties.$notify
notify({
title: 'Prompt',
message: 'This is a message that does not automatically close',
duration: 0,
})
</script>