Skip to content
This repository has been archived by the owner on Nov 30, 2020. It is now read-only.

Commit

Permalink
feat(demo): Add list component demo
Browse files Browse the repository at this point in the history
  • Loading branch information
matsp committed Feb 19, 2018
1 parent 0b2f910 commit 049bfbc
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 0 deletions.
4 changes: 4 additions & 0 deletions demo/router/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,10 @@ export default new VueRouter({
path: '/linearProgress',
component: () => import('views/LinearProgressView')
},
{
path: '/list',
component: () => import('views/ListView')
},
{
path: '/radio',
component: () => import('views/RadioView')
Expand Down
5 changes: 5 additions & 0 deletions demo/store/modules/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,11 @@ const state = {
route: '/linearProgress',
icon: 'code'
},
list: {
text: 'List',
route: '/list',
icon: 'code'
},
radio: {
text: 'Radio',
route: '/radio',
Expand Down
21 changes: 21 additions & 0 deletions demo/views/ListView.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<template>
<m-layout-grid-inner>
<m-layout-grid-cell :span="12">
<m-typo-display :level="1">List</m-typo-display>
<m-typo-body :level="2">
<a href="https://github.com/matsp/material-components-vue/blob/master/components/List">
https://github.com/matsp/material-components-vue/blob/master/components/List
</a>
</m-typo-body>
</m-layout-grid-cell>
<m-layout-grid-cell :span="4">
<m-typo-headline>List</m-typo-headline>
<m-list>
<m-list-item interactive> Item #1 (interactive) </m-list-item>
<m-list-item selected> Item #2 (selected) </m-list-item>
<m-list-item> Item #3 </m-list-item>
<m-list-item activated> Item #4 (activated) </m-list-item>
</m-list>
</m-layout-grid-cell>
</m-layout-grid-inner>
</template>

0 comments on commit 049bfbc

Please sign in to comment.