mirror of
https://github.com/fantastic-admin/basic.git
synced 2026-10-07 11:34:10 +08:00
refactor: 代码微调
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
z-index: 10031;
|
||||
z-index: 2000;
|
||||
width: 100%;
|
||||
height: 2px;
|
||||
background: rgb(var(--ui-primary));
|
||||
@@ -26,7 +26,7 @@
|
||||
position: fixed;
|
||||
top: 11px;
|
||||
right: 14px;
|
||||
z-index: 10031;
|
||||
z-index: 2000;
|
||||
display: block;
|
||||
|
||||
.spinner-icon {
|
||||
|
||||
@@ -53,6 +53,7 @@ function tabbarScrollTip() {
|
||||
title: '温馨提示',
|
||||
duration: 5000,
|
||||
closable: true,
|
||||
zIndex: 2000,
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
@@ -10,7 +10,9 @@ const route = useRoute()
|
||||
|
||||
const { copy, copied } = useClipboard()
|
||||
watch(copied, (val) => {
|
||||
val && Message.success('复制成功')
|
||||
val && Message.success('复制成功', {
|
||||
zIndex: 2000,
|
||||
})
|
||||
})
|
||||
|
||||
function open() {
|
||||
|
||||
@@ -159,6 +159,11 @@ const enableAppSetting = import.meta.env.VITE_APP_SETTING === 'true'
|
||||
width: calc(var(--g-main-sidebar-actual-width) + var(--g-sub-sidebar-actual-width));
|
||||
box-shadow: -1px 0 0 0 var(--g-border-color), 1px 0 0 0 var(--g-border-color);
|
||||
transition: width 0.3s, transform 0.3s, box-shadow 0.3s, top 0.3s;
|
||||
|
||||
&:has(> .main-sidebar-container.main-sidebar-enter-active),
|
||||
&:has(> .main-sidebar-container.main-sidebar-leave-active) {
|
||||
overflow: hidden;
|
||||
}
|
||||
}
|
||||
|
||||
.sidebar-mask {
|
||||
|
||||
@@ -52,11 +52,15 @@ export default function useTabbar() {
|
||||
}
|
||||
}
|
||||
else {
|
||||
Message.error('当前只有一个标签页,已阻止关闭')
|
||||
Message.error('当前只有一个标签页,已阻止关闭', {
|
||||
zIndex: 2000,
|
||||
})
|
||||
}
|
||||
}
|
||||
else {
|
||||
Message.error('关闭的页面不存在')
|
||||
Message.error('关闭的页面不存在', {
|
||||
zIndex: 2000,
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user