From ac9ccbadf08dd45e719208e27dd349e6e2157690 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E4=BC=A0=E9=BE=99?= Date: Sun, 19 Jun 2022 15:02:58 +0800 Subject: [PATCH] =?UTF-8?q?mod:=20=E4=BD=BF=E7=94=A8unocss=E9=87=8D?= =?UTF-8?q?=E5=86=99=E9=A6=96=E9=A1=B5=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/styles/index.scss | 6 +-- src/views/dashboard/index.vue | 82 +++++++++++++++-------------------- unocss.config.js | 4 +- 3 files changed, 41 insertions(+), 51 deletions(-) diff --git a/src/styles/index.scss b/src/styles/index.scss index f10f5cd..bc8ff0e 100644 --- a/src/styles/index.scss +++ b/src/styles/index.scss @@ -30,12 +30,12 @@ body { /* 自定义滚动条样式 */ .cur-scroll { &::-webkit-scrollbar{ - width:8px; - height:6px; + width: 6px; + height: 6px; } &::-webkit-scrollbar-thumb{ background-color: transparent; - border-radius:4px; + border-radius: 3px; } &::-webkit-scrollbar-corner{ diff --git a/src/views/dashboard/index.vue b/src/views/dashboard/index.vue index a36c964..202288d 100644 --- a/src/views/dashboard/index.vue +++ b/src/views/dashboard/index.vue @@ -1,42 +1,51 @@ @@ -45,24 +54,3 @@ import { useUserStore } from '@/store/modules/user' const userStore = useUserStore() - - diff --git a/unocss.config.js b/unocss.config.js index 27f2a9b..1844097 100644 --- a/unocss.config.js +++ b/unocss.config.js @@ -3,11 +3,13 @@ import { defineConfig, presetAttributify, presetIcons, presetUno } from 'unocss' export default defineConfig({ shortcuts: [ ['f-c-c', 'flex justify-center items-center'], - ['ellipsis', 'truncate'], + ['text-ellipsis', 'truncate'], + ['wh-full', 'w-full h-full'], ], rules: [ ['color-primary', { color: 'var(--primaryColor)' }], ['bgc-primary', { backgroundColor: 'var(--primaryColor)' }], + ['card-shadow', { 'box-shadow': '0 1px 2px -2px #00000029, 0 3px 6px #0000001f, 0 5px 12px 4px #00000017' }], ], presets: [presetUno(), presetAttributify()], })