mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-11-30 11:08:45 +08:00
Merge branch 'feature' into master-merge-feature
This commit is contained in:
commit
434a0f5cfe
@ -35,11 +35,14 @@ export default function imageTest(component: React.ReactElement) {
|
||||
await page.addStyleTag({ path: `${process.cwd()}/dist/reset.css` });
|
||||
|
||||
const cache = createCache();
|
||||
const html = ReactDOMServer.renderToString(
|
||||
|
||||
const element = (
|
||||
<App>
|
||||
<StyleProvider cache={cache}>{component}</StyleProvider>,
|
||||
</App>,
|
||||
<StyleProvider cache={cache}>{component}</StyleProvider>
|
||||
</App>
|
||||
);
|
||||
|
||||
const html = ReactDOMServer.renderToString(element);
|
||||
const styleStr = extractStyle(cache);
|
||||
|
||||
await page.evaluate(
|
||||
|
Loading…
Reference in New Issue
Block a user