Commit 7f9ea0dc5e6dc19e521ff858bc3cf180a106b992

Authored by 梁灏
1 parent fce83323

init Time component

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 });
... ...
examples/routers/time.vue 0 → 100644
  1 +<template>
  2 + <div>
  3 + <Time />
  4 + </div>
  5 +</template>
  6 +<script>
  7 + export default {
  8 + data () {
  9 + return {};
  10 + },
  11 + computed: {},
  12 + methods: {}
  13 + };
  14 +</script>
0 15 \ No newline at end of file
... ...
src/components/time/index.js 0 → 100644
  1 +import Time from './time.vue';
  2 +export default Time;
0 3 \ No newline at end of file
... ...
src/components/time/time.vue 0 → 100644
  1 +<template>
  2 + <span>time</span>
  3 +</template>
  4 +<script>
  5 + export default {
  6 +
  7 + };
  8 +</script>
0 9 \ No newline at end of file
... ...
src/index.js
... ... @@ -42,6 +42,7 @@ import Switch from &#39;./components/switch&#39;;
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 = {}) {
... ...