fix: fix function bug

This commit is contained in:
zude.hzd 2020-10-13 17:17:06 +08:00
parent 113e4092c4
commit ab151dfe66

View File

@ -181,7 +181,7 @@ export default class FunctionSetter extends PureComponent<FunctionSetterProps> {
const { onChange } = this.props;
onChange({
type: 'JSFunction',
value: `function(){ this.${eventName}() }`,
value: `function(){ return this.${eventName}() }`,
});
};