refactor(client): refactor and performance improve of MkSpacer
This commit is contained in:
parent
2184240ef1
commit
6c10588e77
4 changed files with 24 additions and 79 deletions
|
|
@ -76,7 +76,7 @@ provideMetadataReceiver((info) => {
|
|||
}
|
||||
});
|
||||
provide('shouldHeaderThin', showMenuOnTop);
|
||||
provide('shouldSpacerMin', true);
|
||||
provide('forceSpacerMin', true);
|
||||
|
||||
function attachSticky(el) {
|
||||
const sticky = new StickySidebar(el, defaultStore.state.menuDisplay === 'top' ? 0 : 16, defaultStore.state.menuDisplay === 'top' ? 60 : 0); // TODO: ヘッダーの高さを60pxと決め打ちしているのを直す
|
||||
|
|
|
|||
|
|
@ -40,7 +40,7 @@ import { MenuItem } from '@/types/menu';
|
|||
|
||||
provide('shouldHeaderThin', true);
|
||||
provide('shouldOmitHeaderTitle', true);
|
||||
provide('shouldSpacerMin', true);
|
||||
provide('forceSpacerMin', true);
|
||||
|
||||
const props = withDefaults(defineProps<{
|
||||
column: Column;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue