From 0ee4a531a10b02f646321bd3b2799b0c930e3fcb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=AA=97=E4=BD=A0=E6=98=AF=E5=B0=8F=E7=8C=AB=E5=92=AA?= Date: Wed, 6 Nov 2019 14:49:20 +0800 Subject: [PATCH] refactor: upgrade rc-dropdown (#19498) * refator: upgrade rc-dropdown * upgrade rc-dropdown version * update snapshots --- components/breadcrumb/Breadcrumb.tsx | 2 +- .../__tests__/__snapshots__/router.test.js.snap | 4 ---- .../__snapshots__/components.test.js.snap | 9 ++++++--- components/dropdown/dropdown.tsx | 6 +++--- .../__snapshots__/Table.filter.test.js.snap | 15 +++++++++------ .../__snapshots__/Table.rowSelection.test.js.snap | 1 + package.json | 2 +- typings/custom-typings.d.ts | 2 +- 8 files changed, 22 insertions(+), 19 deletions(-) diff --git a/components/breadcrumb/Breadcrumb.tsx b/components/breadcrumb/Breadcrumb.tsx index a3023f032f..278e82674a 100755 --- a/components/breadcrumb/Breadcrumb.tsx +++ b/components/breadcrumb/Breadcrumb.tsx @@ -105,7 +105,7 @@ export default class Breadcrumb extends React.Component { paths.push(path); } // generated overlay by route.children - let overlay = null; + let overlay; if (route.children && route.children.length) { overlay = ( diff --git a/components/breadcrumb/__tests__/__snapshots__/router.test.js.snap b/components/breadcrumb/__tests__/__snapshots__/router.test.js.snap index 715d805e7e..7c8a37e198 100644 --- a/components/breadcrumb/__tests__/__snapshots__/router.test.js.snap +++ b/components/breadcrumb/__tests__/__snapshots__/router.test.js.snap @@ -80,7 +80,6 @@ exports[`react router react router 3 1`] = ` > @@ -102,7 +101,6 @@ exports[`react router react router 3 1`] = ` @@ -124,7 +122,6 @@ exports[`react router react router 3 1`] = ` @@ -146,7 +143,6 @@ exports[`react router react router 3 1`] = ` diff --git a/components/config-provider/__tests__/__snapshots__/components.test.js.snap b/components/config-provider/__tests__/__snapshots__/components.test.js.snap index 582f618375..1155d28cc8 100644 --- a/components/config-provider/__tests__/__snapshots__/components.test.js.snap +++ b/components/config-provider/__tests__/__snapshots__/components.test.js.snap @@ -11772,7 +11772,7 @@ exports[`ConfigProvider components Table configProvider 1`] = `