Skip to content

[bug report] description row slot problem #21285

@bukeliyuchenmou

Description

@bukeliyuchenmou

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

<el-descriptions-item >
                               <div {...{
                                   slot: "label"
                               }}>
                                   121213123
                               </div>
                               {this.list_data[i].create_at_str}
                           </el-descriptions-item>

What is Expected?

我期望他的slot能够出现

What is actually happening?

没有出现,我阅读完源码后,发现,作者已经把row这个的propsslotlabel 都过滤完毕了,记录成了一个 label ,但是在默认的流程控制中,他却使用了 item.props.label , 这样的话如果不是有边框的描述列表和垂直排列的描述列表,他们的el-descriptions-item slot都用不了啦

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions