tree h-full 滚动条问题修复

This commit is contained in:
liaoxuezhi 2019-11-13 14:32:21 +08:00
parent c9b3d6f862
commit e61b4c09d2
2 changed files with 4 additions and 1 deletions

View File

@ -7,6 +7,7 @@
&.h-full {
max-height: none;
overflow: visible;
}
&.no-border {

View File

@ -647,7 +647,9 @@ export class TreeSelector extends React.Component<
) : null}
{childrenItems}
</ul>
) : !childrenItems && item.placeholder && unfolded[item[valueField]] ? (
) : !childrenItems &&
item.placeholder &&
unfolded[item[valueField]] ? (
<ul className={cx('Tree-sublist')}>
<li className={cx('Tree-item')}>
<div className={cx('Tree-placeholder')}>{item.placeholder}</div>