mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-04 00:49:39 +08:00
8ae56f2371
* feat: tooltip support arrow.pointAtCenter * test: rm only * fix: Popover * fix: rm popover arrow logic * test: update test * chore: skip debug demo test
20 lines
402 B
TypeScript
20 lines
402 B
TypeScript
import * as React from 'react';
|
|
import demoTest, { rootPropsTest } from '../../../tests/shared/demoTest';
|
|
|
|
demoTest('tooltip', {
|
|
testRootProps: false,
|
|
skip: ['shift.tsx', 'debug.tsx'],
|
|
});
|
|
|
|
rootPropsTest(
|
|
'tooltip',
|
|
(Tooltip, props) => (
|
|
<Tooltip {...props} title="Bamboo">
|
|
<span />
|
|
</Tooltip>
|
|
),
|
|
{
|
|
findRootElements: () => document.querySelector('.ant-tooltip')!,
|
|
},
|
|
);
|