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

[Bug Report] table 中类型为type="index"的header column不能自定义header-render #12848

Closed
dmodaii opened this issue Sep 21, 2018 · 5 comments

Comments

@dmodaii
Copy link

dmodaii commented Sep 21, 2018

Element UI version

2.4.7

OS/Browsers version

chrome

Vue version

2.5.17

Reproduction Link

https://jsfiddle.net/mocept/mmx38qxw/6196/

Steps to reproduce

直接运行代码即可, 只能对非type的 column进行headerrender

What is Expected?

希望有type的 column可以正常进行headerrender

What is actually happening?

希有type的 column不能可常进行headerrender

@dmodaii dmodaii changed the title [Bug Report] table 中类型为type="index"的header column不能自定义render [Bug Report] table 中类型为type="index"的header column不能自定义header-render Sep 21, 2018
@ziyoung
Copy link
Contributor

ziyoung commented Sep 21, 2018

render-header 没有被调用,但是 label 属性却可以生效。😅

@dmodaii
Copy link
Author

dmodaii commented Sep 25, 2018

@ziyoung 主要我想改变type="index" 索引类型时候 column header
希望自定义icon, 而不是 都是# 或label的纯文字

@elfman
Copy link
Contributor

elfman commented Sep 26, 2018

当type为index时,reader-header已经被替换为内置的函数,所有看起来没有被调用,实际已经调用了,只是不是自己定义的那个。

@MoErm
Copy link

MoErm commented Oct 17, 2018

当type为selection时,reader-header也一样没有调用

@wohui
Copy link

wohui commented Nov 5, 2018

{
type: 'index',
label: "序号",
width:"300",

},
是不是width 也不生效啊

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

No branches or pull requests

5 participants