Authored by 郭成尧

news

<div class="index">
<index-box></index-box>
</div>
... ...
... ... @@ -4,3 +4,18 @@
* Date: 2016/7/26
* Time: 17:37
*/
const Vue = require('yoho-vue');
const lazyload = require('yoho-vue-lazyload');
const infinitScroll = require('yoho-vue-infinite-scroll');
const indexBox = require('news/index-box.vue');
Vue.use(lazyload);
Vue.use(infinitScroll);
new Vue({
el: '#index',
components: {
indexBox
}
});
... ...
<template>
<div></div>
</template>
<style>
</style>
<script>
module.exports = {
data() {
return {
msg: 'hello vue'
};
}
};
</script>
... ...