mirror of
				https://github.com/soybeanjs/soybean-admin.git
				synced 2025-11-04 07:43:42 +08:00 
			
		
		
		
	@@ -1,13 +1,15 @@
 | 
				
			|||||||
<template>
 | 
					<template>
 | 
				
			||||||
  <div style="flex: 1; overflow: hidden; padding: 0 10px">
 | 
					  <div class="flex-1-hidden h-full px-10px">
 | 
				
			||||||
    <n-scrollbar :x-scrollable="true" class="flex-1-hidden">
 | 
					    <n-scrollbar :x-scrollable="true" class="flex-1-hidden h-full" content-class="h-full">
 | 
				
			||||||
      <n-menu
 | 
					      <div class="flex-y-center h-full">
 | 
				
			||||||
        :value="activeKey"
 | 
					        <n-menu
 | 
				
			||||||
        mode="horizontal"
 | 
					          :value="activeKey"
 | 
				
			||||||
        :options="menus"
 | 
					          mode="horizontal"
 | 
				
			||||||
        :inverted="theme.header.inverted"
 | 
					          :options="menus"
 | 
				
			||||||
        @update:value="handleUpdateMenu"
 | 
					          :inverted="theme.header.inverted"
 | 
				
			||||||
      />
 | 
					          @update:value="handleUpdateMenu"
 | 
				
			||||||
 | 
					        />
 | 
				
			||||||
 | 
					      </div>
 | 
				
			||||||
    </n-scrollbar>
 | 
					    </n-scrollbar>
 | 
				
			||||||
  </div>
 | 
					  </div>
 | 
				
			||||||
</template>
 | 
					</template>
 | 
				
			||||||
@@ -33,20 +35,7 @@ function handleUpdateMenu(_key: string, item: MenuOption) {
 | 
				
			|||||||
}
 | 
					}
 | 
				
			||||||
</script>
 | 
					</script>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
<style lang="scss" scoped>
 | 
					<style scoped>
 | 
				
			||||||
:deep(.n-menu-item-content__icon) {
 | 
					 | 
				
			||||||
  font-size: 16px !important;
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
:deep(.n-menu .n-menu-item) {
 | 
					 | 
				
			||||||
  margin-top: 0;
 | 
					 | 
				
			||||||
  // margin-bottom: 5px;
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
:deep(.n-menu .n-menu-item::before) {
 | 
					 | 
				
			||||||
  left: 0;
 | 
					 | 
				
			||||||
  right: 0;
 | 
					 | 
				
			||||||
  border-radius: 3px;
 | 
					 | 
				
			||||||
  margin: 0 5px;
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
:deep(.n-menu-item-content-header) {
 | 
					:deep(.n-menu-item-content-header) {
 | 
				
			||||||
  overflow: inherit !important;
 | 
					  overflow: inherit !important;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user