From 1dcd93f6e7f8abfcb32cd428b49c0e39ab26303b Mon Sep 17 00:00:00 2001 From: tangjinzhou <415800467@qq.com> Date: Sat, 14 Nov 2020 07:34:27 -0600 Subject: [PATCH] Perf menu (#3177) * fix: menu parent dom select class not work * perf: ease-in-out update --- .../__tests__/__snapshots__/demo.test.js.snap | 214 ++++++++++++++++-- components/menu/index.tsx | 1 - components/style/themes/default.less | 2 +- components/vc-menu/MenuItem.jsx | 12 +- components/vc-menu/SubMenu.jsx | 40 +++- components/vc-menu/SubPopupMenu.jsx | 2 +- components/vc-menu/commonPropsType.js | 2 +- 7 files changed, 235 insertions(+), 38 deletions(-) diff --git a/components/menu/__tests__/__snapshots__/demo.test.js.snap b/components/menu/__tests__/__snapshots__/demo.test.js.snap index 4266989b9..2413edfe2 100644 --- a/components/menu/__tests__/__snapshots__/demo.test.js.snap +++ b/components/menu/__tests__/__snapshots__/demo.test.js.snap @@ -6,7 +6,8 @@ exports[`renders ./antdv-demo/docs/menu/demo/horizontal.md correctly 1`] = ` @@ -16,7 +17,8 @@ exports[`renders ./antdv-demo/docs/menu/demo/horizontal.md correctly 1`] = ` @@ -26,19 +28,22 @@ exports[`renders ./antdv-demo/docs/menu/demo/horizontal.md correctly 1`] = ` @@ -48,7 +53,8 @@ exports[`renders ./antdv-demo/docs/menu/demo/horizontal.md correctly 1`] = ` @@ -92,12 +98,52 @@ exports[`renders ./antdv-demo/docs/menu/demo/inline.md correctly 1`] = ` @@ -123,7 +169,7 @@ exports[`renders ./antdv-demo/docs/menu/demo/inline-collapsed.md correctly 1`] =