From 757a0c401aaa4fbb65ace4e0b56bd8083ca2383c Mon Sep 17 00:00:00 2001 From: sc Date: Tue, 27 Jul 2021 16:14:36 +0800 Subject: [PATCH] ADD scIconSelect --- src/components/scIconSelect/el.json | 1 + src/components/scIconSelect/index.vue | 97 +++++++++++++++++++++++++++ src/config/iconSelect.js | 17 +++++ src/router/systemRouter.js | 9 +++ src/views/vab/iconselect.vue | 71 ++++++++++++++++++++ 5 files changed, 195 insertions(+) create mode 100644 src/components/scIconSelect/el.json create mode 100644 src/components/scIconSelect/index.vue create mode 100644 src/config/iconSelect.js create mode 100644 src/views/vab/iconselect.vue diff --git a/src/components/scIconSelect/el.json b/src/components/scIconSelect/el.json new file mode 100644 index 00000000..873aefb4 --- /dev/null +++ b/src/components/scIconSelect/el.json @@ -0,0 +1 @@ +["platform-eleme","eleme","delete-solid","delete","s-tools","setting","user-solid","user","phone","phone-outline","more","more-outline","star-on","star-off","s-goods","goods","warning","warning-outline","question","info","remove","circle-plus","success","error","zoom-in","zoom-out","remove-outline","circle-plus-outline","circle-check","circle-close","s-help","help","minus","plus","check","close","picture","picture-outline","picture-outline-round","upload","upload2","download","camera-solid","camera","video-camera-solid","video-camera","message-solid","bell","s-cooperation","s-order","s-platform","s-fold","s-unfold","s-operation","s-promotion","s-home","s-release","s-ticket","s-management","s-open","s-shop","s-marketing","s-flag","s-comment","s-finance","s-claim","s-custom","s-opportunity","s-data","s-check","s-grid","menu","share","d-caret","caret-left","caret-right","caret-bottom","caret-top","bottom-left","bottom-right","back","right","bottom","top","top-left","top-right","arrow-left","arrow-right","arrow-down","arrow-up","d-arrow-left","d-arrow-right","video-pause","video-play","refresh","refresh-right","refresh-left","finished","sort","sort-up","sort-down","rank","loading","view","c-scale-to-original","date","edit","edit-outline","folder","folder-opened","folder-add","folder-remove","folder-delete","folder-checked","tickets","document-remove","document-delete","document-copy","document-checked","document","document-add","printer","paperclip","takeaway-box","search","monitor","attract","mobile","scissors","umbrella","headset","brush","mouse","coordinate","magic-stick","reading","data-line","data-board","pie-chart","data-analysis","collection-tag","film","suitcase","suitcase-1","receiving","collection","files","notebook-1","notebook-2","toilet-paper","office-building","school","table-lamp","house","no-smoking","smoking","shopping-cart-full","shopping-cart-1","shopping-cart-2","shopping-bag-1","shopping-bag-2","sold-out","sell","present","box","bank-card","money","coin","wallet","discount","price-tag","news","guide","male","female","thumb","cpu","link","connection","open","turn-off","set-up","chat-round","chat-line-round","chat-square","chat-dot-round","chat-dot-square","chat-line-square","message","postcard","position","turn-off-microphone","microphone","close-notification","bangzhu","time","odometer","crop","aim","switch-button","full-screen","copy-document","mic","stopwatch","medal-1","medal","trophy","trophy-1","first-aid-kit","discover","place","location","location-outline","location-information","add-location","delete-location","map-location","alarm-clock","timer","watch-1","watch","lock","unlock","key","service","mobile-phone","bicycle","truck","ship","basketball","football","soccer","baseball","wind-power","light-rain","lightning","heavy-rain","sunrise","sunrise-1","sunset","sunny","cloudy","partly-cloudy","cloudy-and-sunny","moon","moon-night","dish","dish-1","food","chicken","fork-spoon","knife-fork","burger","tableware","sugar","dessert","ice-cream","hot-water","water-cup","coffee-cup","cold-drink","goblet","goblet-full","goblet-square","goblet-square-full","refrigerator","grape","watermelon","cherry","apple","pear","orange","coffee","ice-tea","ice-drink","milk-tea","potato-strips","lollipop","ice-cream-square","ice-cream-round"] diff --git a/src/components/scIconSelect/index.vue b/src/components/scIconSelect/index.vue new file mode 100644 index 00000000..a7ede11a --- /dev/null +++ b/src/components/scIconSelect/index.vue @@ -0,0 +1,97 @@ + + + + + + + diff --git a/src/config/iconSelect.js b/src/config/iconSelect.js new file mode 100644 index 00000000..c0979ea2 --- /dev/null +++ b/src/config/iconSelect.js @@ -0,0 +1,17 @@ +import scuiicon from '@/assets/font/scicon/iconfont.json' + +//图标选择器配置 +export default { + icons: [ + { + name: 'SCUI', + namespace: 'sc-icon-', + icons: scuiicon.glyphs.map(v => v.font_class) + }, + { + name: '扩展', + namespace: 'el-icon-', + icons: ['platform-eleme'] + } + ] +} diff --git a/src/router/systemRouter.js b/src/router/systemRouter.js index df3705d9..696294a6 100644 --- a/src/router/systemRouter.js +++ b/src/router/systemRouter.js @@ -32,6 +32,15 @@ const routes = [{ icon: "el-icon-user", }, component: () => import(/* webpackChunkName: "usercenter" */ '@/views/userCenter'), + }, + { + name: "iconSelect", + path: "/vab/iconselect", + meta: { + title: "图标选择器", + icon: "el-icon-orange", + }, + component: () => import(/* webpackChunkName: "usercenter" */ '@/views/vab/iconselect'), } ] } diff --git a/src/views/vab/iconselect.vue b/src/views/vab/iconselect.vue new file mode 100644 index 00000000..6931639f --- /dev/null +++ b/src/views/vab/iconselect.vue @@ -0,0 +1,71 @@ + + + + + + +