fix(boards): 修复skulpt turtle下stamp方法报错

This commit is contained in:
王立帮
2025-10-14 07:53:29 +08:00
parent 94cdad5d3d
commit c00956fe88
2 changed files with 19 additions and 0 deletions

View File

@@ -875,3 +875,15 @@ export const turtle_screen_savefig = {
}
};
export const turtle_stamp = {
init: function () {
this.setColour(TURTLE_HUE);
this.appendValueInput('TUR')
.setCheck('Turtle')
this.appendDummyInput()
.appendField(Blockly.Msg.TURTLE_STAMP);
this.setInputsInline(true);
this.setPreviousStatement(true);
this.setNextStatement(true);
}
};