mirror of
https://github.com/Powerful-517/yys-editor.git
synced 2026-03-05 15:05:27 +00:00
多文件功能优化,部分样式调整
This commit is contained in:
11
src/main.js
11
src/main.js
@@ -1,7 +1,7 @@
|
||||
import { createApp } from 'vue'
|
||||
import App from './App.vue'
|
||||
|
||||
import ElementPlus from 'element-plus'
|
||||
import ElementPlus, {ElMessageBox} from 'element-plus'
|
||||
import 'element-plus/dist/index.css'
|
||||
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
|
||||
|
||||
@@ -44,6 +44,15 @@ const i18n = createI18n({
|
||||
},
|
||||
})
|
||||
|
||||
// 设置ElMessageBox的默认配置
|
||||
ElMessageBox.defaults = {
|
||||
confirmButtonText: '确定',
|
||||
cancelButtonText: '取消',
|
||||
type: 'warning', // 默认类型为警告
|
||||
center: true, // 文字居中
|
||||
customClass: 'my-message-box', // 自定义类名,用于CSS样式覆盖
|
||||
};
|
||||
|
||||
const pinia = createPinia() // 创建 Pinia 实例
|
||||
|
||||
app.use(pinia) // 使用 Pinia
|
||||
|
||||
Reference in New Issue
Block a user