修改element-plus为中文
parent
cf04245f9a
commit
12810a2d01
|
|
@ -1,6 +1,6 @@
|
|||
<template>
|
||||
<div class="flex-row align-c gap-12">
|
||||
<el-color-picker v-model="color" show-alpha :predefine="predefine_colors" @change="color_picker_change" />
|
||||
<el-color-picker v-model="color" show-alpha :predefine="predefine_colors" @change="color_picker_change" />
|
||||
<icon name="reset" color="primary" size="16" :class="['c-pointer', { disable: color == defaultColor }]" @click="reset_event"></icon>
|
||||
</div>
|
||||
</template>
|
||||
|
|
|
|||
|
|
@ -1,4 +1,3 @@
|
|||
import { de } from "element-plus/es/locale";
|
||||
import defaultCommon from "./index";
|
||||
|
||||
interface defaultSearch {
|
||||
|
|
|
|||
|
|
@ -1,6 +1,5 @@
|
|||
import { get_math } from "@/utils";
|
||||
import defaultCommon from "./index";
|
||||
import { tr } from "element-plus/es/locale";
|
||||
interface data_magic {
|
||||
start: object;
|
||||
end: object;
|
||||
|
|
|
|||
|
|
@ -1,4 +1,3 @@
|
|||
import { id } from 'element-plus/es/locale';
|
||||
import defaultCommon from './index';
|
||||
interface DefaultUserInfo {
|
||||
content: {
|
||||
|
|
|
|||
|
|
@ -6,8 +6,10 @@ import router from './router';
|
|||
import Particles from 'vue3-particles';
|
||||
|
||||
import common from '@/utils/common';
|
||||
import Vue3DraggableResizable from 'vue3-draggable-resizable'
|
||||
import ElementPlus from 'element-plus';
|
||||
import zhCn from 'element-plus/es/locale/lang/zh-cn';
|
||||
//default styles
|
||||
import Vue3DraggableResizable from 'vue3-draggable-resizable'
|
||||
import 'vue3-draggable-resizable/dist/Vue3DraggableResizable.css'
|
||||
|
||||
import '@/styles/index.scss';
|
||||
|
|
@ -19,6 +21,9 @@ app.config.globalProperties.$common = common;
|
|||
app.use(router);
|
||||
app.use(Particles);
|
||||
app.use(Vue3DraggableResizable);
|
||||
app.use(ElementPlus, {
|
||||
locale: zhCn,
|
||||
});
|
||||
// 全局注册 状态管理(store)
|
||||
setupStore(app);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue