-
-
Notifications
You must be signed in to change notification settings - Fork 458
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
chore(refactor): init merge cell service #1018
Conversation
ce1d8b5
to
7d1e8e0
Compare
View Deployment
|
7d1e8e0
to
2084ba6
Compare
2084ba6
to
1ba99cd
Compare
|
); | ||
} | ||
|
||
getCellInfoInfo(unitID: string, subUnitId: string, row: number, col: number): ISelectionCell { |
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.
这个 API 名字是啥意思?
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.
迁移过来的,会拿到当前单元格的信息(包含合并单元格相关的属性。)
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.
No context is provided for why this refactor is necessary and what is actually done. Unable to provide review opinions.
* @deprecated use merge-cell-service | ||
* @return {*} {IRange[]} | ||
* @memberof Worksheet | ||
*/ | ||
getMergeData(): IRange[] { |
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.
为什么要把这个 API 去掉?
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.
这个属于 model ,业务使用应该统一归属到 service .
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.
目前渲染层那边没有接入 di,所以这个 api 没办法完全去掉.
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.
这个属于 model ,业务使用应该统一归属到 service .
为什么获取合并单元格算作所谓的“业务使用”,获取单元格内容不算?
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.
我觉得拿单元格内容也应该走 service 拦一层的...要弱化 worksheet 这个概念, 本身 worksheet 算 snapshot。
对外提供 api 又是走的 facade(基于 service 进行的 api 组装),
6720e48
to
7ef994e
Compare
No description provided.