init Tree component

init Tree component
This commit is contained in:
梁灏 2017-02-06 11:24:03 +08:00
parent ff16f09614
commit 89f2ba8bad
9 changed files with 56 additions and 1 deletions

View file

@ -0,0 +1,2 @@
import Tree from './tree.vue';
export default Tree;

View file

@ -0,0 +1,13 @@
<template>
</template>
<script>
export default {
props: {},
data () {
return {};
},
computed: {},
methods: {}
};
</script>

View file

@ -0,0 +1,13 @@
<template>
</template>
<script>
export default {
props: {},
data () {
return {};
},
computed: {},
methods: {}
};
</script>

View file

@ -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 Tree from './components/tree';
import Upload from './components/upload';
import { Row, Col } from './components/layout';
import { Select, Option, OptionGroup } from './components/select';
@ -105,6 +106,7 @@ const iview = {
TimePicker,
Tooltip,
Transfer,
Tree,
Upload
};

View file

@ -37,4 +37,5 @@
@import "form";
@import "carousel";
@import "rate";
@import "upload";
@import "upload";
@import "tree";

View file

@ -0,0 +1,5 @@
@tree-prefix-cls: ~"@{css-prefix}tree";
.@{tree-prefix-cls} {
}

View file

@ -50,6 +50,7 @@ li + 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>
<li><a v-link="'/tree'">Tree</a></li>
</ul>
</nav>
<router-view></router-view>

View file

@ -150,6 +150,11 @@ router.map({
require(['./routers/upload.vue'], resolve);
}
},
'/tree': {
component: function (resolve) {
require(['./routers/tree.vue'], resolve);
}
},
});
router.beforeEach(function () {

13
test/routers/tree.vue Normal file
View file

@ -0,0 +1,13 @@
<template>
</template>
<script>
export default {
props: {},
data () {
return {};
},
computed: {},
methods: {}
};
</script>