From 8a6b76acdedbed190ae42b8cf88d233dc9ba6974 Mon Sep 17 00:00:00 2001 From: afc163 Date: Wed, 28 Feb 2018 11:07:26 +0800 Subject: [PATCH 01/36] support less vars for tabs title font size --- components/style/themes/default.less | 2 ++ components/tabs/style/index.less | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/components/style/themes/default.less b/components/style/themes/default.less index 343e374e31..c9865f25d1 100644 --- a/components/style/themes/default.less +++ b/components/style/themes/default.less @@ -387,6 +387,8 @@ @tabs-card-height: 40px; @tabs-card-active-color: @primary-color; @tabs-title-font-size: @font-size-base; +@tabs-title-font-size-lg: @font-size-sm; +@tabs-title-font-size-sm: @font-size-base; @tabs-ink-bar-bg-color: @primary-color; @tab-bar-margin: 0 0 16px 0; @tab-horizontal-margin: 0 32px 0 0; diff --git a/components/tabs/style/index.less b/components/tabs/style/index.less index 93f23936e8..b2f71b26cd 100644 --- a/components/tabs/style/index.less +++ b/components/tabs/style/index.less @@ -207,7 +207,7 @@ } &-large &-nav-container { - font-size: @font-size-lg; + font-size: @tabs-title-font-size-lg; } &-large &-tab { @@ -215,7 +215,7 @@ } &-small &-nav-container { - font-size: @font-size-base; + font-size: @tabs-title-font-size-sm; } &-small &-tab { From 9634bea391dd2b7b17f1e89383577e248081a044 Mon Sep 17 00:00:00 2001 From: Wei Zhu Date: Wed, 28 Feb 2018 14:35:02 +0800 Subject: [PATCH 02/36] Complicate with less 3 Fix #7850 --- components/style/color/bezierEasing.less | 2 ++ 1 file changed, 2 insertions(+) diff --git a/components/style/color/bezierEasing.less b/components/style/color/bezierEasing.less index 78d94d5509..cf1fc066c4 100644 --- a/components/style/color/bezierEasing.less +++ b/components/style/color/bezierEasing.less @@ -100,6 +100,8 @@ }; this.colorEasing = BezierEasing(0.26, 0.09, 0.37, 0.18); + // less 3 requires a return + return ''; })()`; } // It is hacky way to make this function will be compiled preferentially by less From 1b3118e1dc513c1e0c386bcd9e3913867eef6fa6 Mon Sep 17 00:00:00 2001 From: Wei Zhu Date: Thu, 1 Mar 2018 17:24:06 +0800 Subject: [PATCH 03/36] Use week year Fix #9463 --- components/date-picker/WeekPicker.tsx | 2 +- components/date-picker/index.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/components/date-picker/WeekPicker.tsx b/components/date-picker/WeekPicker.tsx index c6b97fe48d..6a127ef229 100644 --- a/components/date-picker/WeekPicker.tsx +++ b/components/date-picker/WeekPicker.tsx @@ -11,7 +11,7 @@ function formatValue(value: moment.Moment | null, format: string): string { export default class WeekPicker extends React.Component { static defaultProps = { - format: 'YYYY-wo', + format: 'gggg-wo', allowClear: true, }; diff --git a/components/date-picker/index.tsx b/components/date-picker/index.tsx index 7c8e6d2b44..9d3e6de58d 100755 --- a/components/date-picker/index.tsx +++ b/components/date-picker/index.tsx @@ -14,7 +14,7 @@ const MonthPicker = wrapPicker(createPicker(MonthCalendar), 'YYYY-MM'); Object.assign(DatePicker, { RangePicker: wrapPicker(RangePicker), MonthPicker, - WeekPicker: wrapPicker(WeekPicker, 'YYYY-wo'), + WeekPicker: wrapPicker(WeekPicker, 'gggg-wo'), }); export default DatePicker as DatePickerDecorator; From f24e41806d9206df3d7f7ae8dd8135232aa4d2cb Mon Sep 17 00:00:00 2001 From: Karthik K Date: Thu, 1 Mar 2018 19:38:31 +0530 Subject: [PATCH 04/36] Minor punctuation correction (#9472) --- components/mention/index.en-US.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/mention/index.en-US.md b/components/mention/index.en-US.md index 3895a8c338..fbe9029721 100644 --- a/components/mention/index.en-US.md +++ b/components/mention/index.en-US.md @@ -4,7 +4,7 @@ type: Data Entry title: Mention --- -Mention component。 +Mention component. ## When To Use From c51f041ebcba0787599414316086f1373f2fd94f Mon Sep 17 00:00:00 2001 From: Chang Wang Date: Thu, 1 Mar 2018 21:13:48 -0500 Subject: [PATCH 05/36] Update downloads badge to point to graph of downloads (#9477) --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 76d612e871..84f6fb472a 100644 --- a/README.md +++ b/README.md @@ -11,7 +11,7 @@ [![Dependency Status](https://img.shields.io/gemnasium/react-component/trigger.svg?style=flat-square)](https://gemnasium.com/ant-design/ant-design) [![npm package](https://img.shields.io/npm/v/antd.svg?style=flat-square)](https://www.npmjs.org/package/antd) -[![NPM downloads](http://img.shields.io/npm/dm/antd.svg?style=flat-square)](https://npmjs.org/package/antd) +[![NPM downloads](http://img.shields.io/npm/dm/antd.svg?style=flat-square)](https://npmcharts.com/compare/antd?minimal=true) [![Percentage of issues still open](http://isitmaintained.com/badge/open/ant-design/ant-design.svg)](http://isitmaintained.com/project/ant-design/ant-design "Percentage of issues still open") [![Gitter](https://badges.gitter.im/ant-design/ant-design-english.svg)](https://gitter.im/ant-design/ant-design-english?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge) (English) [![Join the chat at https://gitter.im/ant-design/ant-design](https://img.shields.io/gitter/room/ant-design/ant-design.svg?style=flat-square)](https://gitter.im/ant-design/ant-design?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)(中文) From d816879e78fc18db23122d285cf31e795a309623 Mon Sep 17 00:00:00 2001 From: twobin Date: Fri, 2 Mar 2018 10:15:01 +0800 Subject: [PATCH 06/36] fix: add props of onPopupScroll in Select (#9475) --- components/select/index.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/components/select/index.tsx b/components/select/index.tsx index 378ee5ef01..4d36a7cf7b 100755 --- a/components/select/index.tsx +++ b/components/select/index.tsx @@ -43,6 +43,7 @@ export interface SelectProps extends AbstractSelectProps { onDeselect?: (value: SelectValue) => any; onBlur?: () => any; onFocus?: () => any; + onPopupScroll?: () => any; onInputKeyDown?: (e: React.KeyboardEvent) => void; maxTagCount?: number; maxTagPlaceholder?: React.ReactNode | ((omittedValues: SelectValue[]) => React.ReactNode); From 2548a4bcf927fcb2c4b516e08860f77418878412 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=84=9A=E6=8C=87=E5=AF=BC?= Date: Fri, 2 Mar 2018 11:49:56 +0800 Subject: [PATCH 07/36] add polyfill for ie (#9444) --- site/theme/static/template.html | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/site/theme/static/template.html b/site/theme/static/template.html index e5b2ad5d31..db6c5f2483 100644 --- a/site/theme/static/template.html +++ b/site/theme/static/template.html @@ -6,6 +6,10 @@ Ant Design - A UI Design Language + +