diff --git a/.env.development b/.env.development index 2d6d599..39f6686 100644 --- a/.env.development +++ b/.env.development @@ -20,7 +20,8 @@ VITE_MOCK_DEV_SERVER=true VITE_STRICT_PORT=false # 是否启用屏幕转vw适配,可以选择 postcss-px-to-viewport-8-plugin || autofit -VITE_POST_CSS_PX_TO_VIEWPORT8_PLUGIN="autofit" +#VITE_POST_CSS_PX_TO_VIEWPORT8_PLUGIN="autofit" +VITE_POST_CSS_PX_TO_VIEWPORT8_PLUGIN="postcss-px-to-viewport-8-plugin" # 是否在打包时使用cdn替换本地库 替换 true 不替换 false VITE_CDN=false diff --git a/src/App.vue b/src/App.vue index 334407c..a3ee60b 100644 --- a/src/App.vue +++ b/src/App.vue @@ -1,10 +1,15 @@ diff --git a/src/assets/styles/animations/animations.scss b/src/assets/styles/animations/animations.scss index 81e9eb9..9785b03 100644 --- a/src/assets/styles/animations/animations.scss +++ b/src/assets/styles/animations/animations.scss @@ -1 +1,2 @@ -@use "src/rotate"; \ No newline at end of file +@use "src/rotate"; +@use "src/transition"; \ No newline at end of file diff --git a/src/assets/styles/animations/src/transition.scss b/src/assets/styles/animations/src/transition.scss new file mode 100644 index 0000000..0f71b68 --- /dev/null +++ b/src/assets/styles/animations/src/transition.scss @@ -0,0 +1,66 @@ +/* fade */ +.fade-enter-active, +.fade-leave-active { + transition: opacity 0.28s; +} + +.fade-enter, +.fade-leave-active { + opacity: 0; +} + +/* fade-transform */ +.fade-transform-leave-active, +.fade-transform-enter-active { + transition: all 0.38s; +} + +.fade-transform-enter-from { + opacity: 0; + transform: translateX(-30px); +} + +.fade-transform-leave-to { + opacity: 0; + transform: translateX(30px); +} + +/* breadcrumb transition */ +.breadcrumb-enter-active { + transition: all 0.4s; +} + +.breadcrumb-leave-active { + position: absolute; + transition: all 0.3s; +} + +.breadcrumb-enter-from, +.breadcrumb-leave-active { + opacity: 0; + transform: translateX(20px); +} + +/** + * @description 重置el-menu的展开收起动画时长 + */ +.outer-most .el-collapse-transition-leave-active, +.outer-most .el-collapse-transition-enter-active { + transition: 0.2s all ease-in-out !important; +} + +.horizontal-collapse-transition { + transition: var(--pure-transition-duration) all !important; +} + +//.slide-enter-active, +//.slide-leave-active { +// transition: opacity 0.3s, +// transform 0.3s; +//} +// +//.slide-enter-from, +//.slide-leave-to { +// opacity: 0; +// transform: translateX(-30%); +//} \ No newline at end of file diff --git a/src/assets/styles/common/common.scss b/src/assets/styles/common/common.scss index c3ccb12..3e52180 100644 --- a/src/assets/styles/common/common.scss +++ b/src/assets/styles/common/common.scss @@ -1,6 +1,26 @@ @use "src/element"; +/* 定义滚动条高宽及背景高宽分别对应横竖滚动条的尺寸 */ +::-webkit-scrollbar { + width: 8px; + height: 8px; + background-color: var(--el-text-color-secondary); +} + +/* 定义滚动条轨道内阴影+圆角 */ +::-webkit-scrollbar-track { + background-color: #ebecef; + border-radius: 5px; + box-shadow: inset 0 0 6px #ebecef; +} + +/* 定义滑块内阴影+圆角 */ +::-webkit-scrollbar-thumb { + background-color: #d0d2d6; + border-radius: 5px; + box-shadow: inset 0 0 6px #d0d2d6; +} body { background: var(--background-color); -} \ No newline at end of file +} diff --git a/src/assets/styles/common/src/element.scss b/src/assets/styles/common/src/element.scss index 3b7b9a2..3657e47 100644 --- a/src/assets/styles/common/src/element.scss +++ b/src/assets/styles/common/src/element.scss @@ -8,3 +8,13 @@ border: 2px dashed; /* 边框宽度、样式和颜色 */ border-radius: 50%; /* 将元素变成圆形 */ } + + +.hover { + transition: all 0.3s; + cursor: pointer; + + &:hover { + color: var(--color-hover); + } +} \ No newline at end of file diff --git a/src/assets/styles/global.scss b/src/assets/styles/global.scss index e30e77d..70bea28 100644 --- a/src/assets/styles/global.scss +++ b/src/assets/styles/global.scss @@ -2,5 +2,11 @@ @use "common/common"; :root { + --colot-primary: #027AFF; + --color-primary-secondary: #00FFFF; + --color-info: #7CC1FF; + --color-hover: #1C8ADF; + --color-warning: #FFBE44; + --color-warning-secondary: #FEDB65; --background-color: #051135; } \ No newline at end of file diff --git a/src/components/Common/BarOp.vue b/src/components/Common/BarOp.vue index 1b07053..519bca8 100644 --- a/src/components/Common/BarOp.vue +++ b/src/components/Common/BarOp.vue @@ -7,7 +7,7 @@
  • icon-2
  • icon-3
  • - 王菠萝 + 王菠萝 @@ -32,6 +32,7 @@ span { float: left; font-size: 12px; + cursor: pointer; } } diff --git a/src/layout/components/layout-content/index.vue b/src/layout/components/layout-content/index.vue index de2e7ca..b143bbd 100644 --- a/src/layout/components/layout-content/index.vue +++ b/src/layout/components/layout-content/index.vue @@ -3,10 +3,10 @@ import PageList from '@/layout/components/layout-content/page-list.vue'; + + diff --git a/src/layout/components/layout-content/page-list.vue b/src/layout/components/layout-content/page-list.vue index 752d0e5..84f0ee4 100644 --- a/src/layout/components/layout-content/page-list.vue +++ b/src/layout/components/layout-content/page-list.vue @@ -65,6 +65,11 @@ const router = useRouter(); background: linear-gradient(to bottom, #0ad1d1c9, #10607cc9); } + img { + width: 108px; + height: 108px; + } + span { position: relative; display: block; diff --git a/src/layout/components/layout-footer/index.vue b/src/layout/components/layout-footer/index.vue index 0fa3d9a..8f6217e 100644 --- a/src/layout/components/layout-footer/index.vue +++ b/src/layout/components/layout-footer/index.vue @@ -30,7 +30,6 @@ const router = useRouter();