fix: antd use ~v4.19.5

This commit is contained in:
chenos 2022-04-25 14:37:10 +08:00
parent 0e0e99ef79
commit 733c7048ed
6 changed files with 7 additions and 5 deletions

View File

@ -53,7 +53,6 @@
"@types/react-dom": "^17.0.0",
"@typescript-eslint/eslint-plugin": "^4.9.1",
"@typescript-eslint/parser": "^4.8.2",
"antd": "^4.18.9",
"classnames": "^2.3.1",
"concurrently": "^7.0.0",
"cross-env": "^7.0.3",

View File

@ -14,7 +14,7 @@
"@types/react": "^17.0.0",
"@types/react-dom": "^17.0.0",
"@umijs/test": "^3.5.20",
"antd": "^4.19.5",
"antd": "~4.19.5",
"react": "17.x",
"react-dom": "17.x",
"umi": "^3.5.20"

View File

@ -31,7 +31,7 @@
"@formily/react": "^2.0.15",
"@nocobase/utils": "0.7.0-alpha.2",
"ahooks": "^3.0.5",
"antd": "^4.18.9",
"antd": "~4.19.5",
"axios": "^0.24.0",
"classnames": "^2.3.1",
"file-saver": "^2.0.5",

View File

@ -264,7 +264,8 @@ export const Menu: ComposedMenu = observer((props) => {
}
}}
mode={mode === 'mix' ? 'horizontal' : mode}
openKeys={defaultOpenKeys}
defaultOpenKeys={defaultOpenKeys}
defaultSelectedKeys={defaultSelectedKeys}
selectedKeys={defaultSelectedKeys}
>
{designable && (

View File

@ -44,10 +44,12 @@ export const BlockInitializers = {
],
},
{
key: 'media',
type: 'itemGroup',
title: '{{t("Media")}}',
children: [
{
key: 'markdown',
type: 'item',
title: '{{t("Markdown")}}',
component: 'MarkdownBlockInitializer',

View File

@ -4109,7 +4109,7 @@ ansi-styles@^5.0.0:
resolved "https://registry.npmjs.org/ansi-styles/-/ansi-styles-5.2.0.tgz#07449690ad45777d1924ac2abb2fc8895dba836b"
integrity sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==
antd@^4.18.9, antd@^4.19.5:
antd@~4.19.5:
version "4.19.5"
resolved "https://registry.npmjs.org/antd/-/antd-4.19.5.tgz#38d08f3e1391a7a69c2ca76f50968bb12ec2ac93"
integrity sha512-C4H/VJqlVO5iMvHZyiV27R8SbPs4jsOKCGPhDXIHUry/RnUCbMmVeQaPRfUIxSI1NbqDflsuQfevPtz1svyIlg==