字段类型:lua => code

This commit is contained in:
zhandouxiaojiji committed 2024-02-27 11:04:07 +08:00
1 parent 2f53c446dc
commit 239e35260f
3 files changed
+58 -4

No files matched your search

+2 -2
View File
@@ -211,8 +211,8 @@ export default class NodePanel extends React.Component<NodePanelProps> {
return <InputNumber style={{ width: "100%" }} onBlur={this.handleSubmit} />;
} else if (e.type.indexOf("boolean") >= 0) {
return <Switch onChange={this.handleSubmit} />;
} else if (e.type.indexOf("lua") >= 0) {
return <Input onBlur={this.handleSubmit} placeholder={"公式"} />;
} else if (e.type.indexOf("code") >= 0) {
return <Input onBlur={this.handleSubmit} placeholder={"表达式"} />;
} else if (e.type.indexOf("enum") >= 0 ) {
return <Select style={{ width: 120 }} onChange={this.handleSubmit} >
{