index.vue 654 Bytes
Newer Older
陈浩玮's avatar
设备  
陈浩玮 committed
1
<template>
陈浩玮's avatar
陈浩玮 committed
2 3 4 5 6
    <a-row :gutter="10">
        <a-col :span="8">
            <LeftTree v-model="treeVale" />
        </a-col>
        <a-col :span="16">
陈浩玮's avatar
陈浩玮 committed
7
            <RightBox v-if="!isObjEmpty(treeVale)" :info="treeVale" />
陈浩玮's avatar
陈浩玮 committed
8 9
        </a-col>
    </a-row>
陈浩玮's avatar
设备  
陈浩玮 committed
10 11 12
</template>

<script>
陈浩玮's avatar
陈浩玮 committed
13 14 15
import RightBox from './Right/RightBox.vue';
import LeftTree from './Left/LeftTree.vue';
import { isObjEmpty } from '@/utils';
陈浩玮's avatar
陈浩玮 committed
16 17

export default {
陈浩玮's avatar
陈浩玮 committed
18
    components: { RightBox, LeftTree },
陈浩玮's avatar
陈浩玮 committed
19 20 21
    data() {
        return {
            treeVale: {},
陈浩玮's avatar
陈浩玮 committed
22
            isObjEmpty,
陈浩玮's avatar
陈浩玮 committed
23 24
        };
    },
陈浩玮's avatar
陈浩玮 committed
25 26 27 28 29
    watch: {
        treeVale(val) {
            console.log(val);
        },
    },
陈浩玮's avatar
陈浩玮 committed
30
};
陈浩玮's avatar
设备  
陈浩玮 committed
31
</script>