File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11<template >
22 <div >
3- <icon-container v-for = " icon in icons" :name = " icon " ></icon-container >
3+ <icon-grid :icons = " icons" ></icon-grid >
44 </div >
55</template >
66
77<script >
88 import {mapState } from ' vuex' ;
9- import IconContainer from ' ./IconContainer ' ;
9+ import IconGrid from ' ./IconGrid ' ;
1010
1111 export default {
1212 name: ' App' ,
13- components: {IconContainer },
13+ components: {IconGrid },
1414 computed: mapState ([' icons' ])
1515 }
1616 </script >
Original file line number Diff line number Diff line change 1+ <template >
2+ <div >
3+ <icon-container v-for =" icon in icons" :name =" icon" ></icon-container >
4+ </div >
5+ </template >
6+
7+ <script >
8+ import IconContainer from ' ./IconContainer' ;
9+
10+ export default {
11+ name: ' IconGrid' ,
12+ components: {IconContainer},
13+ props: {
14+ icons: {
15+ type: Array ,
16+ required: true
17+ }
18+ }
19+ }
20+ </script >
You can’t perform that action at this time.
0 commit comments