This commit is contained in:
2025-09-25 13:36:38 +08:00
parent d042520b14
commit d18a3d5279
6 changed files with 931 additions and 39 deletions

View File

@@ -8,3 +8,35 @@ export interface WindowFormPos {
/** 窗口状态 */
export type TWindowFormState = 'default' | 'minimized' | 'maximized';
/** 拖拽方向 */
export type ResizeDirection =
| 'topLeft'
| 'top'
| 'topRight'
| 'right'
| 'bottomRight'
| 'bottom'
| 'bottomLeft'
| 'left'
| 'none'
/** 拖拽状态 */
export interface ResizeState {
/** 是否正在调整尺寸 */
isResizing: boolean
/** 调整方向 */
direction: ResizeDirection
/** 起始鼠标位置 */
startX: number
/** 起始鼠标位置 */
startY: number
/** 起始窗体宽度 */
startWidth: number
/** 起始窗体高度 */
startHeight: number
/** 起始窗体X坐标 */
startXPosition: number
/** 起始窗体Y坐标 */
startYPosition: number
}