feat(facet): add scrollBarPosition option #997
Conversation
Codecov Report
@@ Coverage Diff @@
## master #997 +/- ##
==========================================
+ Coverage 71.73% 71.78% +0.04%
==========================================
Files 170 170
Lines 12196 12221 +25
Branches 2873 2873
==========================================
+ Hits 8749 8773 +24
+ Misses 2250 2240 -10
- Partials 1197 1208 +11
Continue to review full report at Codecov.
|
|
🎊 PR Preview has been successfully built and deployed to https://s2-preview-pr-997.surge.sh |
|
Size Change: +397 B (0%) Total Size: 188 kB
ℹ️ View Unchanged
|
| vertical?: number; | ||
| } | ||
|
|
||
| export enum ScrollbarPositionType { |
There was a problem hiding this comment.
枚举放到 constant 里面, 然后 key 全大写吧
|
🎉 This PR is included in version @antv/s2-v1.6.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
|
🎉 This PR is included in version @antv/s2-react-v1.6.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
* feat: 增加supportCSSTransform设置 (#990) * 增加supportCSSTransform * feat: 增加supportCSSTransform配置 * docs: S2Options 增supportCSSTransform * fix: 测试增加supportCSSTransform属性 * fix: react测试增加supportCSSTransform * docs: 优化部分文档, 增加部分 faq (#992) * chore: 增加组内不排序icon (#993) * feat(facet): add scrollBarPosition option (#997) * feat: add viewport width and height for panelBBox * fix: add panelbbox unit test * feat: add scroll position config * fix: add unit test * fix: merge opts test * feat: update docs * fix: s2 react test * fix: typo * fix: update doc typo * fix: update opts test * fix: merge spec type * fix(facet): 交叉表 compact 模式下行/列头宽度计算错误 (#972) * fix(facet): 交叉表compact模式且值在列头时宽度计算错误 * fix(facet): 交叉表compact模式且值在行头时宽度计算错误 * fix(facet): compact模式计算宽度时考虑多icon * chore: 精简注释 * fix(facet): 兼容节点无level属性 * fix: scrollbarOpts to enum const (#1001) * test(scroll): 修复 layout变化后导致的断言错误 (#1002) * chore: fix ci * test: fix tests * test: fix test Co-authored-by: xiaochong44 <[email protected]> Co-authored-by: Jinke Li <[email protected]> Co-authored-by: Wenjun Xu <[email protected]> Co-authored-by: Xinhui <[email protected]> Co-authored-by: 刘嘉一 <[email protected]>
* refactor: ♻️ rewrite sheet component (#869) * refactor: sheets * refactor: add sheet hooks * fix: 🐛 solve the issue that the measure does not shown when the type of dimensions are number (#871) * fix: 🐛 solve the issue that the measure does not shown when the type of dimensions are number * test: ✅ fix the test * test: 🐛 fix tests * docs: 📝 fix crashed demos (#876) * fix(components): add empty fragment close #873 (#878) * refactor: ♻️ optimize the logic of sheet components * test: ✅ fix the tests of gridAnalysis * fix: cannot bind event and add tests * test: fix test * test: fix test * fix: loop render if enable adaptive * fix: tests * fix: loop render Co-authored-by: 嘤嘤嘤 <[email protected]> * chore(release): 🔖@antv/[email protected] @antv/[email protected] * chore(release): 🔖 @antv/[email protected] @antv/[email protected] * chore(release): 🤖 @antv/s2-v1.3.0 [skip ci] * chore(release): 🤖 @antv/s2-react-v1.3.0 [skip ci] * feat: ✨ init strategy sheet (#897) * chore: 🎉 init the strategysheet * test: ✅ add test data and damo for the strategySheet * feat: ✨ add cornerText for the options * feat: ✨ init basicoptions of strategy sheet * style: 💄 optimize the data-cell for the strategy sheet * feat(interaction): 透视表支持隐藏列头 (#890) * feat(interaction): 透视表支持隐藏列头 * feat(interaction): 隐藏列头支持 hideMeasureColumn 的场景 * chore: 同步 lock 和 changelog (#892) * chore(release): 🔖@antv/[email protected] @antv/[email protected] * chore(release): 🔖 @antv/[email protected] @antv/[email protected] * chore(release): 🤖 @antv/s2-v1.3.0 [skip ci] * chore(release): 🤖 @antv/s2-react-v1.3.0 [skip ci] * chore: 同步 changelog * chore: 更新同步脚本 Co-authored-by: yingying.xwy <[email protected]> Co-authored-by: semantic-release-bot <[email protected]> * feat(interaction): 只有点击列头时才显示隐藏按钮 * test: fix * fix(interaction): 修复默认隐藏列不显示 Co-authored-by: yingying.xwy <[email protected]> Co-authored-by: semantic-release-bot <[email protected]> * chore: 更新 playground demo * chore(release): release @antv/[email protected] @antv/[email protected] * chore(release): 🤖 @antv/s2-v1.3.0-alpha.1 [skip ci] * chore(release): 🤖 @antv/s2-react-v1.3.0-alpha.1 [skip ci] * test: 修复单测&统一单测命名 (#906) * feat(strategy-sheet): 自定义趋势分析表 tooltip (#905) * feat(strategy-sheet): 自定义趋势分析表 tooltip * feat(strategy-sheet): 增加 placeholder 默认值 * feat(strategy-sheet): 占位符统一使用 options.placeholder * docs: 更新文档 * chore: 更新文档 * feat(interaction): 支持禁用刷选功能 (#908) * feat(interaction): 支持禁用刷选功能 * feat(interaction): 修复测试 * feat(interaction): 优化测试 * feat: ✨ 增加对象型数值单元格宽度和文本条件的映射 (#916) * test: 修复单测&统一单测命名 * refactor: 增加valuesCfg的类型定义扩展至CellCfg * feat: 增加对象型数值单元格宽度映射 * feat: ✨ 增加对象型数值单元格文本型条件格式映射,兼容网格分析表和趋势分析表 * chore: fix lint * chore: 重命名 widthPercentMap 为 widthPercentCfg * feat: 新增趋势分析表hover列头显示指标名 (#913) * fix(frame): incorrect viewport splitline shadow (#898) * fix(frame): incorrect viewport splitline shadow * fix(frame): remove unnecessary init expression * fix: remove unsed import * Update packages/s2-core/src/common/interface/frame.ts * fix(typo): viewPort -> viewport Co-authored-by: Wenjun Xu <[email protected]> * fix(interactive): global selected event emit (#902) * fix: event emit * test: add test * test: add event test Co-authored-by: wengyidong.wyd <[email protected]> * chore: 更新CI中英文翻译 (#907) * chore: 更新CI中英文翻译 * chore: 将issue自动关闭日期增加到15天 * fix: 修复错误修改DefaultOptions问题 (#910) * feat: 新增趋势分析表hover列头显示指标名 Co-authored-by: 刘嘉一 <[email protected]> Co-authored-by: Wenjun Xu <[email protected]> Co-authored-by: YardWill <[email protected]> Co-authored-by: wengyidong.wyd <[email protected]> * docs(interaction): 更新交互文档 * feat(strategy-sheet): 趋势分析表禁用多选和快捷多选 (#919) * feat(strategy-sheet): 趋势分析表禁用多选和快捷多选 * fix: 修改测试 * fix: 重命名 shiftMultiSelection => rangeSelection * chore: 修改 lint 和 test 规则 * chore(release): @antv/[email protected] @antv/[email protected] * chore(release): 🤖 @antv/s2-v1.4.0-alpha.1 [skip ci] * chore(release): 🤖 @antv/s2-react-v1.4.0-alpha.1 [skip ci] * test: 修改测试文件名 * feat: 新增字段描述功能 (#925) * feat: 新增字段描述功能 * test: 修改 data-set 文件名 * docs: 增加数据集文档和测试 * fix: 🐛 修复趋势分析表和网格分析表无法自定义主题 (#927) * fix: 完善条件格式定义 * fix: 🐛 修复趋势分析表和网格分析表无法自定义主题 * chore(release): @antv/[email protected] @antv/[email protected] * chore(release): 🤖 @antv/s2-v1.4.0-alpha.2 [skip ci] * chore(release): 🤖 @antv/s2-react-v1.4.0-alpha.2 [skip ci] * fix(startegysheet): 趋势分析表列头文字根据数值坐标动态计算 (#929) * fix(startegysheet): 趋势分析表列头文字根据数值坐标动态计算 * fix: any => unknown * chore(release): @antv/[email protected] @antv/[email protected] * chore(release): 🤖 @antv/s2-v1.4.0-alpha.3 [skip ci] * chore(release): 🤖 @antv/s2-react-v1.4.0-alpha.3 [skip ci] * feat(interaction): 新增 hoverFocus 配置项 (#944) * feat(interaction): 新增 hoverFocus 配置项 * fix: 修复测试 * docs: 增加demo * test: 修复测试 * fix: 修复未配置 label时, hover 数值单元格报错, 并且列头文字上移的问题 (#946) * chore(release): @antv/[email protected] @antv/[email protected] * chore(release): 🤖 @antv/s2-v1.4.0-alpha.4 [skip ci] * chore(release): 🤖 @antv/s2-react-v1.4.0-alpha.4 [skip ci] * chore(release): 🔖@antv/[email protected] @antv/[email protected] * chore(release): 🤖 @antv/s2-v1.4.0 [skip ci] * chore(release): 🤖 @antv/s2-react-v1.4.0 [skip ci] * fix: bug: 修复趋势分析表自定义目录树渲染出错的问题 * chore(release): 🔖@antv/[email protected] @antv/[email protected] * chore(release): 🤖 @antv/s2-v1.5.0-alpha.1 [skip ci] * chore(release): 🤖 @antv/s2-react-v1.5.0-alpha.1 [skip ci] * refactor: ♻️ 自定义目录树优化 (#958) * fix: 修复自定义目录树渲染问题 * chore: fix lint * chore: fix lint * chore(release): 🔖@antv/[email protected] @antv/[email protected] * fix: 修复错误版本号 * chore(release): 🔖@antv/[email protected] @antv/[email protected] * chore(release): 🤖 @antv/s2-v1.5.0-alpha.2 [skip ci] * chore(release): 🤖 @antv/s2-react-v1.5.0-alpha.2 [skip ci] * fix(stratgysheet): 逻辑兜底 * chore(release): 🔖@antv/[email protected] @antv/[email protected] * chore(release): 🤖 @antv/s2-react-v1.5.0-alpha.3 [skip ci] * fix: 自定义目录树切换优化 (#964) * fix: 自定义目录树切换优化 * refactor: remove the dom from the SpreadSheet * chore(release): 🔖@antv/[email protected] @antv/[email protected] * chore(release): 🤖 @antv/s2-v1.5.0-alpha.3 [skip ci] * chore(release): 🤖 @antv/s2-react-v1.5.0-alpha.4 [skip ci] * test: 增加单元格移动交互测试 * 修复下钻行总计单元格数据错误 (#961) * fix: 下钻行的总计节点获取数据错误 * feat(drillDown): 下钻支持回传 totalData * test: 增加下钻总计数据测试 * docs(drillDown): 补充下钻文档中总计数据部分 * refactor(drillDown): 移除下钻接口中的汇总数据 * test: 更新下钻总计数据测试 * Revert "docs(drillDown): 补充下钻文档中总计数据部分" This reverts commit 804c702. * chore: typo * fix: 修复自定义树取值路径错误问题 (#970) * fix: 修复自定义树取值路径错误问题 * chore: 修复注释 * chore(release): 🔖@antv/[email protected] * chore(release): 🤖 @antv/s2-v1.5.0-alpha.4 [skip ci] * chore(release): 🤖 @antv/s2-react-v1.5.0-alpha.5 [skip ci] * fix: 修复点击非表格区域报错 (#974) * chore(release): @antv/[email protected] * chore(release): 🤖 @antv/s2-v1.5.0-alpha.5 [skip ci] * chore(release): 🔖@antv/[email protected] @antv/[email protected] * chore(release): 🤖 @antv/s2-v1.5.0 [skip ci] * chore(release): 🤖 @antv/s2-react-v1.5.0 [skip ci] * chore(release): @antv/[email protected] @antv/[email protected] * chore(release): 🤖 @antv/s2-v1.6.0-alpha.1 [skip ci] * chore(release): 🤖 @antv/s2-react-v1.6.0-alpha.1 [skip ci] * fix(s2-react): 修复 hierarchyType 切换导致的渲染问题 (#984) * fix(s2-react): 修复 hierarchyType 切换导致的渲染问题 * feat(useEvents): 增加组件层事件回调函数 * fix: fix lint * fix(interface): 修复类型定义 * chore(release): 🔖@antv/[email protected] @antv/[email protected] * chore(release): 🤖 @antv/s2-v1.6.0-alpha.2 [skip ci] * chore(release): 🤖 @antv/s2-react-v1.6.0-alpha.2 [skip ci] * fix: 修复多指标情况下自定义树展示不全的问题 (#986) * chore(release): 🔖@antv/[email protected] @antv/[email protected] * chore(release): 🤖 @antv/s2-v1.6.0-alpha.3 [skip ci] * chore(release): 🤖 @antv/s2-react-v1.6.0-alpha.3 [skip ci] * fix(useResize): 🐛 修复自适应模式下重复渲染问题 (#991) * fix: 🐛 修复自适应模式下重复渲染问题 * fix: 修复自定义目录树单测 * fix(useResize): 增加 useLayoutEffect deps * chore(release): 🔖@antv/[email protected] @antv/[email protected] * chore(release): 🤖 @antv/s2-v1.6.0-alpha.4 [skip ci] * chore(release): 🤖 @antv/s2-react-v1.6.0-alpha.4 [skip ci] * fix: 🐛 修复多指标渲染空值问题 (#995) * fix: 列宽计算适配多指标情况 (#996) * fix: 列宽计算适配多指标情况 * fix: lint * chore(release): @antv/[email protected] @antv/[email protected] (#1003) * chore(release): 🤖 @antv/s2-v1.6.0 [skip ci] * chore(release): 🤖 @antv/s2-react-v1.6.0 [skip ci] * chore: 合并master (#1005) * feat: 增加supportCSSTransform设置 (#990) * 增加supportCSSTransform * feat: 增加supportCSSTransform配置 * docs: S2Options 增supportCSSTransform * fix: 测试增加supportCSSTransform属性 * fix: react测试增加supportCSSTransform * docs: 优化部分文档, 增加部分 faq (#992) * chore: 增加组内不排序icon (#993) * feat(facet): add scrollBarPosition option (#997) * feat: add viewport width and height for panelBBox * fix: add panelbbox unit test * feat: add scroll position config * fix: add unit test * fix: merge opts test * feat: update docs * fix: s2 react test * fix: typo * fix: update doc typo * fix: update opts test * fix: merge spec type * fix(facet): 交叉表 compact 模式下行/列头宽度计算错误 (#972) * fix(facet): 交叉表compact模式且值在列头时宽度计算错误 * fix(facet): 交叉表compact模式且值在行头时宽度计算错误 * fix(facet): compact模式计算宽度时考虑多icon * chore: 精简注释 * fix(facet): 兼容节点无level属性 * fix: scrollbarOpts to enum const (#1001) * test(scroll): 修复 layout变化后导致的断言错误 (#1002) * chore: fix ci * test: fix tests * test: fix test Co-authored-by: xiaochong44 <[email protected]> Co-authored-by: Jinke Li <[email protected]> Co-authored-by: Wenjun Xu <[email protected]> Co-authored-by: Xinhui <[email protected]> Co-authored-by: 刘嘉一 <[email protected]> * chore(release): 🔖@antv/[email protected] @antv/[email protected] * chore(release): 🤖 @antv/s2-v1.7.0-alpha.1 [skip ci] * chore(release): 🤖 @antv/s2-react-v1.7.0-alpha.1 [skip ci] * fix: 修复高度自适应死循环问题 (#1007) * chore(release): 🔖@antv/[email protected] * chore(release): 🤖 @antv/s2-react-v1.7.0-alpha.2 [skip ci] * fix: 加载下钻数据引起render死循环 (#1010) * feat: node增加节点信息参数便于透传额外业务信息 (#1019) * feat: node增加节点信息参数便于透传额外业务信息 * refactor: 代码优化 * fix: 下钻参数变更后未正确重置 (#1015) * fix(drilldown): 启用下钻后再禁用报错 * fix: 关闭下钻功能后下钻图标未消失 * fix: 下钻字段变更时tooltip中维度列表未更新 * test(drilldown): 修复handleDrillDownIcon入参变更 * fix(drilldown): 变更drillConfig.dataSet未重置下钻结果 * chore: remove dead code * chore(release): 🔖@antv/[email protected] @antv/[email protected] * chore(release): 🤖 @antv/s2-v1.7.0-alpha.2 [skip ci] * chore(release): 🤖 @antv/s2-react-v1.7.0-alpha.3 [skip ci] * fix(drilldown): 修复clearDrillDown下钻清除错误及重渲逻辑 (#1023) * refactor(drilldown): 修改重渲依赖;drillItemsNum变更后改为重渲; * fix: path不存在时deleteMetaById误删meta * fix: 交叉表grid切换为tree时未渲染下钻icon * docs(drilldown): 下钻参数注意事项 * fix(strategy-sheet): 修复衍生指标颜色,图标显示不正确 & tooltip 不显示指标名 (#1024) * fix(strategy-sheet): 修复衍生指标颜色,图标显示不正确 & tooltip 不显示指标名 * fix(strategy-sheet): 修改测试 * fix(strategy-sheet): 修复测试 * test: 修改测试名 * chore(release): @antv/[email protected] @antv/[email protected] * chore(release): 🤖 @antv/s2-v1.7.0-alpha.3 [skip ci] * chore(release): 🤖 @antv/s2-react-v1.7.0-alpha.4 [skip ci] * fix: 自定义目录树增加layoutHierarchy的hook修复层级问题 (#1030) * chore(release): 🔖@antv/[email protected] * chore(release): 🤖 @antv/s2-v1.7.0-alpha.4 [skip ci] * chore(release): @antv/[email protected] @antv/[email protected] (#1046) * chore(release): 🤖 @antv/s2-v1.7.0 [skip ci] * chore(release): 🤖 @antv/s2-react-v1.7.0 [skip ci] * feat: 趋势分析表列头支持多文本展示 (#1049) * feat: 趋势分析表列头支持多文本展示 * style: 优化自定义数组列头label的获取方式 * style: 代码优化 * chore(release): 🔖@antv/[email protected] @antv/[email protected] * chore(release): 🤖 @antv/s2-v1.7.0-alpha.5 [skip ci] * chore(release): 🤖 @antv/s2-react-v1.7.0-alpha.5 [skip ci] * chore(release): 🔖@antv/[email protected] * chore(release): 🤖 @antv/s2-v1.8.0-alpha.1 [skip ci] * chore(release): 🤖 @antv/s2-react-v1.8.0-alpha.1 [skip ci] * fix(strategy-sheet): 修复趋势分析表多列头时 tooltip 不显示指标名 * chore(release): @antv/[email protected] @antv/[email protected] * chore(release): 🤖 @antv/s2-v1.8.0-alpha.2 [skip ci] * chore(release): 🤖 @antv/s2-react-v1.8.0-alpha.2 [skip ci] * fix(strategy-sheet): 修复自定义树布局模式下, 获取不到字段描述 (#1052) * chore(release): @antv/[email protected] * chore(release): 🤖 @antv/s2-react-v1.8.0-alpha.3 [skip ci] * feat(tooltip): 支持自定义 tooltip 操作项 (#1058) * feat: 支持自定义 tooltip 操作项 * feat: 支持自定义 tooltip 操作项 * feat: 支持自定义 tooltip 操作项 * fix: 修复 tooltip 配置未覆盖数值单元格的问题 * docs: 修改文档 * test: 修复测试 * chore(release): @antv/[email protected] @antv/[email protected] * chore(release): 🤖 @antv/s2-v1.8.0-alpha.3 [skip ci] * chore(release): 🤖 @antv/s2-react-v1.8.0-alpha.4 [skip ci] * fix(tooltip): 修复不同类型的单元格配置合并问题 (#1059) * fix: 修复卸载组件报错 * feat: 数据导出适配自定义目录树 (#1062) * feat: 数据导出适配自定义目录树 * chore: 修改类型定义 * style: 代导出逻辑码优化 * fix(interaction): 修复刷选不显示预选框, 行列多选功能异常等交互问题 (#1063) * fix: 修复自定义列头名称不显示问题 * perf: lodash 使用优化 (#1064) * refactor(generate-header-nodes): 去掉不必要的merge方法减少开销 * feat(tooltip): tooltip 操作项支持动态显示 (#1067) * refactor: 删除无用配置项customHeaderCells及相关逻辑 (#1069) * refactor: 删除无用配置项customHeaderCells及相关逻辑 * refactor: 删除单测中的customHeader * refactor: 删除options中的customHeader * chore: fix ci * style: 统一使用一份generateId方法 * chore(release): 🔖@antv/[email protected] @antv/[email protected] * chore(release): 🤖 @antv/s2-v1.8.0-alpha.4 [skip ci] * chore(release): 🤖 @antv/s2-react-v1.8.0-alpha.5 [skip ci] * fix: 修复交叉表取值错误的问题 * feat: 单元格内多指标支持分列导出 (#1070) * chore(release): 🔖@antv/[email protected] * chore(release): 🤖 @antv/s2-v1.8.0-alpha.5 [skip ci] * chore(release): 🤖 @antv/s2-react-v1.8.0-alpha.6 [skip ci] * docs: 完善自定义icon 文档 (#1071) * docs: 完善自定义icon 功能 * docs: 修改文档目录顺序 * docs: 添加自定义单元格图标demo * feat(interaction): interaction增加点击行列头方法供外部调用 (#1073) * feat(interaction): interaction增加点击行列头方法供外部调用 * docs: 更新交互相关文档和单测 * docs: 更新interaction文档 * fix: 重命名 scrollReachNodeField * chore(release): @antv/[email protected] @antv/[email protected] * chore(release): 🤖 @antv/s2-v1.8.0-alpha.6 [skip ci] * chore(release): 🤖 @antv/s2-react-v1.8.0-alpha.7 [skip ci] * refactor: 删除无用代码及参数 (#1076) * refactor: 删除无用配置项 * refactor: 删除无用代码及参数 * refactor(store): 删除无用配置项 * feat(pivot): 新增组内排序时触发回调事件 (#1075) * feat: pivot 添加 S2Event.RANGE_SORT 和 S2Event.RANGE_SORTED 事件 * fix: 修改 onListSort 为 onListSortChange 事件 * fix: 删除从 store 中获取 params,历史遗留 * docs: 将 onListSort(线上也是失效的) 更改为 onSortChange 方法 * refactor: 删除无用和重复类型 * test: 修复单测 (#1077) * test: 修复单测 * test: fix the test * test: 忽略adaptive单测 * chore: 删除无用接口定义ScrollReachNodeField Co-authored-by: Jinke Li <[email protected]> Co-authored-by: semantic-release-bot <[email protected]> Co-authored-by: 刘嘉一 <[email protected]> Co-authored-by: Wenjun Xu <[email protected]> Co-authored-by: YardWill <[email protected]> Co-authored-by: wengyidong.wyd <[email protected]> Co-authored-by: xinhui.zxh <[email protected]> Co-authored-by: xiaochong44 <[email protected]> Co-authored-by: stone <[email protected]>
* feat: add viewport width and height for panelBBox * fix: add panelbbox unit test * feat: add scroll position config * fix: add unit test * fix: merge opts test * feat: update docs * fix: s2 react test * fix: typo * fix: update doc typo * fix: update opts test * fix: merge spec type
* refactor: ♻️ rewrite sheet component (#869) * refactor: sheets * refactor: add sheet hooks * fix: 🐛 solve the issue that the measure does not shown when the type of dimensions are number (#871) * fix: 🐛 solve the issue that the measure does not shown when the type of dimensions are number * test: ✅ fix the test * test: 🐛 fix tests * docs: 📝 fix crashed demos (#876) * fix(components): add empty fragment close #873 (#878) * refactor: ♻️ optimize the logic of sheet components * test: ✅ fix the tests of gridAnalysis * fix: cannot bind event and add tests * test: fix test * test: fix test * fix: loop render if enable adaptive * fix: tests * fix: loop render Co-authored-by: 嘤嘤嘤 <[email protected]> * chore(release): 🔖@antv/[email protected] @antv/[email protected] * chore(release): 🔖 @antv/[email protected] @antv/[email protected] * chore(release): 🤖 @antv/s2-v1.3.0 [skip ci] * chore(release): 🤖 @antv/s2-react-v1.3.0 [skip ci] * feat: ✨ init strategy sheet (#897) * chore: 🎉 init the strategysheet * test: ✅ add test data and damo for the strategySheet * feat: ✨ add cornerText for the options * feat: ✨ init basicoptions of strategy sheet * style: 💄 optimize the data-cell for the strategy sheet * feat(interaction): 透视表支持隐藏列头 (#890) * feat(interaction): 透视表支持隐藏列头 * feat(interaction): 隐藏列头支持 hideMeasureColumn 的场景 * chore: 同步 lock 和 changelog (#892) * chore(release): 🔖@antv/[email protected] @antv/[email protected] * chore(release): 🔖 @antv/[email protected] @antv/[email protected] * chore(release): 🤖 @antv/s2-v1.3.0 [skip ci] * chore(release): 🤖 @antv/s2-react-v1.3.0 [skip ci] * chore: 同步 changelog * chore: 更新同步脚本 Co-authored-by: yingying.xwy <[email protected]> Co-authored-by: semantic-release-bot <[email protected]> * feat(interaction): 只有点击列头时才显示隐藏按钮 * test: fix * fix(interaction): 修复默认隐藏列不显示 Co-authored-by: yingying.xwy <[email protected]> Co-authored-by: semantic-release-bot <[email protected]> * chore: 更新 playground demo * chore(release): release @antv/[email protected] @antv/[email protected] * chore(release): 🤖 @antv/s2-v1.3.0-alpha.1 [skip ci] * chore(release): 🤖 @antv/s2-react-v1.3.0-alpha.1 [skip ci] * test: 修复单测&统一单测命名 (#906) * feat(strategy-sheet): 自定义趋势分析表 tooltip (#905) * feat(strategy-sheet): 自定义趋势分析表 tooltip * feat(strategy-sheet): 增加 placeholder 默认值 * feat(strategy-sheet): 占位符统一使用 options.placeholder * docs: 更新文档 * chore: 更新文档 * feat(interaction): 支持禁用刷选功能 (#908) * feat(interaction): 支持禁用刷选功能 * feat(interaction): 修复测试 * feat(interaction): 优化测试 * feat: ✨ 增加对象型数值单元格宽度和文本条件的映射 (#916) * test: 修复单测&统一单测命名 * refactor: 增加valuesCfg的类型定义扩展至CellCfg * feat: 增加对象型数值单元格宽度映射 * feat: ✨ 增加对象型数值单元格文本型条件格式映射,兼容网格分析表和趋势分析表 * chore: fix lint * chore: 重命名 widthPercentMap 为 widthPercentCfg * feat: 新增趋势分析表hover列头显示指标名 (#913) * fix(frame): incorrect viewport splitline shadow (#898) * fix(frame): incorrect viewport splitline shadow * fix(frame): remove unnecessary init expression * fix: remove unsed import * Update packages/s2-core/src/common/interface/frame.ts * fix(typo): viewPort -> viewport Co-authored-by: Wenjun Xu <[email protected]> * fix(interactive): global selected event emit (#902) * fix: event emit * test: add test * test: add event test Co-authored-by: wengyidong.wyd <[email protected]> * chore: 更新CI中英文翻译 (#907) * chore: 更新CI中英文翻译 * chore: 将issue自动关闭日期增加到15天 * fix: 修复错误修改DefaultOptions问题 (#910) * feat: 新增趋势分析表hover列头显示指标名 Co-authored-by: 刘嘉一 <[email protected]> Co-authored-by: Wenjun Xu <[email protected]> Co-authored-by: YardWill <[email protected]> Co-authored-by: wengyidong.wyd <[email protected]> * docs(interaction): 更新交互文档 * feat(strategy-sheet): 趋势分析表禁用多选和快捷多选 (#919) * feat(strategy-sheet): 趋势分析表禁用多选和快捷多选 * fix: 修改测试 * fix: 重命名 shiftMultiSelection => rangeSelection * chore: 修改 lint 和 test 规则 * chore(release): @antv/[email protected] @antv/[email protected] * chore(release): 🤖 @antv/s2-v1.4.0-alpha.1 [skip ci] * chore(release): 🤖 @antv/s2-react-v1.4.0-alpha.1 [skip ci] * test: 修改测试文件名 * feat: 新增字段描述功能 (#925) * feat: 新增字段描述功能 * test: 修改 data-set 文件名 * docs: 增加数据集文档和测试 * fix: 🐛 修复趋势分析表和网格分析表无法自定义主题 (#927) * fix: 完善条件格式定义 * fix: 🐛 修复趋势分析表和网格分析表无法自定义主题 * chore(release): @antv/[email protected] @antv/[email protected] * chore(release): 🤖 @antv/s2-v1.4.0-alpha.2 [skip ci] * chore(release): 🤖 @antv/s2-react-v1.4.0-alpha.2 [skip ci] * fix(startegysheet): 趋势分析表列头文字根据数值坐标动态计算 (#929) * fix(startegysheet): 趋势分析表列头文字根据数值坐标动态计算 * fix: any => unknown * chore(release): @antv/[email protected] @antv/[email protected] * chore(release): 🤖 @antv/s2-v1.4.0-alpha.3 [skip ci] * chore(release): 🤖 @antv/s2-react-v1.4.0-alpha.3 [skip ci] * feat(interaction): 新增 hoverFocus 配置项 (#944) * feat(interaction): 新增 hoverFocus 配置项 * fix: 修复测试 * docs: 增加demo * test: 修复测试 * fix: 修复未配置 label时, hover 数值单元格报错, 并且列头文字上移的问题 (#946) * chore(release): @antv/[email protected] @antv/[email protected] * chore(release): 🤖 @antv/s2-v1.4.0-alpha.4 [skip ci] * chore(release): 🤖 @antv/s2-react-v1.4.0-alpha.4 [skip ci] * chore(release): 🔖@antv/[email protected] @antv/[email protected] * chore(release): 🤖 @antv/s2-v1.4.0 [skip ci] * chore(release): 🤖 @antv/s2-react-v1.4.0 [skip ci] * fix: bug: 修复趋势分析表自定义目录树渲染出错的问题 * chore(release): 🔖@antv/[email protected] @antv/[email protected] * chore(release): 🤖 @antv/s2-v1.5.0-alpha.1 [skip ci] * chore(release): 🤖 @antv/s2-react-v1.5.0-alpha.1 [skip ci] * refactor: ♻️ 自定义目录树优化 (#958) * fix: 修复自定义目录树渲染问题 * chore: fix lint * chore: fix lint * chore(release): 🔖@antv/[email protected] @antv/[email protected] * fix: 修复错误版本号 * chore(release): 🔖@antv/[email protected] @antv/[email protected] * chore(release): 🤖 @antv/s2-v1.5.0-alpha.2 [skip ci] * chore(release): 🤖 @antv/s2-react-v1.5.0-alpha.2 [skip ci] * fix(stratgysheet): 逻辑兜底 * chore(release): 🔖@antv/[email protected] @antv/[email protected] * chore(release): 🤖 @antv/s2-react-v1.5.0-alpha.3 [skip ci] * fix: 自定义目录树切换优化 (#964) * fix: 自定义目录树切换优化 * refactor: remove the dom from the SpreadSheet * chore(release): 🔖@antv/[email protected] @antv/[email protected] * chore(release): 🤖 @antv/s2-v1.5.0-alpha.3 [skip ci] * chore(release): 🤖 @antv/s2-react-v1.5.0-alpha.4 [skip ci] * test: 增加单元格移动交互测试 * 修复下钻行总计单元格数据错误 (#961) * fix: 下钻行的总计节点获取数据错误 * feat(drillDown): 下钻支持回传 totalData * test: 增加下钻总计数据测试 * docs(drillDown): 补充下钻文档中总计数据部分 * refactor(drillDown): 移除下钻接口中的汇总数据 * test: 更新下钻总计数据测试 * Revert "docs(drillDown): 补充下钻文档中总计数据部分" This reverts commit 804c702. * chore: typo * fix: 修复自定义树取值路径错误问题 (#970) * fix: 修复自定义树取值路径错误问题 * chore: 修复注释 * chore(release): 🔖@antv/[email protected] * chore(release): 🤖 @antv/s2-v1.5.0-alpha.4 [skip ci] * chore(release): 🤖 @antv/s2-react-v1.5.0-alpha.5 [skip ci] * fix: 修复点击非表格区域报错 (#974) * chore(release): @antv/[email protected] * chore(release): 🤖 @antv/s2-v1.5.0-alpha.5 [skip ci] * chore(release): 🔖@antv/[email protected] @antv/[email protected] * chore(release): 🤖 @antv/s2-v1.5.0 [skip ci] * chore(release): 🤖 @antv/s2-react-v1.5.0 [skip ci] * chore(release): @antv/[email protected] @antv/[email protected] * chore(release): 🤖 @antv/s2-v1.6.0-alpha.1 [skip ci] * chore(release): 🤖 @antv/s2-react-v1.6.0-alpha.1 [skip ci] * fix(s2-react): 修复 hierarchyType 切换导致的渲染问题 (#984) * fix(s2-react): 修复 hierarchyType 切换导致的渲染问题 * feat(useEvents): 增加组件层事件回调函数 * fix: fix lint * fix(interface): 修复类型定义 * chore(release): 🔖@antv/[email protected] @antv/[email protected] * chore(release): 🤖 @antv/s2-v1.6.0-alpha.2 [skip ci] * chore(release): 🤖 @antv/s2-react-v1.6.0-alpha.2 [skip ci] * fix: 修复多指标情况下自定义树展示不全的问题 (#986) * chore(release): 🔖@antv/[email protected] @antv/[email protected] * chore(release): 🤖 @antv/s2-v1.6.0-alpha.3 [skip ci] * chore(release): 🤖 @antv/s2-react-v1.6.0-alpha.3 [skip ci] * fix(useResize): 🐛 修复自适应模式下重复渲染问题 (#991) * fix: 🐛 修复自适应模式下重复渲染问题 * fix: 修复自定义目录树单测 * fix(useResize): 增加 useLayoutEffect deps * chore(release): 🔖@antv/[email protected] @antv/[email protected] * chore(release): 🤖 @antv/s2-v1.6.0-alpha.4 [skip ci] * chore(release): 🤖 @antv/s2-react-v1.6.0-alpha.4 [skip ci] * fix: 🐛 修复多指标渲染空值问题 (#995) * fix: 列宽计算适配多指标情况 (#996) * fix: 列宽计算适配多指标情况 * fix: lint * chore(release): @antv/[email protected] @antv/[email protected] (#1003) * chore(release): 🤖 @antv/s2-v1.6.0 [skip ci] * chore(release): 🤖 @antv/s2-react-v1.6.0 [skip ci] * chore: 合并master (#1005) * feat: 增加supportCSSTransform设置 (#990) * 增加supportCSSTransform * feat: 增加supportCSSTransform配置 * docs: S2Options 增supportCSSTransform * fix: 测试增加supportCSSTransform属性 * fix: react测试增加supportCSSTransform * docs: 优化部分文档, 增加部分 faq (#992) * chore: 增加组内不排序icon (#993) * feat(facet): add scrollBarPosition option (#997) * feat: add viewport width and height for panelBBox * fix: add panelbbox unit test * feat: add scroll position config * fix: add unit test * fix: merge opts test * feat: update docs * fix: s2 react test * fix: typo * fix: update doc typo * fix: update opts test * fix: merge spec type * fix(facet): 交叉表 compact 模式下行/列头宽度计算错误 (#972) * fix(facet): 交叉表compact模式且值在列头时宽度计算错误 * fix(facet): 交叉表compact模式且值在行头时宽度计算错误 * fix(facet): compact模式计算宽度时考虑多icon * chore: 精简注释 * fix(facet): 兼容节点无level属性 * fix: scrollbarOpts to enum const (#1001) * test(scroll): 修复 layout变化后导致的断言错误 (#1002) * chore: fix ci * test: fix tests * test: fix test Co-authored-by: xiaochong44 <[email protected]> Co-authored-by: Jinke Li <[email protected]> Co-authored-by: Wenjun Xu <[email protected]> Co-authored-by: Xinhui <[email protected]> Co-authored-by: 刘嘉一 <[email protected]> * chore(release): 🔖@antv/[email protected] @antv/[email protected] * chore(release): 🤖 @antv/s2-v1.7.0-alpha.1 [skip ci] * chore(release): 🤖 @antv/s2-react-v1.7.0-alpha.1 [skip ci] * fix: 修复高度自适应死循环问题 (#1007) * chore(release): 🔖@antv/[email protected] * chore(release): 🤖 @antv/s2-react-v1.7.0-alpha.2 [skip ci] * fix: 加载下钻数据引起render死循环 (#1010) * feat: node增加节点信息参数便于透传额外业务信息 (#1019) * feat: node增加节点信息参数便于透传额外业务信息 * refactor: 代码优化 * fix: 下钻参数变更后未正确重置 (#1015) * fix(drilldown): 启用下钻后再禁用报错 * fix: 关闭下钻功能后下钻图标未消失 * fix: 下钻字段变更时tooltip中维度列表未更新 * test(drilldown): 修复handleDrillDownIcon入参变更 * fix(drilldown): 变更drillConfig.dataSet未重置下钻结果 * chore: remove dead code * chore(release): 🔖@antv/[email protected] @antv/[email protected] * chore(release): 🤖 @antv/s2-v1.7.0-alpha.2 [skip ci] * chore(release): 🤖 @antv/s2-react-v1.7.0-alpha.3 [skip ci] * fix(drilldown): 修复clearDrillDown下钻清除错误及重渲逻辑 (#1023) * refactor(drilldown): 修改重渲依赖;drillItemsNum变更后改为重渲; * fix: path不存在时deleteMetaById误删meta * fix: 交叉表grid切换为tree时未渲染下钻icon * docs(drilldown): 下钻参数注意事项 * fix(strategy-sheet): 修复衍生指标颜色,图标显示不正确 & tooltip 不显示指标名 (#1024) * fix(strategy-sheet): 修复衍生指标颜色,图标显示不正确 & tooltip 不显示指标名 * fix(strategy-sheet): 修改测试 * fix(strategy-sheet): 修复测试 * test: 修改测试名 * chore(release): @antv/[email protected] @antv/[email protected] * chore(release): 🤖 @antv/s2-v1.7.0-alpha.3 [skip ci] * chore(release): 🤖 @antv/s2-react-v1.7.0-alpha.4 [skip ci] * fix: 自定义目录树增加layoutHierarchy的hook修复层级问题 (#1030) * chore(release): 🔖@antv/[email protected] * chore(release): 🤖 @antv/s2-v1.7.0-alpha.4 [skip ci] * chore(release): @antv/[email protected] @antv/[email protected] (#1046) * chore(release): 🤖 @antv/s2-v1.7.0 [skip ci] * chore(release): 🤖 @antv/s2-react-v1.7.0 [skip ci] * feat: 趋势分析表列头支持多文本展示 (#1049) * feat: 趋势分析表列头支持多文本展示 * style: 优化自定义数组列头label的获取方式 * style: 代码优化 * chore(release): 🔖@antv/[email protected] @antv/[email protected] * chore(release): 🤖 @antv/s2-v1.7.0-alpha.5 [skip ci] * chore(release): 🤖 @antv/s2-react-v1.7.0-alpha.5 [skip ci] * chore(release): 🔖@antv/[email protected] * chore(release): 🤖 @antv/s2-v1.8.0-alpha.1 [skip ci] * chore(release): 🤖 @antv/s2-react-v1.8.0-alpha.1 [skip ci] * fix(strategy-sheet): 修复趋势分析表多列头时 tooltip 不显示指标名 * chore(release): @antv/[email protected] @antv/[email protected] * chore(release): 🤖 @antv/s2-v1.8.0-alpha.2 [skip ci] * chore(release): 🤖 @antv/s2-react-v1.8.0-alpha.2 [skip ci] * fix(strategy-sheet): 修复自定义树布局模式下, 获取不到字段描述 (#1052) * chore(release): @antv/[email protected] * chore(release): 🤖 @antv/s2-react-v1.8.0-alpha.3 [skip ci] * feat(tooltip): 支持自定义 tooltip 操作项 (#1058) * feat: 支持自定义 tooltip 操作项 * feat: 支持自定义 tooltip 操作项 * feat: 支持自定义 tooltip 操作项 * fix: 修复 tooltip 配置未覆盖数值单元格的问题 * docs: 修改文档 * test: 修复测试 * chore(release): @antv/[email protected] @antv/[email protected] * chore(release): 🤖 @antv/s2-v1.8.0-alpha.3 [skip ci] * chore(release): 🤖 @antv/s2-react-v1.8.0-alpha.4 [skip ci] * fix(tooltip): 修复不同类型的单元格配置合并问题 (#1059) * fix: 修复卸载组件报错 * feat: 数据导出适配自定义目录树 (#1062) * feat: 数据导出适配自定义目录树 * chore: 修改类型定义 * style: 代导出逻辑码优化 * fix(interaction): 修复刷选不显示预选框, 行列多选功能异常等交互问题 (#1063) * fix: 修复自定义列头名称不显示问题 * perf: lodash 使用优化 (#1064) * refactor(generate-header-nodes): 去掉不必要的merge方法减少开销 * feat(tooltip): tooltip 操作项支持动态显示 (#1067) * refactor: 删除无用配置项customHeaderCells及相关逻辑 (#1069) * refactor: 删除无用配置项customHeaderCells及相关逻辑 * refactor: 删除单测中的customHeader * refactor: 删除options中的customHeader * chore: fix ci * style: 统一使用一份generateId方法 * chore(release): 🔖@antv/[email protected] @antv/[email protected] * chore(release): 🤖 @antv/s2-v1.8.0-alpha.4 [skip ci] * chore(release): 🤖 @antv/s2-react-v1.8.0-alpha.5 [skip ci] * fix: 修复交叉表取值错误的问题 * feat: 单元格内多指标支持分列导出 (#1070) * chore(release): 🔖@antv/[email protected] * chore(release): 🤖 @antv/s2-v1.8.0-alpha.5 [skip ci] * chore(release): 🤖 @antv/s2-react-v1.8.0-alpha.6 [skip ci] * docs: 完善自定义icon 文档 (#1071) * docs: 完善自定义icon 功能 * docs: 修改文档目录顺序 * docs: 添加自定义单元格图标demo * feat(interaction): interaction增加点击行列头方法供外部调用 (#1073) * feat(interaction): interaction增加点击行列头方法供外部调用 * docs: 更新交互相关文档和单测 * docs: 更新interaction文档 * fix: 重命名 scrollReachNodeField * chore(release): @antv/[email protected] @antv/[email protected] * chore(release): 🤖 @antv/s2-v1.8.0-alpha.6 [skip ci] * chore(release): 🤖 @antv/s2-react-v1.8.0-alpha.7 [skip ci] * refactor: 删除无用代码及参数 (#1076) * refactor: 删除无用配置项 * refactor: 删除无用代码及参数 * refactor(store): 删除无用配置项 * feat(pivot): 新增组内排序时触发回调事件 (#1075) * feat: pivot 添加 S2Event.RANGE_SORT 和 S2Event.RANGE_SORTED 事件 * fix: 修改 onListSort 为 onListSortChange 事件 * fix: 删除从 store 中获取 params,历史遗留 * docs: 将 onListSort(线上也是失效的) 更改为 onSortChange 方法 * refactor: 删除无用和重复类型 * test: 修复单测 (#1077) * test: 修复单测 * test: fix the test * test: 忽略adaptive单测 * chore: 删除无用接口定义ScrollReachNodeField Co-authored-by: Jinke Li <[email protected]> Co-authored-by: semantic-release-bot <[email protected]> Co-authored-by: 刘嘉一 <[email protected]> Co-authored-by: Wenjun Xu <[email protected]> Co-authored-by: YardWill <[email protected]> Co-authored-by: wengyidong.wyd <[email protected]> Co-authored-by: xinhui.zxh <[email protected]> Co-authored-by: xiaochong44 <[email protected]> Co-authored-by: stone <[email protected]>

👀 PR includes
✨ Feature
📝 Description
当表格整体有背景色,数据量又比较小,不足以铺满表格时,滚动条放在最下面会比较自然。所以添加一个选项:
🖼️ Screenshot
🔍 Self Check before Merge