This commit is contained in:
AllenFang 2018-10-28 17:35:16 +08:00
parent a4c1090a0f
commit bc0c048735

View File

@ -15,13 +15,12 @@ class BootstrapTable extends PropsBaseResolver(Component) {
super(props);
this.validateProps();
if (props.registerExposedAPI) {
const getData = () => this.getData();
props.registerExposedAPI(getData);
props.registerExposedAPI(this.getData);
}
}
// Exposed APIs
getData = () => {
getData() {
return this.props.data;
}