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

Tree组件icon插槽无效 #1902

Closed
4 tasks done
gdisk opened this issue May 17, 2022 · 2 comments
Closed
4 tasks done

Tree组件icon插槽无效 #1902

gdisk opened this issue May 17, 2022 · 2 comments

Comments

@gdisk
Copy link

gdisk commented May 17, 2022

⚠️ 重要 ⚠️ 在进一步操作之前,请检查下列选项。如果您忽视此模板或者没有提供关键信息,您的 Issue 将直接被关闭

  • 已阅读 文档.
  • 确保您的代码已是最新或者所报告的 Bug 在最新版本中可以重现. (部分 Bug 可能已经在最近的代码中修复)
  • 已在 Issues 中搜索了相关的关键词
  • 不是 ant design vue 组件库的 Bug

描述 Bug

Tree组件中,只有title插槽可以使用,其他插槽如icon,switcherIcon等都无法使用

复现 Bug

Uploading image.png…

系统信息

  • 操作系统: win10
  • Node 版本: 16.15
  • 包管理器 (npm/yarn/pnpm) 及其版本: pnpm
@doraemonxxx
Copy link
Contributor

+1

@wangjue666
Copy link
Member

a0b2a9e
e4bcf8c

修复这个问题了,如果item传递icon了 同时也有icon插槽,优先展示item的icon

zyt520ham pushed a commit to zyt520ham/vue-vben-admin that referenced this issue Oct 25, 2023
* main: (26 commits)
  fix(BasicTable): pagination exceeds page height. close vbenjs#3185
  chore(ATypographyParagraph): fix type:check (vbenjs#3187)
  chore(TableFooter): resolve ts type error
  fix(tree): remove expandedKeys prop default value (vbenjs#3184)
  fix(Upload): The file name is too long bug (vbenjs#3182)
  feat: 增加文本省略组件 (vbenjs#3180)
  站内支持API接口地址切换 (vbenjs#3162)
  feat: Form增加ImageUpload组件 (vbenjs#3172)
  chore(demo): basicTree组件增加icon 和 switcherIcon示例
  fix(BasicTree):  not inherit slot and not show icon slot. close vbenjs#1902
  chore(BasicTable): resolve BasicTable component ts type error
  chore(BasicTree): Resolve ts type error
  fix(ApiCascader): apiParamKey not working
  fix(Menu): tab标签切换选中状态焦点重复. fix vbenjs#1681
  fix: SimpleRootMenuContextProps type error (vbenjs#3176)
  refactor: cipher (vbenjs#3174)
  feat: add pinia persist plugin (vbenjs#3173)
  fix(ApiTree): 多触发一次onchange
  chore(ApiSelect): 该组件设定成手动触发验证
  fix(ApiSelect): BasicForm emit ield-value-change twice
  ...

# Conflicts:
#	pnpm-lock.yaml
#	src/components/Form/src/components/ApiSelect.vue
#	src/locales/lang/en/common.ts
#	src/locales/lang/en/sys.ts
#	src/locales/lang/zh-CN/common.ts
#	src/locales/lang/zh-CN/sys.ts
#	src/utils/env.ts
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants