基于Vue框架协同Ant Design UI框架开发之icon图标运用

图标列表

点击图标即可复制代码。
新版图标可能略有缺失,我们还在持续补充中。

选择图标主题风格

<label class="ant-radio-button-wrapper ant-radio-button-wrapper-checked" style="box-sizing: border-box; touch-action: manipulation; margin: 0px; height: 32px; line-height: 30px; color: rgb(24, 144, 255); display: inline-block; transition: all 0.3s ease 0s; cursor: pointer; border-width: 1.02px 1px 1px; border-style: solid; border-color: rgb(24, 144, 255); border-image: initial; background: rgb(255, 255, 255); padding: 0px 15px; position: relative; box-shadow: none !important; z-index: 1; border-radius: 4px 0px 0px 4px;"><input type="radio" class="ant-radio-button-input" value="outlined" style="box-sizing: border-box; margin: 0px; font-family: inherit; font-size: inherit; line-height: inherit; color: inherit; overflow: visible; padding: 0px; touch-action: manipulation; opacity: 0; width: 0px; height: 0px;"> 线框风格</label><label class="ant-radio-button-wrapper" style="box-sizing: border-box; touch-action: manipulation; margin: 0px; height: 32px; line-height: 30px; color: rgba(0, 0, 0, 0.65); display: inline-block; transition: all 0.3s ease 0s; cursor: pointer; border-width: 1.02px 1px 1px 0px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-top-color: rgb(217, 217, 217); border-right-color: rgb(217, 217, 217); border-bottom-color: rgb(217, 217, 217); border-image: initial; border-left-style: initial; border-left-color: initial; background: rgb(255, 255, 255); padding: 0px 15px; position: relative;"><input type="radio" class="ant-radio-button-input" value="filled" style="box-sizing: border-box; margin: 0px; font-family: inherit; font-size: inherit; line-height: inherit; color: inherit; overflow: visible; padding: 0px; touch-action: manipulation; opacity: 0; width: 0px; height: 0px;"> 实底风格</label><label class="ant-radio-button-wrapper" style="box-sizing: border-box; touch-action: manipulation; margin: 0px; height: 32px; line-height: 30px; color: rgba(0, 0, 0, 0.65); display: inline-block; transition: all 0.3s ease 0s; cursor: pointer; border-width: 1.02px 1px 1px 0px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-top-color: rgb(217, 217, 217); border-right-color: rgb(217, 217, 217); border-bottom-color: rgb(217, 217, 217); border-image: initial; border-left-style: initial; border-left-color: initial; background: rgb(255, 255, 255); padding: 0px 15px; position: relative; border-radius: 0px 4px 4px 0px;"><input type="radio" class="ant-radio-button-input" value="twoTone" style="box-sizing: border-box; margin: 0px; font-family: inherit; font-size: inherit; line-height: inherit; color: inherit; overflow: visible; padding: 0px; touch-action: manipulation; opacity: 0; width: 0px; height: 0px;"> 双色风格</label>

方向性图标

  • step-backward
  • step-forward
  • fast-backward
  • fast-forward
  • shrink
  • arrows-alt
  • down
  • up
  • left
  • right
  • caret-up
  • caret-down
  • caret-left
  • caret-right
  • up-circle
  • down-circle
  • left-circle
  • right-circle
  • double-right
  • double-left
  • vertical-left
  • vertical-right
  • forward
  • backward
  • rollback
  • enter
  • retweet
  • swap
  • swap-left
  • swap-right
  • arrow-up
  • arrow-down
  • arrow-left
  • arrow-right
  • play-circle
  • up-square
  • down-square
  • left-square
  • right-square
  • login
  • logout
  • menu-fold
  • menu-unfold
  • border-bottom
  • border-horizontal
  • border-inner
  • border-left
  • border-right
  • border-top
  • border-verticle
  • pic-center
  • pic-left
  • pic-right
  • radius-bottomleft
  • radius-bottomright
  • radius-upleft
  • fullscreen
  • fullscreen-exit

提示建议性图标

  • question
  • question-circle
  • plus
  • plus-circle
  • pause
  • pause-circle
  • minus
  • minus-circle
  • plus-square
  • minus-square
  • info
  • info-circle
  • exclamation
  • exclamation-circle
  • close
  • close-circle
  • close-square
  • check
  • check-circle
  • check-square
  • clock-circle
  • warning
  • issues-close
  • stop

