Skip to content

Conversation

@fr11dom
Copy link
Contributor

@fr11dom fr11dom commented Oct 28, 2015

增加以下特性:

  1. 表头支持列合并
  2. 单元格占多行
  3. 单元格占多列

API变动:

columns = [{
  title: '列一',
  dataindex: '',
  headerColSpan: 2, // 列头占两列
  render(value, record, index) {
    return {
      children: value,  // 单元格内容
      props: {
        align: 'right' // 向右对齐
        colspan: 2, // 单元格占两列
        rowspan: 2 // 单元格占两行
      }
    };
  }
}]

@afc163
Copy link
Member

afc163 commented Oct 28, 2015

headerColSpan => headerColspan

@afc163
Copy link
Member

afc163 commented Oct 28, 2015

ref #11

@yiminghe
Copy link
Member

为啥不和 react 保持一致,直接叫 colSpan
https://facebook.github.io/react/docs/tags-and-attributes.html

yiminghe added a commit that referenced this pull request Oct 29, 2015
@yiminghe yiminghe merged commit 487bacc into master Oct 29, 2015
@afc163 afc163 deleted the feature-colspan-rowspan branch June 20, 2016 10:10
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

Successfully merging this pull request may close these issues.

4 participants