import Icon from '../../icon'; import Input from '..'; import React from 'react'; import ReactDOM from 'react-dom'; interface PageStates { v: any; } class App extends React.Component<{}, PageStates> { onChange: (v: any) => void; onClick: () => void; constructor(props) { super(props); this.state = { v: '', }; this.onChange = v => { this.setState({ v, }); }; this.onClick = () => { console.log(this.state.v); }; } render() { return (
} placeholder="search" value={this.state.v} aria-label="input with config of innerBefore" onChange={this.onChange} />

} placeholder="search" value={this.state.v} aria-label="input with config of innerAfter" onChange={this.onChange} />

} aria-label="input with config of innerAfter and disabled" />
); } } ReactDOM.render(, document.getElementById('input-demo-9'));