|
@@ -17,9 +17,12 @@ class InspectName extends Component {
|
|
|
componentDidMount(){
|
|
|
const {item} = this.props
|
|
|
this.setState({
|
|
|
- value:item.inpValue
|
|
|
- })
|
|
|
- this.refs.iptTip.getDOMNode().value = item.inpValue
|
|
|
+ value:item.inpValue,
|
|
|
+ isEdit:item.inpValue?true:false
|
|
|
+ });
|
|
|
+ if(this.refs.iptTip){
|
|
|
+ this.refs.iptTip.getDOMNode().value = item.inpValue
|
|
|
+ }
|
|
|
}
|
|
|
handleEdit(){
|
|
|
this.setState({
|
|
@@ -57,7 +60,7 @@ class InspectName extends Component {
|
|
|
onInput={this.handleInput}
|
|
|
className={styles.iptValue}
|
|
|
type="text"/>
|
|
|
- <i></i>
|
|
|
+ <span></span>
|
|
|
</div>:<span className={styles.iptValueBtn} onClick={this.handleEdit}>点击备注</span>
|
|
|
}
|
|
|
</p>:
|