<template>
    <el-tree
        ref="catalogTree"
        class="catalog-tree other-tree"
        empty-text="暂无图库"
        :data="ownClassifyList"
        node-key="nodeKeyId"
        :expand-on-click-node="false"
        @current-change="(data,node)=>{nodeChange(data,node)}"
        >
        <div class="custom-tree-node" slot-scope="{ data }">
            <span class="tree-label">{{ data.name }}</span>
            <div class="right-item right-item-box" >
                <el-dropdown @command="handleCommand" trigger="click" v-if="data.MyChartClassifyId">
                <span class="el-dropdown-link"> 
                    <i class="el-icon-more" style="font-size: 16px;transform: rotate(90deg);cursor: pointer"/>
                </span>
                <el-dropdown-menu slot="dropdown">
                    <el-dropdown-item :command="{key:'copy'}" :disabled="select_classify_userid === roleId"><!-- 复制 -->{{$t('MyEtaPage.option_op_copy')}}</el-dropdown-item>
                </el-dropdown-menu>
                </el-dropdown>
            </div>
        </div>
    </el-tree>
</template>

<script>
import { edbCollectInterface } from '@/api/modules/chartApi'
export default {
  props: {
    data: {
      type: Object
    },
  },
  data() {
    return {
      ownClassifyList: []



    }
  }
}
</script>

<style>

</style>