From 1a8529fd99668ad9fd3299bac27cbbbd8c49998a Mon Sep 17 00:00:00 2001 From: Hooray Hu <304327508@qq.com> Date: Sat, 3 Jun 2023 17:24:06 +0800 Subject: [PATCH] =?UTF-8?q?refactor!:=20=E7=A7=BB=E9=99=A4=20el-icon=20?= =?UTF-8?q?=E4=BD=BF=E7=94=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/FileUpload/index.vue | 4 +- src/components/ImagePreview/index.vue | 4 +- src/components/ImageUpload/index.vue | 14 ++-- src/components/ImagesUpload/index.vue | 22 ++---- src/components/PageMain/index.vue | 4 +- src/components/SearchBar/index.vue | 4 +- src/components/SvgIcon/index.vue | 70 +++++++++++++------- src/components/Trend/index.vue | 8 +-- src/layouts/components/AppSetting/index.vue | 60 +++++------------ src/layouts/components/Header/index.vue | 8 +-- src/layouts/components/MainSidebar/index.vue | 6 +- src/layouts/components/Search/index.vue | 24 ++----- src/layouts/components/SidebarItem/index.vue | 8 +-- src/layouts/components/Tools/index.vue | 28 +++----- src/layouts/components/Topbar/index.vue | 10 ++- src/layouts/components/views/link.vue | 4 +- src/layouts/index.vue | 6 +- src/views/index.vue | 4 +- src/views/login.vue | 36 +++------- 19 files changed, 115 insertions(+), 209 deletions(-) diff --git a/src/components/FileUpload/index.vue b/src/components/FileUpload/index.vue index b1733174..3c6bf11a 100644 --- a/src/components/FileUpload/index.vue +++ b/src/components/FileUpload/index.vue @@ -73,9 +73,7 @@ const onSuccess: UploadProps['onSuccess'] = (res, file, fileList) => { drag >
- - - +
将文件拖到此处,或点击上传
diff --git a/src/components/ImagePreview/index.vue b/src/components/ImagePreview/index.vue index 683cd8ab..1133ae45 100644 --- a/src/components/ImagePreview/index.vue +++ b/src/components/ImagePreview/index.vue @@ -28,9 +28,7 @@ const realHeight = computed(() => { diff --git a/src/components/ImageUpload/index.vue b/src/components/ImageUpload/index.vue index 173544af..ec0c4431 100644 --- a/src/components/ImageUpload/index.vue +++ b/src/components/ImageUpload/index.vue @@ -104,9 +104,7 @@ const onSuccess: UploadProps['onSuccess'] = (res) => { @@ -115,14 +113,10 @@ const onSuccess: UploadProps['onSuccess'] = (res) => {
- - - + - - - +
@@ -185,7 +179,7 @@ const onSuccess: UploadProps['onSuccess'] = (res) => { transform: scale(1.5); } - .el-icon { + .icon { font-size: 24px; } } diff --git a/src/components/ImagesUpload/index.vue b/src/components/ImagesUpload/index.vue index f7303500..9dd70e1a 100644 --- a/src/components/ImagesUpload/index.vue +++ b/src/components/ImagesUpload/index.vue @@ -112,24 +112,16 @@ const onSuccess: UploadProps['onSuccess'] = (res) => {
- - - + - - - + - - - + - - - +
@@ -148,9 +140,7 @@ const onSuccess: UploadProps['onSuccess'] = (res) => { class="images-upload" >
- - - +
@@ -218,7 +208,7 @@ const onSuccess: UploadProps['onSuccess'] = (res) => { transform: scale(1.5); } - .el-icon { + .icon { font-size: 24px; } } diff --git a/src/components/PageMain/index.vue b/src/components/PageMain/index.vue index 5ee1a64d..e1a853e8 100644 --- a/src/components/PageMain/index.vue +++ b/src/components/PageMain/index.vue @@ -40,9 +40,7 @@ function unCollaspe() {
- - - +
diff --git a/src/components/SearchBar/index.vue b/src/components/SearchBar/index.vue index 9eb6732d..51af7bd9 100644 --- a/src/components/SearchBar/index.vue +++ b/src/components/SearchBar/index.vue @@ -44,9 +44,7 @@ function toggle() {
{{ isFold ? '展开' : '收起' }} diff --git a/src/components/SvgIcon/index.vue b/src/components/SvgIcon/index.vue index 38d8d755..657c520f 100644 --- a/src/components/SvgIcon/index.vue +++ b/src/components/SvgIcon/index.vue @@ -1,48 +1,68 @@ + + diff --git a/src/components/Trend/index.vue b/src/components/Trend/index.vue index aa05ddc2..054b4b54 100644 --- a/src/components/Trend/index.vue +++ b/src/components/Trend/index.vue @@ -33,9 +33,7 @@ const isUp = computed(() => { {{ prefix }} {{ value }} {{ suffix }} - - - +
@@ -52,12 +50,12 @@ const isUp = computed(() => { &.down { color: var(--el-color-danger); - .el-icon { + .icon { transform: rotate(180deg); } } - .el-icon { + .icon { margin-left: 5px; transition: transform 0.3s; } diff --git a/src/layouts/components/AppSetting/index.vue b/src/layouts/components/AppSetting/index.vue index 19fe7f90..cac966b4 100644 --- a/src/layouts/components/AppSetting/index.vue +++ b/src/layouts/components/AppSetting/index.vue @@ -51,9 +51,7 @@ function handleCopy() { 颜色主题
- - - +
@@ -63,25 +61,19 @@ function handleCopy() {
- - - +
- - - +
- - - +
@@ -90,9 +82,7 @@ function handleCopy() {
主导航切换跳转 - - - +
@@ -101,9 +91,7 @@ function handleCopy() {
次导航保持展开一个 - - - +
@@ -148,9 +136,7 @@ function handleCopy() {
全屏 - - - +
@@ -159,9 +145,7 @@ function handleCopy() {
页面刷新 - - - +
@@ -170,9 +154,7 @@ function handleCopy() {
颜色主题 - - - +
@@ -191,9 +173,7 @@ function handleCopy() {
是否启用 - - - +
@@ -240,9 +220,7 @@ function handleCopy() {
是否开启 - - - +
@@ -258,9 +236,7 @@ function handleCopy() {
组件尺寸 - - - +
@@ -285,9 +261,7 @@ function handleCopy() {
载入进度条 - - - +
@@ -296,9 +270,7 @@ function handleCopy() {
动态标题 - - - +
@@ -306,9 +278,7 @@ function handleCopy() {