mirror of
https://gitee.com/element-plus/element-plus.git
synced 2024-12-14 01:11:25 +08:00
16 lines
375 B
TypeScript
16 lines
375 B
TypeScript
|
import Notify from './src/notify'
|
||
|
|
||
|
import type { App } from 'vue'
|
||
|
import type { SFCWithInstall } from '@element-plus/utils/types'
|
||
|
|
||
|
const _Notify = Notify as SFCWithInstall<typeof Notify>
|
||
|
|
||
|
_Notify.install = (app: App) => {
|
||
|
app.config.globalProperties.$notify = _Notify
|
||
|
}
|
||
|
|
||
|
export default _Notify
|
||
|
export const ElNotification = _Notify
|
||
|
|
||
|
export * from './src/notification.type'
|