From d1257885f78df57778467b8f6e365dce85a509af Mon Sep 17 00:00:00 2001
From: Haixing <65376724+HaixingOoO@users.noreply.github.com>
Date: Fri, 15 Nov 2024 10:40:50 +0800
Subject: [PATCH] docs(Popup): update popperOptions usage (#3200)
* docs(popup): update popperOptions usage
* ci(popup): update test snap
* docs(popup): update docs
---
src/popup/_example/popper-options.tsx | 51 ++++++++++
src/popup/popup.en-US.md | 14 +++
src/popup/popup.md | 8 ++
test/snap/__snapshots__/csr.test.jsx.snap | 118 ++++++++++++++++++++++
test/snap/__snapshots__/ssr.test.jsx.snap | 2 +
5 files changed, 193 insertions(+)
create mode 100644 src/popup/_example/popper-options.tsx
diff --git a/src/popup/_example/popper-options.tsx b/src/popup/_example/popper-options.tsx
new file mode 100644
index 0000000000..e6c238bfd9
--- /dev/null
+++ b/src/popup/_example/popper-options.tsx
@@ -0,0 +1,51 @@
+import React, { useState } from 'react';
+import { Button, Input, Popup, Space } from 'tdesign-react';
+
+export default function PopperOptions() {
+ const [offsetX, setOffsetX] = useState('0');
+ const [offsetY, setOffsetY] = useState('0');
+
+ return (
+