Merge pull request #10883 from thinkingc/fix-inputTree-defer

fix: inputTree defer模式下悬浮不展示操作按钮 #10873
This commit is contained in:
hsm-lv 2024-09-18 10:53:19 +08:00 committed by GitHub
commit d983067a76
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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)}