element-plus/packages/notification/index.ts
2020-08-06 21:15:20 +08:00

8 lines
238 B
TypeScript

import { App } from 'vue'
import Notification from './src/index.vue'
import Notify from './src/notify'
export default (app: App): void => {
app.component(Notification.name, Notification)
app.config.globalProperties.$notify = Notify
}