mirror of
https://github.com/labring/FastGPT.git
synced 2025-07-23 05:12:39 +00:00
4.8.10 workflow perf (#2596)
* perf: run plugin variables init * perf: init free plan * perf: dataset data ui * perf: workflow theme * perf: plugin input modal ui * perf: workflow dispatch * fix: account ui * feat: 4810 doc
This commit is contained in:
@@ -33,7 +33,7 @@ export type Props = {
|
||||
icon?: IconNameType | string;
|
||||
label: string | React.ReactNode;
|
||||
description?: string;
|
||||
onClick: () => any;
|
||||
onClick?: () => any;
|
||||
}[];
|
||||
}[];
|
||||
};
|
||||
@@ -170,8 +170,10 @@ const MyMenu = ({
|
||||
{...menuItemStyles}
|
||||
onClick={(e) => {
|
||||
e.stopPropagation();
|
||||
setIsOpen(false);
|
||||
child.onClick && child.onClick();
|
||||
if (child.onClick) {
|
||||
setIsOpen(false);
|
||||
child.onClick();
|
||||
}
|
||||
}}
|
||||
color={child.isActive ? 'primary.700' : 'myGray.600'}
|
||||
whiteSpace={'pre-wrap'}
|
||||
|
@@ -105,7 +105,7 @@ const MultipleRowSelect = ({
|
||||
justifyContent={'space-between'}
|
||||
width={'100%'}
|
||||
rightIcon={<ChevronDownIcon />}
|
||||
variant={'whiteFlow'}
|
||||
variant={'whiteBase'}
|
||||
_active={{
|
||||
transform: 'none'
|
||||
}}
|
||||
|
@@ -194,28 +194,6 @@ const Button = defineStyleConfig({
|
||||
color: 'myGray.600 !important'
|
||||
}
|
||||
},
|
||||
whiteFlow: {
|
||||
color: 'myGray.600',
|
||||
border: '1px solid',
|
||||
borderColor: 'myGray.200',
|
||||
height: '40px',
|
||||
bg: 'white',
|
||||
px: '12px',
|
||||
py: '0',
|
||||
borderRadius: '6px',
|
||||
transition: 'background 0.1s',
|
||||
_hover: {
|
||||
color: 'primary.600',
|
||||
background: 'primary.1',
|
||||
borderColor: 'primary.300'
|
||||
},
|
||||
_active: {
|
||||
color: 'primary.600'
|
||||
},
|
||||
_disabled: {
|
||||
color: 'myGray.600 !important'
|
||||
}
|
||||
},
|
||||
whiteDanger: {
|
||||
color: 'myGray.600',
|
||||
border: '1px solid',
|
||||
|
Reference in New Issue
Block a user