element-plus/packages/message/index.ts

11 lines
298 B
TypeScript
Raw Normal View History

import Message from './src/message'
import type { SFCWithInstall } from '@element-plus/utils/types'
2020-10-29 17:28:26 +08:00
const _Message: SFCWithInstall<typeof Message> = Message as SFCWithInstall<typeof Message>
_Message.install = app => {
app.config.globalProperties.$message = _Message
}
2020-10-29 17:28:26 +08:00
export default _Message