Skip to content

Commit 2d48f33

Browse files
feat($Icon): add dependency @mdi/js
add dependency `@mdi/js` BREAKING CHANGE: support @mdi/js
1 parent dd61af0 commit 2d48f33

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
},
3535
"dependencies": {
3636
"@mdi/font": "4.7.95",
37+
"@mdi/js": "4.7.95",
3738
"@types/lodash": "4.14.149",
3839
"axios": "0.19.0",
3940
"axios-mock-adapter": "1.17.0",

src/views/home/index.vue

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
</v-navigation-drawer>
3636
<v-app-bar app clipped-left color="red" dense>
3737
<v-app-bar-nav-icon @click.stop="drawer = !drawer"/>
38-
<!-- <v-icon class="mx-4">fab youtube</v-icon>-->
38+
<v-icon class="mx-4">{{ icon.mdiYoutube }}</v-icon>
3939
<v-toolbar-title>
4040
<span class="title">{{ appName }}</span>
4141
<span id="version">{{ version }}</span>
@@ -62,6 +62,7 @@
6262
<script lang="ts">
6363
import { AppUtil } from '@/utils/app-util'
6464
import Vue from 'vue'
65+
import { mdiYoutube } from '@mdi/js'
6566
6667
export default Vue.extend({
6768
props: {
@@ -73,6 +74,9 @@ export default Vue.extend({
7374
}
7475
},
7576
data: () => ({
77+
icon: {
78+
mdiYoutube
79+
},
7680
drawer: null,
7781
items: [
7882
{ icon: 'subscriptions', text: 'Hello World', path: '/hello-world' },

0 commit comments

Comments
 (0)