This repository was archived by the owner on Nov 30, 2020. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +82
-0
lines changed Expand file tree Collapse file tree 3 files changed +82
-0
lines changed Original file line number Diff line number Diff line change @@ -57,6 +57,10 @@ export default new VueRouter({
57
57
path : '/list' ,
58
58
component : ( ) => import ( 'views/ListView' )
59
59
} ,
60
+ {
61
+ path : '/menu' ,
62
+ component : ( ) => import ( 'views/MenuView' )
63
+ } ,
60
64
{
61
65
path : '/radio' ,
62
66
component : ( ) => import ( 'views/RadioView' )
Original file line number Diff line number Diff line change @@ -75,6 +75,12 @@ const state = {
75
75
icon : 'code' ,
76
76
reference : 'https://github.com/matsp/material-components-vue/tree/master/components/list'
77
77
} ,
78
+ list : {
79
+ text : 'Menu' ,
80
+ route : '/menu' ,
81
+ icon : 'code' ,
82
+ reference : 'https://github.com/matsp/material-components-vue/tree/master/components/menu'
83
+ } ,
78
84
radio : {
79
85
text : 'Radio' ,
80
86
route : '/radio' ,
Original file line number Diff line number Diff line change
1
+ <template >
2
+ <m-layout-grid-inner >
3
+ <m-layout-grid-cell :span =" 12" >
4
+ <m-typo-title >Normal</m-typo-title >
5
+ <m-layout-grid-inner >
6
+ <m-layout-grid-cell :span =" 4" >
7
+ <m-menu-anchor >
8
+ <m-button raised interactive @click =" isMenuOpen=true" >open</m-button >
9
+ <m-menu v-model =" isMenuOpen" >
10
+ <m-list >
11
+ <m-list-item interactive >
12
+ Entry 1
13
+ </m-list-item >
14
+ <m-list-divider />
15
+ <m-list-item interactive >
16
+ Entry 2
17
+ </m-list-item >
18
+ </m-list >
19
+ </m-menu >
20
+ </m-menu-anchor >
21
+ </m-layout-grid-cell >
22
+ </m-layout-grid-inner >
23
+ </m-layout-grid-cell >
24
+ <m-layout-grid-cell :span =" 12" >
25
+ <m-typo-title >QuickOpen</m-typo-title >
26
+ <m-layout-grid-inner >
27
+ <m-layout-grid-cell :span =" 4" >
28
+ <m-menu-anchor >
29
+ <m-button raised interactive @click =" isMenu2Open=true" >open</m-button >
30
+ <m-menu quickOpen v-model =" isMenu2Open" >
31
+ <m-list >
32
+ <m-list-item interactive >
33
+ Entry 1
34
+ </m-list-item >
35
+ <m-list-divider />
36
+ <m-list-item interactive >
37
+ Entry 2
38
+ </m-list-item >
39
+ </m-list >
40
+ </m-menu >
41
+ </m-menu-anchor >
42
+ </m-layout-grid-cell >
43
+ </m-layout-grid-inner >
44
+ </m-layout-grid-cell >
45
+ </m-layout-grid-inner >
46
+ </template >
47
+
48
+ <script >
49
+ import Vue from ' vue'
50
+ import Button from ' ../../dist/button'
51
+ import List from ' ../../dist/list'
52
+ import Menu from ' ../../dist/menu'
53
+
54
+ Vue .use (Button)
55
+ Vue .use (List)
56
+ Vue .use (Menu)
57
+
58
+ export default {
59
+ data () {
60
+ return {
61
+ isMenuOpen: false ,
62
+ isMenu2Open: false
63
+ }
64
+ }
65
+ }
66
+ </script >
67
+
68
+ <style lang="scss">
69
+ @import " ../../dist/button/styles" ;
70
+ @import " ../../dist/list/styles" ;
71
+ @import " ../../dist/menu/styles" ;
72
+ </style >
You can’t perform that action at this time.
0 commit comments