Merge pull request #24199 from ant-design/master

chore: Feature merge master
This commit is contained in:
二货机器人 2020-05-16 12:30:58 +08:00 committed by GitHub
commit 7de007100d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 12 additions and 5 deletions

View File

@ -24,8 +24,8 @@ export default function scrollTo(y: number, options: ScrollToOptions = {}) {
const nextScrollTop = easeInOutCubic(time > duration ? duration : time, scrollTop, y, duration);
if (isWindow(container)) {
(container as Window).scrollTo(window.pageXOffset, nextScrollTop);
} else if (container instanceof Document) {
container.documentElement.scrollTop = nextScrollTop;
} else if (container instanceof HTMLDocument || container.constructor.name === 'HTMLDocument') {
(container as HTMLDocument).documentElement.scrollTop = nextScrollTop;
} else {
(container as HTMLElement).scrollTop = nextScrollTop;
}

View File

@ -76,7 +76,7 @@
// https://stackoverflow.com/a/22429853/3040605
margin-left: auto;
padding: @card-head-padding 0;
color: @text-color;
color: @card-head-extra-color;
font-weight: normal;
font-size: @font-size-base;

View File

@ -587,7 +587,8 @@ Array [
class="ant-picker-footer"
>
<a
class="ant-picker-today-btn"
aria-disabled="true"
class="ant-picker-today-btn ant-picker-today-btn-disabled"
>
Today
</a>

View File

@ -436,6 +436,11 @@
&:active {
color: @link-active-color;
}
&&-disabled {
color: @disabled-color;
cursor: not-allowed;
}
}
// ========================================================

View File

@ -660,6 +660,7 @@
0 5px 12px 4px rgba(0, 0, 0, 0.09);
@card-radius: @border-radius-base;
@card-head-tabs-margin-bottom: -17px;
@card-head-extra-color: @text-color;
// Comment
// ---

View File

@ -127,7 +127,7 @@
"rc-menu": "~8.1.0",
"rc-notification": "~4.3.0",
"rc-pagination": "~2.2.0",
"rc-picker": "~1.4.0",
"rc-picker": "~1.4.16",
"rc-progress": "~3.0.0",
"rc-rate": "~2.6.0",
"rc-resize-observer": "^0.2.0",