diff --git a/docs/examples/common.tsx b/docs/examples/common.tsx new file mode 100644 index 0000000..5ec407a --- /dev/null +++ b/docs/examples/common.tsx @@ -0,0 +1,25 @@ + +import React from 'react'; +import type { PreviewProps } from '@/Preview'; +import { + CloseOutlined, + LeftOutlined, + RightOutlined, + RotateLeftOutlined, + RotateRightOutlined, + SwapOutlined, + ZoomInOutlined, + ZoomOutOutlined, + } from '@ant-design/icons'; + + export const defaultIcons: PreviewProps['icons'] = { + rotateLeft: , + rotateRight: , + zoomIn: , + zoomOut: , + close: , + left: , + right: , + flipX: , + flipY: , + }; \ No newline at end of file diff --git a/tests/__snapshots__/preview.test.tsx.snap b/tests/__snapshots__/preview.test.tsx.snap index 2dafc82..1c8484e 100644 --- a/tests/__snapshots__/preview.test.tsx.snap +++ b/tests/__snapshots__/preview.test.tsx.snap @@ -76,28 +76,7 @@ exports[`Preview add rootClassName should be correct when open preview 1`] = ` > + /> ,