🔥码云GVP开源项目 12k star Uniapp+ElementUI 功能强大 支持多语言、二开方便! 广告
``` Warning: Failed prop type: The prop `onCancel` is marked as required in `ItemEditor`, but its value is `undefined` ``` ``` ItemEditor item={selected} onSave={this.saveItem} onCancel={this.cancelEdit} /> ``` ``` cancelEdit ``` ``` cancelEdit({item}){ this.setState({ selectedId:null, editing:true }) } ``` ``` this.cancelEdit = this.cancelEdit.bind(this); ```