Skip to content

Commit

Permalink
🐛 fix: Fix type
Browse files Browse the repository at this point in the history
  • Loading branch information
canisminor1990 committed Jun 8, 2024
1 parent 526580b commit 6897be9
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 24 deletions.
44 changes: 22 additions & 22 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -74,27 +74,27 @@
},
"dependencies": {
"@ant-design/colors": "^7.0.2",
"@ant-design/icons": "^5.3.6",
"@babel/runtime": "^7.24.4",
"@ant-design/icons": "^5.3.7",
"@babel/runtime": "^7.24.7",
"@dnd-kit/core": "^6.1.0",
"@dnd-kit/modifiers": "^7.0.0",
"@dnd-kit/sortable": "^8.0.0",
"@dnd-kit/utilities": "^3.2.2",
"@emoji-mart/data": "^1.1.2",
"@emoji-mart/data": "^1.2.1",
"@emoji-mart/react": "^1.1.1",
"@floating-ui/react": "^0.26.12",
"@floating-ui/react": "^0.26.16",
"@giscus/react": "^3.0.0",
"@lobehub/emojilib": "latest",
"@react-spring/web": "^9.7.3",
"@shikijs/transformers": "^1.3.0",
"@splinetool/runtime": "^0.9.232",
"ahooks": "^3.7.11",
"@shikijs/transformers": "^1.6.3",
"@splinetool/runtime": "^0.9.526",
"ahooks": "^3.8.0",
"chroma-js": "^2.4.2",
"dayjs": "^1.11.10",
"emoji-mart": "^5.5.2",
"dayjs": "^1.11.11",
"emoji-mart": "^5.6.0",
"emoji-regex": "^10.3.0",
"fast-deep-equal": "^3.1.3",
"immer": "^10.0.4",
"immer": "^10.1.1",
"leva": "^0.9.35",
"lodash-es": "^4.17.21",
"lucide-react": "latest",
Expand All @@ -103,19 +103,19 @@
"prism-react-renderer": "^2.3.1",
"query-string": "^9.0.0",
"rc-footer": "^0.6.8",
"re-resizable": "^6.9.11",
"re-resizable": "^6.9.17",
"react-error-boundary": "^4.0.13",
"react-layout-kit": "^1.9.0",
"react-markdown": "^8.0.7",
"react-merge-refs": "^2.1.1",
"react-rnd": "^10.4.1",
"react-rnd": "^10.4.11",
"react-simple-code-editor": "^0.13.1",
"rehype-katex": "^6.0.3",
"rehype-raw": "^7.0.0",
"remark-breaks": "^4.0.0",
"remark-gfm": "^3.0.1",
"remark-math": "^5.1.1",
"shiki": "^1.3.0",
"shiki": "^1.6.3",
"swr": "^2.2.5",
"ts-md5": "^1.3.1",
"url-join": "^5.0.0",
Expand All @@ -125,7 +125,7 @@
"zustand-utils": "^1.3.2"
},
"devDependencies": {
"@commitlint/cli": "^19.2.2",
"@commitlint/cli": "^19.3.0",
"@lobehub/lint": "^1.23.4",
"@testing-library/react": "^14.3.1",
"@types/chroma-js": "^2.4.4",
Expand All @@ -135,25 +135,25 @@
"@types/pangu": "^4.0.2",
"@types/query-string": "^6.3.0",
"@types/react": "18.2.40",
"@types/react-dom": "^18.2.25",
"@types/react-dom": "^18.3.0",
"@types/uuid": "^9.0.8",
"@vitest/coverage-v8": "^1.6.0",
"antd-style": "^3.6.2",
"babel-plugin-antd-style": "latest",
"commitlint": "^19.2.2",
"commitlint": "^19.3.0",
"concurrently": "^8.2.2",
"cross-env": "^7.0.3",
"dpdm": "^3.14.0",
"dumi": "2.2.17",
"dumi-theme-lobehub": "latest",
"eslint": "^8.57.0",
"father": "4.3.1",
"husky": "^9.0.0",
"jsdom": "^24.0.0",
"lint-staged": "^15.2.2",
"prettier": "^3.2.5",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"husky": "^9.0.11",
"jsdom": "^24.1.0",
"lint-staged": "^15.2.5",
"prettier": "^3.3.1",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"remark": "^14.0.3",
"remark-cli": "^11.0.0",
"semantic-release": "^21.1.2",
Expand Down
1 change: 1 addition & 0 deletions src/Form/components/FormGroup.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,7 @@ const FormGroup = memo<FormGroupProps>(
return (
<Collapse
className={cx(styles.group, variantStyle, className)}
collapsible={variant === 'pure' ? 'icon' : undefined}
defaultActiveKey={defaultActive ? [1] : undefined}
expandIcon={({ isActive }) =>
variant === 'pure' ? null : (
Expand Down
4 changes: 2 additions & 2 deletions src/Image/ImageGallery.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Image, ImageProps } from 'antd';
import { PropsWithChildren, ReactNode, memo } from 'react';

import usePreview from '@/Image/usePreview';
import usePreview, { PreviewOptions } from '@/Image/usePreview';

const { PreviewGroup } = Image;

Expand All @@ -19,7 +19,7 @@ const ImageGallery = memo<ImageGalleryProps>(({ items, children, enable = true,
if (!enable) return children;

return (
<PreviewGroup items={items} preview={mergePreivew}>
<PreviewGroup items={items} preview={mergePreivew as PreviewOptions}>
{children}
</PreviewGroup>
);
Expand Down

0 comments on commit 6897be9

Please sign in to comment.