71 lines
1.3 KiB
Vue
Raw Normal View History

2025-06-06 15:31:45 +08:00
<template>
<div id="nav"></div>
<el-config-provider :locale="locale">
<router-view />
</el-config-provider>
</template>
<script lang="ts">
import { ElConfigProvider } from "element-plus";
import zhCn from 'element-plus/es/locale/lang/zh-cn'
export default {
name: "vol_app",
components: {
[ElConfigProvider.name]: ElConfigProvider, //添加组件
},
data() {
return {
locale: zhCn,
};
},
beforeCreate(){
let age: number = 18
console.log(++age,"age");
}
};
</script>
2026-04-21 18:07:25 +08:00
<style>
/* p{
2025-06-06 15:31:45 +08:00
margin-top:10px !important;
2026-04-21 18:07:25 +08:00
} */
2025-06-06 15:31:45 +08:00
#app {
font-family: Avenir, Helvetica, Arial, sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
height: 100%;
width: 100%;
}
.el-alert--error.is-light {
border: 1px solid #ffe0e0;
}
.el-alert--error.is-light {
color: #f74444 !important;
}
.el-alert--warning.is-light {
border: 1px solid #ffe6c1;
}
.el-alert--info.is-light {
border: 1px solid #e6e5e5;
}
.el-alert--info .el-alert__description {
color: #6b6b6b !important;
}
.el-alert--warning.is-light {
background-color: #fdf6ec;
color: #d68409 !important;
}
.el-alert--success.is-light {
border: 1px solid #cdf7b8;
}
.el-alert--success.is-light .el-alert__description {
color: #3baf02 !important;
}
</style>