perf: template

This commit is contained in:
archer
2023-07-23 16:08:00 +08:00
parent 5e0b147048
commit b7d18e38d1
7 changed files with 923 additions and 1338 deletions

View File

@@ -41,15 +41,19 @@ const NodeCard = ({
</MyTooltip>
)}
<Box flex={1} />
<MyIcon
<Flex
className={'nodrag'}
name="delete"
cursor={'pointer'}
w={'22px'}
h={'22px'}
alignItems={'center'}
justifyContent={'center'}
color={'myGray.600'}
w={'16px'}
_hover={{ color: 'red.600' }}
cursor={'pointer'}
onClick={() => onDelNode(moduleId)}
/>
>
<MyIcon name="delete" w={'16px'} />
</Flex>
</Flex>
{children}
</Box>

View File

@@ -283,7 +283,6 @@ const AppEdit = ({ app, fullScreen, onFullScreen }: Props) => {
useEffect(() => {
initData(JSON.parse(JSON.stringify(app)));
}, [app, initData]);
console.log(flow2AppModules());
return (
<>