代码:
import { View } from "@tarojs/components";
import { AtTextarea } from 'taro-ui'
import { useState } from "react"
export default function InputForm() {
const [expressContent, setExpressContent] = useState('')
const toUpdate = (val) => {
setExpressContent(val)
}
return (
<View></NavBar>
<View className="formDiv">
<AtTextarea
value= {expressContent}
onChange= {toUpdate}
maxLength={200}
className="expressContent"
focus = {true}
placeholder='请输入内容'
/>
</View>
</View>
)
}
解决方法: 微信开发工具 关闭再打开就好了