func 初始值修改

This commit is contained in:
zude.hzd 2020-08-27 16:13:16 +08:00
parent bcedec6f21
commit 34edcacb43
2 changed files with 2 additions and 7 deletions

View File

@ -165,11 +165,7 @@ function propTypeToSetter(propType: PropType): SetterType {
case 'func':
return {
componentName: 'FunctionSetter',
isRequired,
initialValue: {
type: 'JSFunction',
value: 'function(){}',
},
isRequired
};
case 'oneOfType':
return {

View File

@ -207,9 +207,8 @@ export default class EventBindDialog extends Component<PluginProps> {
<div className="dialog-small-title"></div>
<MonacoEditor
value={'{}'}
{...defaultEditorOption}
{...{ language: 'json' }}
{...{ language: 'javascript' }}
// onChange={(newCode) => this.updateCode(newCode)}
// editorDidMount={(editor, monaco) => this.editorDidMount.call(this, editor, monaco, TAB_KEY.JS_TAB)}
/>