From 8f6af3726252c70f0744540f81110eb0a8580257 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?kiner-tang=28=E6=96=87=E8=BE=89=29?= <1127031143@qq.com>
Date: Tue, 28 Nov 2023 15:09:26 +0800
Subject: [PATCH] feat: operation default icons
---
docs/examples/common.tsx | 25 ++++
tests/__snapshots__/preview.test.tsx.snap | 168 +---------------------
2 files changed, 32 insertions(+), 161 deletions(-)
create mode 100644 docs/examples/common.tsx
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: