mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-13 23:59:12 +08:00
0b6356d984
* chore: rename file .tsx => .ts * fix: fix * test: add test case
18 lines
377 B
TypeScript
18 lines
377 B
TypeScript
import * as React from 'react';
|
|
|
|
import demoTest, { rootPropsTest } from '../../../tests/shared/demoTest';
|
|
|
|
demoTest('popover', {
|
|
testRootProps: false,
|
|
});
|
|
|
|
rootPropsTest(
|
|
'popover',
|
|
(Popover, props) => (
|
|
<Popover {...props} title="Bamboo" content="Little">
|
|
<span />
|
|
</Popover>
|
|
),
|
|
{ findRootElements: () => document.querySelector('.ant-popover')! },
|
|
);
|