Skip to content

Commit

Permalink
add Icon
Browse files Browse the repository at this point in the history
  • Loading branch information
icarusion committed Jun 4, 2018
1 parent 238533e commit 94665bd
Show file tree
Hide file tree
Showing 4 changed files with 754 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/code/icon.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
let code = {};

code.import = `
"usingComponents": {
"i-icon": "../../dist/icon/index"
}
`;
code.usage = `
<i-icon type="activity" size="28" color="#80848f"></i-icon>
`;

export default code;
275 changes: 275 additions & 0 deletions src/code/iconname.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,275 @@
export default [
'accessory'

,'activity'

,'activity_fill'

,'add'

,'addressbook_fill'

,'addressbook'

,'barrage_fill'

,'barrage'

,'browse_fill'

,'browse'

,'brush'

,'brush_fill'

,'businesscard_fill'

,'businesscard'

,'camera_fill'

,'camera'

,'clock_fill'

,'clock'

,'close'

,'collection_fill'

,'collection'

,'computer_fill'

,'computer'

,'coordinates_fill'

,'coordinates'

,'coupons_fill'

,'coupons'

,'createtask_fill'

,'createtask'

,'customerservice_fill'

,'customerservice'

,'delete_fill'

,'delete'

,'document'

,'document_fill'

,'dynamic_fill'

,'dynamic'

,'editor'

,'eit'

,'emoji_fill'

,'emoji'

,'enter'

,'enterinto'

,'enterinto_fill'

,'feedback_fill'

,'feedback'

,'flag_fill'

,'flag'

,'flashlight'

,'flashlight_fill'

,'fullscreen'

,'group'

,'group_fill'

,'homepage_fill'

,'homepage'

,'integral_fill'

,'integral'

,'interactive_fill'

,'interactive'

,'keyboard'

,'label'

,'label_fill'

,'like_fill'

,'like'

,'live_fill'

,'live'

,'lock_fill'

,'lock'

,'mail'

,'mail_fill'

,'message'

,'message_fill'

,'mine'

,'mine_fill'

,'mobilephone_fill'

,'mobilephone'

,'more'

,'narrow'

,'offline_fill'

,'offline'

,'other'

,'picture_fill'

,'picture'

,'play'

,'play_fill'

,'playon_fill'

,'playon'

,'praise_fill'

,'praise'

,'prompt_fill'

,'prompt'

,'redpacket_fill'

,'redpacket'

,'refresh'

,'remind_fill'

,'remind'

,'return'

,'right'

,'scan'

,'send'

,'service_fill'

,'service'

,'setup_fill'

,'setup'

,'share_fill'

,'share'

,'success_fill'

,'success'

,'suspend'

,'switch'

,'systemprompt_fill'

,'systemprompt'

,'tailor'

,'task'

,'task_fill'

,'tasklist_fill'

,'tasklist'

,'time_fill'

,'time'

,'translation_fill'

,'translation'

,'trash'

,'trash_fill'

,'undo'

,'video'

,'video_fill'

,'warning_fill'

,'warning'

,'search'

,'searchfill'

,'publishgoods_fill'

,'shop_fill'

,'transaction_fill'

,'packup'

,'unfold'

,'financial_fill'

,'commodity'
]
7 changes: 7 additions & 0 deletions src/router.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,13 @@ const routers = [
},
component: (resolve) => require(['./views/components/color.vue'], resolve)
},
{
path: '/components/icon',
meta: {
title: '图标 Icon'
},
component: (resolve) => require(['./views/components/icon.vue'], resolve)
},
{
path: '*',
redirect: '/'
Expand Down
Loading

0 comments on commit 94665bd

Please sign in to comment.