<!--左侧工具栏 -- 图例列表-->
<template>
  <div class="lengend-list">
    <!-- 基础图例 -->
    <addBaseItem v-if="chiceStatus == 0"></addBaseItem>
    <!-- 设备类 -->
    <!-- 管线类 -->
    <pipeList v-if="chiceStatus == 1"></pipeList>

    <equipmentList
      v-if="chiceStatus == 2"
      @openAddEqupModle="showAddItemModel = true"
    ></equipmentList>

    <!-- 新增实例对象 -->
    <addItemModel
      @closeModel="showAddItemModel = false"
      :showAddItemModel="showAddItemModel"
    ></addItemModel>
  </div>
</template>
<script>
import pipeList from "./pipeList.vue";
import equipmentList from "./equipmentList.vue";
import addItemModel from "./addItemModel.vue";
import addBaseItem from "./addBaseItem.vue";
export default {
  components: { pipeList, equipmentList, addItemModel, addBaseItem },
  props: ["chiceStatus"],
  data() {
    return {
      showAddItemModel: false,
      // choiceLegend: "" //选中绘制类型
    };
  },
};
</script>
<style scoped lang="less">
.lengend-list {
  width: 100%;
  height: 100%;
  position: relative;
}
</style>