Commit eba467fd authored by XieZhiXiong's avatar XieZhiXiong

feat: 调整会员详情头部右侧渲染内容

parent d4dac337
...@@ -44,19 +44,21 @@ const BookmarkItem: React.FC<IProps> = (props: IProps) => { ...@@ -44,19 +44,21 @@ const BookmarkItem: React.FC<IProps> = (props: IProps) => {
}; };
return ( return (
<li <li className={styles['bookmark-itemWrap']}>
className={classNames(styles['bookmark-item'], { <div
[styles['bookmark-item-active']]: value === bookmarkContext.value, className={classNames(styles['bookmark-item'], {
})} [styles['bookmark-item-active']]: value === bookmarkContext.value,
onClick={handleClick} })}
> onClick={handleClick}
{icon ? ( >
<div className={styles['bookmark-item-left']}> {icon ? (
{icon} <div className={styles['bookmark-item-left']}>
{icon}
</div>
) : null}
<div className={styles['bookmark-item-center']}>
{title}
</div> </div>
) : null}
<div className={styles['bookmark-item-center']}>
{title}
</div> </div>
</li> </li>
); );
......
@import '~antd/es/style/themes/default.less'; @import '~antd/es/style/themes/default.less';
.bookmark { .bookmark {
display: flex; display: inline-flex;
align-items: center; align-items: center;
border: 1px solid #E4E6EB;
list-style: none; list-style: none;
padding: 0; padding: 0;
margin: 0; margin: -@padding-xss;
&-itemWrap {
padding: @padding-xss;
}
&-item { &-item {
padding: @padding-xs @padding-md; padding: @padding-xs @padding-md;
display: flex; display: flex;
align-items: center; align-items: center;
background-color: #FFFFFF; background-color: @background-color-light;
color: #6B778C; color: @text-color-secondary;
cursor: pointer; cursor: pointer;
border-radius: 4px;
&:not(:last-child) {
border-right: 1px solid #E4E6EB;
}
&-left { &-left {
flex-shrink: 0; flex-shrink: 0;
...@@ -31,8 +31,8 @@ ...@@ -31,8 +31,8 @@
&-active, &-active,
&:hover { &:hover {
background-color: #6B778C; background-color: @background-color-base;
color: #FFFFFF; color: @primary-color;
} }
} }
} }
\ No newline at end of file
...@@ -117,7 +117,7 @@ const MemberMaintainDetailed: React.FC<IProps> = props => { ...@@ -117,7 +117,7 @@ const MemberMaintainDetailed: React.FC<IProps> = props => {
)} )}
onBack={() => history.push(`/memberCenter/memberAbility/manage/maintain`)} onBack={() => history.push(`/memberCenter/memberAbility/manage/maintain`)}
anchors={anchors} anchors={anchors}
extra={( desc={(
<Bookmark value={getBookmarkKey()} onChange={handleBookmarkChange}> <Bookmark value={getBookmarkKey()} onChange={handleBookmarkChange}>
<Bookmark.Item value="basicInfo" title={intl.formatMessage({ id: 'member.management.maintain.basic' })} icon={<UnorderedListOutlined />} /> <Bookmark.Item value="basicInfo" title={intl.formatMessage({ id: 'member.management.maintain.basic' })} icon={<UnorderedListOutlined />} />
<Bookmark.Item value="archiveInfo" title={intl.formatMessage({ id: 'member.management.maintain.detail.archivalInfo' })} icon={<FolderOutlined />} /> <Bookmark.Item value="archiveInfo" title={intl.formatMessage({ id: 'member.management.maintain.detail.archivalInfo' })} icon={<FolderOutlined />} />
......
...@@ -109,7 +109,7 @@ const MemberQueryDetailed: React.FC<IProps> = props => { ...@@ -109,7 +109,7 @@ const MemberQueryDetailed: React.FC<IProps> = props => {
)} )}
onBack={() => history.push(`/memberCenter/memberAbility/profile/query`)} onBack={() => history.push(`/memberCenter/memberAbility/profile/query`)}
anchors={anchors} anchors={anchors}
extra={( desc={(
<Bookmark value={getBookmarkKey()} onChange={handleBookmarkChange}> <Bookmark value={getBookmarkKey()} onChange={handleBookmarkChange}>
<Bookmark.Item value="basicInfo" title={intl.formatMessage({ id: 'member.management.maintain.basic' })} icon={<UnorderedListOutlined />} /> <Bookmark.Item value="basicInfo" title={intl.formatMessage({ id: 'member.management.maintain.basic' })} icon={<UnorderedListOutlined />} />
<Bookmark.Item value="archiveInfo" title={intl.formatMessage({ id: 'member.management.maintain.detail.archivalInfo' })} icon={<FolderOutlined />} /> <Bookmark.Item value="archiveInfo" title={intl.formatMessage({ id: 'member.management.maintain.detail.archivalInfo' })} icon={<FolderOutlined />} />
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment