- {
- children.filter(child => child.props.displayName === 'TagSelectOption').map(child => React.cloneElement(child, {
- key: `tag-select-${child.props.value}`,
- checked: checkedTags.indexOf(child.props.value) > -1,
- onChange: this.handleTagChange,
- }))
- }
- {
- expandNode && (
-
+
+ 全部
+
+ {
+ children.filter(child => child.props.displayName === 'TagSelectOption').map(child => React.cloneElement(child, {
+ key: `tag-select-${child.props.value}`,
+ checked: checkedTags.indexOf(child.props.value) > -1,
+ onChange: this.handleTagChange,
+ }))
+ }
+ {
+ expandNode && (
+
+ { expand ? '收起' : '展开'}
+
+ )
+ }
+
diff --git a/src/components/TagSelect/index.less b/src/components/TagSelect/index.less
index c669684ba0473ac905fb16f496cd850b58d65ec6..bc02cc89032c2d13c873ec6d23a81ae780cd0d63 100644
--- a/src/components/TagSelect/index.less
+++ b/src/components/TagSelect/index.less
@@ -5,6 +5,12 @@
user-select: none;
margin-left: -8px;
position: relative;
+ :global {
+ .ant-tag {
+ padding: 0 8px;
+ margin-right: 24px;
+ }
+ }
.expand {
transition: all 0.32s ease;
overflow: hidden;
@@ -18,6 +24,9 @@
position: absolute;
top: 0;
right: 0;
+ i {
+ font-size: 12px;
+ }
}
}
.expandTag {
diff --git a/src/layouts/BasicLayout.js b/src/layouts/BasicLayout.js
index 9674e269274800a6cf07b0fc7bbec968bdaae14c..f560947f5afb60b7f8bdda41866f0f6154bc75dc 100644
--- a/src/layouts/BasicLayout.js
+++ b/src/layouts/BasicLayout.js
@@ -193,7 +193,7 @@ class BasicLayout extends React.PureComponent {
>
-
+
Ant Design Pro
@@ -204,7 +204,7 @@ class BasicLayout extends React.PureComponent {
onOpenChange={this.handleOpenChange}
selectedKeys={this.getCurrentMenuSelectedKeys()}
style={{ margin: '24px 0', width: '100%' }}
- inlineIndent={32}
+ inlineIndent={24}
>
{this.getNavMenuItems(this.menus)}
diff --git a/src/layouts/BasicLayout.less b/src/layouts/BasicLayout.less
index 40d3b95dedc7dcca0f2a95c4ca036d90b68ba252..0fabb0cc1e811f90ac06d3e8b2935994cc43aab3 100644
--- a/src/layouts/BasicLayout.less
+++ b/src/layouts/BasicLayout.less
@@ -1,7 +1,7 @@
@import "~antd/lib/style/themes/default.less";
.header {
- padding: 0 16px 0 0;
+ padding: 0 12px 0 0;
background: #fff;
box-shadow: 0 1px 4px rgba(0, 21, 41, .12);
position: relative;
@@ -24,7 +24,7 @@
color: #fff;
display: inline-block;
vertical-align: middle;
- font-size: 22px;
+ font-size: 18px;
margin-left: 12px;
font-family: Lato, 'Helvetica Neue', Arial, Helvetica, sans-serif;
margin-top: -2px;
@@ -43,7 +43,7 @@
line-height: 64px;
cursor: pointer;
transition: all .3s;
- padding: 0 28px;
+ padding: 0 24px;
&:hover {
background: rgba(0, 0, 0, .04);
}
@@ -103,5 +103,5 @@
min-height: 100vh;
box-shadow: 2px 0 6px rgba(0, 21, 41, .35);
position: relative;
- z-index: 1;
+ z-index: 10;
}
diff --git a/src/routes/List/CardList.js b/src/routes/List/CardList.js
index 2866d1b5b09c1d800abca7fca55fd9d196cbbbf6..0eb540852116bf531254a6f6d72e2fffa7724d96 100644
--- a/src/routes/List/CardList.js
+++ b/src/routes/List/CardList.js
@@ -62,8 +62,8 @@ export default class CardList extends PureComponent {
dataSource={['', ...list]}
renderItem={item => (item ? (
-
- 操作一, 操作二]}>
+ 操作一, 操作二]}>
+
}
title={item.title}
@@ -73,8 +73,8 @@ export default class CardList extends PureComponent {
)}
/>
-
-
+
+
) : (
diff --git a/src/routes/List/CardList.less b/src/routes/List/CardList.less
index 8a5c958c66aa19b9de99fdb3094b8fc5ce8ea958..d6c3cfd8810174c1e474768267b759c1630e4f22 100644
--- a/src/routes/List/CardList.less
+++ b/src/routes/List/CardList.less
@@ -24,7 +24,7 @@
border-color: @border-color-base;
color: @text-color-secondary;
width: 100%;
- height: 178px;
+ height: 185px;
}
.cardDescription {
diff --git a/src/routes/List/CoverCardList.js b/src/routes/List/CoverCardList.js
index 0ad34b5db1d0944a819433a7305a77c876bfb781..6d0aa290a4c8d3fbf6c244ac5086ec0ab3fb3c55 100644
--- a/src/routes/List/CoverCardList.js
+++ b/src/routes/List/CoverCardList.js
@@ -153,7 +153,7 @@ export default class CoverCardList extends PureComponent {
onTabChange={this.handleTabChange}
>