mirror of
https://gitee.com/element-plus/element-plus.git
synced 2024-12-05 04:37:47 +08:00
b19d2fc374
* fix: correct bundle export * chore: update * chore: update * chore: update * chore: update * chore: update * chore: update * chore: update
13 lines
430 B
TypeScript
13 lines
430 B
TypeScript
import { App } from 'vue'
|
|
import MessageBox from './src/messageBox'
|
|
|
|
(MessageBox as any).install = (app: App): void => {
|
|
app.config.globalProperties.$msgbox = MessageBox
|
|
app.config.globalProperties.$messageBox = MessageBox
|
|
app.config.globalProperties.$alert = MessageBox.alert
|
|
app.config.globalProperties.$confirm = MessageBox.confirm
|
|
app.config.globalProperties.$prompt = MessageBox.prompt
|
|
}
|
|
|
|
export default MessageBox
|