Merge pull request #208 from APIParkLab/feature/1.5-cx

feat: feature/1.5-Data Integration
This commit is contained in:
ningyv
2025-02-20 11:37:47 +08:00
committed by GitHub
2 changed files with 10 additions and 3 deletions
@@ -22,6 +22,7 @@ class InsidePageProps {
headerClassName?: string = ''
/** 整个页面滚动 */
scrollPage?: boolean = true
scrollInsidePage?: boolean = false
customPadding?: boolean
customBtn?: ReactNode
}
@@ -42,6 +43,7 @@ const InsidePage: FC<InsidePageProps> = ({
contentClassName = '',
headerClassName = '',
scrollPage = true,
scrollInsidePage = false,
customPadding = false,
customBtn
}) => {
@@ -51,7 +53,9 @@ const InsidePage: FC<InsidePageProps> = ({
navigate(backUrl || '/')
}
return (
<div className={`flex overflow-hidden flex-col flex-1 h-full ${className}`}>
<div
className={`flex flex-col flex-1 h-full ${scrollInsidePage ? 'overflow-auto' : 'overflow-hidden'} ${className}`}
>
{showBanner && (
<div
className={`border-[0px] mr-PAGE_INSIDE_X ${showBorder ? 'border-solid border-b-[1px] border-BORDER' : ''} ${headerClassName}`}
@@ -100,7 +104,9 @@ const InsidePage: FC<InsidePageProps> = ({
)}
</div>
)}
<div className={`h-full ${scrollPage ? 'overflow-hidden' : 'overflow-auto'} ${contentClassName || ''}`}>
<div
className={`h-full ${scrollInsidePage ? 'overflow-visible' : scrollPage ? 'overflow-hidden' : 'overflow-auto'} ${contentClassName || ''}`}
>
{children}
</div>
</div>
@@ -185,12 +185,13 @@ export default function Guide() {
}
showBorder={false}
scrollPage={false}
scrollInsidePage={true}
customPadding={true}
headerClassName="pt-[30px] pl-[40px]"
contentClassName=" w-full pr-PAGE_INSIDE_X pb-PAGE_INSIDE_B pl-[40px]"
>
<AIModelGuide></AIModelGuide>
<div className="flex flex-col gap-[15px]">
<div className="flex flex-col gap-[15px] pb-PAGE_INSIDE_B">
{showGuide && (
<Collapse
size="large"