Files
lingxiao865 c5af079d8c first commit
2026-02-10 08:05:03 +08:00

7 lines
182 B
JavaScript

export function getStyles(top, zIndex) {
const topStyle = top ? `top:${top}px;` : '';
const zIndexStyle = zIndex ? `z-index:${zIndex};` : '';
return topStyle + zIndexStyle;
}