Files

7 lines
182 B
JavaScript
Raw Permalink Normal View History

2026-02-10 08:05:03 +08:00
export function getStyles(top, zIndex) {
const topStyle = top ? `top:${top}px;` : '';
const zIndexStyle = zIndex ? `z-index:${zIndex};` : '';
return topStyle + zIndexStyle;
}