mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-14 08:09:13 +08:00
86b5c50cb4
* chore: adjust doc * chore: simplify arrow offset * chore: auto adjust shift * docs: adjust demo * chore: update snapshot * chore: provide ref * test: prepare * chore: update deps * test: fix part test * test: fix part test * test: fix part test * test: fix part test * test: fix part test * test: update snapshot * fix: missing pure render * fix: Popover pure panel * test: update snapshot * test: update tour snapshot * chore: bump trigger ver * test: fix render ssr logic * test: skip unnecessary case * test: fix test case * test: update snapshot * test: update snapshot * test: update snapshot * test: update snapshot * test: update snapshot * test: fix test case * test: fix test case * chore: clean up useless warning * test: add check for placement * chore: ignore default
20 lines
389 B
TypeScript
20 lines
389 B
TypeScript
import * as React from 'react';
|
|
import demoTest, { rootPropsTest } from '../../../tests/shared/demoTest';
|
|
|
|
demoTest('tooltip', {
|
|
testRootProps: false,
|
|
skip: ['shift.tsx'],
|
|
});
|
|
|
|
rootPropsTest(
|
|
'tooltip',
|
|
(Tooltip, props) => (
|
|
<Tooltip {...props} title="Bamboo">
|
|
<span />
|
|
</Tooltip>
|
|
),
|
|
{
|
|
findRootElements: () => document.querySelector('.ant-tooltip')!,
|
|
},
|
|
);
|