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

[Feature] 提供鼠标拖拽到sheet内部的结束事件 #1176

Closed
2 tasks done
Thingfxj opened this issue Jan 18, 2024 · 5 comments · Fixed by #2193
Closed
2 tasks done

[Feature] 提供鼠标拖拽到sheet内部的结束事件 #1176

Thingfxj opened this issue Jan 18, 2024 · 5 comments · Fixed by #2193
Assignees

Comments

@Thingfxj
Copy link

初始清单

  • 这真的是个问题吗?
  • 我已经在 Github Issues 中搜索过了,但没有找到类似的问题。

问题

需要退拽元素内容到sheet中指定的单元格

解决方案

提供类似luckysheet的cellDragStop方法
Uploading 928019ad464e8498112bfa0d3713284.png…

@Thingfxj Thingfxj added the feature request New feature or request label Jan 18, 2024
@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


Initial list

  • Is this really a problem?
  • I've searched Github Issues but haven't found any similar issues.

question

You need to drag the element content back to the specified cell in the sheet

solution

Provides a cellDragStop method similar to luckysheet
Uploading 928019ad464e8498112bfa0d3713284.png…

@jikkai jikkai changed the title 提供鼠标拖拽到sheet内部的结束事件[Feature] [Feature] 提供鼠标拖拽到sheet内部的结束事件 Jan 18, 2024
@HaiYangHuX
Copy link

请问这个功能近期会上吗

@univer-bot
Copy link

univer-bot bot commented Apr 9, 2024

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿

Will this feature be available soon?

@Dushusir
Copy link
Member

Dushusir commented May 8, 2024

关注下一个版本的Facade更新,通过onCellPointerMove拿到单元格信息之后就可以进行自定义操作

univerAPI.getSheetHooks().onCellPointerMove((cell) => {
  // 拿到当前鼠标指向的单元格
  console.log(cell);
})

@univer-bot
Copy link

univer-bot bot commented May 8, 2024

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿

Pay attention to the next version of Facade update. After getting the cell information through onCellPointerMove, you can perform customized operations.

univerAPI.getSheetHooks().onCellPointerMove((cell) => {
  // Get the cell currently pointed by the mouse
  console.log(cell);
})

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

7 participants