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

refactor(doc): refactor doc input #267

Merged
merged 11 commits into from
Oct 12, 2023
Merged

refactor(doc): refactor doc input #267

merged 11 commits into from
Oct 12, 2023

Conversation

DR-Univer
Copy link
Collaborator

No description provided.

@github-actions
Copy link

github-actions bot commented Oct 11, 2023

[View Deployment]

@DR-Univer DR-Univer changed the title refractor(doc): refractor doc input refactor(doc): refractor doc input Oct 11, 2023
@DR-Univer DR-Univer changed the title refactor(doc): refractor doc input refactor(doc): refactor doc input Oct 11, 2023
@DR-Univer DR-Univer requested review from Dushusir and removed request for Dushusir October 11, 2023 17:06
documentId: string;
}

export const SetZoomRatioUndoMutationFactory = (
Copy link
Member

Choose a reason for hiding this comment

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

Zoom 应该是一个 operation 而不是 mutation

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

咱们商量下一起统一

const undoMutationParams = SetZoomRatioUndoMutationFactory(accessor, setZoomRatioMutationParams);
const result = commandService.executeCommand(SetZoomRatioMutation.id, setZoomRatioMutationParams);

if (result) {
Copy link
Member

Choose a reason for hiding this comment

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

缩放无需支持 undo redo 吧

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

需要支持,excel可以撤销重做的

@@ -24,21 +23,19 @@ import {
export const DeleteLeftCommand: ICommand = {
id: 'doc.command.delete-left',
type: CommandType.COMMAND,
handler: async (accessor) => {
Copy link
Member

Choose a reason for hiding this comment

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

这些 command 是不用了吗?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

用delete-left.controller拦截实现了

@DR-Univer DR-Univer merged commit 94020e1 into dev Oct 12, 2023
3 checks passed
@jikkai jikkai deleted the refactor-base-doc-second branch October 14, 2023 02:30
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.

None yet

2 participants