first commit

This commit is contained in:
lingxiao865
2026-02-10 08:05:03 +08:00
commit c5af079d8c
1094 changed files with 97530 additions and 0 deletions

View File

@@ -0,0 +1,14 @@
function getPopupStyles({ zIndex, distanceTop, placement, duration }) {
let zIndexStyle = zIndex ? `z-index:${zIndex};` : '';
if ((placement === 'top' || placement === 'left' || placement === 'right') && distanceTop) {
zIndexStyle = `${zIndexStyle}top:${distanceTop}px;--td-popup-distance-top:${distanceTop}px;`;
}
if (duration) {
zIndexStyle = `${zIndexStyle}--td-popup-transition:all ${duration}ms ease;`;
}
return zIndexStyle;
}
export default {
getPopupStyles,
};