CzRger vor 2 Monaten
Ursprung
Commit
7dd8926d61
3 geänderte Dateien mit 10 neuen und 1 gelöschten Zeilen
  1. 1 1
      src/main.ts
  2. 8 0
      src/style/element-plus.scss
  3. 1 0
      src/style/index.scss

+ 1 - 1
src/main.ts

@@ -2,7 +2,6 @@ import { createApp } from 'vue'
 import App from './App.vue'
 import router, {beforeInit} from './router'
 import './style/tailwindcss.css'
-import './style/index.scss'
 import 'virtual:svg-icons-register'    // 【svg-icons相关】
 import initComponent from '@/plugins/initComponent'
 import initProperties from '@/plugins/initProperties'
@@ -14,6 +13,7 @@ import 'element-plus/dist/index.css'
 import 'highlight.js/styles/github-dark.css';
 import Antd from 'ant-design-vue';
 import 'ant-design-vue/dist/reset.css';
+import './style/index.scss'
 
 
 const app = createApp(App)

+ 8 - 0
src/style/element-plus.scss

@@ -0,0 +1,8 @@
+@forward 'element-plus/theme-chalk/src/common/var.scss' with (
+  $colors: (
+    'primary': (
+      'base': #2f82ff,
+    ),
+  ),
+);
+ @use "element-plus/theme-chalk/src/index.scss" as *;

+ 1 - 0
src/style/index.scss

@@ -2,6 +2,7 @@
 @use './czr';
 @use './font/font';
 @use './manage';
+@use "element-plus";
 
 * {
   outline: none;  // dom元素选中带边框