编辑类图标

  • edit
  • form
  • copy
  • scissor
  • delete
  • snippets
  • diff
  • highlight
  • align-center
  • align-left
  • align-right
  • bg-colors
  • bold
  • italic
  • underline
  • strikethrough
  • redo
  • undo
  • zoom-in
  • zoom-out
  • font-colors
  • font-size
  • line-height
  • colum-height
  • dash
  • small-dash
  • sort-ascending
  • sort-descending
  • drag
  • ordered-list
  • radius-setting

数据类图标

  • area-chart
  • pie-chart
  • bar-chart
  • dot-chart
  • line-chart
  • radar-chart
  • heat-map
  • fall
  • rise
  • stock
  • box-plot
  • fund
  • sliders

网站通用图标

  • lock
  • unlock
  • bars
  • book
  • calendar
  • cloud
  • cloud-download
  • code
  • copy
  • credit-card
  • delete
  • desktop
  • download
  • ellipsis
  • file
  • file-text
  • file-unknown
  • file-pdf
  • file-word
  • file-excel
  • file-jpg
  • file-ppt
  • file-markdown
  • file-add
  • folder
  • folder-open
  • folder-add
  • hdd
  • frown
  • meh
  • smile
  • inbox
  • laptop
  • appstore
  • link
  • mail
  • mobile
  • notification
  • paper-clip
  • picture
  • poweroff
  • reload
  • search
  • setting
  • share-alt
  • shopping-cart
  • tablet
  • tag
  • tags
  • to-top
  • upload
  • user
  • video-camera
  • home
  • loading
  • loading-3-quarters
  • cloud-upload
  • star
  • heart
  • environment
  • eye
  • eye-invisible
  • camera
  • save
  • team
  • solution
  • phone
  • filter
  • exception
  • export
  • customer-service
  • qrcode
  • scan
  • like
  • dislike
  • message
  • pay-circle
  • calculator
  • pushpin
  • bulb
  • select
  • switcher
  • rocket
  • bell
  • disconnect
  • database
  • compass
  • barcode
  • hourglass
  • key
  • flag
  • layout
  • printer
  • sound
  • usb
  • skin
  • tool
  • sync
  • wifi
  • car
  • schedule
  • user-add
  • user-delete
  • usergroup-add
  • usergroup-delete
  • man
  • woman
  • shop
  • gift
  • idcard
  • medicine-box
  • red-envelope
  • coffee
  • copyright
  • trademark
  • safety
  • wallet
  • bank
  • trophy
  • contacts
  • global
  • shake
  • api
  • fork
  • dashboard
  • table
  • profile
  • alert
  • audit
  • branches
  • build
  • border
  • crown
  • experiment
  • fire
  • money-collect
  • property-safety
  • read
  • reconciliation
  • rest
  • security-scan
  • insurance
  • interation
  • safety-certificate
  • project
  • thunderbolt
  • block
  • cluster
  • deployment-unit
  • dollar
  • euro
  • pound
  • file-done
  • file-exclamation
  • file-protect
  • file-search
  • file-sync
  • gateway
  • gold
  • robot
  • shopping

品牌和标识

  • android
  • apple
  • windows
  • ie
  • chrome
  • github
  • aliwangwang
  • dingding
  • weibo-square
  • weibo-circle
  • taobao-circle
  • html5
  • weibo
  • twitter
  • wechat
  • youtube
  • alipay-circle
  • taobao
  • skype
  • qq
  • medium-workmark
  • gitlab
  • medium
  • linkedin
  • google-plus
  • dropbox
  • facebook
  • codepen
  • code-sandbox
  • amazon
  • google
  • codepen-circle
  • alipay
  • ant-design
  • aliyun
  • zhihu
  • slack
  • slack-square
  • behance
  • behance-square
  • dribbble
  • dribbble-square
  • instagram
  • yuque
  • alibaba
  • yahoo

基本用法 #

使用 <Icon/> 标签声明组件,指定图标对应的 type 属性。可以通过 theme 属性来设置不同的主题风格的图标,也可以通过设置 spin 属性来实现动画旋转效果。

[图片上传失败...(image-9b9995-1555835823850)]

[图片上传失败...(image-ff4ecb-1555835823850)]

自定义图标 #

利用 Icon 组件封装一个可复用的自定义图标。可以通过 component 属性传入一个组件来渲染最终的图标,以满足特定的需求。

