fix: inputTree defer模式下悬浮不展示操作按钮

This commit is contained in:
chenwenhao 2024-09-11 13:09:43 +08:00
parent 48811f335f
commit 8c5c37f8d1

View File

@ -1306,12 +1306,11 @@ export class TreeSelector extends React.Component<
: `${item[labelField]}`}
</span>
{!disabled &&
!isAdding &&
!isEditing &&
!(item[deferField] && !item.loaded) ? (
{!disabled && !isAdding && !isEditing ? (
<div className={cx('Tree-item-icons')}>
{creatable && hasAbility(item, 'creatable') ? (
{creatable &&
!(item[deferField] && !item.loaded) &&
hasAbility(item, 'creatable') ? (
<TooltipWrapper
placement={'bottom'}
tooltip={__(createTip)}