We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 20658b5 commit fe75604Copy full SHA for fe75604
3 files changed
docs/demo/event.md
@@ -1,5 +1,5 @@
1
---
2
-order: 1
+order: 9
3
4
5
## event
docs/demo/placement.md
@@ -0,0 +1,7 @@
+---
+order: 2
+
+## placement
6
7
+<code src="../examples/placement.tsx" />
docs/examples/placement.tsx
@@ -0,0 +1,16 @@
+import React from 'react';
+import InlineEdit from '@twp0217/react-inline-edit';
+export default () => {
+ const [editValue, setEditValue] = React.useState<string>('');
+ return (
8
+ <InlineEdit
9
+ defaultValue={editValue}
10
+ placement="top"
11
+ readView={editValue || '请点击输入值'}
12
+ editView={<input placeholder="请输入值" />}
13
+ onConfirm={setEditValue}
14
+ />
15
+ );
16
+};
0 commit comments