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

directory-tree无法自定义图标(directory-tree's icon cannot be customized) #3183

Closed
1 task
lchrennew opened this issue Nov 15, 2020 · 1 comment
Closed
1 task
Assignees
Labels

Comments

@lchrennew
Copy link
Contributor

lchrennew commented Nov 15, 2020

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

Version

2.0.0-rc.1

Environment

Mac, Chrome 86, Vue3.0.2

Reproduction link

Edit on CodeSandbox

Steps to reproduce

treeData: [
{ title: '根目录', key: '', slots: { icon: 'folder' } },
{ title: '版本基线', key: '#tags', slots: { icon: 'tags' } },
{ title: '收藏', key: '#favorite', slots: { icon: 'heart' } },
{ title: '回收站', key: '#deleted', slots: { icon: 'delete' } },
],
<a-directory-tree
:load-data="loadData"
:tree-data="treeData"
show-icon
block-node
@select="onSelect"
>
<template #folder>
<FolderOutlined/>
</template>
<template #tags>
<TagsOutlined/>
</template>
<template #heart>
<HeartOutlined/>
</template>
<template #delete>
<DeleteOutlined/>
</template>
</a-directory-tree>

What is expected?

display customized icons

What is actually happening?

icon is not customized

@github-actions
Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 22, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants