From f6ccd217d3a9c6a43639df99631e1f7340947fd5 Mon Sep 17 00:00:00 2001 From: zhangsiyu Date: Mon, 10 Jul 2023 15:48:08 +0800 Subject: [PATCH] 1 --- src/main.js | 1 + src/styles/custom-theme.scss | 6 +++--- src/styles/element-plus.scss | 4 ++++ 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/src/main.js b/src/main.js index 64a25fe7..f9625454 100644 --- a/src/main.js +++ b/src/main.js @@ -28,6 +28,7 @@ import App from './App.vue'; import 'animate.css'; import dayjs from 'dayjs'; import 'styles/common.scss'; +// import './styles/custom-theme.scss' import './styles/index.scss' import './styles/custom-theme.scss' // 业务组件 diff --git a/src/styles/custom-theme.scss b/src/styles/custom-theme.scss index ac41f5ac..064167a5 100644 --- a/src/styles/custom-theme.scss +++ b/src/styles/custom-theme.scss @@ -1,9 +1,9 @@ - // @import "element-plus/theme-chalk/src/index.scss"; // // 定义错误按钮颜色 -// $error-button-color: red; - +$--color-primary: #FF0000; // 设置按钮的背景色 +$--color-warning:#ff0000; +$--color-danger:#afd808 // // 定义警告按钮颜色 // $warning-button-color: orange; diff --git a/src/styles/element-plus.scss b/src/styles/element-plus.scss index ff91849c..01984154 100644 --- a/src/styles/element-plus.scss +++ b/src/styles/element-plus.scss @@ -22,4 +22,8 @@ ), ), ); +// $--color-primary: #FF0000; // 设置按钮的背景色 +// $--color-warning:#ff0000; +// $--color-danger:#afd808; + @use "element-plus/theme-chalk/src/index.scss" as *; \ No newline at end of file