Merge branch 'dev'

This commit is contained in:
codetypes committed 2024-03-11 09:57:02 +08:00
commit 91b68a7c94
1 file changed
+9
+9
View File
@@ -47,6 +47,7 @@ export default class NodePanel extends React.Component<NodePanelProps> {
name: model.name,
desc: model.desc,
debug: model.debug,
path: model.path,
customArgs: model.args ? JSON.stringify(model.args, null, " ") : "",
};
if (model.args) {
@@ -95,6 +96,11 @@ export default class NodePanel extends React.Component<NodePanelProps> {
model.desc = values.desc;
model.debug = values.debug;
if (model.path !== values.path) {
model.path = values.path;
forceUpdate = true;
}
if (conf.args) {
conf.args.forEach((e) => {
const k = "args." + e.name;
@@ -188,6 +194,9 @@ export default class NodePanel extends React.Component<NodePanelProps> {
<Item label="调试开关" name="debug" valuePropName="checked">
<Switch onChange={this.handleSubmit} />
</Item>
<Item label="子树" name="path">
<Input onBlur={this.handleSubmit} />
</Item>
<Markdown source={conf.doc} />
{this.renderInputs(conf)}
{this.renderArgs(conf)}