资源引用
为了简化开发,AnyText 内置了一些图标库,你可以在扩展中直接使用这些图标库,而不需要自己去引入图标库的资源文件。以下是 AnyText 内置的图标库:
- AnyText Icons
- Material Design Icons (v7.0.96)
- Font Awesome Pro (v6.3.0)
AnyText Icons
AnyText Icons 是 AnyText 内置的图标库,包含以下图标:
anytext aticon-logo
anytext aticon-loading-bold
anytext aticon-receive
anytext aticon-loading
anytext aticon-redo
anytext aticon-undo
anytext aticon-more
anytext aticon-stop
anytext aticon-option
anytext aticon-lock
anytext aticon-clear
anytext aticon-arrow-left
anytext aticon-arrow-down
anytext aticon-arrow-up
anytext aticon-arrow-right
anytext aticon-run
anytext aticon-close
anytext aticon-clone
anytext aticon-setting-extensions
anytext aticon-theme
anytext aticon-copy
anytext aticon-extensions
anytext aticon-narrow-screen
anytext aticon-setting
anytext aticon-setting-categories
Material Design Icons
具体图标请参考 Material Design Icons。
Font Awesome Pro
具体图标请参考 Font Awesome Pro。
使用图标
大多数情况下,你可以直接使用图标的类名来使用图标,例如:
- AnyText Icons:
js
{
icon: "anytext aticon-logo"
// ...
}
- Material Design Icons:
js
{
icon: "mdi mdi-account"
// ...
}
- Font Awesome Pro:
js
{
icon: "fas fa-user"
// ...
}