Skip to content
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

Grid 组件 设置属性"showHeader:{false}", 在多选框后面出现空白padding #287

Closed
liangyongming opened this issue Aug 7, 2019 · 1 comment

Comments

@liangyongming
Copy link

liangyongming commented Aug 7, 2019

环境及版本信息

  • tinper-bee 版本号:

2.1.5

  • 若使用单个组件,请标明该组件版本号:
  • 当前项目中react的版本号:
  • 所使用的操作系统:
  • 所使用的浏览器:

chrome 76.0.3809.87(正式版本) (64 位)

描述这个问题:

表格设置 showHeader:{false},同时设置 可以多选(默认); 在多选框后面出现空白padding;

代码

image
代码:
<Grid
ref={el => (this.grid = el)}
rowKey={(r, i) => i} //生成行的key
columns={this.mainColumn}
showHeader={false}
data={queryObj.list}
showFilterMenu={false} //是否显示行过滤菜单
filterable={filterable} //是否开启过滤数据功能
getSelectedDataFunc={this.getSelectedDataFunc}
dragborder={true}
onFilterChange={_this.onFilterChange} // 触发过滤输入操作以及下拉条件的回调
onFilterClear={_this.onFilterClear} //清除过滤条件的回调函数,回调参数为清空的字段
afterRowFilter={_this.afterRowFilter} //控制栏位的显示/隐藏
sort={sortObj} //排序属性设置
rowClassName={(record, index, indent) => {
return selectIndex === index ? "selected" : "";
}}
paginationObj={paginationObj}
/>

期望的行为:

正常显示表格,不需要多余的padding;

项目

金融

@yangchch6
Copy link
Contributor

发了新包 bee-complex-grid@2.0.24

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants