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

7 lines
169 B
JavaScript

export const getTreeClass = function (level, total) {
if (level === 0) return 'right';
if (level === 1 && level !== total - 1) return 'middle';
return 'left';
};