mirror of
https://github.com/element-plus/element-plus.git
synced 2024-11-21 01:02:59 +08:00
c2ecb3a773
- Add more cases for running ssr tests
18 lines
329 B
Vue
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>
|