©著作权归作者所有,转载或内容合作请联系作者
  • 序言:七十年代末,一起剥皮案震惊了整个滨河市,随后出现的几起案子,更是在滨河造成了极大的恐慌,老刑警刘岩,带你破解...
    沈念sama阅读 216,744评论 6 502
  • 序言:滨河连续发生了三起死亡事件,死亡现场离奇诡异,居然都是意外死亡,警方通过查阅死者的电脑和手机,发现死者居然都...
    沈念sama阅读 92,505评论 3 392
  • 文/潘晓璐 我一进店门,熙熙楼的掌柜王于贵愁眉苦脸地迎上来,“玉大人,你说我怎么就摊上这事。” “怎么了?”我有些...
    开封第一讲书人阅读 163,105评论 0 353
  • 文/不坏的土叔 我叫张陵,是天一观的道长。 经常有香客问我,道长,这世上最难降的妖魔是什么? 我笑而不...
    开封第一讲书人阅读 58,242评论 1 292
  • 正文 为了忘掉前任,我火速办了婚礼,结果婚礼上,老公的妹妹穿的比我还像新娘。我一直安慰自己,他们只是感情好,可当我...
    茶点故事阅读 67,269评论 6 389
  • 文/花漫 我一把揭开白布。 她就那样静静地躺着,像睡着了一般。 火红的嫁衣衬着肌肤如雪。 梳的纹丝不乱的头发上,一...
    开封第一讲书人阅读 51,215评论 1 299
  • 那天,我揣着相机与录音,去河边找鬼。 笑死,一个胖子当着我的面吹牛,可吹牛的内容都是我干的。 我是一名探鬼主播,决...
    沈念sama阅读 40,096评论 3 418
  • 文/苍兰香墨 我猛地睁开眼,长吁一口气:“原来是场噩梦啊……” “哼!你这毒妇竟也来了?” 一声冷哼从身侧响起,我...
    开封第一讲书人阅读 38,939评论 0 274
  • 序言:老挝万荣一对情侣失踪,失踪者是张志新(化名)和其女友刘颖,没想到半个月后,有当地人在树林里发现了一具尸体,经...
    沈念sama阅读 45,354评论 1 311
  • 正文 独居荒郊野岭守林人离奇死亡,尸身上长有42处带血的脓包…… 初始之章·张勋 以下内容为张勋视角 年9月15日...
    茶点故事阅读 37,573评论 2 333
  • 正文 我和宋清朗相恋三年,在试婚纱的时候发现自己被绿了。 大学时的朋友给我发了我未婚夫和他白月光在一起吃饭的照片。...
    茶点故事阅读 39,745评论 1 348
  • 序言:一个原本活蹦乱跳的男人离奇死亡,死状恐怖,灵堂内的尸体忽然破棺而出,到底是诈尸还是另有隐情,我是刑警宁泽,带...
    沈念sama阅读 35,448评论 5 344
  • 正文 年R本政府宣布,位于F岛的核电站,受9级特大地震影响,放射性物质发生泄漏。R本人自食恶果不足惜,却给世界环境...
    茶点故事阅读 41,048评论 3 327
  • 文/蒙蒙 一、第九天 我趴在偏房一处隐蔽的房顶上张望。 院中可真热闹,春花似锦、人声如沸。这庄子的主人今日做“春日...
    开封第一讲书人阅读 31,683评论 0 22
  • 文/苍兰香墨 我抬头看了看天上的太阳。三九已至,却和暖如春,着一层夹袄步出监牢的瞬间,已是汗流浃背。 一阵脚步声响...
    开封第一讲书人阅读 32,838评论 1 269
  • 我被黑心中介骗来泰国打工, 没想到刚下飞机就差点儿被人妖公主榨干…… 1. 我叫王不留,地道东北人。 一个月前我还...
    沈念sama阅读 47,776评论 2 369
  • 正文 我出身青楼,却偏偏与公主长得像,于是被迫代替她去往敌国和亲。 传闻我的和亲对象是个残疾皇子,可洞房花烛夜当晚...
    茶点故事阅读 44,652评论 2 354

推荐阅读更多精彩内容

  • 各种纯css图标 CSS3可以实现很多漂亮的图形,我收集了32种图形,在下面列出。直接用CSS3画出这些图形,要比...
    剑残阅读 9,538评论 0 8
  • Square #square{ width: 100px; height: 100px; background: ...
    情话_2ee5阅读 339评论 0 1
  • 8. Setting Colors Since release v1.4.0, the ColorTemplate...
    ngugg阅读 705评论 0 0
  • 一盏灯尖叫的苍白围拢在暗夜 打开城市的门 打开你心上的小格子 它们橙黄的温暖就差一个拥抱 一盏灯 流露在春雨和黑夜...
    目成1987阅读 246评论 0 5
  • 关于感情的大杂烩,本文章来自博客 故事 柏拉图的稻穗 (真假未知) 关于捡稻穗故事,故事是这样的:有一天,柏拉图问...
    NemoLaw阅读 964评论 0 0