mirror of
https://github.com/labring/FastGPT.git
synced 2025-08-01 11:58:38 +00:00
style: dataset detail page style refactor (#2501)
* style: dataset detail page style refactor * remove px * remove py px px * change shadow * style: 2期联调结束 * 优化部分代码
This commit is contained in:
@@ -85,7 +85,7 @@ const EditResourceModal = ({
|
||||
w={'2rem'}
|
||||
h={'2rem'}
|
||||
cursor={'pointer'}
|
||||
borderRadius={'md'}
|
||||
borderRadius={'sm'}
|
||||
onClick={onOpenSelectFile}
|
||||
/>
|
||||
</MyTooltip>
|
||||
|
@@ -15,9 +15,10 @@ const DatasetTypeTag = ({ type, ...props }: { type: `${DatasetTypeEnum}` } & Fle
|
||||
bg={'myGray.100'}
|
||||
borderWidth={'1px'}
|
||||
borderColor={'myGray.200'}
|
||||
px={4}
|
||||
py={'6px'}
|
||||
borderRadius={'md'}
|
||||
px={3}
|
||||
py={1.5}
|
||||
h={'1.75rem'}
|
||||
borderRadius={'sm'}
|
||||
fontSize={'xs'}
|
||||
alignItems={'center'}
|
||||
{...props}
|
||||
|
@@ -1,4 +1,4 @@
|
||||
import { Box, BoxProps } from '@chakra-ui/react';
|
||||
import { Box, BoxProps, ButtonProps } from '@chakra-ui/react';
|
||||
import MySelect from '@fastgpt/web/components/common/MySelect';
|
||||
import React from 'react';
|
||||
import type { PermissionValueType } from '@fastgpt/global/support/permission/type';
|
||||
@@ -20,6 +20,7 @@ type Props = Omit<BoxProps, 'onChange'> & {
|
||||
writePer?: PermissionValueType;
|
||||
onChange: (v: PermissionValueType) => Promise<any> | any;
|
||||
isInheritPermission?: boolean;
|
||||
isDisabled?: boolean;
|
||||
hasParent?: boolean;
|
||||
};
|
||||
|
||||
@@ -31,6 +32,7 @@ const DefaultPermissionList = ({
|
||||
onChange,
|
||||
isInheritPermission = false,
|
||||
hasParent,
|
||||
isDisabled = false,
|
||||
...styles
|
||||
}: Props) => {
|
||||
const { ConfirmModal, openConfirm } = useConfirm({});
|
||||
@@ -63,6 +65,8 @@ const DefaultPermissionList = ({
|
||||
return onRequestChange(per);
|
||||
}
|
||||
}}
|
||||
isDisabled={isDisabled}
|
||||
fontSize={styles?.fontSize}
|
||||
/>
|
||||
</Box>
|
||||
<ConfirmModal />
|
||||
|
Reference in New Issue
Block a user