Browse Source

docs: 📔 Update customize-theme.zh-CN.md (#25540)

* Update customize-theme.zh-CN.md

* test:  update snapshot
pull/25539/head
偏右 4 years ago
committed by GitHub
parent
commit
9febbca3fe
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 20
      components/calendar/__tests__/__snapshots__/demo.test.js.snap
  2. 8
      components/calendar/__tests__/__snapshots__/index.test.js.snap
  3. 2
      components/collapse/__tests__/__snapshots__/demo.test.js.snap
  4. 60
      components/config-provider/__tests__/__snapshots__/components.test.js.snap
  5. 4
      components/form/__tests__/__snapshots__/demo.test.js.snap
  6. 20
      components/input/__tests__/__snapshots__/demo.test.js.snap
  7. 6
      components/list/__tests__/__snapshots__/pagination.test.js.snap
  8. 318
      components/locale-provider/__tests__/__snapshots__/index.test.js.snap
  9. 20
      components/pagination/__tests__/__snapshots__/demo.test.js.snap
  10. 26
      components/select/__tests__/__snapshots__/demo.test.js.snap
  11. 8
      components/table/__tests__/__snapshots__/demo.test.js.snap
  12. 2
      components/tabs/__tests__/__snapshots__/demo.test.js.snap
  13. 6
      docs/react/customize-theme.en-US.md
  14. 4
      docs/react/customize-theme.zh-CN.md
  15. 2
      package.json

20
components/calendar/__tests__/__snapshots__/demo.test.js.snap

@ -15,7 +15,6 @@ exports[`renders ./components/calendar/demo/basic.md correctly 1`] = `
>
<span
class="ant-select-selection-search"
title="2016"
>
<input
aria-activedescendant="undefined_list_0"
@ -34,6 +33,7 @@ exports[`renders ./components/calendar/demo/basic.md correctly 1`] = `
</span>
<span
class="ant-select-selection-item"
title="2016"
>
2016
</span>
@ -74,7 +74,6 @@ exports[`renders ./components/calendar/demo/basic.md correctly 1`] = `
>
<span
class="ant-select-selection-search"
title="Nov"
>
<input
aria-activedescendant="undefined_list_0"
@ -93,6 +92,7 @@ exports[`renders ./components/calendar/demo/basic.md correctly 1`] = `
</span>
<span
class="ant-select-selection-item"
title="Nov"
>
Nov
</span>
@ -960,7 +960,6 @@ exports[`renders ./components/calendar/demo/card.md correctly 1`] = `
>
<span
class="ant-select-selection-search"
title="2016"
>
<input
aria-activedescendant="undefined_list_0"
@ -979,6 +978,7 @@ exports[`renders ./components/calendar/demo/card.md correctly 1`] = `
</span>
<span
class="ant-select-selection-item"
title="2016"
>
2016
</span>
@ -1019,7 +1019,6 @@ exports[`renders ./components/calendar/demo/card.md correctly 1`] = `
>
<span
class="ant-select-selection-search"
title="Nov"
>
<input
aria-activedescendant="undefined_list_0"
@ -1038,6 +1037,7 @@ exports[`renders ./components/calendar/demo/card.md correctly 1`] = `
</span>
<span
class="ant-select-selection-item"
title="Nov"
>
Nov
</span>
@ -1967,7 +1967,6 @@ exports[`renders ./components/calendar/demo/customize-header.md correctly 1`] =
>
<span
class="ant-select-selection-search"
title="2016"
>
<input
aria-activedescendant="undefined_list_0"
@ -1986,6 +1985,7 @@ exports[`renders ./components/calendar/demo/customize-header.md correctly 1`] =
</span>
<span
class="ant-select-selection-item"
title="2016"
>
2016
</span>
@ -2031,7 +2031,6 @@ exports[`renders ./components/calendar/demo/customize-header.md correctly 1`] =
>
<span
class="ant-select-selection-search"
title="Nov"
>
<input
aria-activedescendant="undefined_list_0"
@ -2050,6 +2049,7 @@ exports[`renders ./components/calendar/demo/customize-header.md correctly 1`] =
</span>
<span
class="ant-select-selection-item"
title="Nov"
>
Nov
</span>
@ -2874,7 +2874,6 @@ exports[`renders ./components/calendar/demo/notice-calendar.md correctly 1`] = `
>
<span
class="ant-select-selection-search"
title="2016"
>
<input
aria-activedescendant="undefined_list_0"
@ -2893,6 +2892,7 @@ exports[`renders ./components/calendar/demo/notice-calendar.md correctly 1`] = `
</span>
<span
class="ant-select-selection-item"
title="2016"
>
2016
</span>
@ -2933,7 +2933,6 @@ exports[`renders ./components/calendar/demo/notice-calendar.md correctly 1`] = `
>
<span
class="ant-select-selection-search"
title="Nov"
>
<input
aria-activedescendant="undefined_list_0"
@ -2952,6 +2951,7 @@ exports[`renders ./components/calendar/demo/notice-calendar.md correctly 1`] = `
</span>
<span
class="ant-select-selection-item"
title="Nov"
>
Nov
</span>
@ -4227,7 +4227,6 @@ exports[`renders ./components/calendar/demo/select.md correctly 1`] = `
>
<span
class="ant-select-selection-search"
title="2017"
>
<input
aria-activedescendant="undefined_list_0"
@ -4246,6 +4245,7 @@ exports[`renders ./components/calendar/demo/select.md correctly 1`] = `
</span>
<span
class="ant-select-selection-item"
title="2017"
>
2017
</span>
@ -4286,7 +4286,6 @@ exports[`renders ./components/calendar/demo/select.md correctly 1`] = `
>
<span
class="ant-select-selection-search"
title="Jan"
>
<input
aria-activedescendant="undefined_list_0"
@ -4305,6 +4304,7 @@ exports[`renders ./components/calendar/demo/select.md correctly 1`] = `
</span>
<span
class="ant-select-selection-item"
title="Jan"
>
Jan
</span>

8
components/calendar/__tests__/__snapshots__/index.test.js.snap

@ -15,7 +15,6 @@ exports[`Calendar Calendar should support locale 1`] = `
>
<span
class="ant-select-selection-search"
title="2018年"
>
<input
aria-activedescendant="rc_select_TEST_OR_SSR_list_0"
@ -35,6 +34,7 @@ exports[`Calendar Calendar should support locale 1`] = `
</span>
<span
class="ant-select-selection-item"
title="2018年"
>
2018年
</span>
@ -75,7 +75,6 @@ exports[`Calendar Calendar should support locale 1`] = `
>
<span
class="ant-select-selection-search"
title="10月"
>
<input
aria-activedescendant="rc_select_TEST_OR_SSR_list_0"
@ -95,6 +94,7 @@ exports[`Calendar Calendar should support locale 1`] = `
</span>
<span
class="ant-select-selection-item"
title="10月"
>
10月
</span>
@ -959,7 +959,6 @@ exports[`Calendar rtl render component should be rendered correctly in RTL direc
>
<span
class="ant-select-selection-search"
title="2000"
>
<input
aria-activedescendant="undefined_list_0"
@ -978,6 +977,7 @@ exports[`Calendar rtl render component should be rendered correctly in RTL direc
</span>
<span
class="ant-select-selection-item"
title="2000"
>
2000
</span>
@ -1018,7 +1018,6 @@ exports[`Calendar rtl render component should be rendered correctly in RTL direc
>
<span
class="ant-select-selection-search"
title="Sep"
>
<input
aria-activedescendant="undefined_list_0"
@ -1037,6 +1036,7 @@ exports[`Calendar rtl render component should be rendered correctly in RTL direc
</span>
<span
class="ant-select-selection-item"
title="Sep"
>
Sep
</span>

2
components/collapse/__tests__/__snapshots__/demo.test.js.snap

@ -665,7 +665,6 @@ exports[`renders ./components/collapse/demo/extra.md correctly 1`] = `
>
<span
class="ant-select-selection-search"
title="left"
>
<input
aria-activedescendant="undefined_list_0"
@ -684,6 +683,7 @@ exports[`renders ./components/collapse/demo/extra.md correctly 1`] = `
</span>
<span
class="ant-select-selection-item"
title="left"
>
left
</span>

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

@ -2254,7 +2254,6 @@ exports[`ConfigProvider components Calendar configProvider 1`] = `
>
<span
class="config-select-selection-search"
title="2000"
>
<input
aria-activedescendant="undefined_list_0"
@ -2273,6 +2272,7 @@ exports[`ConfigProvider components Calendar configProvider 1`] = `
</span>
<span
class="config-select-selection-item"
title="2000"
>
2000
</span>
@ -2313,7 +2313,6 @@ exports[`ConfigProvider components Calendar configProvider 1`] = `
>
<span
class="config-select-selection-search"
title="Sep"
>
<input
aria-activedescendant="undefined_list_0"
@ -2332,6 +2331,7 @@ exports[`ConfigProvider components Calendar configProvider 1`] = `
</span>
<span
class="config-select-selection-item"
title="Sep"
>
Sep
</span>
@ -3193,7 +3193,6 @@ exports[`ConfigProvider components Calendar configProvider 1`] = `
>
<span
class="config-select-selection-search"
title="2000"
>
<input
aria-activedescendant="undefined_list_0"
@ -3212,6 +3211,7 @@ exports[`ConfigProvider components Calendar configProvider 1`] = `
</span>
<span
class="config-select-selection-item"
title="2000"
>
2000
</span>
@ -3539,7 +3539,6 @@ exports[`ConfigProvider components Calendar configProvider componentSize large 1
>
<span
class="config-select-selection-search"
title="2000"
>
<input
aria-activedescendant="undefined_list_0"
@ -3558,6 +3557,7 @@ exports[`ConfigProvider components Calendar configProvider componentSize large 1
</span>
<span
class="config-select-selection-item"
title="2000"
>
2000
</span>
@ -3598,7 +3598,6 @@ exports[`ConfigProvider components Calendar configProvider componentSize large 1
>
<span
class="config-select-selection-search"
title="Sep"
>
<input
aria-activedescendant="undefined_list_0"
@ -3617,6 +3616,7 @@ exports[`ConfigProvider components Calendar configProvider componentSize large 1
</span>
<span
class="config-select-selection-item"
title="Sep"
>
Sep
</span>
@ -4478,7 +4478,6 @@ exports[`ConfigProvider components Calendar configProvider componentSize large 1
>
<span
class="config-select-selection-search"
title="2000"
>
<input
aria-activedescendant="undefined_list_0"
@ -4497,6 +4496,7 @@ exports[`ConfigProvider components Calendar configProvider componentSize large 1
</span>
<span
class="config-select-selection-item"
title="2000"
>
2000
</span>
@ -4824,7 +4824,6 @@ exports[`ConfigProvider components Calendar configProvider componentSize middle
>
<span
class="config-select-selection-search"
title="2000"
>
<input
aria-activedescendant="undefined_list_0"
@ -4843,6 +4842,7 @@ exports[`ConfigProvider components Calendar configProvider componentSize middle
</span>
<span
class="config-select-selection-item"
title="2000"
>
2000
</span>
@ -4883,7 +4883,6 @@ exports[`ConfigProvider components Calendar configProvider componentSize middle
>
<span
class="config-select-selection-search"
title="Sep"
>
<input
aria-activedescendant="undefined_list_0"
@ -4902,6 +4901,7 @@ exports[`ConfigProvider components Calendar configProvider componentSize middle
</span>
<span
class="config-select-selection-item"
title="Sep"
>
Sep
</span>
@ -5763,7 +5763,6 @@ exports[`ConfigProvider components Calendar configProvider componentSize middle
>
<span
class="config-select-selection-search"
title="2000"
>
<input
aria-activedescendant="undefined_list_0"
@ -5782,6 +5781,7 @@ exports[`ConfigProvider components Calendar configProvider componentSize middle
</span>
<span
class="config-select-selection-item"
title="2000"
>
2000
</span>
@ -6109,7 +6109,6 @@ exports[`ConfigProvider components Calendar configProvider virtual and dropdownM
>
<span
class="ant-select-selection-search"
title="2000"
>
<input
aria-activedescendant="undefined_list_0"
@ -6128,6 +6127,7 @@ exports[`ConfigProvider components Calendar configProvider virtual and dropdownM
</span>
<span
class="ant-select-selection-item"
title="2000"
>
2000
</span>
@ -6168,7 +6168,6 @@ exports[`ConfigProvider components Calendar configProvider virtual and dropdownM
>
<span
class="ant-select-selection-search"
title="Sep"
>
<input
aria-activedescendant="undefined_list_0"
@ -6187,6 +6186,7 @@ exports[`ConfigProvider components Calendar configProvider virtual and dropdownM
</span>
<span
class="ant-select-selection-item"
title="Sep"
>
Sep
</span>
@ -7048,7 +7048,6 @@ exports[`ConfigProvider components Calendar configProvider virtual and dropdownM
>
<span
class="ant-select-selection-search"
title="2000"
>
<input
aria-activedescendant="undefined_list_0"
@ -7067,6 +7066,7 @@ exports[`ConfigProvider components Calendar configProvider virtual and dropdownM
</span>
<span
class="ant-select-selection-item"
title="2000"
>
2000
</span>
@ -7394,7 +7394,6 @@ exports[`ConfigProvider components Calendar normal 1`] = `
>
<span
class="ant-select-selection-search"
title="2000"
>
<input
aria-activedescendant="undefined_list_0"
@ -7413,6 +7412,7 @@ exports[`ConfigProvider components Calendar normal 1`] = `
</span>
<span
class="ant-select-selection-item"
title="2000"
>
2000
</span>
@ -7453,7 +7453,6 @@ exports[`ConfigProvider components Calendar normal 1`] = `
>
<span
class="ant-select-selection-search"
title="Sep"
>
<input
aria-activedescendant="undefined_list_0"
@ -7472,6 +7471,7 @@ exports[`ConfigProvider components Calendar normal 1`] = `
</span>
<span
class="ant-select-selection-item"
title="Sep"
>
Sep
</span>
@ -8333,7 +8333,6 @@ exports[`ConfigProvider components Calendar normal 1`] = `
>
<span
class="ant-select-selection-search"
title="2000"
>
<input
aria-activedescendant="undefined_list_0"
@ -8352,6 +8351,7 @@ exports[`ConfigProvider components Calendar normal 1`] = `
</span>
<span
class="ant-select-selection-item"
title="2000"
>
2000
</span>
@ -8679,7 +8679,6 @@ exports[`ConfigProvider components Calendar prefixCls 1`] = `
>
<span
class="ant-select-selection-search"
title="2000"
>
<input
aria-activedescendant="undefined_list_0"
@ -8698,6 +8697,7 @@ exports[`ConfigProvider components Calendar prefixCls 1`] = `
</span>
<span
class="ant-select-selection-item"
title="2000"
>
2000
</span>
@ -8738,7 +8738,6 @@ exports[`ConfigProvider components Calendar prefixCls 1`] = `
>
<span
class="ant-select-selection-search"
title="Sep"
>
<input
aria-activedescendant="undefined_list_0"
@ -8757,6 +8756,7 @@ exports[`ConfigProvider components Calendar prefixCls 1`] = `
</span>
<span
class="ant-select-selection-item"
title="Sep"
>
Sep
</span>
@ -9618,7 +9618,6 @@ exports[`ConfigProvider components Calendar prefixCls 1`] = `
>
<span
class="ant-select-selection-search"
title="2000"
>
<input
aria-activedescendant="undefined_list_0"
@ -9637,6 +9636,7 @@ exports[`ConfigProvider components Calendar prefixCls 1`] = `
</span>
<span
class="ant-select-selection-item"
title="2000"
>
2000
</span>
@ -17012,7 +17012,6 @@ exports[`ConfigProvider components Pagination configProvider 1`] = `
>
<span
class="config-select-selection-search"
title="10 / page"
>
<input
aria-activedescendant="undefined_list_0"
@ -17031,6 +17030,7 @@ exports[`ConfigProvider components Pagination configProvider 1`] = `
</span>
<span
class="config-select-selection-item"
title="10 / page"
>
10 / page
</span>
@ -17164,7 +17164,6 @@ exports[`ConfigProvider components Pagination configProvider 1`] = `
>
<span
class="config-select-selection-search"
title="10 / page"
>
<input
aria-activedescendant="undefined_list_0"
@ -17183,6 +17182,7 @@ exports[`ConfigProvider components Pagination configProvider 1`] = `
</span>
<span
class="config-select-selection-item"
title="10 / page"
>
10 / page
</span>
@ -17321,7 +17321,6 @@ exports[`ConfigProvider components Pagination configProvider componentSize large
>
<span
class="config-select-selection-search"
title="10 / page"
>
<input
aria-activedescendant="undefined_list_0"
@ -17340,6 +17339,7 @@ exports[`ConfigProvider components Pagination configProvider componentSize large
</span>
<span
class="config-select-selection-item"
title="10 / page"
>
10 / page
</span>
@ -17473,7 +17473,6 @@ exports[`ConfigProvider components Pagination configProvider componentSize large
>
<span
class="config-select-selection-search"
title="10 / page"
>
<input
aria-activedescendant="undefined_list_0"
@ -17492,6 +17491,7 @@ exports[`ConfigProvider components Pagination configProvider componentSize large
</span>
<span
class="config-select-selection-item"
title="10 / page"
>
10 / page
</span>
@ -17630,7 +17630,6 @@ exports[`ConfigProvider components Pagination configProvider componentSize middl
>
<span
class="config-select-selection-search"
title="10 / page"
>
<input
aria-activedescendant="undefined_list_0"
@ -17649,6 +17648,7 @@ exports[`ConfigProvider components Pagination configProvider componentSize middl
</span>
<span
class="config-select-selection-item"
title="10 / page"
>
10 / page
</span>
@ -17782,7 +17782,6 @@ exports[`ConfigProvider components Pagination configProvider componentSize middl
>
<span
class="config-select-selection-search"
title="10 / page"
>
<input
aria-activedescendant="undefined_list_0"
@ -17801,6 +17800,7 @@ exports[`ConfigProvider components Pagination configProvider componentSize middl
</span>
<span
class="config-select-selection-item"
title="10 / page"
>
10 / page
</span>
@ -17939,7 +17939,6 @@ exports[`ConfigProvider components Pagination configProvider virtual and dropdow
>
<span
class="ant-select-selection-search"
title="10 / page"
>
<input
aria-activedescendant="undefined_list_0"
@ -17958,6 +17957,7 @@ exports[`ConfigProvider components Pagination configProvider virtual and dropdow
</span>
<span
class="ant-select-selection-item"
title="10 / page"
>
10 / page
</span>
@ -18091,7 +18091,6 @@ exports[`ConfigProvider components Pagination configProvider virtual and dropdow
>
<span
class="ant-select-selection-search"
title="10 / page"
>
<input
aria-activedescendant="undefined_list_0"
@ -18110,6 +18109,7 @@ exports[`ConfigProvider components Pagination configProvider virtual and dropdow
</span>
<span
class="ant-select-selection-item"
title="10 / page"
>
10 / page
</span>
@ -18248,7 +18248,6 @@ exports[`ConfigProvider components Pagination normal 1`] = `
>
<span
class="ant-select-selection-search"
title="10 / page"
>
<input
aria-activedescendant="undefined_list_0"
@ -18267,6 +18266,7 @@ exports[`ConfigProvider components Pagination normal 1`] = `
</span>
<span
class="ant-select-selection-item"
title="10 / page"
>
10 / page
</span>
@ -18400,7 +18400,6 @@ exports[`ConfigProvider components Pagination normal 1`] = `
>
<span
class="ant-select-selection-search"
title="10 / page"
>
<input
aria-activedescendant="undefined_list_0"
@ -18419,6 +18418,7 @@ exports[`ConfigProvider components Pagination normal 1`] = `
</span>
<span
class="ant-select-selection-item"
title="10 / page"
>
10 / page
</span>
@ -18557,7 +18557,6 @@ exports[`ConfigProvider components Pagination prefixCls 1`] = `
>
<span
class="ant-select-selection-search"
title="10 / page"
>
<input
aria-activedescendant="undefined_list_0"
@ -18576,6 +18575,7 @@ exports[`ConfigProvider components Pagination prefixCls 1`] = `
</span>
<span
class="ant-select-selection-item"
title="10 / page"
>
10 / page
</span>
@ -18709,7 +18709,6 @@ exports[`ConfigProvider components Pagination prefixCls 1`] = `
>
<span
class="ant-select-selection-search"
title="10 / page"
>
<input
aria-activedescendant="undefined_list_0"
@ -18728,6 +18727,7 @@ exports[`ConfigProvider components Pagination prefixCls 1`] = `
</span>
<span
class="ant-select-selection-item"
title="10 / page"
>
10 / page
</span>

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

@ -850,7 +850,6 @@ exports[`renders ./components/form/demo/customized-form-controls.md correctly 1`
>
<span
class="ant-select-selection-search"
title="RMB"
>
<input
aria-activedescendant="undefined_list_0"
@ -869,6 +868,7 @@ exports[`renders ./components/form/demo/customized-form-controls.md correctly 1`
</span>
<span
class="ant-select-selection-item"
title="RMB"
>
RMB
</span>
@ -3147,7 +3147,6 @@ exports[`renders ./components/form/demo/register.md correctly 1`] = `
>
<span
class="ant-select-selection-search"
title="+86"
>
<input
aria-activedescendant="register_prefix_list_0"
@ -3167,6 +3166,7 @@ exports[`renders ./components/form/demo/register.md correctly 1`] = `
</span>
<span
class="ant-select-selection-item"
title="+86"
>
+86
</span>

20
components/input/__tests__/__snapshots__/demo.test.js.snap

@ -49,7 +49,6 @@ Array [
>
<span
class="ant-select-selection-search"
title="http://"
>
<input
aria-activedescendant="undefined_list_0"
@ -68,6 +67,7 @@ Array [
</span>
<span
class="ant-select-selection-item"
title="http://"
>
http://
</span>
@ -117,7 +117,6 @@ Array [
>
<span
class="ant-select-selection-search"
title=".com"
>
<input
aria-activedescendant="undefined_list_0"
@ -136,6 +135,7 @@ Array [
</span>
<span
class="ant-select-selection-item"
title=".com"
>
.com
</span>
@ -526,7 +526,6 @@ Array [
>
<span
class="ant-select-selection-search"
title="Jack"
>
<input
aria-activedescendant="undefined_list_0"
@ -545,6 +544,7 @@ Array [
</span>
<span
class="ant-select-selection-item"
title="Jack"
>
Jack
</span>
@ -1125,7 +1125,6 @@ exports[`renders ./components/input/demo/group.md correctly 1`] = `
>
<span
class="ant-select-selection-search"
title="Zhejiang"
>
<input
aria-activedescendant="undefined_list_0"
@ -1144,6 +1143,7 @@ exports[`renders ./components/input/demo/group.md correctly 1`] = `
</span>
<span
class="ant-select-selection-item"
title="Zhejiang"
>
Zhejiang
</span>
@ -1241,7 +1241,6 @@ exports[`renders ./components/input/demo/group.md correctly 1`] = `
>
<span
class="ant-select-selection-search"
title="Option1"
>
<input
aria-activedescendant="undefined_list_0"
@ -1260,6 +1259,7 @@ exports[`renders ./components/input/demo/group.md correctly 1`] = `
</span>
<span
class="ant-select-selection-item"
title="Option1"
>
Option1
</span>
@ -1535,7 +1535,6 @@ exports[`renders ./components/input/demo/group.md correctly 1`] = `
>
<span
class="ant-select-selection-search"
title="Option1-1"
>
<input
aria-activedescendant="undefined_list_0"
@ -1554,6 +1553,7 @@ exports[`renders ./components/input/demo/group.md correctly 1`] = `
</span>
<span
class="ant-select-selection-item"
title="Option1-1"
>
Option1-1
</span>
@ -1594,7 +1594,6 @@ exports[`renders ./components/input/demo/group.md correctly 1`] = `
>
<span
class="ant-select-selection-search"
title="Option2-2"
>
<input
aria-activedescendant="undefined_list_0"
@ -1613,6 +1612,7 @@ exports[`renders ./components/input/demo/group.md correctly 1`] = `
</span>
<span
class="ant-select-selection-item"
title="Option2-2"
>
Option2-2
</span>
@ -1658,7 +1658,6 @@ exports[`renders ./components/input/demo/group.md correctly 1`] = `
>
<span
class="ant-select-selection-search"
title="Between"
>
<input
aria-activedescendant="undefined_list_0"
@ -1677,6 +1676,7 @@ exports[`renders ./components/input/demo/group.md correctly 1`] = `
</span>
<span
class="ant-select-selection-item"
title="Between"
>
Between
</span>
@ -1745,7 +1745,6 @@ exports[`renders ./components/input/demo/group.md correctly 1`] = `
>
<span
class="ant-select-selection-search"
title="Sign Up"
>
<input
aria-activedescendant="undefined_list_0"
@ -1764,6 +1763,7 @@ exports[`renders ./components/input/demo/group.md correctly 1`] = `
</span>
<span
class="ant-select-selection-item"
title="Sign Up"
>
Sign Up
</span>
@ -1839,7 +1839,6 @@ exports[`renders ./components/input/demo/group.md correctly 1`] = `
>
<span
class="ant-select-selection-search"
title="Home"
>
<input
aria-activedescendant="undefined_list_0"
@ -1858,6 +1857,7 @@ exports[`renders ./components/input/demo/group.md correctly 1`] = `
</span>
<span
class="ant-select-selection-item"
title="Home"
>
Home
</span>

6
components/list/__tests__/__snapshots__/pagination.test.js.snap

@ -213,7 +213,6 @@ exports[`List.pagination should change page size work 1`] = `
>
<span
class="ant-select-selection-search"
title="10 / page"
>
<input
aria-activedescendant="rc_select_TEST_OR_SSR_list_0"
@ -233,6 +232,7 @@ exports[`List.pagination should change page size work 1`] = `
</span>
<span
class="ant-select-selection-item"
title="10 / page"
>
10 / page
</span>
@ -360,7 +360,6 @@ exports[`List.pagination should change page size work 2`] = `
>
<span
class="ant-select-selection-search"
title="50 / page"
>
<input
aria-activedescendant="rc_select_TEST_OR_SSR_list_0"
@ -381,6 +380,7 @@ exports[`List.pagination should change page size work 2`] = `
</span>
<span
class="ant-select-selection-item"
title="50 / page"
>
50 / page
</span>
@ -639,7 +639,6 @@ exports[`List.pagination should default work 1`] = `
>
<span
class="ant-select-selection-search"
title="3 / page"
>
<input
aria-activedescendant="rc_select_TEST_OR_SSR_list_0"
@ -659,6 +658,7 @@ exports[`List.pagination should default work 1`] = `
</span>
<span
class="ant-select-selection-item"
title="3 / page"
>
3 / page
</span>

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

File diff suppressed because it is too large

20
components/pagination/__tests__/__snapshots__/demo.test.js.snap

@ -180,7 +180,6 @@ exports[`renders ./components/pagination/demo/all.md correctly 1`] = `
>
<span
class="ant-select-selection-search"
title="10 / page"
>
<input
aria-activedescendant="undefined_list_0"
@ -199,6 +198,7 @@ exports[`renders ./components/pagination/demo/all.md correctly 1`] = `
</span>
<span
class="ant-select-selection-item"
title="10 / page"
>
10 / page
</span>
@ -539,7 +539,6 @@ Array [
>
<span
class="ant-select-selection-search"
title="10 / page"
>
<input
aria-activedescendant="undefined_list_0"
@ -558,6 +557,7 @@ Array [
</span>
<span
class="ant-select-selection-item"
title="10 / page"
>
10 / page
</span>
@ -767,7 +767,6 @@ Array [
>
<span
class="ant-select-selection-search"
title="10 / page"
>
<input
aria-activedescendant="undefined_list_0"
@ -788,6 +787,7 @@ Array [
</span>
<span
class="ant-select-selection-item"
title="10 / page"
>
10 / page
</span>
@ -1074,7 +1074,6 @@ exports[`renders ./components/pagination/demo/itemRender.md correctly 1`] = `
>
<span
class="ant-select-selection-search"
title="10 / page"
>
<input
aria-activedescendant="undefined_list_0"
@ -1093,6 +1092,7 @@ exports[`renders ./components/pagination/demo/itemRender.md correctly 1`] = `
</span>
<span
class="ant-select-selection-item"
title="10 / page"
>
10 / page
</span>
@ -1305,7 +1305,6 @@ Array [
>
<span
class="ant-select-selection-search"
title="10 / page"
>
<input
aria-activedescendant="undefined_list_0"
@ -1324,6 +1323,7 @@ Array [
</span>
<span
class="ant-select-selection-item"
title="10 / page"
>
10 / page
</span>
@ -1542,7 +1542,6 @@ Array [
>
<span
class="ant-select-selection-search"
title="10 / page"
>
<input
aria-activedescendant="undefined_list_0"
@ -1563,6 +1562,7 @@ Array [
</span>
<span
class="ant-select-selection-item"
title="10 / page"
>
10 / page
</span>
@ -1854,7 +1854,6 @@ Array [
>
<span
class="ant-select-selection-search"
title="10 / page"
>
<input
aria-activedescendant="undefined_list_0"
@ -1873,6 +1872,7 @@ Array [
</span>
<span
class="ant-select-selection-item"
title="10 / page"
>
10 / page
</span>
@ -2263,7 +2263,6 @@ exports[`renders ./components/pagination/demo/more.md correctly 1`] = `
>
<span
class="ant-select-selection-search"
title="10 / page"
>
<input
aria-activedescendant="undefined_list_0"
@ -2282,6 +2281,7 @@ exports[`renders ./components/pagination/demo/more.md correctly 1`] = `
</span>
<span
class="ant-select-selection-item"
title="10 / page"
>
10 / page
</span>
@ -2540,7 +2540,6 @@ Array [
>
<span
class="ant-select-selection-search"
title="20 / page"
>
<input
aria-activedescendant="undefined_list_0"
@ -2559,6 +2558,7 @@ Array [
</span>
<span
class="ant-select-selection-item"
title="20 / page"
>
20 / page
</span>
@ -2725,7 +2725,6 @@ Array [
>
<span
class="ant-select-selection-search"
title="20 / page"
>
<input
aria-activedescendant="undefined_list_0"
@ -2744,6 +2743,7 @@ Array [
</span>
<span
class="ant-select-selection-item"
title="20 / page"
>
20 / page
</span>

26
components/select/__tests__/__snapshots__/demo.test.js.snap

@ -48,7 +48,6 @@ Array [
>
<span
class="ant-select-selection-search"
title="Lucy"
>
<input
aria-activedescendant="undefined_list_0"
@ -67,6 +66,7 @@ Array [
</span>
<span
class="ant-select-selection-item"
title="Lucy"
>
Lucy
</span>
@ -108,7 +108,6 @@ Array [
>
<span
class="ant-select-selection-search"
title="Lucy"
>
<input
aria-activedescendant="undefined_list_0"
@ -129,6 +128,7 @@ Array [
</span>
<span
class="ant-select-selection-item"
title="Lucy"
>
Lucy
</span>
@ -170,7 +170,6 @@ Array [
>
<span
class="ant-select-selection-search"
title="Lucy"
>
<input
aria-activedescendant="undefined_list_0"
@ -189,6 +188,7 @@ Array [
</span>
<span
class="ant-select-selection-item"
title="Lucy"
>
Lucy
</span>
@ -230,7 +230,6 @@ Array [
>
<span
class="ant-select-selection-search"
title="Lucy"
>
<input
aria-activedescendant="undefined_list_0"
@ -249,6 +248,7 @@ Array [
</span>
<span
class="ant-select-selection-item"
title="Lucy"
>
Lucy
</span>
@ -430,7 +430,6 @@ Array [
>
<span
class="ant-select-selection-search"
title="Lucy"
>
<input
aria-activedescendant="undefined_list_0"
@ -449,6 +448,7 @@ Array [
</span>
<span
class="ant-select-selection-item"
title="Lucy"
>
Lucy
</span>
@ -490,7 +490,6 @@ Array [
>
<span
class="ant-select-selection-search"
title="Lucy"
>
<input
aria-activedescendant="undefined_list_0"
@ -511,6 +510,7 @@ Array [
</span>
<span
class="ant-select-selection-item"
title="Lucy"
>
Lucy
</span>
@ -557,7 +557,6 @@ Array [
>
<span
class="ant-select-selection-search"
title="Zhejiang"
>
<input
aria-activedescendant="undefined_list_0"
@ -576,6 +575,7 @@ Array [
</span>
<span
class="ant-select-selection-item"
title="Zhejiang"
>
Zhejiang
</span>
@ -617,7 +617,6 @@ Array [
>
<span
class="ant-select-selection-search"
title="Hangzhou"
>
<input
aria-activedescendant="undefined_list_0"
@ -636,6 +635,7 @@ Array [
</span>
<span
class="ant-select-selection-item"
title="Hangzhou"
>
Hangzhou
</span>
@ -1035,7 +1035,6 @@ exports[`renders ./components/select/demo/label-in-value.md correctly 1`] = `
>
<span
class="ant-select-selection-search"
title="Lucy (101)"
>
<input
aria-activedescendant="undefined_list_0"
@ -1054,6 +1053,7 @@ exports[`renders ./components/select/demo/label-in-value.md correctly 1`] = `
</span>
<span
class="ant-select-selection-item"
title="Lucy (101)"
>
Lucy (101)
</span>
@ -1207,7 +1207,6 @@ exports[`renders ./components/select/demo/optgroup.md correctly 1`] = `
>
<span
class="ant-select-selection-search"
title="Lucy"
>
<input
aria-activedescendant="undefined_list_0"
@ -1226,6 +1225,7 @@ exports[`renders ./components/select/demo/optgroup.md correctly 1`] = `
</span>
<span
class="ant-select-selection-item"
title="Lucy"
>
Lucy
</span>
@ -1547,7 +1547,6 @@ Array [
>
<span
class="ant-select-selection-search"
title="a1"
>
<input
aria-activedescendant="undefined_list_0"
@ -1566,6 +1565,7 @@ Array [
</span>
<span
class="ant-select-selection-item"
title="a1"
>
a1
</span>
@ -1823,7 +1823,6 @@ Array [
>
<span
class="ant-select-selection-search"
title="Lucy"
>
<input
aria-activedescendant="undefined_list_0"
@ -1842,6 +1841,7 @@ Array [
</span>
<span
class="ant-select-selection-item"
title="Lucy"
>
Lucy
</span>
@ -1883,7 +1883,6 @@ Array [
>
<span
class="ant-select-selection-search"
title="Lucy"
>
<input
aria-activedescendant="undefined_list_0"
@ -1904,6 +1903,7 @@ Array [
</span>
<span
class="ant-select-selection-item"
title="Lucy"
>
Lucy
</span>

8
components/table/__tests__/__snapshots__/demo.test.js.snap

@ -4527,7 +4527,6 @@ exports[`renders ./components/table/demo/edit-row.md correctly 1`] = `
>
<span
class="ant-select-selection-search"
title="10 / page"
>
<input
aria-activedescendant="undefined_list_0"
@ -4546,6 +4545,7 @@ exports[`renders ./components/table/demo/edit-row.md correctly 1`] = `
</span>
<span
class="ant-select-selection-item"
title="10 / page"
>
10 / page
</span>
@ -7128,7 +7128,6 @@ exports[`renders ./components/table/demo/fixed-columns-header.md correctly 1`] =
>
<span
class="ant-select-selection-search"
title="10 / page"
>
<input
aria-activedescendant="undefined_list_0"
@ -7147,6 +7146,7 @@ exports[`renders ./components/table/demo/fixed-columns-header.md correctly 1`] =
</span>
<span
class="ant-select-selection-item"
title="10 / page"
>
10 / page
</span>
@ -8370,7 +8370,6 @@ exports[`renders ./components/table/demo/fixed-header.md correctly 1`] = `
>
<span
class="ant-select-selection-search"
title="50 / page"
>
<input
aria-activedescendant="undefined_list_0"
@ -8389,6 +8388,7 @@ exports[`renders ./components/table/demo/fixed-header.md correctly 1`] = `
</span>
<span
class="ant-select-selection-item"
title="50 / page"
>
50 / page
</span>
@ -9347,7 +9347,6 @@ exports[`renders ./components/table/demo/grouping-columns.md correctly 1`] = `
>
<span
class="ant-select-selection-search"
title="10 / page"
>
<input
aria-activedescendant="undefined_list_0"
@ -9366,6 +9365,7 @@ exports[`renders ./components/table/demo/grouping-columns.md correctly 1`] = `
</span>
<span
class="ant-select-selection-item"
title="10 / page"
>
10 / page
</span>

2
components/tabs/__tests__/__snapshots__/demo.test.js.snap

@ -2410,7 +2410,6 @@ exports[`renders ./components/tabs/demo/position.md correctly 1`] = `
>
<span
class="ant-select-selection-search"
title="top"
>
<input
aria-activedescendant="undefined_list_0"
@ -2429,6 +2428,7 @@ exports[`renders ./components/tabs/demo/position.md correctly 1`] = `
</span>
<span
class="ant-select-selection-item"
title="top"
>
top
</span>

6
docs/react/customize-theme.en-US.md

@ -24,9 +24,10 @@ There are some major variables below, all less variables could be found in [Defa
@text-color: rgba(0, 0, 0, 0.65); // major text color
@text-color-secondary: rgba(0, 0, 0, 0.45); // secondary text color
@disabled-color: rgba(0, 0, 0, 0.25); // disable state color
@border-radius-base: 4px; // major border radius
@border-radius-base: 2px; // major border radius
@border-color-base: #d9d9d9; // major border color
@box-shadow-base: 0 2px 8px rgba(0, 0, 0, 0.15); // major shadow for layers
@box-shadow-base: 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 6px 16px 0 rgba(0, 0, 0, 0.08),
0 9px 28px 8px rgba(0, 0, 0, 0.05); // major shadow for layers
```
Please report an issue if the existing list of variables is not enough for you.
@ -219,4 +220,3 @@ module.exports = {
- [Theming Ant Design with Sass and Webpack](https://gist.github.com/Kruemelkatze/057f01b8e15216ae707dc7e6c9061ef7)
- [Using Sass/Scss with React App (create-react-app)](https://medium.com/@mzohaib.qc/using-sass-scss-with-react-app-create-react-app-d03072083ef8)
- [Dynamic Theming in Browser using Ant Design](https://medium.com/@mzohaib.qc/ant-design-dynamic-runtime-theme-1f9a1a030ba0)

4
docs/react/customize-theme.zh-CN.md

@ -24,9 +24,9 @@ antd 的样式使用了 [Less](http://lesscss.org/) 作为开发语言,并定
@text-color: rgba(0, 0, 0, 0.65); // 主文本色
@text-color-secondary: rgba(0, 0, 0, 0.45); // 次文本色
@disabled-color: rgba(0, 0, 0, 0.25); // 失效色
@border-radius-base: 4px; // 组件/浮层圆角
@border-radius-base: 2px; // 组件/浮层圆角
@border-color-base: #d9d9d9; // 边框色
@box-shadow-base: 0 2px 8px rgba(0, 0, 0, 0.15); // 浮层阴影
@box-shadow-base: 0 3px 6px -4px rgba(0,0,0,.12),0 6px 16px 0 rgba(0,0,0,.08),0 9px 28px 8px rgba(0,0,0,.05); // 浮层阴影
```
如果以上变量不能满足你的定制需求,可以给我们提 issue。

2
package.json

@ -132,7 +132,7 @@
"rc-progress": "~3.0.0",
"rc-rate": "~2.8.2",
"rc-resize-observer": "^0.2.3",
"rc-select": "~11.0.0",
"rc-select": "^11.0.10",
"rc-slider": "~9.3.0",
"rc-steps": "~4.0.1",
"rc-switch": "~3.2.0",

Loading…
Cancel
Save