remove ul when list is empty (#14390)

This commit is contained in:
zombieJ 2019-01-17 11:46:07 +08:00 committed by GitHub
parent ec4fcd2281
commit 343a7a9c3a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 16 additions and 328 deletions

View File

@ -15309,9 +15309,6 @@ exports[`ConfigProvider components Transfer configProvider 1`] = `
<div
class="config-transfer-list-body"
>
<ul
class="config-transfer-list-content"
/>
<div
class="config-transfer-list-body-not-found"
>
@ -15420,9 +15417,6 @@ exports[`ConfigProvider components Transfer configProvider 1`] = `
<div
class="config-transfer-list-body"
>
<ul
class="config-transfer-list-content"
/>
<div
class="config-transfer-list-body-not-found"
>
@ -15488,9 +15482,6 @@ exports[`ConfigProvider components Transfer normal 1`] = `
<div
class="ant-transfer-list-body"
>
<ul
class="ant-transfer-list-content"
/>
<div
class="ant-transfer-list-body-not-found"
>
@ -15599,9 +15590,6 @@ exports[`ConfigProvider components Transfer normal 1`] = `
<div
class="ant-transfer-list-body"
>
<ul
class="ant-transfer-list-content"
/>
<div
class="ant-transfer-list-body-not-found"
>
@ -15667,9 +15655,6 @@ exports[`ConfigProvider components Transfer prefixCls 1`] = `
<div
class="prefix-Transfer-list-body"
>
<ul
class="prefix-Transfer-list-content"
/>
<div
class="prefix-Transfer-list-body-not-found"
>
@ -15778,9 +15763,6 @@ exports[`ConfigProvider components Transfer prefixCls 1`] = `
<div
class="prefix-Transfer-list-body"
>
<ul
class="prefix-Transfer-list-content"
/>
<div
class="prefix-Transfer-list-body-not-found"
>

View File

@ -206,9 +206,6 @@ exports[`renders ./components/empty/demo/config-provider.md correctly 1`] = `
<div
class="ant-transfer-list-body"
>
<ul
class="ant-transfer-list-content"
/>
<div
class="ant-transfer-list-body-not-found"
>
@ -317,9 +314,6 @@ exports[`renders ./components/empty/demo/config-provider.md correctly 1`] = `
<div
class="ant-transfer-list-body"
>
<ul
class="ant-transfer-list-content"
/>
<div
class="ant-transfer-list-body-not-found"
>

View File

@ -501,9 +501,6 @@ exports[`renders ./components/locale-provider/demo/all.md correctly 1`] = `
</span>
</div>
</div>
<ul
class="ant-transfer-list-content"
/>
<div
class="ant-transfer-list-body-not-found"
>
@ -645,9 +642,6 @@ exports[`renders ./components/locale-provider/demo/all.md correctly 1`] = `
</span>
</div>
</div>
<ul
class="ant-transfer-list-content"
/>
<div
class="ant-transfer-list-body-not-found"
>

View File

@ -6154,9 +6154,6 @@ exports[`Locale Provider should display the text as ar 1`] = `
</span>
</div>
</div>
<ul
class="ant-transfer-list-content"
/>
<div
class="ant-transfer-list-body-not-found"
>
@ -6299,9 +6296,6 @@ exports[`Locale Provider should display the text as ar 1`] = `
</span>
</div>
</div>
<ul
class="ant-transfer-list-content"
/>
<div
class="ant-transfer-list-body-not-found"
>
@ -11230,9 +11224,6 @@ exports[`Locale Provider should display the text as bg 1`] = `
</span>
</div>
</div>
<ul
class="ant-transfer-list-content"
/>
<div
class="ant-transfer-list-body-not-found"
>
@ -11375,9 +11366,6 @@ exports[`Locale Provider should display the text as bg 1`] = `
</span>
</div>
</div>
<ul
class="ant-transfer-list-content"
/>
<div
class="ant-transfer-list-body-not-found"
>
@ -16306,9 +16294,6 @@ exports[`Locale Provider should display the text as ca 1`] = `
</span>
</div>
</div>
<ul
class="ant-transfer-list-content"
/>
<div
class="ant-transfer-list-body-not-found"
>
@ -16451,9 +16436,6 @@ exports[`Locale Provider should display the text as ca 1`] = `
</span>
</div>
</div>
<ul
class="ant-transfer-list-content"
/>
<div
class="ant-transfer-list-body-not-found"
>
@ -21382,9 +21364,6 @@ exports[`Locale Provider should display the text as cs 1`] = `
</span>
</div>
</div>
<ul
class="ant-transfer-list-content"
/>
<div
class="ant-transfer-list-body-not-found"
>
@ -21527,9 +21506,6 @@ exports[`Locale Provider should display the text as cs 1`] = `
</span>
</div>
</div>
<ul
class="ant-transfer-list-content"
/>
<div
class="ant-transfer-list-body-not-found"
>
@ -26458,9 +26434,6 @@ exports[`Locale Provider should display the text as da 1`] = `
</span>
</div>
</div>
<ul
class="ant-transfer-list-content"
/>
<div
class="ant-transfer-list-body-not-found"
>
@ -26603,9 +26576,6 @@ exports[`Locale Provider should display the text as da 1`] = `
</span>
</div>
</div>
<ul
class="ant-transfer-list-content"
/>
<div
class="ant-transfer-list-body-not-found"
>
@ -31534,9 +31504,6 @@ exports[`Locale Provider should display the text as de 1`] = `
</span>
</div>
</div>
<ul
class="ant-transfer-list-content"
/>
<div
class="ant-transfer-list-body-not-found"
>
@ -31679,9 +31646,6 @@ exports[`Locale Provider should display the text as de 1`] = `
</span>
</div>
</div>
<ul
class="ant-transfer-list-content"
/>
<div
class="ant-transfer-list-body-not-found"
>
@ -36610,9 +36574,6 @@ exports[`Locale Provider should display the text as el 1`] = `
</span>
</div>
</div>
<ul
class="ant-transfer-list-content"
/>
<div
class="ant-transfer-list-body-not-found"
>
@ -36755,9 +36716,6 @@ exports[`Locale Provider should display the text as el 1`] = `
</span>
</div>
</div>
<ul
class="ant-transfer-list-content"
/>
<div
class="ant-transfer-list-body-not-found"
>
@ -41686,9 +41644,6 @@ exports[`Locale Provider should display the text as en 1`] = `
</span>
</div>
</div>
<ul
class="ant-transfer-list-content"
/>
<div
class="ant-transfer-list-body-not-found"
>
@ -41831,9 +41786,6 @@ exports[`Locale Provider should display the text as en 1`] = `
</span>
</div>
</div>
<ul
class="ant-transfer-list-content"
/>
<div
class="ant-transfer-list-body-not-found"
>
@ -46762,9 +46714,6 @@ exports[`Locale Provider should display the text as en-gb 1`] = `
</span>
</div>
</div>
<ul
class="ant-transfer-list-content"
/>
<div
class="ant-transfer-list-body-not-found"
>
@ -46907,9 +46856,6 @@ exports[`Locale Provider should display the text as en-gb 1`] = `
</span>
</div>
</div>
<ul
class="ant-transfer-list-content"
/>
<div
class="ant-transfer-list-body-not-found"
>
@ -51838,9 +51784,6 @@ exports[`Locale Provider should display the text as es 1`] = `
</span>
</div>
</div>
<ul
class="ant-transfer-list-content"
/>
<div
class="ant-transfer-list-body-not-found"
>
@ -51983,9 +51926,6 @@ exports[`Locale Provider should display the text as es 1`] = `
</span>
</div>
</div>
<ul
class="ant-transfer-list-content"
/>
<div
class="ant-transfer-list-body-not-found"
>
@ -56914,9 +56854,6 @@ exports[`Locale Provider should display the text as et 1`] = `
</span>
</div>
</div>
<ul
class="ant-transfer-list-content"
/>
<div
class="ant-transfer-list-body-not-found"
>
@ -57059,9 +56996,6 @@ exports[`Locale Provider should display the text as et 1`] = `
</span>
</div>
</div>
<ul
class="ant-transfer-list-content"
/>
<div
class="ant-transfer-list-body-not-found"
>
@ -61990,9 +61924,6 @@ exports[`Locale Provider should display the text as fa 1`] = `
</span>
</div>
</div>
<ul
class="ant-transfer-list-content"
/>
<div
class="ant-transfer-list-body-not-found"
>
@ -62135,9 +62066,6 @@ exports[`Locale Provider should display the text as fa 1`] = `
</span>
</div>
</div>
<ul
class="ant-transfer-list-content"
/>
<div
class="ant-transfer-list-body-not-found"
>
@ -67066,9 +66994,6 @@ exports[`Locale Provider should display the text as fi 1`] = `
</span>
</div>
</div>
<ul
class="ant-transfer-list-content"
/>
<div
class="ant-transfer-list-body-not-found"
>
@ -67211,9 +67136,6 @@ exports[`Locale Provider should display the text as fi 1`] = `
</span>
</div>
</div>
<ul
class="ant-transfer-list-content"
/>
<div
class="ant-transfer-list-body-not-found"
>
@ -72142,9 +72064,6 @@ exports[`Locale Provider should display the text as fr 1`] = `
</span>
</div>
</div>
<ul
class="ant-transfer-list-content"
/>
<div
class="ant-transfer-list-body-not-found"
>
@ -72287,9 +72206,6 @@ exports[`Locale Provider should display the text as fr 1`] = `
</span>
</div>
</div>
<ul
class="ant-transfer-list-content"
/>
<div
class="ant-transfer-list-body-not-found"
>
@ -77218,9 +77134,6 @@ exports[`Locale Provider should display the text as fr 2`] = `
</span>
</div>
</div>
<ul
class="ant-transfer-list-content"
/>
<div
class="ant-transfer-list-body-not-found"
>
@ -77363,9 +77276,6 @@ exports[`Locale Provider should display the text as fr 2`] = `
</span>
</div>
</div>
<ul
class="ant-transfer-list-content"
/>
<div
class="ant-transfer-list-body-not-found"
>
@ -82294,9 +82204,6 @@ exports[`Locale Provider should display the text as he 1`] = `
</span>
</div>
</div>
<ul
class="ant-transfer-list-content"
/>
<div
class="ant-transfer-list-body-not-found"
>
@ -82439,9 +82346,6 @@ exports[`Locale Provider should display the text as he 1`] = `
</span>
</div>
</div>
<ul
class="ant-transfer-list-content"
/>
<div
class="ant-transfer-list-body-not-found"
>
@ -87370,9 +87274,6 @@ exports[`Locale Provider should display the text as hi 1`] = `
</span>
</div>
</div>
<ul
class="ant-transfer-list-content"
/>
<div
class="ant-transfer-list-body-not-found"
>
@ -87515,9 +87416,6 @@ exports[`Locale Provider should display the text as hi 1`] = `
</span>
</div>
</div>
<ul
class="ant-transfer-list-content"
/>
<div
class="ant-transfer-list-body-not-found"
>
@ -92446,9 +92344,6 @@ exports[`Locale Provider should display the text as hu 1`] = `
</span>
</div>
</div>
<ul
class="ant-transfer-list-content"
/>
<div
class="ant-transfer-list-body-not-found"
>
@ -92591,9 +92486,6 @@ exports[`Locale Provider should display the text as hu 1`] = `
</span>
</div>
</div>
<ul
class="ant-transfer-list-content"
/>
<div
class="ant-transfer-list-body-not-found"
>
@ -97522,9 +97414,6 @@ exports[`Locale Provider should display the text as id 1`] = `
</span>
</div>
</div>
<ul
class="ant-transfer-list-content"
/>
<div
class="ant-transfer-list-body-not-found"
>
@ -97667,9 +97556,6 @@ exports[`Locale Provider should display the text as id 1`] = `
</span>
</div>
</div>
<ul
class="ant-transfer-list-content"
/>
<div
class="ant-transfer-list-body-not-found"
>
@ -102598,9 +102484,6 @@ exports[`Locale Provider should display the text as is 1`] = `
</span>
</div>
</div>
<ul
class="ant-transfer-list-content"
/>
<div
class="ant-transfer-list-body-not-found"
>
@ -102743,9 +102626,6 @@ exports[`Locale Provider should display the text as is 1`] = `
</span>
</div>
</div>
<ul
class="ant-transfer-list-content"
/>
<div
class="ant-transfer-list-body-not-found"
>
@ -107674,9 +107554,6 @@ exports[`Locale Provider should display the text as it 1`] = `
</span>
</div>
</div>
<ul
class="ant-transfer-list-content"
/>
<div
class="ant-transfer-list-body-not-found"
>
@ -107819,9 +107696,6 @@ exports[`Locale Provider should display the text as it 1`] = `
</span>
</div>
</div>
<ul
class="ant-transfer-list-content"
/>
<div
class="ant-transfer-list-body-not-found"
>
@ -112750,9 +112624,6 @@ exports[`Locale Provider should display the text as ja 1`] = `
</span>
</div>
</div>
<ul
class="ant-transfer-list-content"
/>
<div
class="ant-transfer-list-body-not-found"
>
@ -112895,9 +112766,6 @@ exports[`Locale Provider should display the text as ja 1`] = `
</span>
</div>
</div>
<ul
class="ant-transfer-list-content"
/>
<div
class="ant-transfer-list-body-not-found"
>
@ -117826,9 +117694,6 @@ exports[`Locale Provider should display the text as kn 1`] = `
</span>
</div>
</div>
<ul
class="ant-transfer-list-content"
/>
<div
class="ant-transfer-list-body-not-found"
>
@ -117971,9 +117836,6 @@ exports[`Locale Provider should display the text as kn 1`] = `
</span>
</div>
</div>
<ul
class="ant-transfer-list-content"
/>
<div
class="ant-transfer-list-body-not-found"
>
@ -122902,9 +122764,6 @@ exports[`Locale Provider should display the text as ko 1`] = `
</span>
</div>
</div>
<ul
class="ant-transfer-list-content"
/>
<div
class="ant-transfer-list-body-not-found"
>
@ -123047,9 +122906,6 @@ exports[`Locale Provider should display the text as ko 1`] = `
</span>
</div>
</div>
<ul
class="ant-transfer-list-content"
/>
<div
class="ant-transfer-list-body-not-found"
>
@ -127978,9 +127834,6 @@ exports[`Locale Provider should display the text as ku-iq 1`] = `
</span>
</div>
</div>
<ul
class="ant-transfer-list-content"
/>
<div
class="ant-transfer-list-body-not-found"
>
@ -128123,9 +127976,6 @@ exports[`Locale Provider should display the text as ku-iq 1`] = `
</span>
</div>
</div>
<ul
class="ant-transfer-list-content"
/>
<div
class="ant-transfer-list-body-not-found"
>
@ -133054,9 +132904,6 @@ exports[`Locale Provider should display the text as mn-mn 1`] = `
</span>
</div>
</div>
<ul
class="ant-transfer-list-content"
/>
<div
class="ant-transfer-list-body-not-found"
>
@ -133199,9 +133046,6 @@ exports[`Locale Provider should display the text as mn-mn 1`] = `
</span>
</div>
</div>
<ul
class="ant-transfer-list-content"
/>
<div
class="ant-transfer-list-body-not-found"
>
@ -138130,9 +137974,6 @@ exports[`Locale Provider should display the text as nb 1`] = `
</span>
</div>
</div>
<ul
class="ant-transfer-list-content"
/>
<div
class="ant-transfer-list-body-not-found"
>
@ -138275,9 +138116,6 @@ exports[`Locale Provider should display the text as nb 1`] = `
</span>
</div>
</div>
<ul
class="ant-transfer-list-content"
/>
<div
class="ant-transfer-list-body-not-found"
>
@ -143206,9 +143044,6 @@ exports[`Locale Provider should display the text as ne-np 1`] = `
</span>
</div>
</div>
<ul
class="ant-transfer-list-content"
/>
<div
class="ant-transfer-list-body-not-found"
>
@ -143351,9 +143186,6 @@ exports[`Locale Provider should display the text as ne-np 1`] = `
</span>
</div>
</div>
<ul
class="ant-transfer-list-content"
/>
<div
class="ant-transfer-list-body-not-found"
>
@ -148282,9 +148114,6 @@ exports[`Locale Provider should display the text as nl 1`] = `
</span>
</div>
</div>
<ul
class="ant-transfer-list-content"
/>
<div
class="ant-transfer-list-body-not-found"
>
@ -148427,9 +148256,6 @@ exports[`Locale Provider should display the text as nl 1`] = `
</span>
</div>
</div>
<ul
class="ant-transfer-list-content"
/>
<div
class="ant-transfer-list-body-not-found"
>
@ -153358,9 +153184,6 @@ exports[`Locale Provider should display the text as nl-be 1`] = `
</span>
</div>
</div>
<ul
class="ant-transfer-list-content"
/>
<div
class="ant-transfer-list-body-not-found"
>
@ -153503,9 +153326,6 @@ exports[`Locale Provider should display the text as nl-be 1`] = `
</span>
</div>
</div>
<ul
class="ant-transfer-list-content"
/>
<div
class="ant-transfer-list-body-not-found"
>
@ -158434,9 +158254,6 @@ exports[`Locale Provider should display the text as pl 1`] = `
</span>
</div>
</div>
<ul
class="ant-transfer-list-content"
/>
<div
class="ant-transfer-list-body-not-found"
>
@ -158579,9 +158396,6 @@ exports[`Locale Provider should display the text as pl 1`] = `
</span>
</div>
</div>
<ul
class="ant-transfer-list-content"
/>
<div
class="ant-transfer-list-body-not-found"
>
@ -163510,9 +163324,6 @@ exports[`Locale Provider should display the text as pt 1`] = `
</span>
</div>
</div>
<ul
class="ant-transfer-list-content"
/>
<div
class="ant-transfer-list-body-not-found"
>
@ -163655,9 +163466,6 @@ exports[`Locale Provider should display the text as pt 1`] = `
</span>
</div>
</div>
<ul
class="ant-transfer-list-content"
/>
<div
class="ant-transfer-list-body-not-found"
>
@ -168586,9 +168394,6 @@ exports[`Locale Provider should display the text as pt-br 1`] = `
</span>
</div>
</div>
<ul
class="ant-transfer-list-content"
/>
<div
class="ant-transfer-list-body-not-found"
>
@ -168731,9 +168536,6 @@ exports[`Locale Provider should display the text as pt-br 1`] = `
</span>
</div>
</div>
<ul
class="ant-transfer-list-content"
/>
<div
class="ant-transfer-list-body-not-found"
>
@ -173662,9 +173464,6 @@ exports[`Locale Provider should display the text as ru 1`] = `
</span>
</div>
</div>
<ul
class="ant-transfer-list-content"
/>
<div
class="ant-transfer-list-body-not-found"
>
@ -173807,9 +173606,6 @@ exports[`Locale Provider should display the text as ru 1`] = `
</span>
</div>
</div>
<ul
class="ant-transfer-list-content"
/>
<div
class="ant-transfer-list-body-not-found"
>
@ -178738,9 +178534,6 @@ exports[`Locale Provider should display the text as sk 1`] = `
</span>
</div>
</div>
<ul
class="ant-transfer-list-content"
/>
<div
class="ant-transfer-list-body-not-found"
>
@ -178883,9 +178676,6 @@ exports[`Locale Provider should display the text as sk 1`] = `
</span>
</div>
</div>
<ul
class="ant-transfer-list-content"
/>
<div
class="ant-transfer-list-body-not-found"
>
@ -183814,9 +183604,6 @@ exports[`Locale Provider should display the text as sl 1`] = `
</span>
</div>
</div>
<ul
class="ant-transfer-list-content"
/>
<div
class="ant-transfer-list-body-not-found"
>
@ -183959,9 +183746,6 @@ exports[`Locale Provider should display the text as sl 1`] = `
</span>
</div>
</div>
<ul
class="ant-transfer-list-content"
/>
<div
class="ant-transfer-list-body-not-found"
>
@ -188890,9 +188674,6 @@ exports[`Locale Provider should display the text as sr 1`] = `
</span>
</div>
</div>
<ul
class="ant-transfer-list-content"
/>
<div
class="ant-transfer-list-body-not-found"
>
@ -189035,9 +188816,6 @@ exports[`Locale Provider should display the text as sr 1`] = `
</span>
</div>
</div>
<ul
class="ant-transfer-list-content"
/>
<div
class="ant-transfer-list-body-not-found"
>
@ -193966,9 +193744,6 @@ exports[`Locale Provider should display the text as sv 1`] = `
</span>
</div>
</div>
<ul
class="ant-transfer-list-content"
/>
<div
class="ant-transfer-list-body-not-found"
>
@ -194111,9 +193886,6 @@ exports[`Locale Provider should display the text as sv 1`] = `
</span>
</div>
</div>
<ul
class="ant-transfer-list-content"
/>
<div
class="ant-transfer-list-body-not-found"
>
@ -199042,9 +198814,6 @@ exports[`Locale Provider should display the text as th 1`] = `
</span>
</div>
</div>
<ul
class="ant-transfer-list-content"
/>
<div
class="ant-transfer-list-body-not-found"
>
@ -199187,9 +198956,6 @@ exports[`Locale Provider should display the text as th 1`] = `
</span>
</div>
</div>
<ul
class="ant-transfer-list-content"
/>
<div
class="ant-transfer-list-body-not-found"
>
@ -204118,9 +203884,6 @@ exports[`Locale Provider should display the text as tr 1`] = `
</span>
</div>
</div>
<ul
class="ant-transfer-list-content"
/>
<div
class="ant-transfer-list-body-not-found"
>
@ -204263,9 +204026,6 @@ exports[`Locale Provider should display the text as tr 1`] = `
</span>
</div>
</div>
<ul
class="ant-transfer-list-content"
/>
<div
class="ant-transfer-list-body-not-found"
>
@ -209194,9 +208954,6 @@ exports[`Locale Provider should display the text as uk 1`] = `
</span>
</div>
</div>
<ul
class="ant-transfer-list-content"
/>
<div
class="ant-transfer-list-body-not-found"
>
@ -209339,9 +209096,6 @@ exports[`Locale Provider should display the text as uk 1`] = `
</span>
</div>
</div>
<ul
class="ant-transfer-list-content"
/>
<div
class="ant-transfer-list-body-not-found"
>
@ -214270,9 +214024,6 @@ exports[`Locale Provider should display the text as vi 1`] = `
</span>
</div>
</div>
<ul
class="ant-transfer-list-content"
/>
<div
class="ant-transfer-list-body-not-found"
>
@ -214415,9 +214166,6 @@ exports[`Locale Provider should display the text as vi 1`] = `
</span>
</div>
</div>
<ul
class="ant-transfer-list-content"
/>
<div
class="ant-transfer-list-body-not-found"
>
@ -219346,9 +219094,6 @@ exports[`Locale Provider should display the text as zh-cn 1`] = `
</span>
</div>
</div>
<ul
class="ant-transfer-list-content"
/>
<div
class="ant-transfer-list-body-not-found"
>
@ -219491,9 +219236,6 @@ exports[`Locale Provider should display the text as zh-cn 1`] = `
</span>
</div>
</div>
<ul
class="ant-transfer-list-content"
/>
<div
class="ant-transfer-list-body-not-found"
>
@ -224422,9 +224164,6 @@ exports[`Locale Provider should display the text as zh-tw 1`] = `
</span>
</div>
</div>
<ul
class="ant-transfer-list-content"
/>
<div
class="ant-transfer-list-body-not-found"
>
@ -224567,9 +224306,6 @@ exports[`Locale Provider should display the text as zh-tw 1`] = `
</span>
</div>
</div>
<ul
class="ant-transfer-list-content"
/>
<div
class="ant-transfer-list-body-not-found"
>

View File

@ -73,9 +73,6 @@ exports[`renders ./components/transfer/demo/advanced.md correctly 1`] = `
</span>
</div>
</div>
<ul
class="ant-transfer-list-content"
/>
<div
class="ant-transfer-list-body-not-found"
>
@ -237,9 +234,6 @@ exports[`renders ./components/transfer/demo/advanced.md correctly 1`] = `
</span>
</div>
</div>
<ul
class="ant-transfer-list-content"
/>
<div
class="ant-transfer-list-body-not-found"
>
@ -557,9 +551,6 @@ exports[`renders ./components/transfer/demo/custom-item.md correctly 1`] = `
<div
class="ant-transfer-list-body"
>
<ul
class="ant-transfer-list-content"
/>
<div
class="ant-transfer-list-body-not-found"
>
@ -669,9 +660,6 @@ exports[`renders ./components/transfer/demo/custom-item.md correctly 1`] = `
<div
class="ant-transfer-list-body"
>
<ul
class="ant-transfer-list-content"
/>
<div
class="ant-transfer-list-body-not-found"
>
@ -737,9 +725,6 @@ exports[`renders ./components/transfer/demo/large-data.md correctly 1`] = `
<div
class="ant-transfer-list-body"
>
<ul
class="ant-transfer-list-content"
/>
<div
class="ant-transfer-list-body-not-found"
>
@ -848,9 +833,6 @@ exports[`renders ./components/transfer/demo/large-data.md correctly 1`] = `
<div
class="ant-transfer-list-body"
>
<ul
class="ant-transfer-list-content"
/>
<div
class="ant-transfer-list-body-not-found"
>
@ -949,9 +931,6 @@ exports[`renders ./components/transfer/demo/search.md correctly 1`] = `
</span>
</div>
</div>
<ul
class="ant-transfer-list-content"
/>
<div
class="ant-transfer-list-body-not-found"
>
@ -1093,9 +1072,6 @@ exports[`renders ./components/transfer/demo/search.md correctly 1`] = `
</span>
</div>
</div>
<ul
class="ant-transfer-list-content"
/>
<div
class="ant-transfer-list-body-not-found"
>

View File

@ -221,6 +221,7 @@ export default class TransferList extends React.Component<TransferListProps, any
)}
>
{search}
{!searchNotFound && (
<Animate
component="ul"
componentProps={{ onScroll }}
@ -230,6 +231,7 @@ export default class TransferList extends React.Component<TransferListProps, any
>
{showItems}
</Animate>
)}
{searchNotFound}
</div>
);

View File

@ -128,8 +128,12 @@
position: absolute;
top: 50%;
width: 100%;
margin-top: -10px;
transform: translateY(-50%);
// with filter should offset the search box height
.@{transfer-prefix-cls}-list-body-with-search & {
margin-top: @input-height-base / 2;
}
}
&-footer {