Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

✨feat(grid): support progress editor #26

Merged
merged 3 commits into from
Aug 2, 2024
Merged

Conversation

Maple13
Copy link
Contributor

@Maple13 Maple13 commented Jul 31, 2024

  • support hover pop-up editing component

Maple13 added 2 commits July 31, 2024 16:36
- support hover pop-up editing component
# Conflicts:
#	src/app/app.component.ts
const cellDom = (event.target as HTMLElement).closest('.grid-cell') as HTMLElement;
const type = cellDom && (cellDom.getAttribute('type')! as AITableFieldType);
if (type && MOUSEOVER_EDIT_TYPE.includes(type)) {
this.mouseoverRef = this.openEdit(cellDom);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

鼠标移出后缺少关闭逻辑?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

使用 mouseover 来关闭弹框,移入到其他单元格或其他grid位置,就认为需要之前打开的编辑。
所以没有使用 mouseout 单独处理关闭逻辑。

@Maple13 Maple13 force-pushed the maple13/#WIK-16107 branch 2 times, most recently from e5fc20a to 066af15 Compare August 2, 2024 08:21
}

private closeHoverCellEditor(e: MouseEvent) {
const hasGrid = e.target && (e.target as HTMLElement).closest('.ai-table-grid');
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这里可以先判断 this.mouseoverRef 是不是打开的,打开的情况下再去查询,可以减少查询次数

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok

@Maple13 Maple13 force-pushed the maple13/#WIK-16107 branch from 066af15 to 9d81ef6 Compare August 2, 2024 08:29
@Maple13 Maple13 merged commit a71336d into develop Aug 2, 2024
4 checks passed
@Maple13 Maple13 deleted the maple13/#WIK-16107 branch August 2, 2024 08:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants