Skip to content

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

Merged
hsm-lv merged 1 commit intobaidu:masterfrom
thinkingc:fix-inputTree-defer
Sep 18, 2024
Merged

fix: inputTree defer模式下悬浮不展示操作按钮 #10873#10883
hsm-lv merged 1 commit intobaidu:masterfrom
thinkingc:fix-inputTree-defer

Conversation

@thinkingc
Copy link
Copy Markdown
Contributor

What

#10873

Why

How

@github-actions github-actions Bot added the fix label Sep 6, 2024
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Sep 6, 2024

👍 Thanks for this!
🏷 I have applied any labels matching special text in your issue.

Please review the labels and make any necessary changes.

@thinkingc
Copy link
Copy Markdown
Contributor Author

thinkingc commented Sep 11, 2024

这个pr有啥问题吗?我理解新增icon不应该加这个限制。如果配置了addApi,新增完会自动调deferApi并打开当前层级是没有问题的。 @2betop

@2betop
Copy link
Copy Markdown
Member

2betop commented Sep 11, 2024

可以删除,可以编辑,但是应该限制新增吧,都不知道有没有孩子,就新增总感觉不妥

@thinkingc
Copy link
Copy Markdown
Contributor Author

可以删除,可以编辑,但是应该限制新增吧,都不知道有没有孩子,就新增总感觉不妥

我理解即使当前defer节点没有孩子,新增之后先调用appApi新增,然后调deferApi拉取,这时候应该就有孩子了。理论上没问题,除非addApi添加数据是异步的,新增之后deferApi不会及时获取。

@2betop
Copy link
Copy Markdown
Member

2betop commented Sep 11, 2024

看不到孩子列表,我怎么决定要不要新增呢,万一加重复了?

@thinkingc
Copy link
Copy Markdown
Contributor Author

看不到孩子列表,我怎么决定要不要新增呢,万一加重复了?

有点道理,我先在改成只限制新增按钮了。麻烦看下是否可行。
image

@hsm-lv hsm-lv merged commit d983067 into baidu:master Sep 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants