From 85ca316772a7ce2979780c65b4acea05e9701502 Mon Sep 17 00:00:00 2001 From: jim Date: Thu, 7 Jun 2018 10:37:15 +0800 Subject: [PATCH] change rc-drawer-menu to rc-drawer --- .vscode/settings.json | 2 +- package.json | 2 +- src/components/SettingDarwer/index.js | 2 +- src/components/SiderMenu/index.js | 6 +++--- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.vscode/settings.json b/.vscode/settings.json index ad92582b..7c2feb7e 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 93dc0d78..ad0c669f 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 4ee20fff..386ee607 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 3ec398b2..2c77fd84 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); -- GitLab