세금계산서 다운로드 및 일부 UI 변경

This commit is contained in:
focp212@naver.com
2025-11-15 12:21:41 +09:00
parent fe9a039531
commit 482bd0d43f
7 changed files with 1180 additions and 13 deletions

View File

@@ -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
}
};