Compare commits
3 Commits
150cd1c4d0
...
85baf1d950
Author | SHA1 | Date | |
---|---|---|---|
85baf1d950 | |||
8aca717b0c | |||
44b5cc1298 |
@ -4,17 +4,21 @@
|
||||
<my-add></my-add>
|
||||
<p>-----------------------------------------</p>
|
||||
<my-sub></my-sub>
|
||||
<p>-----------------------------------------</p>
|
||||
<box></box>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import add from './components/add.vue'
|
||||
import sub from "./components/sub.vue"
|
||||
import box from './components/box.vue'
|
||||
|
||||
export default {
|
||||
components:{
|
||||
"my-add":add,
|
||||
"my-sub":sub
|
||||
"my-sub":sub,
|
||||
box
|
||||
},
|
||||
data(){
|
||||
return{
|
||||
@ -26,4 +30,4 @@ export default {
|
||||
|
||||
<style scoped>
|
||||
|
||||
</style>
|
||||
</style>
|
||||
|
20
vuex_demo1/src/components/box.vue
Normal file
20
vuex_demo1/src/components/box.vue
Normal file
@ -0,0 +1,20 @@
|
||||
<template>
|
||||
<div>
|
||||
这是box组件
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
|
||||
export default {
|
||||
data(){
|
||||
return{ }
|
||||
},
|
||||
methods:{
|
||||
|
||||
},
|
||||
computed:{
|
||||
|
||||
}
|
||||
}
|
||||
</script>
|
Loading…
x
Reference in New Issue
Block a user