From b57d306107a14e01ed3afbc14799d62086ad23b6 Mon Sep 17 00:00:00 2001 From: Kermit Xuan Date: Fri, 22 May 2020 00:20:01 +0800 Subject: [PATCH] feat: optmize tooptip destroyTooltipOnHide (#19536) (#24362) --- .../__tests__/__snapshots__/demo.test.js.snap | 6 +++++ .../tooltip/demo/destroy-tooltip-on-hide.md | 25 +++++++++++++++++++ components/tooltip/index.en-US.md | 1 + components/tooltip/index.zh-CN.md | 1 + package.json | 2 +- 5 files changed, 34 insertions(+), 1 deletion(-) create mode 100644 components/tooltip/demo/destroy-tooltip-on-hide.md diff --git a/components/tooltip/__tests__/__snapshots__/demo.test.js.snap b/components/tooltip/__tests__/__snapshots__/demo.test.js.snap index 0799957aa8..35906b3e41 100644 --- a/components/tooltip/__tests__/__snapshots__/demo.test.js.snap +++ b/components/tooltip/__tests__/__snapshots__/demo.test.js.snap @@ -51,6 +51,12 @@ exports[`renders ./components/tooltip/demo/basic.md correctly 1`] = ` `; +exports[`renders ./components/tooltip/demo/destroy-tooltip-on-hide.md correctly 1`] = ` + + Tooltip will destroy when hidden. + +`; + exports[`renders ./components/tooltip/demo/placement.md correctly 1`] = `