🐛 fix(query-editor): 修复选择器与事务提示浮层

- host 和数据库下拉选项关闭原生 title,避免和自定义 Tooltip 重复显示
- 事务模式说明默认向上弹出,并保留边界自动避让
- 移除下拉打开时强制隐藏事务说明的状态控制
- 补充工具栏和事务设置回归断言
This commit is contained in:
Syngnat
2026-06-26 10:06:56 +08:00
parent 22cdeb677b
commit faa7ed1ae2
4 changed files with 20 additions and 41 deletions

View File

@@ -96,6 +96,7 @@ describe('QueryEditorToolbar layout', () => {
expect(toolbarSource).toContain('mouseEnterDelay={FULL_NAME_TOOLTIP_DELAY_SECONDS}');
expect(toolbarSource).toContain('renderFullNameSelectTooltip');
expect(toolbarSource).toContain('gn-query-toolbar-select-full-name');
expect(toolbarSource).toContain('title: ""');
expect(connectionSelectSource).toContain('optionRender={(option) => renderFullNameSelectTooltip(option.data.fullName)}');
expect(connectionSelectSource).toContain('labelRender={(option) => renderFullNameSelectTooltip(option.label ?? option.value)}');
expect(databaseSelectSource).toContain('optionRender={(option) => renderFullNameSelectTooltip(option.data.fullName)}');