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

当嵌套表格 rowSelection 中 type 属性设置为 radio 时,没有配置设置 单选 那一列的列名称!! #11042

Closed
1 task
littleLane opened this issue Jun 26, 2018 · 16 comments
Assignees

Comments

@littleLane
Copy link
Contributor

  • I have searched the issues of this repository and believe that this is not a duplicate.

Version

3.1.4

Environment

mac、 chrome、 antd v3.1.4

Reproduction link

https://codepen.io/littlelane/pen/qKMNGb?editors=0010

Steps to reproduce

expandedRowRender: () => {
      return (
        <Table 
          columns={[].concat(columns)} 
          dataSource={[].concat(data)}
          rowSelection={{
            type: 'radio',
          }}
        />
      )
    },

What is expected?

有相关配置设置该列名称

What is actually happening?

目前好像没有相关配置参数

@ant-design-bot
Copy link
Contributor

Translation of this issue:


When the type attribute of the nested table rowSelection is set to radio, the column name of the column for the selected radio is not configured!!

  • [] I have searched the issues of this repository and believe that this is not a duplicate.

Version

3.1.4

Environment

Mac, chrome, antd v3.1.4

Reproduction link

https://codepen.io/littlelane/pen/qKMNGb?editors=0010

Steps to reproduce

expandedRowRender: () => {
      Return (
        <Table
          Columns={[].concat(columns)}
          dataSource={[].concat(data)}
          rowSelection={{
            Type: 'radio',
          }}
        />
      )
    },

What is expected?

There is a related configuration setting this column name

What is actually happening?

It seems that there are no related configuration parameters

@afc163
Copy link
Member

afc163 commented Jun 29, 2018

你希望配置的列名具体是什么?

@littleLane
Copy link
Contributor Author

image

@afc163
Copy link
Member

afc163 commented Jun 29, 2018

我知道,具体业务上希望写什么内容,有一些实例会比较好判断 API 的提供方式。

@IssueHuntBot
Copy link

@0maxxam0 funded this issue with $10. Visit this issue on Issuehunt

@IssueHuntBot
Copy link

@littleLane has started working. Visit this issue on Issuehunt

@IssueHuntBot
Copy link

@littleLane has submitted output. Visit this issue on Issuehunt

@IssueHuntBot
Copy link

@yesmeck has rewarded. Visit this issue on Issuehunt

@gaoac
Copy link

gaoac commented Aug 15, 2018

@littleLane columnTitle

@afc163
Copy link
Member

afc163 commented Aug 15, 2018

@gaoac columnTitle 就是楼主提的 PR....

@capaten
Copy link

capaten commented Aug 22, 2018

@afc163 我试着使用了,可是依然没有出现标题,怎么回事啊?
1
2

@littleLane
Copy link
Contributor Author

@capaten 你用的什么版本的 antd ?
3.8.0 版本才有这个属性

@capaten
Copy link

capaten commented Aug 22, 2018

@littleLane 3.10.8
image

@littleLane
Copy link
Contributor Author

哪来的 3.10.8?
最新的发布版本才 3.8.2

@capaten
Copy link

capaten commented Aug 22, 2018

这个……抱歉我不太懂,那请问怎么查看我使用的是哪个版本呢?

@capaten
Copy link

capaten commented Aug 22, 2018

抱歉抱歉,我在package.json里看到了,我使用的版本是3.6.4,感谢指正
image

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

7 participants