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 select demo
Browse files Browse the repository at this point in the history
  • Loading branch information
matsp committed Jan 25, 2018
1 parent 8c49711 commit 046827e
Show file tree
Hide file tree
Showing 3 changed files with 37 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 @@ -45,6 +45,10 @@ export default new VueRouter({
path: '/radio',
component: () => import('views/RadioView')
},
{
path: '/select',
component: () => import('views/SelectView')
},
{
path: '/textfield',
component: () => import('views/TextfieldView')
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 @@ -53,6 +53,11 @@ const state = {
route: '/radio',
icon: 'code'
},
select: {
text: 'Select',
route: '/select',
icon: 'code'
},
textfield: {
text: 'Textfield',
route: '/textfield',
Expand Down
28 changes: 28 additions & 0 deletions demo/views/SelectView.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<template>
<m-layout-grid-inner>
<m-layout-grid-cell :span="12">
<m-typo-display :level="1">Select</m-typo-display>
<m-typo-body :level="2">
<a href="https://github.com/matsp/material-components-vue/blob/master/components/Select">
https://github.com/matsp/material-components-vue/blob/master/components/Select
</a>
</m-typo-body>
</m-layout-grid-cell>
<m-layout-grid-cell :span="12">
<m-select>
Select
<m-menu slot="menu">
<m-list>
<m-list-item>
Entry 1
</m-list-item>
<m-list-divider />
<m-list-item>
Entry 2
</m-list-item>
</m-list>
</m-menu>
</m-select>
</m-layout-grid-cell>
</m-layout-grid-inner>
</template>

0 comments on commit 046827e

Please sign in to comment.