세금계산서 다운로드 및 일부 UI 변경
This commit is contained in:
@@ -1,4 +1,35 @@
|
||||
import packageInfo from '../../../package.json';
|
||||
|
||||
export const IMAGE_ROOT = '/images';
|
||||
export const RELEASE_VERSION = packageInfo.version;
|
||||
export const RELEASE_VERSION = packageInfo.version;
|
||||
|
||||
export const ListScrollOn = (on: boolean) => {
|
||||
let body = document.querySelector('body');
|
||||
if(body){
|
||||
if(!!on){
|
||||
body.style.overflowY = 'hidden';
|
||||
}
|
||||
else{
|
||||
body.style.overflowY = 'auto';
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
export const GetListHeight = () => {
|
||||
let innerHeight = window.innerHeight;
|
||||
let headerHeight = 50;
|
||||
|
||||
let summarySection: HTMLDivElement | null = document.querySelector('.summary-section');
|
||||
let summarySectionHeight: number = (!!summarySection)? summarySection.offsetHeight: 0;
|
||||
|
||||
let filterSection: HTMLDivElement | null = document.querySelector('.filter-section');
|
||||
let filterSectionHeight: number = (!!filterSection)? filterSection.offsetHeight: 0;
|
||||
|
||||
return {
|
||||
innerHeight: innerHeight,
|
||||
headerHeight: headerHeight,
|
||||
summarySectionHeight: summarySectionHeight,
|
||||
filterSectionHeight: filterSectionHeight,
|
||||
listHeight: innerHeight - headerHeight - summarySectionHeight - filterSectionHeight
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user