mirror of
				https://github.com/soybeanjs/soybean-admin.git
				synced 2025-11-04 15:53:43 +08:00 
			
		
		
		
	fix(projects): fix menu-toggler zIndex
This commit is contained in:
		@@ -9,9 +9,13 @@ interface Props {
 | 
				
			|||||||
  collapsed?: boolean;
 | 
					  collapsed?: boolean;
 | 
				
			||||||
  /** Arrow style icon */
 | 
					  /** Arrow style icon */
 | 
				
			||||||
  arrowIcon?: boolean;
 | 
					  arrowIcon?: boolean;
 | 
				
			||||||
 | 
					  zIndex?: number;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
const props = defineProps<Props>();
 | 
					const props = withDefaults(defineProps<Props>(), {
 | 
				
			||||||
 | 
					  arrowIcon: false,
 | 
				
			||||||
 | 
					  zIndex: 98
 | 
				
			||||||
 | 
					});
 | 
				
			||||||
 | 
					
 | 
				
			||||||
type NumberBool = 0 | 1;
 | 
					type NumberBool = 0 | 1;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -39,7 +43,7 @@ const icon = computed(() => {
 | 
				
			|||||||
  <ButtonIcon
 | 
					  <ButtonIcon
 | 
				
			||||||
    :tooltip-content="collapsed ? $t('icon.expand') : $t('icon.collapse')"
 | 
					    :tooltip-content="collapsed ? $t('icon.expand') : $t('icon.collapse')"
 | 
				
			||||||
    tooltip-placement="bottom-start"
 | 
					    tooltip-placement="bottom-start"
 | 
				
			||||||
    :z-index="99"
 | 
					    :z-index="zIndex"
 | 
				
			||||||
  >
 | 
					  >
 | 
				
			||||||
    <SvgIcon :icon="icon" />
 | 
					    <SvgIcon :icon="icon" />
 | 
				
			||||||
  </ButtonIcon>
 | 
					  </ButtonIcon>
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -92,6 +92,7 @@ function handleClickMixMenu(menu: App.Global.Menu) {
 | 
				
			|||||||
    <MenuToggler
 | 
					    <MenuToggler
 | 
				
			||||||
      arrow-icon
 | 
					      arrow-icon
 | 
				
			||||||
      :collapsed="appStore.siderCollapse"
 | 
					      :collapsed="appStore.siderCollapse"
 | 
				
			||||||
 | 
					      :z-index="99"
 | 
				
			||||||
      :class="{ 'text-white:88 !hover:text-white': inverted }"
 | 
					      :class="{ 'text-white:88 !hover:text-white': inverted }"
 | 
				
			||||||
      @click="appStore.toggleSiderCollapse"
 | 
					      @click="appStore.toggleSiderCollapse"
 | 
				
			||||||
    />
 | 
					    />
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user