feat:架构重构
This commit is contained in:
@@ -10,6 +10,8 @@ from .base import BaseAction
|
||||
|
||||
|
||||
class MoveAction(BaseAction):
|
||||
"""按相对位移移动组件。目标是绝对位置时,用目标坐标减去当前坐标,例如当前 x=100、目标 x=150 时 delta_x=50"""
|
||||
|
||||
type: Literal["move"] = "move"
|
||||
delta_x: Number = Field(
|
||||
default=0, description="水平位移,单位 px,正数向右,负数向左"
|
||||
|
||||
Reference in New Issue
Block a user