Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
feather
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kulya
feather
Commits
dbb4c1c8
Commit
dbb4c1c8
authored
Jan 28, 2017
by
Cole Bemis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Create IconGrid component
parent
6ebc2a09
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
3 deletions
+23
-3
App.vue
src/App.vue
+3
-3
IconGrid.vue
src/IconGrid.vue
+20
-0
No files found.
src/App.vue
View file @
dbb4c1c8
<
template
>
<
template
>
<div>
<div>
<icon-
container
v-for=
"icon in icons"
:name=
"icon"
></icon-container
>
<icon-
grid
:icons=
"icons"
></icon-grid
>
</div>
</div>
</
template
>
</
template
>
<
script
>
<
script
>
import
{
mapState
}
from
'
vuex
'
;
import
{
mapState
}
from
'
vuex
'
;
import
Icon
Container
from
'
./IconContainer
'
;
import
Icon
Grid
from
'
./IconGrid
'
;
export
default
{
export
default
{
name
:
'
App
'
,
name
:
'
App
'
,
components
:
{
Icon
Container
},
components
:
{
Icon
Grid
},
computed
:
mapState
([
'
icons
'
])
computed
:
mapState
([
'
icons
'
])
}
}
</
script
>
</
script
>
...
...
src/IconGrid.vue
0 → 100644
View file @
dbb4c1c8
<
template
>
<div>
<icon-container
v-for=
"icon in icons"
:name=
"icon"
></icon-container>
</div>
</
template
>
<
script
>
import
IconContainer
from
'
./IconContainer
'
;
export
default
{
name
:
'
IconGrid
'
,
components
:
{
IconContainer
},
props
:
{
icons
:
{
type
:
Array
,
required
:
true
}
}
}
</
script
>
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment