| | |
| | | card: PropTypes.object, |
| | | editId: PropTypes.any, |
| | | triggerEdit: PropTypes.func, |
| | | updateConfig: PropTypes.func, |
| | | onDoubleClick: PropTypes.func |
| | | } |
| | | |
| | |
| | | this.props.triggerEdit(element) |
| | | } |
| | | |
| | | updateContent = () => { |
| | | |
| | | updateContent = (card) => { |
| | | this.props.updateConfig(card) |
| | | } |
| | | |
| | | render () { |
| | |
| | | return ( |
| | | <div className="mob-login" onClick={this.editBox} style={{paddingTop: `calc(17vh - 10px)`}}> |
| | | <div className={'logo ' + (editId === card.logo.uuid ? 'editing' : '')} onClick={this.editLogo}> |
| | | <ContentUpdate element={card.logo} updateContent={(ele) => this.updateContent({...card, logo: ele})}/> |
| | | <img src={card.logo.content} alt=""/> |
| | | </div> |
| | | <div className={'plat-name ' + (editId === card.title.uuid ? 'editing' : '')} onClick={this.editTitle}> |
| | | {editId === card.title.uuid ? <ContentUpdate element={card.title} updateContent={this.updateContent}/> : null} |
| | | <ContentUpdate element={card.title} updateContent={(ele) => this.updateContent({...card, title: ele})}/> |
| | | {card.title.content} |
| | | </div> |
| | | <InputItem |
| | |
| | | </div> |
| | | <Button type="primary" onDoubleClick={() => this.props.doubleClickCard(card.login)}>登录</Button> |
| | | <div className={'company-msg ' + (editId === card.copyright.uuid ? 'editing' : '')} onClick={this.editMsg}> |
| | | <ContentUpdate element={card.copyright} updateContent={(ele) => this.updateContent({...card, copyright: ele})}/> |
| | | <p>{card.copyright.content}</p> |
| | | </div> |
| | | </div> |