From 318152e3b22dc216cc3bcbd5fd409e4a5014f4b7 Mon Sep 17 00:00:00 2001 From: jim Date: Wed, 6 Jun 2018 16:37:03 +0800 Subject: [PATCH] edit drawer icon --- src/components/SettingDarwer/index.js | 29 ++++++++++++----- src/components/SettingDarwer/index.less | 41 +++++++++---------------- 2 files changed, 35 insertions(+), 35 deletions(-) diff --git a/src/components/SettingDarwer/index.js b/src/components/SettingDarwer/index.js index ce8c6abb..4ee20fff 100644 --- a/src/components/SettingDarwer/index.js +++ b/src/components/SettingDarwer/index.js @@ -1,5 +1,5 @@ import React, { PureComponent } from 'react'; -import { Select, message, List, Switch, Divider } from 'antd'; +import { Select, message, List, Switch, Divider, Icon } from 'antd'; import DrawerMenu from 'rc-drawer-menu'; import { connect } from 'dva'; import styles from './index.less'; @@ -125,17 +125,30 @@ class SettingDarwer extends PureComponent { const { collapse, silderTheme, themeColor, layout, colorWeak } = this.props.setting; return (
-
- logo -
+ ) : ( + + ) + } placement="right" width="336px" style={{ diff --git a/src/components/SettingDarwer/index.less b/src/components/SettingDarwer/index.less index 5b196af2..ca0cb4d3 100644 --- a/src/components/SettingDarwer/index.less +++ b/src/components/SettingDarwer/index.less @@ -1,32 +1,5 @@ @import '~antd/lib/style/themes/default.less'; -.settingDarwer { - .mini_bar { - width: 50px; - height: 45px; - border-top-left-radius: 28px; - border-bottom-left-radius: 28px; - text-align: center; - font-size: 24px; - background: white; - position: fixed; - bottom: 50px; - right: 50px; - cursor: pointer; - z-index: 99; - box-shadow: 0 0 6px 0 rgba(0, 21, 41, 0.35); - img { - width: 28px; - height: 28px; - } - } - :global { - .drawer { - z-index: 999; - } - } -} - .content { width: 273px; height: 100%; @@ -75,3 +48,17 @@ line-height: 22px; margin-bottom: 12px; } + +:global { + .drawer-handle { + top: 240px; + background: #1890ff; + width: 57px; + height: 48px; + padding: 14px 18px; + padding-left: 24px; + } + .drawer-right .drawer-handle { + left: -57px; + } +} -- GitLab