feat:优化执行步骤
This commit is contained in:
@@ -10,7 +10,7 @@ from .base import BaseAction
|
||||
|
||||
|
||||
class MoveAction(BaseAction):
|
||||
"""按相对位移移动组件。目标是绝对位置时,用目标坐标减去当前坐标,例如当前 x=100、目标 x=150 时 delta_x=50"""
|
||||
"""按相对位移移动组件,适合“往右挪一点”这类相对说法;目标位置是确定的用 set_layout,多个组件排列用 arrange、align、distribute,不要自己换算坐标"""
|
||||
|
||||
type: Literal["move"] = "move"
|
||||
delta_x: Number = Field(
|
||||
|
||||
Reference in New Issue
Block a user