perf: improve the shadow in the upper and lower areas when the scrolling area is scrolling,close #20, close #26
This commit is contained in:
@@ -118,9 +118,10 @@ const hiddenSideStyle = computed((): CSSProperties => {
|
||||
});
|
||||
|
||||
const style = computed((): CSSProperties => {
|
||||
const { isSidebarMixed, paddingTop, zIndex } = props;
|
||||
const { isSidebarMixed, paddingTop, theme, zIndex } = props;
|
||||
|
||||
return {
|
||||
'--scroll-shadow': theme === 'dark' ? 'var(--menu-dark)' : 'var(--menu)',
|
||||
...calcMenuWidthStyle(false),
|
||||
paddingTop: `${paddingTop}px`,
|
||||
zIndex,
|
||||
|
Reference in New Issue
Block a user