-
-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
Tree组件中,treeNode配置scopedSlots: { icon: 'icon' },无法获取icon插槽的slot-scope值 #1711
Comments
This was referenced Jan 17, 2020
没太懂你的意思 既然发现了问题,方便的话可以pr |
这个问题我已经解决并提交到你们的仓库了,bug号1711,但这个issue还没关闭------------------ 原始邮件 ------------------
发件人: "tangjinzhou"<notifications@github.com>
发送时间: 2020年2月6日(星期四) 下午5:48
收件人: "vueComponent/ant-design-vue"<ant-design-vue@noreply.github.com>;
抄送: "biterabbit"<1312335750@qq.com>;"Author"<author@noreply.github.com>;
主题: Re: [vueComponent/ant-design-vue] Tree组件中,treeNode配置scopedSlots: { icon: 'icon' },无法获取icon插槽的slot-scope值 (#1711)
没太懂你的意思 既然发现了问题,方便的话可以pr
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
并没有看到你提交的 pr |
提交几周前就被合并回去了,bug号1711------------------ 原始邮件 ------------------
发件人: "tangjinzhou"<notifications@github.com>
发送时间: 2020年2月7日(星期五) 上午10:04
收件人: "vueComponent/ant-design-vue"<ant-design-vue@noreply.github.com>;
抄送: "biterabbit"<1312335750@qq.com>;"Author"<author@noreply.github.com>;
主题: Re: [vueComponent/ant-design-vue] Tree组件中,treeNode配置scopedSlots: { icon: 'icon' },无法获取icon插槽的slot-scope值 (#1711)
并没有看到你提交的 pr
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
13 tasks
请问tree 不支持全局的 scopedSlots吗? <Tree
treeData={data}
showLine={true}
showIcon={true}
scopedSlots={{
title: (title: string) => {
return (<div>{title}1</div>)
}
}}
/> |
This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days |
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. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Version
1.4.10
Environment
win10 1809,chrome 78 ,vue 2.5.2
Reproduction link
https://biterabbit.github.io/ant-design-vue-demo/dist/index.html#/
Steps to reproduce
Tree组件中,treeNode配置scopedSlots: { icon: 'icon' }
What is expected?
可以获取icon插槽的slot-scope值
What is actually happening?
无法获取icon插槽的slot-scope值,返回了一个方法而不是数据
需要定制tree的图标时,具体的图标在treeNode的数据上,但现在无法获取icon处的插槽参数。经过查看ant-design-vue源码,发现Tree.jsx文件在icon处配置错误,希望能尽快修复
The text was updated successfully, but these errors were encountered: