mirror of
https://github.com/labring/FastGPT.git
synced 2025-07-23 05:12:39 +00:00
4.8.1 test-fix (#1561)
This commit is contained in:
@@ -67,7 +67,12 @@ const MyRightDrawer = ({
|
||||
<DrawerCloseButton position={'relative'} fontSize={'sm'} top={0} right={0} />
|
||||
</Flex>
|
||||
|
||||
<DrawerBody overflow={'hidden'} px={props?.px}>
|
||||
<DrawerBody
|
||||
overflowY={props?.overflowY || 'auto'}
|
||||
display={'flex'}
|
||||
flexDirection={'column'}
|
||||
px={props?.px ?? 4}
|
||||
>
|
||||
{children}
|
||||
<Loading loading={isLoading} fixed={false} />
|
||||
</DrawerBody>
|
||||
|
@@ -98,6 +98,7 @@ const MySelect = (
|
||||
</MenuButton>
|
||||
|
||||
<MenuList
|
||||
className={props.className}
|
||||
minW={(() => {
|
||||
const w = ref.current?.clientWidth;
|
||||
if (w) {
|
||||
|
@@ -3,12 +3,12 @@ import MyTooltip from '.';
|
||||
import { IconProps, QuestionOutlineIcon } from '@chakra-ui/icons';
|
||||
|
||||
type Props = IconProps & {
|
||||
label?: string;
|
||||
label?: string | React.ReactNode;
|
||||
};
|
||||
|
||||
const QuestionTip = ({ label, ...props }: Props) => {
|
||||
const QuestionTip = ({ label, maxW, ...props }: Props) => {
|
||||
return (
|
||||
<MyTooltip label={label}>
|
||||
<MyTooltip label={label} maxW={maxW}>
|
||||
<QuestionOutlineIcon {...props} />
|
||||
</MyTooltip>
|
||||
);
|
||||
|
@@ -3,6 +3,7 @@ import { WorkflowIOValueTypeEnum } from '@fastgpt/global/core/workflow/constants
|
||||
export type EditorVariablePickerType = {
|
||||
key: string;
|
||||
label: string;
|
||||
required?: boolean;
|
||||
icon?: string;
|
||||
valueType?: WorkflowIOValueTypeEnum;
|
||||
};
|
||||
|
9
packages/web/hooks/useRefresh.ts
Normal file
9
packages/web/hooks/useRefresh.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
import { useBoolean } from 'ahooks';
|
||||
|
||||
export const useRefresh = () => {
|
||||
const [_, { toggle }] = useBoolean();
|
||||
|
||||
return {
|
||||
refresh: toggle
|
||||
};
|
||||
};
|
Reference in New Issue
Block a user