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:
@@ -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