feat: 修复菜单 collapse 动画
This commit is contained in:
		
							parent
							
								
									c8b0457339
								
							
						
					
					
						commit
						388b5b56f1
					
				@ -67,4 +67,4 @@ const classes = computed(() => {
 | 
				
			|||||||
    ></i>
 | 
					    ></i>
 | 
				
			||||||
    <slot v-else></slot>
 | 
					    <slot v-else></slot>
 | 
				
			||||||
  </button>
 | 
					  </button>
 | 
				
			||||||
</template>
 | 
					</template>
 | 
				
			||||||
 | 
				
			|||||||
@ -170,8 +170,9 @@
 | 
				
			|||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
.layui-nav-tree {
 | 
					.layui-nav-tree {
 | 
				
			||||||
  width: 200px;
 | 
					 | 
				
			||||||
  padding: 0;
 | 
					  padding: 0;
 | 
				
			||||||
 | 
					  width: 200px;
 | 
				
			||||||
 | 
					  transition: all .3s;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
.layui-nav-tree .layui-nav-item {
 | 
					.layui-nav-tree .layui-nav-item {
 | 
				
			||||||
@ -187,7 +188,7 @@
 | 
				
			|||||||
  text-overflow: ellipsis;
 | 
					  text-overflow: ellipsis;
 | 
				
			||||||
  overflow: hidden;
 | 
					  overflow: hidden;
 | 
				
			||||||
  white-space: nowrap;
 | 
					  white-space: nowrap;
 | 
				
			||||||
  padding: 5px 30px 5px 30px;
 | 
					  padding: 5px 23px 5px 23px;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
.layui-nav-tree .layui-nav-item * {
 | 
					.layui-nav-tree .layui-nav-item * {
 | 
				
			||||||
@ -202,6 +203,10 @@
 | 
				
			|||||||
  padding: 5px 0;
 | 
					  padding: 5px 0;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					.layui-nav-tree .layui-nav-item span {
 | 
				
			||||||
 | 
					  margin-left: 3px;
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
.layui-nav-tree .layui-nav-bar {
 | 
					.layui-nav-tree .layui-nav-bar {
 | 
				
			||||||
  width: 5px;
 | 
					  width: 5px;
 | 
				
			||||||
  height: 0;
 | 
					  height: 0;
 | 
				
			||||||
@ -319,7 +324,7 @@
 | 
				
			|||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
.layui-nav-tree.inverted .layui-this > a {
 | 
					.layui-nav-tree.inverted .layui-this > a {
 | 
				
			||||||
  padding: 5px 24px 5px 24px;
 | 
					  padding: 5px 17px 5px 17px;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
.layui-nav-tree.level {
 | 
					.layui-nav-tree.level {
 | 
				
			||||||
 | 
				
			|||||||
@ -64,7 +64,8 @@ watch(
 | 
				
			|||||||
      // 赋值所有打开
 | 
					      // 赋值所有打开
 | 
				
			||||||
      emit("update:openKeys", oldOpenKeys.value);
 | 
					      emit("update:openKeys", oldOpenKeys.value);
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
  }, { immediate: true}
 | 
					  },
 | 
				
			||||||
 | 
					  { immediate: true }
 | 
				
			||||||
);
 | 
					);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
provide("isTree", isTree);
 | 
					provide("isTree", isTree);
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user