-
Notifications
You must be signed in to change notification settings - Fork 14.6k
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] description row slot problem #21285
Comments
Translation of this issue: Element UI version2.15.5 OS/Browsers versionmac big sur 11.5.2 / Google Chrome 92.0.4515.159 Vue version2.6.14 Reproduction Linkhttps://codepen.io/bukeliyuchenmou/pen/YzQqgjp Steps to reproduce<el-descriptions-item >
<div {...{
slot: \"label\"
}}>
one hundred and twenty-one million two hundred and thirteen thousand one hundred and twenty-three
</div>
{this.list_ data[i].create_ at_ str}
</el-descriptions-item> What is Expected?I expect his slot to appear What is actually happening?No, after reading the source code, I found that the author has filtered the 'props' of row and the' label 'of' slot 'and recorded them as a' label ', but in the default process control, he uses' item. Props. Label'. In this case, if it is not a description list with a border and a description list arranged vertically, Their El descriptions item slots are useless |
手动打补丁
|
在使用 <el-descriptions border> |
Element UI version
2.15.5
OS/Browsers version
mac big sur 11.5.2 / Google Chrome 92.0.4515.159
Vue version
2.6.14
Reproduction Link
https://codepen.io/bukeliyuchenmou/pen/YzQqgjp
Steps to reproduce
What is Expected?
我期望他的slot能够出现
What is actually happening?
没有出现,我阅读完源码后,发现,作者已经把row这个的
props
和slot
的label
都过滤完毕了,记录成了一个label
,但是在默认的流程控制中,他却使用了item.props.label
, 这样的话如果不是有边框的描述列表和垂直排列的描述列表,他们的el-descriptions-item slot都用不了啦The text was updated successfully, but these errors were encountered: