Browse Source

Merge pull request #16066 from ant-design/master

Merge master into feature branch
pull/16118/head
偏右 6 years ago
committed by GitHub
parent
commit
6ccbaddff5
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 21
      CHANGELOG.en-US.md
  2. 20
      CHANGELOG.zh-CN.md
  3. 18
      components/config-provider/__tests__/__snapshots__/components.test.js.snap
  4. 4
      components/form/__tests__/__snapshots__/demo.test.js.snap
  5. 2
      components/locale-provider/__tests__/__snapshots__/demo.test.js.snap
  6. 176
      components/locale-provider/__tests__/__snapshots__/index.test.js.snap
  7. 42
      components/time-picker/__tests__/__snapshots__/demo.test.js.snap
  8. 4
      components/time-picker/__tests__/__snapshots__/index.test.js.snap
  9. 2
      docs/react/use-in-typescript.zh-CN.md
  10. 2
      docs/react/use-with-create-react-app.zh-CN.md
  11. 8
      package.json
  12. 1
      site/bisheng.config.js
  13. 7
      site/theme/static/template.html

21
CHANGELOG.en-US.md

@ -15,6 +15,27 @@ timeline: true
---
## 3.16.3
`2019-04-12`
- 🐞 **Fix Button TypeScript definition.** [#15938](https://github.com/ant-design/ant-design/pull/15938)
- ⚠️ Add DatePicker warning when time invalidate. [#15920](https://github.com/ant-design/ant-design/pull/15920)
- 🐞 Fix Menu arrow not display in old version of IE. [#15932](https://github.com/ant-design/ant-design/pull/15932)
- 🐞 Fix Progress success UI when `status` is `undefined`. [#15951](https://github.com/ant-design/ant-design/pull/15951)
- 🐞 Fix Tooltips not work when Menu collapsed. [#15948](https://github.com/ant-design/ant-design/pull/15948)
- 🐞 Fix Switch can't be trigger by click of form label. [#15923](https://github.com/ant-design/ant-design/pull/15923)
- 🐞 Fix Directory `onSelect` info not correct. [#15967](https://github.com/ant-design/ant-design/pull/15967)
- 🐞 Fix Menu `defaultOpenKeys` not work as expect. [#15970](https://github.com/ant-design/ant-design/pull/15970)
- 🐞 Fix Nested Table with `middle` `size` style not correct. [#16008](https://github.com/ant-design/ant-design/pull/16008)
- 🐞 Fix nest Tabs ink bar style issue. [#16013](https://github.com/ant-design/ant-design/pull/16013)
- 🐞 Fix Empty in IE not fully render. [#16016](https://github.com/ant-design/ant-design/pull/16016)
- 🐞 Fix Switcher loading icon and checkbox should be vertical align when `@tree-title-height` is modified. [#15962](https://github.com/ant-design/ant-design/pull/15962)
- 💄 Default selection column width can be overrided in css. [#15990](https://github.com/ant-design/ant-design/pull/15990)
- TypeScript
- 🐞 Fix Pagination `showLessItems` TS definition. [#15952](https://github.com/ant-design/ant-design/pull/15952)
## 3.16.2
`2019-04-07`

20
CHANGELOG.zh-CN.md

@ -15,6 +15,26 @@ timeline: true
---
## 3.16.3
`2019-04-12`
- 🐞 **修复 Button TS 类型定义。**[#15938](https://github.com/ant-design/ant-design/pull/15938)
- ⚠️ DatePicker 新增当日期不合法的提示。[#15920](https://github.com/ant-design/ant-design/pull/15920)
- 🐞 修复 Menu 箭头在老 IE 版本上不显示的问题。[#15932](https://github.com/ant-design/ant-design/pull/15932)
- 🐞 修复 Progress 当 `status``undefined` 时的展示。[#15951](https://github.com/ant-design/ant-design/pull/15951)
- 🐞 修复 Menu 折叠时 Tooltip 的问题。[#15948](https://github.com/ant-design/ant-design/pull/15948)
- 🐞 修复 Switch 应该被 Label 触发的问题。[#15923](https://github.com/ant-design/ant-design/pull/15923)
- 🐞 修复 Directory `onSelect` 无法使用的问题。[#15967](https://github.com/ant-design/ant-design/pull/15967)
- 🐞 修复 Menu `defaultOpenKeys` 不工作。[#15970](https://github.com/ant-design/ant-design/pull/15970)
- 🐞 修复内嵌的 Table `size``middle` 时的样式。[#16008](https://github.com/ant-design/ant-design/pull/16008)
- 🐞 修复 Tab `display: none` 时高亮线条丢失的问题。[#16013](https://github.com/ant-design/ant-design/pull/16013)
- 🐞 修复 Empty IE 展示的问题。[#16016](https://github.com/ant-design/ant-design/pull/16016)
- 🐞 修复通过修改 `@tree-title-height` 的值会导致 tree-switcher-loading-icon 位置不再居中的问题。[#15962](https://github.com/ant-design/ant-design/pull/15962)
- 💄 修复默认的 selection column width 无法被样式覆盖的问题。[#15990](https://github.com/ant-design/ant-design/pull/15990)
- TypeScript
- 🐞 修复 Pagination `showLessItems` TS 类型定义。[#15952](https://github.com/ant-design/ant-design/pull/15952)
## 3.16.2
`2019-04-07`

18
components/config-provider/__tests__/__snapshots__/components.test.js.snap

@ -12576,7 +12576,7 @@ exports[`ConfigProvider components Tags prefixCls 1`] = `
exports[`ConfigProvider components TimePicker configProvider 1`] = `
Array [
<span
class="config-time-picker "
class="config-time-picker"
>
<input
class="config-time-picker-input"
@ -12614,7 +12614,7 @@ Array [
</span>,
<div>
<div
class="config-time-picker-panel config-time-picker-panel-column-3 config-time-picker-panel-placement-bottomLeft "
class="config-time-picker-panel config-time-picker-panel-column-3 config-time-picker-panel-placement-bottomLeft "
>
<div
class="config-time-picker-panel-inner"
@ -12623,7 +12623,7 @@ Array [
class="config-time-picker-panel-input-wrap"
>
<input
class="config-time-picker-panel-input "
class="config-time-picker-panel-input"
placeholder="Select time"
value=""
/>
@ -13523,7 +13523,7 @@ Array [
exports[`ConfigProvider components TimePicker normal 1`] = `
Array [
<span
class="ant-time-picker "
class="ant-time-picker"
>
<input
class="ant-time-picker-input"
@ -13561,7 +13561,7 @@ Array [
</span>,
<div>
<div
class="ant-time-picker-panel ant-time-picker-panel-column-3 ant-time-picker-panel-placement-bottomLeft "
class="ant-time-picker-panel ant-time-picker-panel-column-3 ant-time-picker-panel-placement-bottomLeft "
>
<div
class="ant-time-picker-panel-inner"
@ -13570,7 +13570,7 @@ Array [
class="ant-time-picker-panel-input-wrap"
>
<input
class="ant-time-picker-panel-input "
class="ant-time-picker-panel-input"
placeholder="Select time"
value=""
/>
@ -14470,7 +14470,7 @@ Array [
exports[`ConfigProvider components TimePicker prefixCls 1`] = `
Array [
<span
class="prefix-TimePicker "
class="prefix-TimePicker"
>
<input
class="prefix-TimePicker-input"
@ -14508,7 +14508,7 @@ Array [
</span>,
<div>
<div
class="prefix-TimePicker-panel prefix-TimePicker-panel-column-3 prefix-TimePicker-panel-placement-bottomLeft "
class="prefix-TimePicker-panel prefix-TimePicker-panel-column-3 prefix-TimePicker-panel-placement-bottomLeft "
>
<div
class="prefix-TimePicker-panel-inner"
@ -14517,7 +14517,7 @@ Array [
class="prefix-TimePicker-panel-input-wrap"
>
<input
class="prefix-TimePicker-panel-input "
class="prefix-TimePicker-panel-input"
placeholder="Select time"
value=""
/>

4
components/form/__tests__/__snapshots__/demo.test.js.snap

@ -2836,7 +2836,7 @@ exports[`renders ./components/form/demo/time-related-controls.md correctly 1`] =
class="ant-form-item-children"
>
<span
class="ant-time-picker "
class="ant-time-picker"
>
<input
class="ant-time-picker-input"
@ -4545,7 +4545,7 @@ exports[`renders ./components/form/demo/validate-static.md correctly 1`] = `
class="ant-form-item-children"
>
<span
class="ant-time-picker "
class="ant-time-picker"
style="width:100%"
>
<input

2
components/locale-provider/__tests__/__snapshots__/demo.test.js.snap

@ -323,7 +323,7 @@ exports[`renders ./components/locale-provider/demo/all.md correctly 1`] = `
</div>
</span>
<span
class="ant-time-picker "
class="ant-time-picker"
>
<input
class="ant-time-picker-input"

176
components/locale-provider/__tests__/__snapshots__/index.test.js.snap

@ -3534,7 +3534,7 @@ exports[`Locale Provider should display the text as ar 1`] = `
</div>
</span>
<span
class="ant-time-picker "
class="ant-time-picker"
style=""
>
<input
@ -3583,7 +3583,7 @@ exports[`Locale Provider should display the text as ar 1`] = `
class="ant-time-picker-panel-input-wrap"
>
<input
class="ant-time-picker-panel-input "
class="ant-time-picker-panel-input"
placeholder="اختيار الوقت"
value=""
/>
@ -8639,7 +8639,7 @@ exports[`Locale Provider should display the text as bg 1`] = `
</div>
</span>
<span
class="ant-time-picker "
class="ant-time-picker"
style=""
>
<input
@ -8688,7 +8688,7 @@ exports[`Locale Provider should display the text as bg 1`] = `
class="ant-time-picker-panel-input-wrap"
>
<input
class="ant-time-picker-panel-input "
class="ant-time-picker-panel-input"
placeholder="Избор на час"
value=""
/>
@ -13744,7 +13744,7 @@ exports[`Locale Provider should display the text as ca 1`] = `
</div>
</span>
<span
class="ant-time-picker "
class="ant-time-picker"
style=""
>
<input
@ -13793,7 +13793,7 @@ exports[`Locale Provider should display the text as ca 1`] = `
class="ant-time-picker-panel-input-wrap"
>
<input
class="ant-time-picker-panel-input "
class="ant-time-picker-panel-input"
placeholder="Seleccionar hora"
value=""
/>
@ -18849,7 +18849,7 @@ exports[`Locale Provider should display the text as cs 1`] = `
</div>
</span>
<span
class="ant-time-picker "
class="ant-time-picker"
style=""
>
<input
@ -18898,7 +18898,7 @@ exports[`Locale Provider should display the text as cs 1`] = `
class="ant-time-picker-panel-input-wrap"
>
<input
class="ant-time-picker-panel-input "
class="ant-time-picker-panel-input"
placeholder="Vybrat čas"
value=""
/>
@ -23954,7 +23954,7 @@ exports[`Locale Provider should display the text as da 1`] = `
</div>
</span>
<span
class="ant-time-picker "
class="ant-time-picker"
style=""
>
<input
@ -24003,7 +24003,7 @@ exports[`Locale Provider should display the text as da 1`] = `
class="ant-time-picker-panel-input-wrap"
>
<input
class="ant-time-picker-panel-input "
class="ant-time-picker-panel-input"
placeholder="Vælg tid"
value=""
/>
@ -29059,7 +29059,7 @@ exports[`Locale Provider should display the text as de 1`] = `
</div>
</span>
<span
class="ant-time-picker "
class="ant-time-picker"
style=""
>
<input
@ -29108,7 +29108,7 @@ exports[`Locale Provider should display the text as de 1`] = `
class="ant-time-picker-panel-input-wrap"
>
<input
class="ant-time-picker-panel-input "
class="ant-time-picker-panel-input"
placeholder="Zeit auswählen"
value=""
/>
@ -34164,7 +34164,7 @@ exports[`Locale Provider should display the text as el 1`] = `
</div>
</span>
<span
class="ant-time-picker "
class="ant-time-picker"
style=""
>
<input
@ -34213,7 +34213,7 @@ exports[`Locale Provider should display the text as el 1`] = `
class="ant-time-picker-panel-input-wrap"
>
<input
class="ant-time-picker-panel-input "
class="ant-time-picker-panel-input"
placeholder="Επιλέξτε ώρα"
value=""
/>
@ -39269,7 +39269,7 @@ exports[`Locale Provider should display the text as en 1`] = `
</div>
</span>
<span
class="ant-time-picker "
class="ant-time-picker"
style=""
>
<input
@ -39318,7 +39318,7 @@ exports[`Locale Provider should display the text as en 1`] = `
class="ant-time-picker-panel-input-wrap"
>
<input
class="ant-time-picker-panel-input "
class="ant-time-picker-panel-input"
placeholder="Select time"
value=""
/>
@ -44374,7 +44374,7 @@ exports[`Locale Provider should display the text as en-gb 1`] = `
</div>
</span>
<span
class="ant-time-picker "
class="ant-time-picker"
style=""
>
<input
@ -44423,7 +44423,7 @@ exports[`Locale Provider should display the text as en-gb 1`] = `
class="ant-time-picker-panel-input-wrap"
>
<input
class="ant-time-picker-panel-input "
class="ant-time-picker-panel-input"
placeholder="Select time"
value=""
/>
@ -49479,7 +49479,7 @@ exports[`Locale Provider should display the text as es 1`] = `
</div>
</span>
<span
class="ant-time-picker "
class="ant-time-picker"
style=""
>
<input
@ -49528,7 +49528,7 @@ exports[`Locale Provider should display the text as es 1`] = `
class="ant-time-picker-panel-input-wrap"
>
<input
class="ant-time-picker-panel-input "
class="ant-time-picker-panel-input"
placeholder="Seleccionar hora"
value=""
/>
@ -54584,7 +54584,7 @@ exports[`Locale Provider should display the text as et 1`] = `
</div>
</span>
<span
class="ant-time-picker "
class="ant-time-picker"
style=""
>
<input
@ -54633,7 +54633,7 @@ exports[`Locale Provider should display the text as et 1`] = `
class="ant-time-picker-panel-input-wrap"
>
<input
class="ant-time-picker-panel-input "
class="ant-time-picker-panel-input"
placeholder="Vali aeg"
value=""
/>
@ -59689,7 +59689,7 @@ exports[`Locale Provider should display the text as fa 1`] = `
</div>
</span>
<span
class="ant-time-picker "
class="ant-time-picker"
style=""
>
<input
@ -59738,7 +59738,7 @@ exports[`Locale Provider should display the text as fa 1`] = `
class="ant-time-picker-panel-input-wrap"
>
<input
class="ant-time-picker-panel-input "
class="ant-time-picker-panel-input"
placeholder="انتخاب زمان"
value=""
/>
@ -64794,7 +64794,7 @@ exports[`Locale Provider should display the text as fi 1`] = `
</div>
</span>
<span
class="ant-time-picker "
class="ant-time-picker"
style=""
>
<input
@ -64843,7 +64843,7 @@ exports[`Locale Provider should display the text as fi 1`] = `
class="ant-time-picker-panel-input-wrap"
>
<input
class="ant-time-picker-panel-input "
class="ant-time-picker-panel-input"
placeholder="Valitse aika"
value=""
/>
@ -69899,7 +69899,7 @@ exports[`Locale Provider should display the text as fr 1`] = `
</div>
</span>
<span
class="ant-time-picker "
class="ant-time-picker"
style=""
>
<input
@ -69948,7 +69948,7 @@ exports[`Locale Provider should display the text as fr 1`] = `
class="ant-time-picker-panel-input-wrap"
>
<input
class="ant-time-picker-panel-input "
class="ant-time-picker-panel-input"
placeholder="Sélectionner l'heure"
value=""
/>
@ -75004,7 +75004,7 @@ exports[`Locale Provider should display the text as fr 2`] = `
</div>
</span>
<span
class="ant-time-picker "
class="ant-time-picker"
style=""
>
<input
@ -75053,7 +75053,7 @@ exports[`Locale Provider should display the text as fr 2`] = `
class="ant-time-picker-panel-input-wrap"
>
<input
class="ant-time-picker-panel-input "
class="ant-time-picker-panel-input"
placeholder="Sélectionner l'heure"
value=""
/>
@ -80109,7 +80109,7 @@ exports[`Locale Provider should display the text as he 1`] = `
</div>
</span>
<span
class="ant-time-picker "
class="ant-time-picker"
style=""
>
<input
@ -80158,7 +80158,7 @@ exports[`Locale Provider should display the text as he 1`] = `
class="ant-time-picker-panel-input-wrap"
>
<input
class="ant-time-picker-panel-input "
class="ant-time-picker-panel-input"
placeholder="בחר שעה"
value=""
/>
@ -85214,7 +85214,7 @@ exports[`Locale Provider should display the text as hi 1`] = `
</div>
</span>
<span
class="ant-time-picker "
class="ant-time-picker"
style=""
>
<input
@ -85263,7 +85263,7 @@ exports[`Locale Provider should display the text as hi 1`] = `
class="ant-time-picker-panel-input-wrap"
>
<input
class="ant-time-picker-panel-input "
class="ant-time-picker-panel-input"
placeholder="समय का चयन करें"
value=""
/>
@ -90319,7 +90319,7 @@ exports[`Locale Provider should display the text as hu 1`] = `
</div>
</span>
<span
class="ant-time-picker "
class="ant-time-picker"
style=""
>
<input
@ -90368,7 +90368,7 @@ exports[`Locale Provider should display the text as hu 1`] = `
class="ant-time-picker-panel-input-wrap"
>
<input
class="ant-time-picker-panel-input "
class="ant-time-picker-panel-input"
placeholder="Válasszon időt"
value=""
/>
@ -95424,7 +95424,7 @@ exports[`Locale Provider should display the text as id 1`] = `
</div>
</span>
<span
class="ant-time-picker "
class="ant-time-picker"
style=""
>
<input
@ -95473,7 +95473,7 @@ exports[`Locale Provider should display the text as id 1`] = `
class="ant-time-picker-panel-input-wrap"
>
<input
class="ant-time-picker-panel-input "
class="ant-time-picker-panel-input"
placeholder="Pilih waktu"
value=""
/>
@ -100529,7 +100529,7 @@ exports[`Locale Provider should display the text as is 1`] = `
</div>
</span>
<span
class="ant-time-picker "
class="ant-time-picker"
style=""
>
<input
@ -100578,7 +100578,7 @@ exports[`Locale Provider should display the text as is 1`] = `
class="ant-time-picker-panel-input-wrap"
>
<input
class="ant-time-picker-panel-input "
class="ant-time-picker-panel-input"
placeholder="Velja tíma"
value=""
/>
@ -105634,7 +105634,7 @@ exports[`Locale Provider should display the text as it 1`] = `
</div>
</span>
<span
class="ant-time-picker "
class="ant-time-picker"
style=""
>
<input
@ -105683,7 +105683,7 @@ exports[`Locale Provider should display the text as it 1`] = `
class="ant-time-picker-panel-input-wrap"
>
<input
class="ant-time-picker-panel-input "
class="ant-time-picker-panel-input"
placeholder="Selezionare l'orario"
value=""
/>
@ -110739,7 +110739,7 @@ exports[`Locale Provider should display the text as ja 1`] = `
</div>
</span>
<span
class="ant-time-picker "
class="ant-time-picker"
style=""
>
<input
@ -110788,7 +110788,7 @@ exports[`Locale Provider should display the text as ja 1`] = `
class="ant-time-picker-panel-input-wrap"
>
<input
class="ant-time-picker-panel-input "
class="ant-time-picker-panel-input"
placeholder="時刻を選択"
value=""
/>
@ -115844,7 +115844,7 @@ exports[`Locale Provider should display the text as kn 1`] = `
</div>
</span>
<span
class="ant-time-picker "
class="ant-time-picker"
style=""
>
<input
@ -115893,7 +115893,7 @@ exports[`Locale Provider should display the text as kn 1`] = `
class="ant-time-picker-panel-input-wrap"
>
<input
class="ant-time-picker-panel-input "
class="ant-time-picker-panel-input"
placeholder="ಸಮಯ ಆಯ್ಕೆಮಾಡಿ"
value=""
/>
@ -120949,7 +120949,7 @@ exports[`Locale Provider should display the text as ko 1`] = `
</div>
</span>
<span
class="ant-time-picker "
class="ant-time-picker"
style=""
>
<input
@ -120998,7 +120998,7 @@ exports[`Locale Provider should display the text as ko 1`] = `
class="ant-time-picker-panel-input-wrap"
>
<input
class="ant-time-picker-panel-input "
class="ant-time-picker-panel-input"
placeholder="날짜 선택"
value=""
/>
@ -126054,7 +126054,7 @@ exports[`Locale Provider should display the text as ku-iq 1`] = `
</div>
</span>
<span
class="ant-time-picker "
class="ant-time-picker"
style=""
>
<input
@ -126103,7 +126103,7 @@ exports[`Locale Provider should display the text as ku-iq 1`] = `
class="ant-time-picker-panel-input-wrap"
>
<input
class="ant-time-picker-panel-input "
class="ant-time-picker-panel-input"
placeholder="Demê hilbijêre"
value=""
/>
@ -131159,7 +131159,7 @@ exports[`Locale Provider should display the text as mn-mn 1`] = `
</div>
</span>
<span
class="ant-time-picker "
class="ant-time-picker"
style=""
>
<input
@ -131208,7 +131208,7 @@ exports[`Locale Provider should display the text as mn-mn 1`] = `
class="ant-time-picker-panel-input-wrap"
>
<input
class="ant-time-picker-panel-input "
class="ant-time-picker-panel-input"
placeholder="Цаг сонгох"
value=""
/>
@ -136264,7 +136264,7 @@ exports[`Locale Provider should display the text as nb 1`] = `
</div>
</span>
<span
class="ant-time-picker "
class="ant-time-picker"
style=""
>
<input
@ -136313,7 +136313,7 @@ exports[`Locale Provider should display the text as nb 1`] = `
class="ant-time-picker-panel-input-wrap"
>
<input
class="ant-time-picker-panel-input "
class="ant-time-picker-panel-input"
placeholder="Velg tid"
value=""
/>
@ -141369,7 +141369,7 @@ exports[`Locale Provider should display the text as ne-np 1`] = `
</div>
</span>
<span
class="ant-time-picker "
class="ant-time-picker"
style=""
>
<input
@ -141418,7 +141418,7 @@ exports[`Locale Provider should display the text as ne-np 1`] = `
class="ant-time-picker-panel-input-wrap"
>
<input
class="ant-time-picker-panel-input "
class="ant-time-picker-panel-input"
placeholder="Select time"
value=""
/>
@ -146474,7 +146474,7 @@ exports[`Locale Provider should display the text as nl 1`] = `
</div>
</span>
<span
class="ant-time-picker "
class="ant-time-picker"
style=""
>
<input
@ -146523,7 +146523,7 @@ exports[`Locale Provider should display the text as nl 1`] = `
class="ant-time-picker-panel-input-wrap"
>
<input
class="ant-time-picker-panel-input "
class="ant-time-picker-panel-input"
placeholder="Selecteer tijd"
value=""
/>
@ -151579,7 +151579,7 @@ exports[`Locale Provider should display the text as nl-be 1`] = `
</div>
</span>
<span
class="ant-time-picker "
class="ant-time-picker"
style=""
>
<input
@ -151628,7 +151628,7 @@ exports[`Locale Provider should display the text as nl-be 1`] = `
class="ant-time-picker-panel-input-wrap"
>
<input
class="ant-time-picker-panel-input "
class="ant-time-picker-panel-input"
placeholder="Selecteer tijd"
value=""
/>
@ -156684,7 +156684,7 @@ exports[`Locale Provider should display the text as pl 1`] = `
</div>
</span>
<span
class="ant-time-picker "
class="ant-time-picker"
style=""
>
<input
@ -156733,7 +156733,7 @@ exports[`Locale Provider should display the text as pl 1`] = `
class="ant-time-picker-panel-input-wrap"
>
<input
class="ant-time-picker-panel-input "
class="ant-time-picker-panel-input"
placeholder="Wybierz godzinę"
value=""
/>
@ -161789,7 +161789,7 @@ exports[`Locale Provider should display the text as pt 1`] = `
</div>
</span>
<span
class="ant-time-picker "
class="ant-time-picker"
style=""
>
<input
@ -161838,7 +161838,7 @@ exports[`Locale Provider should display the text as pt 1`] = `
class="ant-time-picker-panel-input-wrap"
>
<input
class="ant-time-picker-panel-input "
class="ant-time-picker-panel-input"
placeholder="Hora"
value=""
/>
@ -166894,7 +166894,7 @@ exports[`Locale Provider should display the text as pt-br 1`] = `
</div>
</span>
<span
class="ant-time-picker "
class="ant-time-picker"
style=""
>
<input
@ -166943,7 +166943,7 @@ exports[`Locale Provider should display the text as pt-br 1`] = `
class="ant-time-picker-panel-input-wrap"
>
<input
class="ant-time-picker-panel-input "
class="ant-time-picker-panel-input"
placeholder="Hora"
value=""
/>
@ -171999,7 +171999,7 @@ exports[`Locale Provider should display the text as ru 1`] = `
</div>
</span>
<span
class="ant-time-picker "
class="ant-time-picker"
style=""
>
<input
@ -172048,7 +172048,7 @@ exports[`Locale Provider should display the text as ru 1`] = `
class="ant-time-picker-panel-input-wrap"
>
<input
class="ant-time-picker-panel-input "
class="ant-time-picker-panel-input"
placeholder="Выберите время"
value=""
/>
@ -177104,7 +177104,7 @@ exports[`Locale Provider should display the text as sk 1`] = `
</div>
</span>
<span
class="ant-time-picker "
class="ant-time-picker"
style=""
>
<input
@ -177153,7 +177153,7 @@ exports[`Locale Provider should display the text as sk 1`] = `
class="ant-time-picker-panel-input-wrap"
>
<input
class="ant-time-picker-panel-input "
class="ant-time-picker-panel-input"
placeholder="Vybrať čas"
value=""
/>
@ -182209,7 +182209,7 @@ exports[`Locale Provider should display the text as sl 1`] = `
</div>
</span>
<span
class="ant-time-picker "
class="ant-time-picker"
style=""
>
<input
@ -182258,7 +182258,7 @@ exports[`Locale Provider should display the text as sl 1`] = `
class="ant-time-picker-panel-input-wrap"
>
<input
class="ant-time-picker-panel-input "
class="ant-time-picker-panel-input"
placeholder="Izberite čas"
value=""
/>
@ -187314,7 +187314,7 @@ exports[`Locale Provider should display the text as sr 1`] = `
</div>
</span>
<span
class="ant-time-picker "
class="ant-time-picker"
style=""
>
<input
@ -187363,7 +187363,7 @@ exports[`Locale Provider should display the text as sr 1`] = `
class="ant-time-picker-panel-input-wrap"
>
<input
class="ant-time-picker-panel-input "
class="ant-time-picker-panel-input"
placeholder="Izaberite vreme"
value=""
/>
@ -192419,7 +192419,7 @@ exports[`Locale Provider should display the text as sv 1`] = `
</div>
</span>
<span
class="ant-time-picker "
class="ant-time-picker"
style=""
>
<input
@ -192468,7 +192468,7 @@ exports[`Locale Provider should display the text as sv 1`] = `
class="ant-time-picker-panel-input-wrap"
>
<input
class="ant-time-picker-panel-input "
class="ant-time-picker-panel-input"
placeholder="Välj tid"
value=""
/>
@ -197524,7 +197524,7 @@ exports[`Locale Provider should display the text as th 1`] = `
</div>
</span>
<span
class="ant-time-picker "
class="ant-time-picker"
style=""
>
<input
@ -197573,7 +197573,7 @@ exports[`Locale Provider should display the text as th 1`] = `
class="ant-time-picker-panel-input-wrap"
>
<input
class="ant-time-picker-panel-input "
class="ant-time-picker-panel-input"
placeholder="เลือกเวลา"
value=""
/>
@ -202629,7 +202629,7 @@ exports[`Locale Provider should display the text as tr 1`] = `
</div>
</span>
<span
class="ant-time-picker "
class="ant-time-picker"
style=""
>
<input
@ -202678,7 +202678,7 @@ exports[`Locale Provider should display the text as tr 1`] = `
class="ant-time-picker-panel-input-wrap"
>
<input
class="ant-time-picker-panel-input "
class="ant-time-picker-panel-input"
placeholder="Zaman Seç"
value=""
/>
@ -207734,7 +207734,7 @@ exports[`Locale Provider should display the text as uk 1`] = `
</div>
</span>
<span
class="ant-time-picker "
class="ant-time-picker"
style=""
>
<input
@ -207783,7 +207783,7 @@ exports[`Locale Provider should display the text as uk 1`] = `
class="ant-time-picker-panel-input-wrap"
>
<input
class="ant-time-picker-panel-input "
class="ant-time-picker-panel-input"
placeholder="Оберіть час"
value=""
/>
@ -212839,7 +212839,7 @@ exports[`Locale Provider should display the text as vi 1`] = `
</div>
</span>
<span
class="ant-time-picker "
class="ant-time-picker"
style=""
>
<input
@ -212888,7 +212888,7 @@ exports[`Locale Provider should display the text as vi 1`] = `
class="ant-time-picker-panel-input-wrap"
>
<input
class="ant-time-picker-panel-input "
class="ant-time-picker-panel-input"
placeholder="Chọn thời gian"
value=""
/>
@ -217944,7 +217944,7 @@ exports[`Locale Provider should display the text as zh-cn 1`] = `
</div>
</span>
<span
class="ant-time-picker "
class="ant-time-picker"
style=""
>
<input
@ -217993,7 +217993,7 @@ exports[`Locale Provider should display the text as zh-cn 1`] = `
class="ant-time-picker-panel-input-wrap"
>
<input
class="ant-time-picker-panel-input "
class="ant-time-picker-panel-input"
placeholder="请选择时间"
value=""
/>
@ -223049,7 +223049,7 @@ exports[`Locale Provider should display the text as zh-tw 1`] = `
</div>
</span>
<span
class="ant-time-picker "
class="ant-time-picker"
style=""
>
<input
@ -223098,7 +223098,7 @@ exports[`Locale Provider should display the text as zh-tw 1`] = `
class="ant-time-picker-panel-input-wrap"
>
<input
class="ant-time-picker-panel-input "
class="ant-time-picker-panel-input"
placeholder="請選擇時間"
value=""
/>

42
components/time-picker/__tests__/__snapshots__/demo.test.js.snap

@ -3,7 +3,7 @@
exports[`renders ./components/time-picker/demo/12hours.md correctly 1`] = `
<div>
<span
class="ant-time-picker "
class="ant-time-picker"
>
<input
class="ant-time-picker-input"
@ -40,7 +40,7 @@ exports[`renders ./components/time-picker/demo/12hours.md correctly 1`] = `
</span>
</span>
<span
class="ant-time-picker "
class="ant-time-picker"
>
<input
class="ant-time-picker-input"
@ -77,7 +77,7 @@ exports[`renders ./components/time-picker/demo/12hours.md correctly 1`] = `
</span>
</span>
<span
class="ant-time-picker "
class="ant-time-picker"
>
<input
class="ant-time-picker-input"
@ -118,7 +118,7 @@ exports[`renders ./components/time-picker/demo/12hours.md correctly 1`] = `
exports[`renders ./components/time-picker/demo/addon.md correctly 1`] = `
<span
class="ant-time-picker "
class="ant-time-picker"
>
<input
class="ant-time-picker-input"
@ -158,7 +158,7 @@ exports[`renders ./components/time-picker/demo/addon.md correctly 1`] = `
exports[`renders ./components/time-picker/demo/basic.md correctly 1`] = `
<span
class="ant-time-picker "
class="ant-time-picker"
>
<input
class="ant-time-picker-input"
@ -198,7 +198,7 @@ exports[`renders ./components/time-picker/demo/basic.md correctly 1`] = `
exports[`renders ./components/time-picker/demo/disabled.md correctly 1`] = `
<span
class="ant-time-picker "
class="ant-time-picker"
>
<input
class="ant-time-picker-input"
@ -234,32 +234,12 @@ exports[`renders ./components/time-picker/demo/disabled.md correctly 1`] = `
</svg>
</i>
</span>
<i
aria-label="icon: close-circle"
class="anticon anticon-close-circle ant-time-picker-clear"
tabindex="-1"
>
<svg
aria-hidden="true"
class=""
data-icon="close-circle"
fill="currentColor"
focusable="false"
height="1em"
viewBox="64 64 896 896"
width="1em"
>
<path
d="M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm165.4 618.2l-66-.3L512 563.4l-99.3 118.4-66.1.3c-4.4 0-8-3.5-8-8 0-1.9.7-3.7 1.9-5.2l130.1-155L340.5 359a8.32 8.32 0 0 1-1.9-5.2c0-4.4 3.6-8 8-8l66.1.3L512 464.6l99.3-118.4 66-.3c4.4 0 8 3.5 8 8 0 1.9-.7 3.7-1.9 5.2L553.5 514l130 155c1.2 1.5 1.9 3.3 1.9 5.2 0 4.4-3.6 8-8 8z"
/>
</svg>
</i>
</span>
`;
exports[`renders ./components/time-picker/demo/hide-column.md correctly 1`] = `
<span
class="ant-time-picker "
class="ant-time-picker"
>
<input
class="ant-time-picker-input"
@ -319,7 +299,7 @@ exports[`renders ./components/time-picker/demo/hide-column.md correctly 1`] = `
exports[`renders ./components/time-picker/demo/interval-options.md correctly 1`] = `
<span
class="ant-time-picker "
class="ant-time-picker"
>
<input
class="ant-time-picker-input"
@ -417,7 +397,7 @@ exports[`renders ./components/time-picker/demo/size.md correctly 1`] = `
</i>
</span>
<span
class="ant-time-picker "
class="ant-time-picker"
>
<input
class="ant-time-picker-input"
@ -535,7 +515,7 @@ exports[`renders ./components/time-picker/demo/size.md correctly 1`] = `
exports[`renders ./components/time-picker/demo/suffix.md correctly 1`] = `
<span
class="ant-time-picker "
class="ant-time-picker"
>
<input
class="ant-time-picker-input"
@ -572,7 +552,7 @@ exports[`renders ./components/time-picker/demo/suffix.md correctly 1`] = `
exports[`renders ./components/time-picker/demo/value.md correctly 1`] = `
<span
class="ant-time-picker "
class="ant-time-picker"
>
<input
class="ant-time-picker-input"

4
components/time-picker/__tests__/__snapshots__/index.test.js.snap

@ -2,7 +2,7 @@
exports[`TimePicker not render clean icon when allowClear is false 1`] = `
<span
class="ant-time-picker "
class="ant-time-picker"
>
<input
class="ant-time-picker-input"
@ -42,7 +42,7 @@ exports[`TimePicker not render clean icon when allowClear is false 1`] = `
exports[`TimePicker prop locale should works 1`] = `
<span
class="ant-time-picker "
class="ant-time-picker"
style=""
>
<input

2
docs/react/use-in-typescript.zh-CN.md

@ -176,7 +176,7 @@ module.exports = override(
```
这里利用了 [less-loader](https://github.com/webpack/less-loader#less-options) 的 `modifyVars` 来进行主题配置,
变量和其他配置方式可以参考 [配置主题](/docs/react/customize-theme-cn) 文档。
变量和其他配置方式可以参考 [配置主题](/docs/react/customize-theme) 文档。
修改后重启 `yarn start`,如果看到一个绿色的按钮就说明配置成功了。

2
docs/react/use-with-create-react-app.zh-CN.md

@ -92,7 +92,7 @@ export default App;
此时我们需要对 create-react-app 的默认配置进行自定义,这里我们使用 [react-app-rewired](https://github.com/timarney/react-app-rewired) (一个对 create-react-app 进行自定义配置的社区解决方案)。
引入 react-app-rewired 并修改 package.json 里的启动配置。由于新的 [react-app-rewired@2.x](https://github.com/timarney/react-app-rewired#alternatives) 版本的关系,你需要还需要安装 [customize-cra](https://github.com/arackaf/customize-cra)。
引入 react-app-rewired 并修改 package.json 里的启动配置。由于新的 [react-app-rewired@2.x](https://github.com/timarney/react-app-rewired#alternatives) 版本的关系,你还需要安装 [customize-cra](https://github.com/arackaf/customize-cra)。
```
$ yarn add react-app-rewired customize-cra

8
package.json

@ -1,6 +1,6 @@
{
"name": "antd",
"version": "3.16.2",
"version": "3.16.3",
"title": "Ant Design",
"description": "An enterprise-class UI design language and React-based implementation",
"homepage": "http://ant.design/",
@ -110,8 +110,8 @@
"antd-tools": "^7.3.0",
"babel-eslint": "^10.0.1",
"babel-plugin-add-react-displayname": "^0.0.5",
"bisheng": "^1.1.0",
"bisheng-plugin-antd": "^1.0.0",
"bisheng": "^1.2.4",
"bisheng-plugin-antd": "^1.0.1",
"bisheng-plugin-description": "^0.1.4",
"bisheng-plugin-react": "^1.0.0",
"bisheng-plugin-toc": "^0.4.4",
@ -129,7 +129,7 @@
"eslint-config-airbnb": "^17.1.0",
"eslint-config-prettier": "^4.0.0",
"eslint-plugin-babel": "^5.2.1",
"eslint-plugin-import": "^2.14.0",
"eslint-plugin-import": "~2.16.0",
"eslint-plugin-jest": "^22.4.1",
"eslint-plugin-jsx-a11y": "^6.1.2",
"eslint-plugin-markdown": "~1.0.0-beta.6",

1
site/bisheng.config.js

@ -25,6 +25,7 @@ function alertBabelConfig(rules) {
module.exports = {
port: 8001,
hash: true,
source: {
components: './components',
docs: './docs',

7
site/theme/static/template.html

@ -7,8 +7,8 @@
<meta name="description" content="An enterprise-class UI design language and React-based implementation with a set of high-quality React components, one of best React UI library for enterprises">
<title>Ant Design - A UI Design Language</title>
<link rel="icon" href="https://gw.alipayobjects.com/zos/rmsportal/rlpTLlbMzTNYuZGGCVYM.png" type="image/x-icon">
<link rel="stylesheet" type="text/css" href="{{ root }}index-1.css"/>
<link rel="stylesheet" type="text/css" href="{{ root }}index-2.css"/>
{% for cssFile in manifest["css"] %}<link rel="stylesheet" type="text/css" href="{{ root }}{{ cssFile }}"/>
{% endfor %}
<style id="nprogress-style">
#nprogress { display: none }
</style>
@ -74,7 +74,8 @@
<div id="react-content">
{{ content | safe }}
</div>
<script src="{{ root }}index.js"></script>
{% for jsFile in manifest["js"] %}<script src="{{ root }}{{ jsFile }}"></script>
{% endfor %}
<!-- Global Site Tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-72788897-1"></script>
<script>

Loading…
Cancel
Save