mirror of
https://github.com/labring/FastGPT.git
synced 2025-10-18 17:51:24 +00:00
perf: Dataset new ui (#2555)
* perf: dataset detail ui * fix: collection tag modal * perf: data card support markdown * fix :ts
This commit is contained in:
@@ -5,9 +5,14 @@ import { Box, Image, ImageProps } from '@chakra-ui/react';
|
||||
import { useSystem } from '../../../hooks/useSystem';
|
||||
import Loading from '../MyLoading';
|
||||
|
||||
const MyPhotoView = (props: ImageProps) => {
|
||||
const MyPhotoView = ({
|
||||
forbidImgPreview,
|
||||
...props
|
||||
}: ImageProps & { forbidImgPreview?: boolean }) => {
|
||||
const { isPc } = useSystem();
|
||||
return (
|
||||
return forbidImgPreview ? (
|
||||
<Image {...props} />
|
||||
) : (
|
||||
<PhotoProvider
|
||||
maskOpacity={0.6}
|
||||
bannerVisible={!isPc}
|
||||
|
Reference in New Issue
Block a user