37 lines
650 B
Vue
37 lines
650 B
Vue
|
<template>
|
||
|
<view>
|
||
|
<page-head title="组件通讯示例"></page-head>
|
||
|
<view class="uni-padding-wrap">
|
||
|
<view class="uni-btn-v">
|
||
|
<reciver></reciver>
|
||
|
<sender></sender>
|
||
|
<sender-bus></sender-bus>
|
||
|
</view>
|
||
|
</view>
|
||
|
</view>
|
||
|
</template>
|
||
|
|
||
|
<script>
|
||
|
import reciver from './reciver.vue'
|
||
|
import sender from './sender.vue'
|
||
|
import senderBus from './sender-bus.vue'
|
||
|
export default {
|
||
|
components:{
|
||
|
reciver,
|
||
|
sender,
|
||
|
senderBus
|
||
|
},
|
||
|
data() {
|
||
|
return {
|
||
|
|
||
|
}
|
||
|
},
|
||
|
methods: {
|
||
|
|
||
|
}
|
||
|
}
|
||
|
</script>
|
||
|
|
||
|
<style>
|
||
|
</style>
|