Commit 3affd6f3659abcfef2cad68e5396f8cd20d76093
1 parent
e0f238f9
init upload component
init upload component
Showing
9 changed files
with
54 additions
and
1 deletions
Show diff stats
src/index.js
... | ... | @@ -40,6 +40,7 @@ import Timeline from './components/timeline'; |
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
test/app.vue
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 () { | ... | ... |