form 改造部分代码

This commit is contained in:
liaoxuezhi 2021-05-26 00:57:33 +08:00
parent b48b652d08
commit 095108c252

View File

@ -128,6 +128,7 @@ export default class Service extends React.Component<ServiceProps> {
this.initInterval = this.initInterval.bind(this);
this.afterDataFetch = this.afterDataFetch.bind(this);
this.afterSchemaFetch = this.afterSchemaFetch.bind(this);
this.handleChange = this.handleChange.bind(this);
}
componentDidMount() {
@ -350,6 +351,11 @@ export default class Service extends React.Component<ServiceProps> {
}
}
handleChange(value: any, name: string) {
const {store} = this.props;
store.changeValue(name, value);
}
renderBody() {
const {render, store, body: schema, classnames: cx} = this.props;