|  | @ -11,7 +11,7 @@ | 
		
	
		
			
				|  |  |     <el-divider v-if="list.length" plain orientation="left">图层</el-divider> |  |  |     <el-divider v-if="list.length" plain orientation="left">图层</el-divider> | 
		
	
		
			
				|  |  |     <div class="layer-box"> |  |  |     <div class="layer-box"> | 
		
	
		
			
				|  |  |       <div |  |  |       <div | 
		
	
		
			
				|  |  |         v-for="item in list" |  |  |  | 
		
	
		
			
				|  |  |  |  |  |         v-for="(item,index) in list" | 
		
	
		
			
				|  |  |         :key="item.id" |  |  |         :key="item.id" | 
		
	
		
			
				|  |  |         :class="isSelect(item) && 'active'" |  |  |         :class="isSelect(item) && 'active'" | 
		
	
		
			
				|  |  |         @click="select(item.id)" |  |  |         @click="select(item.id)" | 
		
	
	
		
			
				|  | @ -21,8 +21,13 @@ | 
		
	
		
			
				|  |  |           placement="left" |  |  |           placement="left" | 
		
	
		
			
				|  |  |         > |  |  |         > | 
		
	
		
			
				|  |  |           <div class="ellipsis"> |  |  |           <div class="ellipsis"> | 
		
	
		
			
				|  |  |  |  |  |             <div> | 
		
	
		
			
				|  |  |               <span :class=" isSelect(item) && 'active' " v-html="iconType(item.type)" /> | {{ textType(item.type, item) }} |  |  |               <span :class=" isSelect(item) && 'active' " v-html="iconType(item.type)" /> | {{ textType(item.type, item) }} | 
		
	
		
			
				|  |  |             </div> |  |  |             </div> | 
		
	
		
			
				|  |  |  |  |  |             <div class="deleteImg" @click="deleteImg(item.id,index)"> | 
		
	
		
			
				|  |  |  |  |  |               <i class="el-icon-delete" /> | 
		
	
		
			
				|  |  |  |  |  |             </div> | 
		
	
		
			
				|  |  |  |  |  |           </div> | 
		
	
		
			
				|  |  |         </el-tooltip> |  |  |         </el-tooltip> | 
		
	
		
			
				|  |  |       </div> |  |  |       </div> | 
		
	
		
			
				|  |  |     </div> |  |  |     </div> | 
		
	
	
		
			
				|  | @ -54,6 +59,11 @@ export default { | 
		
	
		
			
				|  |  |     this.canvas.c.on('after:render', this.getList) |  |  |     this.canvas.c.on('after:render', this.getList) | 
		
	
		
			
				|  |  |   }, |  |  |   }, | 
		
	
		
			
				|  |  |   methods: { |  |  |   methods: { | 
		
	
		
			
				|  |  |  |  |  |     deleteImg(id, index) { | 
		
	
		
			
				|  |  |  |  |  |       this.list.splice(index, 1) | 
		
	
		
			
				|  |  |  |  |  |       const info = this.canvas.c.getObjects().find(item => item.id === id) | 
		
	
		
			
				|  |  |  |  |  |       this.canvas.c.remove(info) | 
		
	
		
			
				|  |  |  |  |  |     }, | 
		
	
		
			
				|  |  |     // 是否选中元素 |  |  |     // 是否选中元素 | 
		
	
		
			
				|  |  |     isSelect(item) { |  |  |     isSelect(item) { | 
		
	
		
			
				|  |  |       return (item.id === this.mSelectId || this.mSelectIds.includes(item.id)) |  |  |       return (item.id === this.mSelectId || this.mSelectIds.includes(item.id)) | 
		
	
	
		
			
				|  | @ -163,6 +173,8 @@ export default { | 
		
	
		
			
				|  |  |     text-overflow: ellipsis; |  |  |     text-overflow: ellipsis; | 
		
	
		
			
				|  |  |     white-space: nowrap; |  |  |     white-space: nowrap; | 
		
	
		
			
				|  |  |     cursor: pointer; |  |  |     cursor: pointer; | 
		
	
		
			
				|  |  |  |  |  |     display: flex; | 
		
	
		
			
				|  |  |  |  |  |     justify-content: space-between; | 
		
	
		
			
				|  |  |   } |  |  |   } | 
		
	
		
			
				|  |  |   & > div { |  |  |   & > div { | 
		
	
		
			
				|  |  |     padding: 0px 5px; |  |  |     padding: 0px 5px; | 
		
	
	
		
			
				|  | @ -186,6 +198,10 @@ svg { | 
		
	
		
			
				|  |  |   background: #29292a; |  |  |   background: #29292a; | 
		
	
		
			
				|  |  |   color: #fff; |  |  |   color: #fff; | 
		
	
		
			
				|  |  | } |  |  | } | 
		
	
		
			
				|  |  |  |  |  | .deleteImg{ | 
		
	
		
			
				|  |  |  |  |  |   color: red; | 
		
	
		
			
				|  |  |  |  |  |   font-size: 18px; | 
		
	
		
			
				|  |  |  |  |  | } | 
		
	
		
			
				|  |  | </style> |  |  | </style> | 
		
	
		
			
				|  |  | 
 |  |  | 
 | 
		
	
		
			
				|  |  | <style lang="less"> |  |  | <style lang="less"> | 
		
	
	
		
			
				|  | 
 |