diff --git a/.vscode/settings.json b/.vscode/settings.json index ad92582bd0913ca4c9a9a63eb44cdca5488bec09..7c2feb7ef4731d430facfcafcbac59e3ea861849 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,3 +1,3 @@ { - "editor.formatOnSave": true + "editor.formatOnSave": false } diff --git a/package.json b/package.json index 93dc0d78360fbf5d48f851024807836229b65b6c..ad0c669fd27755f0748fd86d27eb1fddc67a4e9e 100755 --- a/package.json +++ b/package.json @@ -40,7 +40,7 @@ "path-to-regexp": "^2.1.0", "prop-types": "^15.5.10", "qs": "^6.5.0", - "rc-drawer-menu": "^1.1.0", + "rc-drawer": "^1.2.0", "react": "^16.4.0", "react-container-query": "^0.11.0", "react-document-title": "^2.0.3", diff --git a/src/components/SettingDarwer/index.js b/src/components/SettingDarwer/index.js index 4ee20fff779ed52c126801272de2d07c142c0b7e..386ee6077d45890490b4020fa8375b1906f7ff56 100644 --- a/src/components/SettingDarwer/index.js +++ b/src/components/SettingDarwer/index.js @@ -1,6 +1,6 @@ import React, { PureComponent } from 'react'; import { Select, message, List, Switch, Divider, Icon } from 'antd'; -import DrawerMenu from 'rc-drawer-menu'; +import DrawerMenu from 'rc-drawer'; import { connect } from 'dva'; import styles from './index.less'; import ThemeColor from './ThemeColor'; diff --git a/src/components/SiderMenu/index.js b/src/components/SiderMenu/index.js index 3ec398b29ec37167d684005281c181a617f3c798..2c77fd849362cfa58f919ee2cff9d7eaa63aa9b0 100644 --- a/src/components/SiderMenu/index.js +++ b/src/components/SiderMenu/index.js @@ -1,6 +1,6 @@ -import 'rc-drawer-menu/assets/index.css'; +import 'rc-drawer/assets/index.css'; import React from 'react'; -import DrawerMenu from 'rc-drawer-menu'; +import DrawerMenu from 'rc-drawer'; import SiderMenu from './SiderMenu'; /** @@ -24,7 +24,7 @@ const SiderMenuWrapper = props => { props.onCollapse(true);