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

Can the switcherIcon slot of the tree component return the identifier of whether the current node is expanded? #3732

Open
1 task done
shaun931026 opened this issue Feb 28, 2021 · 1 comment
Assignees

Comments

@shaun931026
Copy link

shaun931026 commented Feb 28, 2021

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

What problem does this feature solve?

类似collapse组件的expandIcon slot会返回isActive一样,希望能够根据此标识来决定用什么icon。

What does the proposed API look like?

<template #switcherIcon="{ isExpand }">
  <IconMinus v-if="isExpand" />
  <IconPlus v-if="!isExpand" />
</template>
@github-actions github-actions bot changed the title tree组件的switcherIcon slot能不能返回当前节点是否展开的标识 Can the switcherIcon slot of the tree component return the identifier of whether the current node is expanded? Feb 28, 2021
@zkwolf zkwolf self-assigned this Feb 28, 2021
@linpengteng
Copy link

可用 item scopedSlots: { switcherIcon: 'switcherIcon' } 解决

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

3 participants