diff --git a/package.json b/package.json index b0232da..7dd0f95 100644 --- a/package.json +++ b/package.json @@ -42,17 +42,21 @@ "vue-clipboard3": "^2.0.0", "vue-cropper": "1.0.2", "vue-i18n": "^9.2.2", - "vue-router": "^4.2.2" + "vue-router": "^4.2.2", + "vxe-table": "^4.5.14", + "xe-utils": "^3.5.14" }, "devDependencies": { "@vitejs/plugin-vue": "^4.2.3", "@vue/compiler-sfc": "^3.3.4", + "consola": "^3.2.3", "sass": "1.45.0", "tailwindcss": "^3.3.3", "typescript": "^5.2.2", "unplugin-auto-import": "0.5.3", "vite": "^4.3.9", "vite-plugin-compression": "^0.3.6", + "vite-plugin-style-import": "^2.0.0", "vite-plugin-svg-icons": "1.0.5", "vite-plugin-vue-setup-extend": "^0.4.0" } diff --git a/src/assets/styles/variables.module.scss b/src/assets/styles/variables.module.scss index 713ad7e..bab64cc 100644 --- a/src/assets/styles/variables.module.scss +++ b/src/assets/styles/variables.module.scss @@ -41,6 +41,18 @@ html.dark { // --el-bg-color: #141414; --base-color-white: #ffffff; --base-text-color-rgba: #ffffff; + + // vxe-table黑色样式 + --vxe-font-color: #98989e; + --vxe-primary-color: #2c7ecf; + --vxe-icon-background-color: #98989e; + --vxe-table-font-color: #98989e; + --vxe-table-resizable-color: #95969a; + --vxe-table-header-background-color: #28282a; + --vxe-table-body-background-color: #151518; + --vxe-table-background-color: #4a5663; + --vxe-table-border-width: 1px; + --vxe-table-border-color: #37373a; } html.cafe { filter: sepia(0.9) hue-rotate(315deg) brightness(0.9); diff --git a/src/main.ts b/src/main.ts index dbb32f8..ebd26e1 100644 --- a/src/main.ts +++ b/src/main.ts @@ -8,6 +8,7 @@ import '@/assets/styles/index.scss' // global css import App from './App.vue' import router from './router' import directive from './directive' // directive +import vxetb from './vxe-tb' // 注册指令 import plugins from './plugins' // plugins import { downFile } from '@/utils/request' @@ -68,4 +69,5 @@ app.component('svg-icon', SvgIcon) directive(app) +vxetb(app) app.use(pinia).use(router).use(plugins).use(ElementPlus, {}).use(elementIcons).use(vueI18n).mount('#app') diff --git a/src/views/system/menu/index.vue b/src/views/system/menu/index.vue index ce69afe..4ef7f9d 100644 --- a/src/views/system/menu/index.vue +++ b/src/views/system/menu/index.vue @@ -41,82 +41,78 @@ {{ $t('btn.expand') }}/{{ $t('btn.collapse') }} - + - - -