antvis / antvis/S2

🤔layoutWidthType可否支持其它类型,或者ColCfg RowCfg能自己修改默认宽度?

Open
#2,064 0 comments 0 reactions 1 assignee Claimed by @serializedowen View on GitHub
❔question 💤 inactive
Dominant language
TypeScript
Stars
1.7k
Forks
220
PR merge metrics
No merged PRs in 30d

Description

### 🏷 Version

| Package | Version |
| -------------- | ------- |
| @antv/s2 | 1.19.0 |
| @antv/s2-react | 1.15.1 |
| @antv/s2-vue | |

### Sheet Type

- [√ ] PivotSheet
- [ √] TableSheet
- [ ] GridAnalysisSheet
- [ ] StrategySheet
- [ ] EditableSheet

### 🖋 Description

s2Options设置style
style: {
layoutWidthType: 'colAdaptive', // 可否新增一个类型能支持容器宽度撑满
device: 'mobile', // 这里的设备类型为何不按照pc或者mobile来修改ColCfg RowCfg 默认宽度
cellCfg: {
height: 40, // 行高度设置
width: 100
},
colCfg: {
height: 40, // 列高度设置
hideMeasureColumn: false // 只有一个value 则是true 其他事false
},
rowCfg: {
}
},
api文档提供的device属性,为何不按照pc或者mobile来设置ColCfg RowCfg 默认宽度
api文档提供的layoutWidthType 开否新增一个类型,支持自定义宽度不够容器宽度的时候,自适应撑满

### 🔗 Reproduce Link

### 😊 Expected Behavior

### 😅 Current Behavior

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.