import {TextareaItem, InputItem, Button, Flex, SearchBar} from 'antd-mobile';
class leavMessage extends Component {
constructor(props){
    super(props);
    Util.setTitle("关于我们");
    this.state = {
        list:[],
        textareaValue:''
    }
}
//设置textareaValue
handleTextareaChange = (e) => {
    console.log(e);
    this.setState({
        textareaValue:e //不能使用e.target.value 获取值
    })
}
}
<TextareaItem
    placeholder="请输入留言"
    rows={5}
    count={300}
    onChange={this.handleTextareaChange.bind(this)}
/>
Logo

开源鸿蒙跨平台开发社区汇聚开发者与厂商,共建“一次开发,多端部署”的开源生态,致力于降低跨端开发门槛,推动万物智联创新。

更多推荐