import Taro, { Component } from '@tarojs/taro'; import { View, Textarea } from '@tarojs/components'; import { TextareaProps } from '@tarojs/components/types/Textarea'; import './index.scss'; interface IProps extends TextareaProps { behind?: boolean, value: string, placeholder?: string, maxlength?: number, disabled?: boolean, onInput: () => void, } interface IState { contentInput: string, } class TctTextarea extends Component { static defaultProperty = { behind: false, } constructor(props) { super(props); this.state = { contentInput: '', }; } componentWillMount() {} render() { const { behind, value, placeholder, maxlength, disabled, onBlur, onInput, } = this.props; const { contentInput } = this.state; return (