Match-id-0f71aa2d32776927b1e526631295e8268fb0b82f

This commit is contained in:
* 2022-04-07 11:50:27 +08:00 committed by *
parent 5dabd922ba
commit e851c5a37e
1 changed files with 2 additions and 2 deletions

View File

@ -2,7 +2,7 @@ import styles from './ComponentsInfo.less';
import Eye from '../svgs/Eye';
import Debug from '../svgs/Debug';
import Copy from '../svgs/Copy';
import Arrow from '../svgs/Arrow';
import Triangle from '../svgs/Triangle';
import { useState } from 'horizon';
type IComponentInfo = {
@ -53,7 +53,7 @@ function ComponentAttr({ name, attr }: { name: string, attr: IAttr[] }) {
const isCollapsed = collapsedNode.has(index);
showAttr.push(
<div style={{ paddingLeft: item.indentation * 10 }} key={index} onClick={() => (handleCollapse(index))}>
<span className={styles.attrArrow}>{hasChild && <Arrow director={isCollapsed ? 'right' : 'down'} />}</span>
<span className={styles.attrArrow}>{hasChild && <Triangle director={isCollapsed ? 'right' : 'down'} />}</span>
<span className={styles.attrName}>{`${item.name}`}</span>
{' :'}
<span className={styles.attrValue}>{item.value}</span>