diff --git a/mock/role/routes.js b/mock/role/routes.js index 5bb6c741..2d3613e7 100644 --- a/mock/role/routes.js +++ b/mock/role/routes.js @@ -119,7 +119,7 @@ export const asyncRoutes = [ children: [ { path: 'index', - component: 'views/svg-icons/index', + component: 'views/icons/index', name: 'Icons', meta: { title: 'icons', icon: 'icon', noCache: true } } diff --git a/src/router/index.js b/src/router/index.js index 0c5973da..34afd5c5 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -163,7 +163,7 @@ export const asyncRoutes = [ children: [ { path: 'index', - component: () => import('@/views/svg-icons/index'), + component: () => import('@/views/icons/index'), name: 'Icons', meta: { title: 'icons', icon: 'icon', noCache: true } } diff --git a/src/views/icons/element-icons.js b/src/views/icons/element-icons.js new file mode 100644 index 00000000..df722010 --- /dev/null +++ b/src/views/icons/element-icons.js @@ -0,0 +1,74 @@ +const elementIcons = [ + 'info', + 'error', + 'success', + 'warning', + 'question', + 'back', + 'arrow-left', + 'arrow-down', + 'arrow-right', + 'arrow-up', + 'caret-left', + 'caret-bottom', + 'caret-top', + 'caret-right', + 'd-arrow-left', + 'd-arrow-right', + 'minus', + 'plus', + 'remove', + 'circle-plus', + 'remove-outline', + 'circle-plus-outline', + 'close', + 'check', + 'circle-close', + 'circle-check', + 'circle-close-outline', + 'circle-check-outline', + 'zoom-out', + 'zoom-in', + 'd-caret', + 'sort', + 'sort-down', + 'sort-up', + 'tickets', + 'document', + 'goods', + 'sold-out', + 'news', + 'message', + 'date', + 'printer', + 'time', + 'bell', + 'mobile-phone', + 'service', + 'view', + 'menu', + 'more', + 'more-outline', + 'star-on', + 'star-off', + 'location', + 'location-outline', + 'phone', + 'phone-outline', + 'picture', + 'picture-outline', + 'delete', + 'search', + 'edit', + 'edit-outline', + 'rank', + 'refresh', + 'share', + 'setting', + 'upload', + 'upload2', + 'download', + 'loading' +] + +export default elementIcons diff --git a/src/views/svg-icons/index.vue b/src/views/icons/index.vue similarity index 90% rename from src/views/svg-icons/index.vue rename to src/views/icons/index.vue index 2715b5ea..3677afd6 100644 --- a/src/views/svg-icons/index.vue +++ b/src/views/icons/index.vue @@ -6,7 +6,7 @@ -
+
{{ generateIconCode(item) }} @@ -37,15 +37,15 @@