<template>
  <el-aside class="aside" width="200px">
    <el-input v-model.trim="filterText" placeholder="输入关键字进行过滤" />
    <el-tree
      class="filter-tree"
      :data="treedata"
      :props="defaultProps"
      default-expand-all
      :filter-node-method="filterNode"
    />
  </el-aside>
</template>

<script>
export default {
  props: {
    filterText: {
      type: String,
      default: ''
    },
    treedata: {
      type: String,
      default: ''
    }
  }
}
</script>
