Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/components/stateless/OrgChart/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -81,13 +81,13 @@ function OrgChartDemo() {
<OrgChart
data={orgData}
onNodeClick={handleNodeClick}
defaultExpanded={true}
highlightOnHover={true}
animated={true}
defaultExpanded
highlightOnHover
animated
rootNodeClassName="custom-root-node"
expandIcon="▶"
collapseIcon="▼"
showExpandIcon={true}
showExpandIcon
customStyles={customStyles}
/>
</div>
Expand Down
4 changes: 2 additions & 2 deletions src/components/stateless/OrgChart/org-chart/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ const OrgChart = ({
)}
</div>
</div>
{hasChildren && isExpanded && <div className={`${styles.line} ${styles.downWithLine}`}></div>}
{hasChildren && isExpanded && <div className={`${styles.line} ${styles.downWithLine}`} />}
</div>

{/* 子节点容器 */}
Expand All @@ -140,7 +140,7 @@ const OrgChart = ({
<div className={styles.childrenWrapper}>
{node.childrenIds.map((childId, index) => (
<div key={childId} className={styles.childWrapper}>
<div className={`${styles.arrow} ${styles.arrowChild} ${styles.downArrowWithLine}`}></div>
<div className={`${styles.arrow} ${styles.arrowChild} ${styles.downArrowWithLine}`} />
<div
className={` ${styles.childBox} ${isNodeHighlighted(childId) ? styles.highlightedChild : ''} ${animated ? styles.animated : ''} `}
style={customStyles.childBox}
Expand Down
Loading