-
- } style={{ marginLeft: '64px' }} />
+
+
+ } style={{ margin: '50px' }} />
- } style={{ margin: '0px 128px' }} />
+ } style={{ margin: '50px' }} />
-
- } />
+
+ } style={{ margin: '50px' }} />
);
-
export const Placement = PlacementTemplate.bind({});
Placement.args = {
- overlay:
,
+ overlay: ,
};
diff --git a/src/components/time-picker/index.tsx b/src/components/time-picker/index.tsx
index bcdc368977..4540771099 100644
--- a/src/components/time-picker/index.tsx
+++ b/src/components/time-picker/index.tsx
@@ -14,7 +14,7 @@ export default ({ prefixCls: customizePrefixCls, ...props }: TimePickerProps) =>
}
- clearIcon={}
+ clearIcon={}
{...props}
/>
>
diff --git a/src/components/time-picker/style/index.less b/src/components/time-picker/style/index.less
index 697052716f..31446f1dad 100644
--- a/src/components/time-picker/style/index.less
+++ b/src/components/time-picker/style/index.less
@@ -5,17 +5,16 @@
.@{prefixClass} {
position: relative;
- display: inline-block;
+ display: inline-flex;
+ align-items: center;
box-sizing: border-box;
+ width: 160px;
* {
box-sizing: border-box;
}
- width: 160px;
-
&-addon-icon {
position: absolute;
- top: 12px;
right: 14px;
width: 20px;
height: 20px;
diff --git a/src/components/time-picker/style/picker.less b/src/components/time-picker/style/picker.less
index 79a98d1fda..06190ff770 100644
--- a/src/components/time-picker/style/picker.less
+++ b/src/components/time-picker/style/picker.less
@@ -8,7 +8,7 @@
width: 100%;
height: 40px;
padding: 9px 20px;
- color: #666;
+ color: #313e75;
font-size: @size-font-14;
line-height: 1.5;
background-color: #fff;
@@ -19,6 +19,9 @@
cursor: text;
transition: border 0.2s cubic-bezier(0.645, 0.045, 0.355, 1), background 0.2s cubic-bezier(0.645, 0.045, 0.355, 1),
box-shadow 0.2s cubic-bezier(0.645, 0.045, 0.355, 1);
+ ::-webkit-input-placeholder {
+ color: #dbdee8;
+ }
&:hover {
border: 1px solid @palette-blue-5;
}
diff --git a/src/components/tree/style/index.less b/src/components/tree/style/index.less
index 77b3339774..ec023bce2e 100644
--- a/src/components/tree/style/index.less
+++ b/src/components/tree/style/index.less
@@ -115,9 +115,10 @@
// >>> Title
& &-node-content-wrapper {
+ display: flex;
+ align-items: center;
width: 100%;
cursor: pointer;
-
.@{custom-tree-prefix-cls}-title {
overflow: hidden;
white-space: nowrap;
@@ -129,7 +130,7 @@
display: inline-block;
width: 16px;
height: 16px;
- margin: 2px 8px 0 0;
+ margin: 0 8px;
line-height: 16px;
text-align: center;
vertical-align: middle;