forked from easy-team/egg-vue-webpack-boilerplate
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdynamic.vue
37 lines (36 loc) · 772 Bytes
/
dynamic.vue
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
<template>
<layout>
<div>
<div class="first">动态动态渲染</div>
<div class="second">
<!-- <component :is="name"></component> -->
<async></async>
</div>
</div>
</layout>
</template>
<style lang="scss">
@import "./dynamic.scss";
</style>
<script type="text/babel">
// import loading from './component/loading.vue'
// import error from './component/error.vue'
// const async = () => ({
// component: () => import('./component/async.vue'),
// loading,
// error,
// delay: 100,
// timeout: 1000
// });
export default {
name: 'dynamic',
data () {
return {
show: true
}
},
components: {
async : () => import('./component/async.vue')
}
}
</script>