forked from ddrilling/asb_cloud_front
Подготовка к обновлению AntD и мелкие исправления
This commit is contained in:
parent
91556aaf81
commit
a1f1ce1915
@ -23,7 +23,7 @@ import '@styles/layout.less'
|
||||
|
||||
const { Content, Sider } = Layout
|
||||
|
||||
export type LayoutPortalProps = LayoutProps & {
|
||||
export type LayoutPortalProps = Omit<LayoutProps, 'children'> & {
|
||||
title?: ReactNode
|
||||
sheet?: boolean
|
||||
showSelector?: boolean
|
||||
@ -68,7 +68,7 @@ const _LayoutPortal = memo(() => {
|
||||
return (
|
||||
<Layout className={`page-layout ${isAdmin ? 'page-layout-admin' : ''}`}>
|
||||
{(sider || siderProps) && (
|
||||
<Sider {...siderProps} collapsed={menuCollapsed} trigger={null} collapsible className={`menu-sider ${siderProps?.className || ''}`}>
|
||||
<Sider {...siderProps} collapsedWidth={50} collapsed={menuCollapsed} trigger={null} collapsible className={`menu-sider ${siderProps?.className || ''}`}>
|
||||
<div className={'sider-content'}>
|
||||
<button className={'sider-toogle'} onClick={() => setMenuCollapsed((prev) => !prev)}>
|
||||
{menuCollapsed ? <MenuUnfoldOutlined /> : <MenuFoldOutlined />}
|
||||
|
@ -1,7 +1,7 @@
|
||||
import { createContext, useContext, useEffect } from 'react'
|
||||
|
||||
import { LayoutPortalProps } from '@components/LayoutPortal'
|
||||
import { UserTokenDto, WellDto } from '@api'
|
||||
import { LayoutPortalProps } from './components/LayoutPortal'
|
||||
|
||||
/** Контекст текущей скважины */
|
||||
export const WellContext = createContext<[WellDto, (well: WellDto) => void]>([{}, () => {}])
|
||||
|
@ -88,7 +88,7 @@
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
width: 100%;
|
||||
height: @header-height !important;
|
||||
height: calc(@header-height - 4px) !important;
|
||||
color: @link-color;
|
||||
border: none;
|
||||
outline: none;
|
||||
|
Loading…
Reference in New Issue
Block a user