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

[FR]: Collapse组件的箭头图标支持使用自定义的iconFont吗? #2588

Closed
ColinHwang opened this issue Oct 1, 2023 · 0 comments · Fixed by #2612
Closed

[FR]: Collapse组件的箭头图标支持使用自定义的iconFont吗? #2588

ColinHwang opened this issue Oct 1, 2023 · 0 comments · Fixed by #2612
Labels
Feature Request 新功能请求

Comments

@ColinHwang
Copy link

这个功能解决了什么问题?

目前使用导入png图片然后h标签引用的方案:

import { ref, h } from 'vue';
import arrowDownImage from '../resources/arrow-down.png'
const arrowDownIcon = h('img', {
  src: arrowDownImage,
  class: 'collapse-item-icon',
});
<nut-collapse-item :icon="arrowDownIcon">

查看官网文档,没看到怎么使用自定义iconFont的方案

你期望的组件设计是怎样的?

能使用自定义的iconFont设置箭头图标

@ColinHwang ColinHwang added the Feature Request 新功能请求 label Oct 1, 2023
yi-boide added a commit to yi-boide/nutui that referenced this issue Oct 23, 2023
@eiinu eiinu linked a pull request Oct 23, 2023 that will close this issue
21 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature Request 新功能请求
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant