diff --git a/package.json b/package.json
index 15c1b0c1..ae415fb0 100644
--- a/package.json
+++ b/package.json
@@ -38,7 +38,7 @@
"lodash-es": "^4.17.21",
"mitt": "^2.1.0",
"mockjs": "^1.1.0",
- "naive-ui": "^2.25.2",
+ "naive-ui": "^2.26.4",
"pinia": "^2.0.11",
"qs": "^6.10.3",
"vfonts": "^0.1.0",
diff --git a/src/App.vue b/src/App.vue
index 34ec08ea..db690d2e 100644
--- a/src/App.vue
+++ b/src/App.vue
@@ -18,7 +18,7 @@
diff --git a/src/layout/components/Header/ProjectSetting.vue b/src/layout/components/Header/ProjectSetting.vue
index 22835f43..e6aaf7a8 100644
--- a/src/layout/components/Header/ProjectSetting.vue
+++ b/src/layout/components/Header/ProjectSetting.vue
@@ -359,6 +359,7 @@
margin: 0 5px 5px 0;
text-align: center;
line-height: 14px;
+
.n-icon {
color: #fff;
}
diff --git a/src/layout/components/Menu/index.vue b/src/layout/components/Menu/index.vue
index 3036c195..f2ac080f 100644
--- a/src/layout/components/Menu/index.vue
+++ b/src/layout/components/Menu/index.vue
@@ -15,153 +15,153 @@
diff --git a/src/layout/components/TagsView/index.vue b/src/layout/components/TagsView/index.vue
index 8fd85135..28dbf8ac 100644
--- a/src/layout/components/TagsView/index.vue
+++ b/src/layout/components/TagsView/index.vue
@@ -80,600 +80,600 @@
+ /**
+ * @param value 要滚动到的位置
+ * @param amplitude 每次滚动的长度
+ */
+ function scrollTo(value: number, amplitude: number) {
+ const currentScroll = navScroll.value.scrollLeft;
+ const scrollWidth =
+ (amplitude > 0 && currentScroll + amplitude >= value) ||
+ (amplitude < 0 && currentScroll + amplitude <= value)
+ ? value
+ : currentScroll + amplitude;
+ navScroll.value && navScroll.value.scrollTo(scrollWidth, 0);
+ if (scrollWidth === value) return;
+ return window.requestAnimationFrame(() => scrollTo(value, amplitude));
+ }
-
diff --git a/src/layout/index.vue b/src/layout/index.vue
index 665c1fcd..5f96d5cb 100644
--- a/src/layout/index.vue
+++ b/src/layout/index.vue
@@ -1,7 +1,9 @@
diff --git a/src/settings/projectSetting.ts b/src/settings/projectSetting.ts
index 8612fa4f..d8209dee 100644
--- a/src/settings/projectSetting.ts
+++ b/src/settings/projectSetting.ts
@@ -36,7 +36,7 @@ const setting = {
//分割菜单
mixMenu: false,
//触发移动端侧边栏的宽度
- mobileWidth: 800
+ mobileWidth: 800,
},
//面包屑
crumbsSetting: {
diff --git a/src/styles/common.less b/src/styles/common.less
index 235d0b6f..94bb26b0 100644
--- a/src/styles/common.less
+++ b/src/styles/common.less
@@ -1,9 +1,12 @@
-#app, body, html {
+#app,
+body,
+html {
height: 100%;
}
body {
- font-family: Helvetica Neue, Helvetica, PingFang SC, Hiragino Sans GB, Microsoft YaHei, "\5FAE\8F6F\96C5\9ED1", Arial, sans-serif;
+ font-family: Helvetica Neue, Helvetica, PingFang SC, Hiragino Sans GB, Microsoft YaHei,
+ '\5FAE\8F6F\96C5\9ED1', Arial, sans-serif;
line-height: 1.5;
color: #515a6e;
font-size: 14px;
@@ -15,7 +18,7 @@ body {
//重置样式
.anticon {
svg {
- vertical-align: initial
+ vertical-align: initial;
}
}
@@ -25,10 +28,11 @@ a {
text-decoration: none;
outline: none;
cursor: pointer;
- transition: color .2s ease;
+ transition: color 0.2s ease;
}
-a:active, a:hover {
+a:active,
+a:hover {
outline-width: 0;
}
@@ -40,7 +44,8 @@ a:active {
color: #2b85e4;
}
-a:active, a:hover {
+a:active,
+a:hover {
outline: 0;
text-decoration: none;
}
@@ -91,7 +96,7 @@ a:active, a:hover {
//antd 卡片样式定制
body .n-card {
- transition: all .2s ease-in-out;
+ transition: all 0.2s ease-in-out;
}
body .n-icon {
@@ -110,7 +115,7 @@ body .proCard {
}
}
-body .n-modal{
+body .n-modal {
border-radius: 6px;
}
diff --git a/src/views/iframe/index.vue b/src/views/iframe/index.vue
index 8366ac18..5ee212eb 100644
--- a/src/views/iframe/index.vue
+++ b/src/views/iframe/index.vue
@@ -43,7 +43,6 @@
loading.value = true;
init();
});
-