- {
- 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 c669684b..bc02cc89 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 9674e269..f560947f 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 40d3b95d..0fabb0cc 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 2866d1b5..0eb54085 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 8a5c958c..d6c3cfd8 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 0ad34b5d..6d0aa290 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}
>