Commit 7f9ea0dc5e6dc19e521ff858bc3cf180a106b992
1 parent
fce83323
init Time component
Showing
6 changed files
with
33 additions
and
1 deletions
Show diff stats
examples/app.vue
| ... | ... | @@ -62,6 +62,7 @@ nav { |
| 62 | 62 | <li><router-link to="/color-picker">ColorPicker</router-link></li> |
| 63 | 63 | <li><router-link to="/auto-complete">AutoComplete</router-link></li> |
| 64 | 64 | <li><router-link to="/scroll">Scroll</router-link></li> |
| 65 | + <li><router-link to="/time">Time</router-link></li> | |
| 65 | 66 | </ul> |
| 66 | 67 | </nav> |
| 67 | 68 | <router-view></router-view> | ... | ... |
examples/main.js
| ... | ... | @@ -202,6 +202,10 @@ const router = new VueRouter({ |
| 202 | 202 | { |
| 203 | 203 | path: '/scroll', |
| 204 | 204 | component: (resolve) => require(['./routers/scroll.vue'], resolve) |
| 205 | + }, | |
| 206 | + { | |
| 207 | + path: '/time', | |
| 208 | + component: (resolve) => require(['./routers/time.vue'], resolve) | |
| 205 | 209 | } |
| 206 | 210 | ] |
| 207 | 211 | }); | ... | ... |
src/index.js
| ... | ... | @@ -42,6 +42,7 @@ import Switch from './components/switch'; |
| 42 | 42 | import Table from './components/table'; |
| 43 | 43 | import Tabs from './components/tabs'; |
| 44 | 44 | import Tag from './components/tag'; |
| 45 | +import Time from './components/time'; | |
| 45 | 46 | import Timeline from './components/timeline'; |
| 46 | 47 | import TimePicker from './components/time-picker'; |
| 47 | 48 | import Tooltip from './components/tooltip'; |
| ... | ... | @@ -114,6 +115,7 @@ const components = { |
| 114 | 115 | Tabs: Tabs, |
| 115 | 116 | TabPane: Tabs.Pane, |
| 116 | 117 | Tag, |
| 118 | + Time, | |
| 117 | 119 | Timeline, |
| 118 | 120 | TimelineItem: Timeline.Item, |
| 119 | 121 | TimePicker, |
| ... | ... | @@ -138,7 +140,8 @@ const iview = { |
| 138 | 140 | iProgress: Progress, |
| 139 | 141 | iSelect: Select, |
| 140 | 142 | iSwitch: Switch, |
| 141 | - iTable: Table | |
| 143 | + iTable: Table, | |
| 144 | + iTime: Time | |
| 142 | 145 | }; |
| 143 | 146 | |
| 144 | 147 | const install = function(Vue, opts = {}) { | ... | ... |