Skip to content

tree 树形组件 slot-scope selected 无效 #1901

@webrtcn

Description

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

Version

1.4.12

Environment

os: macOS vue: 2.6.11

Reproduction link

#223

https://codesandbox.io/s/naughty-shadow-jcfvw

Steps to reproduce

官方网站 https://www.antdv.com/components/tree-cn/ 自定义图标部分选中不能自动切换图标

<template slot="custom" slot-scope="{selected}">
<a-icon :type="selected ? 'frown':'frown-o'" />
</template>

selected = undefined

What is expected?

selected 能正常获取到值

What is actually happening?

selected 不能正常获取到值

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions