45 lines
690 B
Vue
45 lines
690 B
Vue
|
|
<template>
|
||
|
|
<div class="AppBuilding">
|
||
|
|
<component
|
||
|
|
:is="component"
|
||
|
|
@change="onChange"
|
||
|
|
:params="params">
|
||
|
|
</component>
|
||
|
|
</div>
|
||
|
|
</template>
|
||
|
|
|
||
|
|
<script>
|
||
|
|
import Detail from './components/detail'
|
||
|
|
import Add from './components/add'
|
||
|
|
import List from './components/list'
|
||
|
|
|
||
|
|
export default {
|
||
|
|
name: 'AppBuilding',
|
||
|
|
appName: '以房找人',
|
||
|
|
|
||
|
|
data() {
|
||
|
|
return {
|
||
|
|
component: 'Add',
|
||
|
|
params: {}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
|
||
|
|
components: { Detail, Add, List },
|
||
|
|
|
||
|
|
methods: {
|
||
|
|
onChange(e) {
|
||
|
|
this.params = e.params
|
||
|
|
this.component = e.type
|
||
|
|
}
|
||
|
|
},
|
||
|
|
}
|
||
|
|
</script>
|
||
|
|
|
||
|
|
<style lang="scss" scoped>
|
||
|
|
uni-page-body{
|
||
|
|
height: 100%;
|
||
|
|
}
|
||
|
|
.AppBuilding{
|
||
|
|
height: 100%;
|
||
|
|
}
|
||
|
|
</style>
|