@@ -5778,21 +5761,8 @@ exports[`Locale Provider should display the text as ar 1`] = `
type="button"
>
-
-
+ class="anticon anticon-right"
+ />
-
-
+ class="anticon anticon-search"
+ />
@@ -6935,27 +6875,9 @@ exports[`Locale Provider should display the text as ar 1`] = `
Name
-
-
+ class="anticon anticon-filter ant-dropdown-trigger"
+ title="الفلاتر"
+ />
-
-
+ class="anticon anticon-search"
+ />
@@ -10453,21 +10358,8 @@ exports[`Locale Provider should display the text as bg 1`] = `
type="button"
>
-
-
+ class="anticon anticon-right"
+ />
-
-
+ class="anticon anticon-search"
+ />
@@ -11610,27 +11472,9 @@ exports[`Locale Provider should display the text as bg 1`] = `
Name
-
-
+ class="anticon anticon-filter ant-dropdown-trigger"
+ title="Филтриране"
+ />
-
-
+ class="anticon anticon-search"
+ />
@@ -15128,21 +14955,8 @@ exports[`Locale Provider should display the text as ca 1`] = `
type="button"
>
-
-
+ class="anticon anticon-right"
+ />
-
-
+ class="anticon anticon-search"
+ />
@@ -16285,27 +16069,9 @@ exports[`Locale Provider should display the text as ca 1`] = `
Name
-
-
+ class="anticon anticon-filter ant-dropdown-trigger"
+ title="Filtrar Menu"
+ />
-
-
+ class="anticon anticon-search"
+ />
@@ -19803,21 +19552,8 @@ exports[`Locale Provider should display the text as cs 1`] = `
type="button"
>
-
-
+ class="anticon anticon-right"
+ />
-
-
+ class="anticon anticon-search"
+ />
@@ -20960,27 +20666,9 @@ exports[`Locale Provider should display the text as cs 1`] = `
Name
-
-
+ class="anticon anticon-filter ant-dropdown-trigger"
+ title="Filtr"
+ />
-
-
+ class="anticon anticon-search"
+ />
@@ -24478,21 +24149,8 @@ exports[`Locale Provider should display the text as de 1`] = `
type="button"
>
-
-
+ class="anticon anticon-right"
+ />
-
-
+ class="anticon anticon-search"
+ />
@@ -25635,27 +25263,9 @@ exports[`Locale Provider should display the text as de 1`] = `
Name
-
-
+ class="anticon anticon-filter ant-dropdown-trigger"
+ title="Filter-Menü"
+ />
-
-
+ class="anticon anticon-search"
+ />
@@ -29153,21 +28746,8 @@ exports[`Locale Provider should display the text as el 1`] = `
type="button"
>
-
-
+ class="anticon anticon-right"
+ />
-
-
+ class="anticon anticon-search"
+ />
@@ -30310,27 +29860,9 @@ exports[`Locale Provider should display the text as el 1`] = `
Name
-
-
+ class="anticon anticon-filter ant-dropdown-trigger"
+ title="Μενού φίλτρων"
+ />
-
-
+ class="anticon anticon-search"
+ />
@@ -33828,21 +33343,8 @@ exports[`Locale Provider should display the text as en 1`] = `
type="button"
>
-
-
+ class="anticon anticon-right"
+ />
-
-
+ class="anticon anticon-search"
+ />
@@ -34985,27 +34457,9 @@ exports[`Locale Provider should display the text as en 1`] = `
Name
-
-
+ class="anticon anticon-filter ant-dropdown-trigger"
+ title="Filter menu"
+ />
-
-
+ class="anticon anticon-search"
+ />
@@ -38503,21 +37940,8 @@ exports[`Locale Provider should display the text as en-gb 1`] = `
type="button"
>
-
-
+ class="anticon anticon-right"
+ />
-
-
+ class="anticon anticon-search"
+ />
@@ -39660,27 +39054,9 @@ exports[`Locale Provider should display the text as en-gb 1`] = `
Name
-
-
+ class="anticon anticon-filter ant-dropdown-trigger"
+ title="Filter menu"
+ />
-
-
+ class="anticon anticon-search"
+ />
@@ -43178,21 +42537,8 @@ exports[`Locale Provider should display the text as es 1`] = `
type="button"
>
-
-
+ class="anticon anticon-right"
+ />
-
-
+ class="anticon anticon-search"
+ />
@@ -44335,27 +43651,9 @@ exports[`Locale Provider should display the text as es 1`] = `
Name
-
-
+ class="anticon anticon-filter ant-dropdown-trigger"
+ title="Filtrar menú"
+ />
-
-
+ class="anticon anticon-search"
+ />
@@ -47853,21 +47134,8 @@ exports[`Locale Provider should display the text as et 1`] = `
type="button"
>
-
-
+ class="anticon anticon-right"
+ />
-
-
+ class="anticon anticon-search"
+ />
@@ -49010,27 +48248,9 @@ exports[`Locale Provider should display the text as et 1`] = `
Name
-
-
+ class="anticon anticon-filter ant-dropdown-trigger"
+ title="Filtri menüü"
+ />
-
-
+ class="anticon anticon-search"
+ />
@@ -52528,21 +51731,8 @@ exports[`Locale Provider should display the text as fa 1`] = `
type="button"
>
-
-
+ class="anticon anticon-right"
+ />
-
-
+ class="anticon anticon-search"
+ />
@@ -53685,27 +52845,9 @@ exports[`Locale Provider should display the text as fa 1`] = `
Name
-
-
+ class="anticon anticon-filter ant-dropdown-trigger"
+ title="منوی فیلتر"
+ />
-
-
+ class="anticon anticon-search"
+ />
@@ -57203,21 +56328,8 @@ exports[`Locale Provider should display the text as fi 1`] = `
type="button"
>
-
-
+ class="anticon anticon-right"
+ />
-
-
+ class="anticon anticon-search"
+ />
@@ -58360,27 +57442,9 @@ exports[`Locale Provider should display the text as fi 1`] = `
Name
-
-
+ class="anticon anticon-filter ant-dropdown-trigger"
+ title="Suodatus valikko"
+ />
-
-
+ class="anticon anticon-search"
+ />
@@ -61878,21 +60925,8 @@ exports[`Locale Provider should display the text as fr 1`] = `
type="button"
>
-
-
+ class="anticon anticon-right"
+ />
-
-
+ class="anticon anticon-search"
+ />
@@ -63035,27 +62039,9 @@ exports[`Locale Provider should display the text as fr 1`] = `
Name
-
-
+ class="anticon anticon-filter ant-dropdown-trigger"
+ title="Filtrer"
+ />
-
-
+ class="anticon anticon-search"
+ />
@@ -66553,21 +65522,8 @@ exports[`Locale Provider should display the text as fr 2`] = `
type="button"
>
-
-
+ class="anticon anticon-right"
+ />
-
-
+ class="anticon anticon-search"
+ />
@@ -67710,27 +66636,9 @@ exports[`Locale Provider should display the text as fr 2`] = `
Name
-
-
+ class="anticon anticon-filter ant-dropdown-trigger"
+ title="Filtrer"
+ />
-
-
+ class="anticon anticon-search"
+ />
@@ -71228,21 +70119,8 @@ exports[`Locale Provider should display the text as is 1`] = `
type="button"
>
-
-
+ class="anticon anticon-right"
+ />
-
-
+ class="anticon anticon-search"
+ />
@@ -72385,27 +71233,9 @@ exports[`Locale Provider should display the text as is 1`] = `
Name
-
-
+ class="anticon anticon-filter ant-dropdown-trigger"
+ title="Afmarkanir"
+ />
-
-
+ class="anticon anticon-search"
+ />
@@ -75903,21 +74716,8 @@ exports[`Locale Provider should display the text as it 1`] = `
type="button"
>
-
-
+ class="anticon anticon-right"
+ />
-
-
+ class="anticon anticon-search"
+ />
@@ -77060,27 +75830,9 @@ exports[`Locale Provider should display the text as it 1`] = `
Name
-
-
+ class="anticon anticon-filter ant-dropdown-trigger"
+ title="Menu Filtro"
+ />
-
-
+ class="anticon anticon-search"
+ />
@@ -80578,21 +79313,8 @@ exports[`Locale Provider should display the text as ja 1`] = `
type="button"
>
-
-
+ class="anticon anticon-right"
+ />
-
-
+ class="anticon anticon-search"
+ />
@@ -81735,27 +80427,9 @@ exports[`Locale Provider should display the text as ja 1`] = `
Name
-
-
+ class="anticon anticon-filter ant-dropdown-trigger"
+ title="メニューをフィルター"
+ />
-
-
+ class="anticon anticon-search"
+ />
@@ -85253,21 +83910,8 @@ exports[`Locale Provider should display the text as ko 1`] = `
type="button"
>
-
-
+ class="anticon anticon-right"
+ />
-
-
+ class="anticon anticon-search"
+ />
@@ -86410,27 +85024,9 @@ exports[`Locale Provider should display the text as ko 1`] = `
Name
-
-
+ class="anticon anticon-filter ant-dropdown-trigger"
+ title="필터 메뉴"
+ />
-
-
+ class="anticon anticon-search"
+ />
@@ -89928,21 +88507,8 @@ exports[`Locale Provider should display the text as ku-iq 1`] = `
type="button"
>
-
-
+ class="anticon anticon-right"
+ />
-
-
+ class="anticon anticon-search"
+ />
@@ -91085,27 +89621,9 @@ exports[`Locale Provider should display the text as ku-iq 1`] = `
Name
-
-
+ class="anticon anticon-filter ant-dropdown-trigger"
+ title="Menuê peldanka"
+ />
-
-
+ class="anticon anticon-search"
+ />
@@ -94603,21 +93104,8 @@ exports[`Locale Provider should display the text as nb 1`] = `
type="button"
>
-
-
+ class="anticon anticon-right"
+ />
-
-
+ class="anticon anticon-search"
+ />
@@ -95760,27 +94218,9 @@ exports[`Locale Provider should display the text as nb 1`] = `
Name
-
-
+ class="anticon anticon-filter ant-dropdown-trigger"
+ title="Filtermeny"
+ />
-
-
+ class="anticon anticon-search"
+ />
@@ -99278,21 +97701,8 @@ exports[`Locale Provider should display the text as nl 1`] = `
type="button"
>
-
-
+ class="anticon anticon-right"
+ />
-
-
+ class="anticon anticon-search"
+ />
@@ -100435,27 +98815,9 @@ exports[`Locale Provider should display the text as nl 1`] = `
Name
-
-
+ class="anticon anticon-filter ant-dropdown-trigger"
+ title="Filteren"
+ />
-
-
+ class="anticon anticon-search"
+ />
@@ -103953,21 +102298,8 @@ exports[`Locale Provider should display the text as nl-be 1`] = `
type="button"
>
-
-
+ class="anticon anticon-right"
+ />
-
-
+ class="anticon anticon-search"
+ />
@@ -105110,27 +103412,9 @@ exports[`Locale Provider should display the text as nl-be 1`] = `
Name
-
-
+ class="anticon anticon-filter ant-dropdown-trigger"
+ title="FilterMenu"
+ />
-
-
+ class="anticon anticon-search"
+ />
@@ -108628,21 +106895,8 @@ exports[`Locale Provider should display the text as pl 1`] = `
type="button"
>
-
-
+ class="anticon anticon-right"
+ />
-
-
+ class="anticon anticon-search"
+ />
@@ -109785,27 +108009,9 @@ exports[`Locale Provider should display the text as pl 1`] = `
Name
-
-
+ class="anticon anticon-filter ant-dropdown-trigger"
+ title="Menu filtra"
+ />
-
-
+ class="anticon anticon-search"
+ />
@@ -113303,21 +111492,8 @@ exports[`Locale Provider should display the text as pt 1`] = `
type="button"
>
-
-
+ class="anticon anticon-right"
+ />
-
-
+ class="anticon anticon-search"
+ />
@@ -114460,27 +112606,9 @@ exports[`Locale Provider should display the text as pt 1`] = `
Name
-
-
+ class="anticon anticon-filter ant-dropdown-trigger"
+ title="Filtro"
+ />
-
-
+ class="anticon anticon-search"
+ />
@@ -117978,21 +116089,8 @@ exports[`Locale Provider should display the text as pt-br 1`] = `
type="button"
>
-
-
+ class="anticon anticon-right"
+ />
-
-
+ class="anticon anticon-search"
+ />
@@ -119135,27 +117203,9 @@ exports[`Locale Provider should display the text as pt-br 1`] = `
Name
-
-
+ class="anticon anticon-filter ant-dropdown-trigger"
+ title="Filtro"
+ />
-
-
+ class="anticon anticon-search"
+ />
@@ -122653,21 +120686,8 @@ exports[`Locale Provider should display the text as ru 1`] = `
type="button"
>
-
-
+ class="anticon anticon-right"
+ />
-
-
+ class="anticon anticon-search"
+ />
@@ -123810,27 +121800,9 @@ exports[`Locale Provider should display the text as ru 1`] = `
Name
-
-
+ class="anticon anticon-filter ant-dropdown-trigger"
+ title="Фильтр"
+ />
-
-
+ class="anticon anticon-search"
+ />
@@ -127328,21 +125283,8 @@ exports[`Locale Provider should display the text as sk 1`] = `
type="button"
>
-
-
+ class="anticon anticon-right"
+ />
-
-
+ class="anticon anticon-search"
+ />
@@ -128485,27 +126397,9 @@ exports[`Locale Provider should display the text as sk 1`] = `
Name
-
-
+ class="anticon anticon-filter ant-dropdown-trigger"
+ title="Filter"
+ />
-
-
+ class="anticon anticon-search"
+ />
@@ -132003,21 +129880,8 @@ exports[`Locale Provider should display the text as sl 1`] = `
type="button"
>
-
-
+ class="anticon anticon-right"
+ />
-
-
+ class="anticon anticon-search"
+ />
@@ -133160,27 +130994,9 @@ exports[`Locale Provider should display the text as sl 1`] = `
Name
-
-
+ class="anticon anticon-filter ant-dropdown-trigger"
+ title="Filter"
+ />
-
-
+ class="anticon anticon-search"
+ />
@@ -136678,21 +134477,8 @@ exports[`Locale Provider should display the text as sr 1`] = `
type="button"
>
-
-
+ class="anticon anticon-right"
+ />
-
-
+ class="anticon anticon-search"
+ />
@@ -137835,27 +135591,9 @@ exports[`Locale Provider should display the text as sr 1`] = `
Name
-
-
+ class="anticon anticon-filter ant-dropdown-trigger"
+ title="Filter"
+ />
-
-
+ class="anticon anticon-search"
+ />
@@ -141353,21 +139074,8 @@ exports[`Locale Provider should display the text as sv 1`] = `
type="button"
>
-
-
+ class="anticon anticon-right"
+ />
-
-
+ class="anticon anticon-search"
+ />
@@ -142510,27 +140188,9 @@ exports[`Locale Provider should display the text as sv 1`] = `
Name
-
-
+ class="anticon anticon-filter ant-dropdown-trigger"
+ title="Filtermeny"
+ />
-
-
+ class="anticon anticon-search"
+ />
@@ -146028,21 +143671,8 @@ exports[`Locale Provider should display the text as th 1`] = `
type="button"
>
-
-
+ class="anticon anticon-right"
+ />
-
-
+ class="anticon anticon-search"
+ />
@@ -147185,27 +144785,9 @@ exports[`Locale Provider should display the text as th 1`] = `
Name
-
-
+ class="anticon anticon-filter ant-dropdown-trigger"
+ title="ตัวกรอง"
+ />
-
-
+ class="anticon anticon-search"
+ />
@@ -150703,21 +148268,8 @@ exports[`Locale Provider should display the text as tr 1`] = `
type="button"
>
-
-
+ class="anticon anticon-right"
+ />
-
-
+ class="anticon anticon-search"
+ />
@@ -151860,27 +149382,9 @@ exports[`Locale Provider should display the text as tr 1`] = `
Name
-
-
+ class="anticon anticon-filter ant-dropdown-trigger"
+ title="Menü Filtrele"
+ />
-
-
+ class="anticon anticon-search"
+ />
@@ -155378,21 +152865,8 @@ exports[`Locale Provider should display the text as uk 1`] = `
type="button"
>
-
-
+ class="anticon anticon-right"
+ />
-
-
+ class="anticon anticon-search"
+ />
@@ -156535,27 +153979,9 @@ exports[`Locale Provider should display the text as uk 1`] = `
Name
-
-
+ class="anticon anticon-filter ant-dropdown-trigger"
+ title="Фільтрувати"
+ />
-
-
+ class="anticon anticon-search"
+ />
@@ -160053,21 +157462,8 @@ exports[`Locale Provider should display the text as vi 1`] = `
type="button"
>
-
-
+ class="anticon anticon-right"
+ />
-
-
+ class="anticon anticon-search"
+ />
@@ -161210,27 +158576,9 @@ exports[`Locale Provider should display the text as vi 1`] = `
Name
-
-
+ class="anticon anticon-filter ant-dropdown-trigger"
+ title="Bộ "
+ />
-
-
+ class="anticon anticon-search"
+ />
@@ -164728,21 +162059,8 @@ exports[`Locale Provider should display the text as zh-cn 1`] = `
type="button"
>
-
-
+ class="anticon anticon-right"
+ />
-
-
+ class="anticon anticon-search"
+ />
@@ -165885,27 +163173,9 @@ exports[`Locale Provider should display the text as zh-cn 1`] = `
Name
-
-
+ class="anticon anticon-filter ant-dropdown-trigger"
+ title="筛选"
+ />
-
-
+ class="anticon anticon-search"
+ />
@@ -169403,21 +166656,8 @@ exports[`Locale Provider should display the text as zh-tw 1`] = `
type="button"
>
-
-
+ class="anticon anticon-right"
+ />
-
-
+ class="anticon anticon-search"
+ />
@@ -170560,27 +167770,9 @@ exports[`Locale Provider should display the text as zh-tw 1`] = `
Name
-
-
+ class="anticon anticon-filter ant-dropdown-trigger"
+ title="篩選器"
+ />
+`;
+
+exports[`Directory Tree expand with state control doubleClick 1`] = `
+
+
+
+
+
+
+
+
+ parent
+
+
+
+
+
+
+
+
+
+
+ children
+
+
+
+
+
+
+`;
+
exports[`Directory Tree expandedKeys update 1`] = `
{
wrapper.find(TreeNode).find('.ant-tree-node-content-wrapper').at(0).simulate('doubleClick');
expect(wrapper.render()).toMatchSnapshot();
});
+
+ describe('with state control', () => {
+ class StateDirTree extends React.Component {
+ state = {
+ expandedKeys: [],
+ };
+
+ onExpand = (expandedKeys) => {
+ this.setState({ expandedKeys });
+ };
+
+ render() {
+ const { expandedKeys } = this.state;
+
+ return (
+
+
+
+
+
+ );
+ }
+ }
+
+ ['click', 'doubleClick'].forEach((action) => {
+ it(action, () => {
+ const wrapper = mount(
+
+ );
+
+ wrapper.find(TreeNode).find('.ant-tree-node-content-wrapper').at(0).simulate(action);
+ jest.runAllTimers();
+ expect(wrapper.render()).toMatchSnapshot();
+ });
+ });
+ });
});
it('defaultExpandAll', () => {
diff --git a/docs/spec/values.en-US.md b/docs/spec/values.en-US.md
index 0d3e6296ef..f33b7db64d 100644
--- a/docs/spec/values.en-US.md
+++ b/docs/spec/values.en-US.md
@@ -4,7 +4,7 @@ order: 1
title: Design Values
---
-Ant Design provides a practical evaluation of better design for both designers of Ant Design and designers who are using it. At the same time, it build a foundation for design principles and design patterns which could provide guideline and general solutions for specified design goal.
+Ant Design provides a practical evaluation of better design for both designers of Ant Design and designers who are using it. At the same time, it builds a foundation for design principles and design patterns which could provide guideline and general solutions for specified design goal.