mirror of
https://gitee.com/baidu/amis.git
synced 2024-11-30 11:07:52 +08:00
form 改造部分代码
This commit is contained in:
parent
b48b652d08
commit
095108c252
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user