Commit 3affd6f3659abcfef2cad68e5396f8cd20d76093

Authored by 梁灏
1 parent e0f238f9

init upload component

init upload component
src/components/upload/index.js 0 → 100644
src/components/upload/upload-list.vue 0 → 100644
  1 +<template>
  2 +
  3 +</template>
  4 +<script>
  5 + export default {
  6 + props: {},
  7 + data () {
  8 + return {};
  9 + },
  10 + computed: {},
  11 + methods: {}
  12 + };
  13 +</script>
0 14 \ No newline at end of file
... ...
src/components/upload/upload.vue 0 → 100644
  1 +<template>
  2 +
  3 +</template>
  4 +<script>
  5 + export default {
  6 + props: {},
  7 + data () {
  8 + return {};
  9 + },
  10 + computed: {},
  11 + methods: {}
  12 + };
  13 +</script>
0 14 \ No newline at end of file
... ...
src/index.js
... ... @@ -40,6 +40,7 @@ import Timeline from &#39;./components/timeline&#39;;
40 40 import TimePicker from './components/time-picker';
41 41 import Tooltip from './components/tooltip';
42 42 import Transfer from './components/transfer';
  43 +import Upload from './components/upload';
43 44 import { Row, Col } from './components/layout';
44 45 import { Select, Option, OptionGroup } from './components/select';
45 46 import locale from './locale';
... ... @@ -103,7 +104,8 @@ const iview = {
103 104 TimelineItem: Timeline.Item,
104 105 TimePicker,
105 106 Tooltip,
106   - Transfer
  107 + Transfer,
  108 + Upload
107 109 };
108 110  
109 111 const install = function (Vue, opts = {}) {
... ...
src/styles/components/index.less
... ... @@ -37,3 +37,4 @@
37 37 @import "form";
38 38 @import "carousel";
39 39 @import "rate";
  40 +@import "upload";
40 41 \ No newline at end of file
... ...
src/styles/components/upload.less 0 → 100644
  1 +@upload-prefix-cls: ~"@{css-prefix}upload";
  2 +
  3 +.@{upload-prefix-cls} {
  4 +
  5 +}
0 6 \ No newline at end of file
... ...
test/app.vue
... ... @@ -49,6 +49,7 @@ li + li {
49 49 <li><a v-link="'/form'">Form</a></li>
50 50 <li><a v-link="'/carousel'">Carousel</a></li>
51 51 <li><a v-link="'/rate'">Rate</a></li>
  52 + <li><a v-link="'/upload'">Upload</a></li>
52 53 </ul>
53 54 </nav>
54 55 <router-view></router-view>
... ...
test/main.js
... ... @@ -145,6 +145,11 @@ router.map({
145 145 require(['./routers/rate.vue'], resolve);
146 146 }
147 147 },
  148 + '/upload': {
  149 + component: function (resolve) {
  150 + require(['./routers/upload.vue'], resolve);
  151 + }
  152 + },
148 153 });
149 154  
150 155 router.beforeEach(function () {
... ...
test/routers/upload.vue 0 → 100644
  1 +<template>
  2 +
  3 +</template>
  4 +<script>
  5 + export default {
  6 + props: {},
  7 + data () {
  8 + return {};
  9 + },
  10 + computed: {},
  11 + methods: {}
  12 + };
  13 +</script>
0 14 \ No newline at end of file
... ...