# Icon 图标

用于展示 SVG 图标。

# 用法

# 基础用法

<sui-icon name="search"></sui-icon>
1

效果示例:

# 属性

# name

  • 类型:String
  • 用法:
<sui-icon name="search"></sui-icon>
1

图标名称,所有图标:

normal outline thin circle circle-outline
addadd-outlineadd-thinadd-circleadd-circle-outline
arrow-backarrow-back-outlinearrow-back-thinarrow-back-circlearrow-back-circle-outline
arrow-downarrow-down-outlinearrow-down-thinarrow-down-circlearrow-down-circle-outline
arrow-dropdownarrow-dropdown-outlinearrow-dropdown-thinarrow-dropdown-circlearrow-dropdown-circle-outline
arrow-dropleftarrow-dropleft-outlinearrow-dropleft-thinarrow-dropleft-circlearrow-dropleft-circle-outline
arrow-droprightarrow-dropright-outlinearrow-dropright-thinarrow-dropright-circlearrow-dropright-circle-outline
arrow-dropuparrow-dropup-outlinearrow-dropup-thinarrow-dropup-circlearrow-dropup-circle-outline
arrow-forwardarrow-forward-outlinearrow-forward-thinarrow-forward-circlearrow-forward-circle-outline
arrow-uparrow-up-outlinearrow-up-thinarrow-up-circlearrow-up-circle-outline
badbad-outlinebad-thinbad-circlebad-circle-outline
bookmarksbookmarks-outlinebookmarks-thinbookmarks-circlebookmarks-circle-outline
calendarcalendar-outlinecalendar-thincalendar-circlecalendar-circle-outline
checkcheck-outlinecheck-thincheck-circlecheck-circle-outline
closeclose-outlineclose-thinclose-circleclose-circle-outline
coppercopper-outlinecopper-thincopper-circlecopper-circle-outline
crowncrown-outlinecrown-thincrown-circlecrown-circle-outline
editedit-outlineedit-thinedit-circleedit-circle-outline
eyeeye-outlineeye-thineye-circleeye-circle-outline
femalefemale-outlinefemale-thinfemale-circlefemale-circle-outline
firefire-outlinefire-thinfire-circlefire-circle-outline
flagflag-outlineflag-thinflag-circleflag-circle-outline
followfollow-outlinefollow-thinfollow-circlefollow-circle-outline
freshfresh-outlinefresh-thinfresh-circlefresh-circle-outline
funnelfunnel-outlinefunnel-thinfunnel-circlefunnel-circle-outline
giftgift-outlinegift-thingift-circlegift-circle-outline
goodgood-outlinegood-thingood-circlegood-circle-outline
groupgroup-outlinegroup-thingroup-circlegroup-circle-outline
happyhappy-outlinehappy-thinhappy-circlehappy-circle-outline
headsetheadset-outlineheadset-thinheadset-circleheadset-circle-outline
historyhistory-outlinehistory-thinhistory-circlehistory-circle-outline
homehome-outlinehome-thinhome-circlehome-circle-outline
letterletter-outlineletter-thinletter-circleletter-circle-outline
loadingloading-outlineloading-thinloading-circleloading-circle-outline
malemale-outlinemale-thinmale-circlemale-circle-outline
menumenu-outlinemenu-thinmenu-circlemenu-circle-outline
messagemessage-outlinemessage-thinmessage-circlemessage-circle-outline
my-answermy-answer-outlinemy-answer-thinmy-answer-circlemy-answer-circle-outline
my-questionmy-question-outlinemy-question-thinmy-question-circlemy-question-circle-outline
paperpaper-outlinepaper-thinpaper-circlepaper-circle-outline
picturepicture-outlinepicture-thinpicture-circlepicture-circle-outline
pinpin-outlinepin-thinpin-circlepin-circle-outline
playplay-outlineplay-thinplay-circleplay-circle-outline
sadsad-outlinesad-thinsad-circlesad-circle-outline
searchsearch-outlinesearch-thinsearch-circlesearch-circle-outline
settingsetting-outlinesetting-thinsetting-circlesetting-circle-outline
shareshare-outlineshare-thinshare-circleshare-circle-outline
sortsort-outlinesort-thinsort-circlesort-circle-outline
starstar-outlinestar-thinstar-circlestar-circle-outline
timetime-outlinetime-thintime-circletime-circle-outline
topictopic-outlinetopic-thintopic-circletopic-circle-outline
trashtrash-outlinetrash-thintrash-circletrash-circle-outline

# url

用于加载第三方 iconfont

# load-default-icons

不加载内置 iconfont

# fill

  • 类型:Number String
  • 用法:
<!-- 默认主题色号 -->
<sui-icon name="search" :fill="2.1"></sui-icon>

<!-- 具体颜色值 -->
<sui-icon name="search" fill="#000"></sui-icon>
1
2
3
4
5

设置图标颜色,可以是 默认主题 色号,也可以是具体颜色值,效果示例: