父页面:
<view>
<cs :logo="arr"></cs>
</view>
import cs from './cs.vue'
export default {
components: {
cs
},
data() {
return {
arr: 1
}
}
}
子组件:
<view>{{logo}}</view>
<script>
export default {
props: ['logo']
}
</script>