<template>
  <div>
    <el-form-item label="显示复选框">
      <el-switch v-model="main.activeOption.showCheckbox"></el-switch>
    </el-form-item>
    <el-form-item label="默认展开所有">
      <el-switch v-model="main.activeOption.defaultExpandAll"></el-switch>
    </el-form-item>
    <el-form-item label="点击节点展开">
      <el-switch v-model="main.activeOption.expandOnClickNode"></el-switch>
    </el-form-item>
    <el-form-item label="父子不关联">
      <el-switch v-model="main.activeOption.checkStrictly"></el-switch>
    </el-form-item>
    <el-form-item label="手风琴模式">
      <el-switch v-model="main.activeOption.accordion"></el-switch>
    </el-form-item>
  </div>
</template>

<script>
export default {
  name: 'tree',
  inject: ["main"]
}
</script> 