mirror of
https://gitee.com/beijing_hongye_huicheng/lilishop-ui.git
synced 2026-08-06 19:07:25 +08:00
升级Vue3,iView替换ElementPlus
- 删除babel配置、更新依赖与入口初始化 - 全量替换UI组件、样式适配,新增迁移文档与标签/过滤器自动化替换脚本
This commit is contained in:
11
im/src/utils/message.js
Normal file
11
im/src/utils/message.js
Normal file
@@ -0,0 +1,11 @@
|
||||
import { ElMessage, ElMessageBox, ElNotification } from "element-plus";
|
||||
|
||||
export { ElNotification, ElMessage, ElMessageBox };
|
||||
|
||||
export function setupLegacyMessage(app) {
|
||||
app.config.globalProperties.$message = ElMessage;
|
||||
app.config.globalProperties.$notify = ElNotification;
|
||||
app.config.globalProperties.$confirm = ElMessageBox.confirm;
|
||||
app.config.globalProperties.$prompt = ElMessageBox.prompt;
|
||||
app.config.globalProperties.$alert = ElMessageBox.alert;
|
||||
}
|
||||
Reference in New Issue
Block a user