Skip to content

增加区分默认图标和自定义图标样式类 #3270

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

Closed
bestv5 opened this issue Oct 27, 2021 · 6 comments
Closed

增加区分默认图标和自定义图标样式类 #3270

bestv5 opened this issue Oct 27, 2021 · 6 comments
Assignees
Milestone

Comments

@bestv5
Copy link

bestv5 commented Oct 27, 2021

由于css中不能过滤svg元素下use元素 的xlink:href 字符,“xlink:href ” 不是use的属性。
希望在svg的元素上增加一个属性标识该svg是默认的图标,
例如:class=‘def-icon’ 或者 data-type=“iconfile”。
这样在主题thems.css文件中配置笔记文件图标和层级图标。

@Vanessa219
Copy link
Member

自定义图标是 img, 默认图标是 svg。可以通过 tagName 进行区分

@bestv5
Copy link
Author

bestv5 commented Nov 16, 2021

自定义图标是 img, 默认图标是 svg。可以通过 tagName 进行区分

我使用的版本是1.5.2,没有发现自定义图标是img,还是svg。
图像 1

@Vanessa219
Copy link
Member

这样的就是系统的,其他的就是自定义的

@bestv5
Copy link
Author

bestv5 commented Dec 23, 2021

自定义图标是 img, 默认图标是 svg。可以通过 tagName 进行区分

可能我没表述清楚,我说的默认图标就是“ iconfile” 这个图标,其他用户选择的系统图标和用户导入的图标是自定义图标。我想筛选的是用户有没有自己选择图标,比如,筛选用户更换过图标的元素 ,css样式却筛选不出来。

@Vanessa219
Copy link
Member

Vanessa219 commented Dec 23, 2021

v1.5.5 支持 <svg class="custom-icon">

@Vanessa219 Vanessa219 reopened this Dec 23, 2021
@Vanessa219 Vanessa219 self-assigned this Dec 23, 2021
@Vanessa219 Vanessa219 added this to the 1.5.5 milestone Dec 23, 2021
@88250 88250 changed the title 增加区分默认图标和自定义图标属性标识的建议 增加区分默认图标和自定义图标样式类 Dec 23, 2021
@bestv5
Copy link
Author

bestv5 commented Dec 23, 2021

@Vanessa219 @88250 非常感谢两位支持这个功能,千里膜拜 🚀 🚀 🚀

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

2 participants