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