mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2026-01-21 08:28:16 +00:00
func 初始值修改
This commit is contained in:
parent
bcedec6f21
commit
34edcacb43
@ -165,11 +165,7 @@ function propTypeToSetter(propType: PropType): SetterType {
|
|||||||
case 'func':
|
case 'func':
|
||||||
return {
|
return {
|
||||||
componentName: 'FunctionSetter',
|
componentName: 'FunctionSetter',
|
||||||
isRequired,
|
isRequired
|
||||||
initialValue: {
|
|
||||||
type: 'JSFunction',
|
|
||||||
value: 'function(){}',
|
|
||||||
},
|
|
||||||
};
|
};
|
||||||
case 'oneOfType':
|
case 'oneOfType':
|
||||||
return {
|
return {
|
||||||
|
|||||||
@ -207,9 +207,8 @@ export default class EventBindDialog extends Component<PluginProps> {
|
|||||||
|
|
||||||
<div className="dialog-small-title">参数设置</div>
|
<div className="dialog-small-title">参数设置</div>
|
||||||
<MonacoEditor
|
<MonacoEditor
|
||||||
value={'{}'}
|
|
||||||
{...defaultEditorOption}
|
{...defaultEditorOption}
|
||||||
{...{ language: 'json' }}
|
{...{ language: 'javascript' }}
|
||||||
// onChange={(newCode) => this.updateCode(newCode)}
|
// onChange={(newCode) => this.updateCode(newCode)}
|
||||||
// editorDidMount={(editor, monaco) => this.editorDidMount.call(this, editor, monaco, TAB_KEY.JS_TAB)}
|
// editorDidMount={(editor, monaco) => this.editorDidMount.call(this, editor, monaco, TAB_KEY.JS_TAB)}
|
||||||
/>
|
/>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user