mirror of
https://gitee.com/element-plus/element-plus.git
synced 2024-12-14 01:11:25 +08:00
10 lines
387 B
TypeScript
10 lines
387 B
TypeScript
|
import { App } from 'vue'
|
||
|
import MessageBox from './src/messageBox'
|
||
|
export default (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
|
||
|
}
|