mirror of
https://gitcode.com/yangzongzhuan/RuoYi-Vue3.git
synced 2026-05-23 03:18:36 +00:00
优化样式
This commit is contained in:
@@ -171,6 +171,11 @@ onMounted(() => {
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss">
|
<style lang="scss">
|
||||||
|
.topmenu-container.el-menu--horizontal {
|
||||||
|
height: 50px !important;
|
||||||
|
border-bottom: none;
|
||||||
|
}
|
||||||
|
|
||||||
.topmenu-container.el-menu--horizontal > .el-menu-item {
|
.topmenu-container.el-menu--horizontal > .el-menu-item {
|
||||||
float: left;
|
float: left;
|
||||||
height: 50px !important;
|
height: 50px !important;
|
||||||
|
|||||||
@@ -39,7 +39,6 @@ function smoothScrollTo(target) {
|
|||||||
const duration = 300
|
const duration = 300
|
||||||
let startTime = null
|
let startTime = null
|
||||||
|
|
||||||
// easeInOutQuad »º¶¯º¯Êý
|
|
||||||
function ease(t, b, c, d) {
|
function ease(t, b, c, d) {
|
||||||
t /= d / 2
|
t /= d / 2
|
||||||
if (t < 1) return c / 2 * t * t + b
|
if (t < 1) return c / 2 * t * t + b
|
||||||
@@ -145,16 +144,13 @@ defineExpose({
|
|||||||
position: relative;
|
position: relative;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100%;
|
|
||||||
:deep(.el-scrollbar__bar) {
|
:deep(.el-scrollbar__bar) {
|
||||||
display: none;
|
bottom: 0px;
|
||||||
}
|
}
|
||||||
:deep(.el-scrollbar__wrap) {
|
:deep(.el-scrollbar__wrap) {
|
||||||
height: 34px;
|
height: 34px;
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
overflow-x: auto;
|
|
||||||
overflow-y: hidden;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
@@ -18,10 +18,10 @@
|
|||||||
@click.middle="!isAffix(tag) ? closeSelectedTag(tag) : ''"
|
@click.middle="!isAffix(tag) ? closeSelectedTag(tag) : ''"
|
||||||
@contextmenu.prevent="openMenu(tag, $event)"
|
@contextmenu.prevent="openMenu(tag, $event)"
|
||||||
>
|
>
|
||||||
<svg-icon v-if="tagsIcon && tag.meta && tag.meta.icon && tag.meta.icon !== '#'" :icon-class="tag.meta.icon" />
|
<svg-icon v-if="tagsIcon && tag.meta && tag.meta.icon && tag.meta.icon !== '#'" :icon-class="tag.meta.icon" style="margin-right: 3px;" />
|
||||||
{{ tag.title }}
|
{{ tag.title }}
|
||||||
<span v-if="!isAffix(tag)" @click.prevent.stop="closeSelectedTag(tag)">
|
<span v-if="!isAffix(tag)" @click.prevent.stop="closeSelectedTag(tag)" class="tags-close-btn">
|
||||||
<close class="el-icon-close" style="width: 1em; height: 1em;vertical-align: middle;" />
|
<close class="el-icon-close" />
|
||||||
</span>
|
</span>
|
||||||
</router-link>
|
</router-link>
|
||||||
</scroll-pane>
|
</scroll-pane>
|
||||||
@@ -386,7 +386,7 @@ function handleScroll() {
|
|||||||
$divider: 1px solid var(--tags-item-border, #d8dce5);
|
$divider: 1px solid var(--tags-item-border, #d8dce5);
|
||||||
|
|
||||||
.tags-nav-btn {
|
.tags-nav-btn {
|
||||||
flex-shrink: 0;
|
flex-shrink: 0;
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
@@ -418,7 +418,8 @@ function handleScroll() {
|
|||||||
height: 100%;
|
height: 100%;
|
||||||
|
|
||||||
.tags-view-item {
|
.tags-view-item {
|
||||||
display: inline-block;
|
display: inline-flex;
|
||||||
|
align-items: center;
|
||||||
position: relative;
|
position: relative;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
height: 26px;
|
height: 26px;
|
||||||
@@ -430,6 +431,9 @@ function handleScroll() {
|
|||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
margin-left: 5px;
|
margin-left: 5px;
|
||||||
border-radius: 3px;
|
border-radius: 3px;
|
||||||
|
text-decoration: none;
|
||||||
|
vertical-align: middle;
|
||||||
|
padding-top: 2px !important;
|
||||||
|
|
||||||
&:first-of-type { margin-left: 6px; }
|
&:first-of-type { margin-left: 6px; }
|
||||||
&:last-of-type { margin-right: 15px; }
|
&:last-of-type { margin-right: 15px; }
|
||||||
@@ -516,26 +520,33 @@ function handleScroll() {
|
|||||||
<style lang="scss">
|
<style lang="scss">
|
||||||
.tags-view-wrapper {
|
.tags-view-wrapper {
|
||||||
.tags-view-item {
|
.tags-view-item {
|
||||||
.el-icon-close {
|
.tags-close-btn {
|
||||||
|
display: inline-flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
width: 16px;
|
width: 16px;
|
||||||
height: 16px;
|
height: 16px;
|
||||||
vertical-align: 2px;
|
margin-left: 4px;
|
||||||
border-radius: 50%;
|
border-radius: 50%;
|
||||||
text-align: center;
|
transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
|
||||||
transition: all .3s cubic-bezier(.645, .045, .355, 1);
|
cursor: pointer;
|
||||||
transform-origin: 100% 50%;
|
|
||||||
|
.el-icon-close {
|
||||||
&:before {
|
width: 1em;
|
||||||
transform: scale(.6);
|
height: 1em;
|
||||||
display: inline-block;
|
vertical-align: 0;
|
||||||
vertical-align: -3px;
|
line-height: 1;
|
||||||
|
display: inline-flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
background-color: var(--tags-close-hover, #b4bccc);
|
background-color: var(--tags-close-hover, #b4bccc);
|
||||||
color: #fff;
|
|
||||||
width: 12px !important;
|
.el-icon-close {
|
||||||
height: 12px !important;
|
color: #fff;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -549,6 +560,9 @@ function handleScroll() {
|
|||||||
width: 100vw;
|
width: 100vw;
|
||||||
height: 100vh;
|
height: 100vh;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
|
margin-left: 0 !important;
|
||||||
|
transition: none !important;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.main-container.fullscreen-mode .fixed-header {
|
.main-container.fullscreen-mode .fixed-header {
|
||||||
@@ -559,6 +573,7 @@ function handleScroll() {
|
|||||||
right: 0;
|
right: 0;
|
||||||
width: 100% !important;
|
width: 100% !important;
|
||||||
z-index: 1000;
|
z-index: 1000;
|
||||||
|
transition: none !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.main-container.fullscreen-mode .fixed-header .navbar {
|
.main-container.fullscreen-mode .fixed-header .navbar {
|
||||||
|
|||||||
Reference in New Issue
Block a user