13 | Description
14 |
15 | This is web navigation component base on vue2.0+. It can be used in both PC and mobile.
16 |
17 | Demo
18 |
19 |
20 |
65 |
66 | Install
67 |
68 | $ npm install vue-quick-menu --save
69 |
70 | Usage
71 |
72 | <quick-menu :menu-count=count :icon-class=icons :menu-url-list=list></quick-menu>
73 |
74 |
75 | import Vue from 'vue'
76 | import quickMenu from 'vue-quick-menu'
77 |
78 | export default {
79 | ...
80 | components: {
81 | quickMenu
82 | },
83 | ...
84 | }
85 |
86 |
87 |
88 | Props
89 |
90 |
91 |
92 | Name |
93 | Required |
94 | Default |
95 | Type |
96 | Description |
97 |
98 |
99 |
100 |
101 | menuCount |
102 | true |
103 | 4 |
104 | Number |
105 | The number of menu item |
106 |
107 |
108 | menuUrlList |
109 | true |
110 | - |
111 | Array |
112 | An array of link of each menu item |
113 |
114 |
115 | iconClass |
116 | true |
117 | - |
118 | Array |
119 | An array of icon class of each menu item |
120 |
121 |
122 | position |
123 | false |
124 | top-left |
125 | top-left,top-right,bottom-left,bottom-right |
126 | The position of quick menu |
127 |
128 |
129 | backgroundColor |
130 | false |
131 | #009dc7 |
132 | String |
133 | The background color of quick menu |
134 |
135 |
136 | color |
137 | false |
138 | #ffffff |
139 | String |
140 | The color of quick menu icon |
141 |
142 |
143 | isOpenNewTab |
144 | false |
145 | false |
146 | Boolean |
147 | If the menu will open a new tab after click |
148 |
149 |
150 |
151 |
152 |
153 |
154 |
155 |