init upload component
init upload component
This commit is contained in:
parent
e0f238f957
commit
3affd6f365
9 changed files with 54 additions and 1 deletions
0
src/components/upload/index.js
Normal file
0
src/components/upload/index.js
Normal file
13
src/components/upload/upload-list.vue
Normal file
13
src/components/upload/upload-list.vue
Normal file
|
@ -0,0 +1,13 @@
|
|||
<template>
|
||||
|
||||
</template>
|
||||
<script>
|
||||
export default {
|
||||
props: {},
|
||||
data () {
|
||||
return {};
|
||||
},
|
||||
computed: {},
|
||||
methods: {}
|
||||
};
|
||||
</script>
|
13
src/components/upload/upload.vue
Normal file
13
src/components/upload/upload.vue
Normal file
|
@ -0,0 +1,13 @@
|
|||
<template>
|
||||
|
||||
</template>
|
||||
<script>
|
||||
export default {
|
||||
props: {},
|
||||
data () {
|
||||
return {};
|
||||
},
|
||||
computed: {},
|
||||
methods: {}
|
||||
};
|
||||
</script>
|
|
@ -40,6 +40,7 @@ import Timeline from './components/timeline';
|
|||
import TimePicker from './components/time-picker';
|
||||
import Tooltip from './components/tooltip';
|
||||
import Transfer from './components/transfer';
|
||||
import Upload from './components/upload';
|
||||
import { Row, Col } from './components/layout';
|
||||
import { Select, Option, OptionGroup } from './components/select';
|
||||
import locale from './locale';
|
||||
|
@ -103,7 +104,8 @@ const iview = {
|
|||
TimelineItem: Timeline.Item,
|
||||
TimePicker,
|
||||
Tooltip,
|
||||
Transfer
|
||||
Transfer,
|
||||
Upload
|
||||
};
|
||||
|
||||
const install = function (Vue, opts = {}) {
|
||||
|
|
|
@ -37,3 +37,4 @@
|
|||
@import "form";
|
||||
@import "carousel";
|
||||
@import "rate";
|
||||
@import "upload";
|
5
src/styles/components/upload.less
Normal file
5
src/styles/components/upload.less
Normal file
|
@ -0,0 +1,5 @@
|
|||
@upload-prefix-cls: ~"@{css-prefix}upload";
|
||||
|
||||
.@{upload-prefix-cls} {
|
||||
|
||||
}
|
|
@ -49,6 +49,7 @@ li + li {
|
|||
<li><a v-link="'/form'">Form</a></li>
|
||||
<li><a v-link="'/carousel'">Carousel</a></li>
|
||||
<li><a v-link="'/rate'">Rate</a></li>
|
||||
<li><a v-link="'/upload'">Upload</a></li>
|
||||
</ul>
|
||||
</nav>
|
||||
<router-view></router-view>
|
||||
|
|
|
@ -145,6 +145,11 @@ router.map({
|
|||
require(['./routers/rate.vue'], resolve);
|
||||
}
|
||||
},
|
||||
'/upload': {
|
||||
component: function (resolve) {
|
||||
require(['./routers/upload.vue'], resolve);
|
||||
}
|
||||
},
|
||||
});
|
||||
|
||||
router.beforeEach(function () {
|
||||
|
|
13
test/routers/upload.vue
Normal file
13
test/routers/upload.vue
Normal file
|
@ -0,0 +1,13 @@
|
|||
<template>
|
||||
|
||||
</template>
|
||||
<script>
|
||||
export default {
|
||||
props: {},
|
||||
data () {
|
||||
return {};
|
||||
},
|
||||
computed: {},
|
||||
methods: {}
|
||||
};
|
||||
</script>
|
Loading…
Add table
Reference in a new issue