feat: 增加supportCSSTransform#988
Closed
xiaochong44 wants to merge 1 commit intoantvis:masterfrom
xiaochong44:master
Closed
feat: 增加supportCSSTransform#988xiaochong44 wants to merge 1 commit intoantvis:masterfrom xiaochong44:master
xiaochong44 wants to merge 1 commit intoantvis:masterfrom
xiaochong44:master
Conversation
Contributor
Member
|
pr 标题改下~ |
zxc0328
reviewed
Jan 11, 2022
| S2PivotSheetOptions { | ||
| // custom data set | ||
| readonly dataSet?: (spreadsheet: SpreadSheet) => BaseDataSet; | ||
| supportCSSTransform?: boolean; |
| */ | ||
| protected initGroups() { | ||
| const { width, height } = this.options; | ||
| const { width, height, supportCSSTransform = false } = this.options; |
Member
There was a problem hiding this comment.
默认值统一设置在 packages/s2-core/src/common/constant/options.ts 里面
Contributor
|
你好 @xiaochong44,感谢你的贡献, 为了让代码更健壮, 请补充相应单元测试, 如果有API改动, 请修改 相应的文档 Hello, @xiaochong44, Thanks for your contribution. In order to make the code more robust, please add the corresponding unit tests, and update the docs if there are API changes. |
Member
|
描述里可以关联下 issue #987 |
Member
Codecov Report
@@ Coverage Diff @@
## master #988 +/- ##
=======================================
Coverage 71.85% 71.85%
=======================================
Files 170 170
Lines 12179 12179
Branches 2868 2869 +1
=======================================
Hits 8751 8751
Misses 2222 2222
Partials 1206 1206
Continue to review full report at Codecov.
|
lijinke666
reviewed
Jan 11, 2022
| */ | ||
| protected initGroups() { | ||
| const { width, height } = this.options; | ||
| const { width, height, supportCSSTransform = false } = this.options; |
1 task
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


👀 PR includes
✨ Feature
增加supportCSSTransform设置,解决父元素缩放引起的鼠标定位错乱问题
🎨 Enhance