Skip to content

Commit

Permalink
Added Element Plus icons
Browse files Browse the repository at this point in the history
  • Loading branch information
egauzens committed Dec 5, 2023
1 parent 5d701c6 commit 9262dc2
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 7 deletions.
7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "sparc-design-system-components-2",
"version": "0.0.21",
"version": "0.0.22",
"private": false,
"scripts": {
"dev": "vite",
Expand All @@ -20,11 +20,12 @@
],
"dependencies": {
"@carbon/grid": "^11.20.0",
"@element-plus/icons-vue": "^2.3.1",
"date-fns": "^2.3.0",
"element-plus": "^2.4.2",
"ramda": "^0.29.1",
"vue": "^3.3.4",
"vue-router":"^4.2.5",
"date-fns": "^2.3.0"
"vue-router": "^4.2.5"
},
"devDependencies": {
"@storybook/addon-essentials": "7.5.1",
Expand Down
6 changes: 4 additions & 2 deletions src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
</header>

<main>
<el-icon><Folder /></el-icon>

<div>

Expand Down Expand Up @@ -405,6 +406,7 @@
import ContentTabCard from './components/ContentTabCard.vue'
import EventCard from './components/EventCard.vue'
import MultiSelect from './components/MultiSelect.vue'
import { Folder } from '@element-plus/icons-vue'
import { ref } from 'vue'
import { successMessage, infoMessage, failMessage, informationNotification, iconInformationNotification } from "../utils/notificationMessages"
Expand Down Expand Up @@ -1146,9 +1148,9 @@
ContentOverviewCard,
ContentTabCard,
EventCard,
MultiSelect
MultiSelect,
ListCard,
Folder,
},
name: 'App',
setup() {
Expand Down
6 changes: 4 additions & 2 deletions src/components/index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import '../assets/styles.scss';

import ElementPlus from 'element-plus'

import * as ElementPlusIconsVue from '@element-plus/icons-vue'
import SparcLogo from './SparcLogo.vue';
import LargeModal from './LargeModal.vue'
import SparcTooltip from './SparcTooltip.vue'
Expand Down Expand Up @@ -32,6 +32,8 @@ export default {
app.component('Breadcrumb', Breadcrumb);
app.component('IconCard', IconCard);
app.component('ContentTabCard', ContentTabCard);

for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
app.component(key, component)
}
},
};

0 comments on commit 9262dc2

Please sign in to comment.