字典嵌套调用测试

This commit is contained in:
Irene-Maxine
2024-10-24 22:30:13 +08:00
parent 73ba67166b
commit cf24029e6f
56 changed files with 80675 additions and 25 deletions

View File

@@ -740,4 +740,23 @@ export const json_to_dicts = {
this.setTooltip(Blockly.Msg.MIXLY_CONVERT_TO_JSON_TOOLTIP);
this.setOutput(true);
}
};
};
export const dicts_to_to ={
init:function(){
this.setColour(DICTS_HUE);
this.appendValueInput('DICT')
.setCheck('Dict');
this.appendValueInput('VAR1')
.appendField('r');
this.appendValueInput('VAR2')
.appendField('index');
this.appendValueInput('VAR3')
.appendField('l');
this.appendValueInput('VAR4')
.appendField('n');
this.setInputsInline(true)
this.setTooltip(Blockly.Msg.MIXLY_CONVERT_TO_JSON_TOOLTIP);
this.setOutput(true);
}
}