From 18742b8cc70b365c8b089d6d86a74452b724a01b Mon Sep 17 00:00:00 2001 From: YunaiV Date: Sat, 15 Apr 2023 09:13:25 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A7=BB=E9=99=A4=20css=20=E7=9A=84=E5=BC=95?= =?UTF-8?q?=E5=85=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main.ts | 7 ------- src/styles/index.scss | 1 - src/styles/variables.scss | 2 -- src/styles/vxe.css | 30 ------------------------------ src/utils/env.ts | 8 -------- 5 files changed, 48 deletions(-) delete mode 100644 src/styles/vxe.css delete mode 100644 src/utils/env.ts diff --git a/src/main.ts b/src/main.ts index 8dd1fff0..0fc15c2c 100644 --- a/src/main.ts +++ b/src/main.ts @@ -37,8 +37,6 @@ import App from './App.vue' import './permission' -import { isDevMode } from '@/utils/env' - import { MyPD } from '@/components/bpmnProcessDesigner/package/index.js' import '@/components/bpmnProcessDesigner/package/theme/index.scss' import 'bpmn-js/dist/assets/diagram-js.css' @@ -53,11 +51,6 @@ import '@/plugins/tongji' // 百度统计 import Logger from '@/utils/Logger' -// 本地开发模式 全局引入 element-plus 样式,加快第一次进入速度 -if (isDevMode()) { - import('element-plus/dist/index.css') -} - // 创建实例 const setupAll = async () => { const app = createApp(App) diff --git a/src/styles/index.scss b/src/styles/index.scss index 39c4c4da..2781c12e 100644 --- a/src/styles/index.scss +++ b/src/styles/index.scss @@ -1,5 +1,4 @@ @import './var.css'; -@import './vxe.css'; @import 'element-plus/theme-chalk/dark/css-vars.css'; .reset-margin [class*='el-icon'] + span { diff --git a/src/styles/variables.scss b/src/styles/variables.scss index ffa78c9f..00b66f1f 100644 --- a/src/styles/variables.scss +++ b/src/styles/variables.scss @@ -2,5 +2,3 @@ $namespace: v; // el命名空间 $elNamespace: el; -// vxe命名空间 -$vxeNamespace: vxe; diff --git a/src/styles/vxe.css b/src/styles/vxe.css deleted file mode 100644 index 30bdd58d..00000000 --- a/src/styles/vxe.css +++ /dev/null @@ -1,30 +0,0 @@ -/*滚动条整体部分*/ -.xtable-scrollbar ::-webkit-scrollbar { - width: 10px; - height: 10px; -} -/*滚动条的轨道*/ -.xtable-scrollbar ::-webkit-scrollbar-track { - background-color: #ffffff; -} -/*滚动条里面的小方块,能向上向下移动*/ -.xtable-scrollbar ::-webkit-scrollbar-thumb { - background-color: #bfbfbf; - border-radius: 5px; - border: 1px solid #f1f1f1; - box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3); -} -.xtable-scrollbar ::-webkit-scrollbar-thumb:hover { - background-color: #a8a8a8; -} -.xtable-scrollbar ::-webkit-scrollbar-thumb:active { - background-color: #787878; -} -/*边角,即两个滚动条的交汇处*/ -.xtable-scrollbar ::-webkit-scrollbar-corner { - background-color: #ffffff; -} -/*移除 vxe-grid 右侧外框*/ -.vxe-button.size--medium.type--button.is--circle { - border: 0; -} diff --git a/src/utils/env.ts b/src/utils/env.ts deleted file mode 100644 index ea271813..00000000 --- a/src/utils/env.ts +++ /dev/null @@ -1,8 +0,0 @@ -export const isDevMode = () => { - const dev = import.meta.env.VITE_DEV - if (dev && dev === 'true') { - return true - } else { - return false - } -}