-
-
Notifications
You must be signed in to change notification settings - Fork 491
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(core): decompose API from core and refactor to new architecture #64
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some issues need to be addressed. But overall, it looks pretty good!
packages/base-sheets/src/Basics/Interfaces/MutationInterface.ts
Outdated
Show resolved
Hide resolved
packages/base-sheets/src/Commands/Mutations/insert-sheet.mutation.ts
Outdated
Show resolved
Hide resolved
packages/base-sheets/src/Commands/Mutations/insert-sheet.mutation.ts
Outdated
Show resolved
Hide resolved
packages/ui-plugin-sheets/src/Controller/SheetBarUIContruller.ts
Outdated
Show resolved
Hide resolved
unuseful file
unuseful file
…-col worksheet-hidden
* refactor(sheet): move selection to new architecture * WIP: add shortcut commands and operation * feat: support moving cursor by shortcut * chore: update husky hook mode
import { IAccessor } from '@wendellhu/redi'; | ||
import { IInsertColMutationParams, IInsertRowMutationParams, IRemoveColMutationParams, IRemoveRowMutationParams } from '../../Basics/Interfaces/MutationInterface'; | ||
|
||
export const IRemoveRowMutationFactory = (accessor: IAccessor, params: IRemoveRowMutationParams): IInsertRowMutationParams => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
注意命名规范,I
开头的只应该是接口
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
而且这个是 undo factory,名字里没有 undo
目前写的 command 需要能够处理上层没有传递 params 的情况,即能够按照当前 sheet 的选区的状态自动执行对应的任务 cc @eiji-th @JerryJiangZh |
No description provided.