Skip to content

Commit

Permalink
更正文本框+输入框代码
Browse files Browse the repository at this point in the history
  • Loading branch information
tobylai-toby committed Sep 22, 2024
1 parent 7743ebc commit e67f8bd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions docs/areact/getting-started.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -210,10 +210,12 @@ function App() {
backgroundOpacity="100%"
></Text>
<Input x="0px" y="50px" width="200px" height="50px" placeholder="请输入你的名字:"
onInput={(e)=>setName(e.target.getAttribute("text"))} // 使用onInput事件监听输入
onInput={(e)=>setName(e.target.getAttribute("text")!)} // 使用onInput事件监听输入
text={name} // 绑定是双向的~
></Input>
</>);
}
app.mount(<App />, ui);
```
```

![1726986460456](getting-started/1726986460456.png)
Binary file added docs/areact/getting-started/1726986460456.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit e67f8bd

Please sign in to comment.