feat: drag

This commit is contained in:
tsanie committed 2026-11-24 08:27:04 +08:00
1 parent 05ce7035dd
commit 5c2c682baf
11 files changed
+806 -555

No files matched your search

+9 -4
View File
@@ -19,9 +19,14 @@ export interface RectLike {
export type BoxRect = Required<Omit<RectLike, 'zIndex'>>;
export interface SnapLine {
axis: 'x' | 'y';
export interface SnapTarget {
pos: number;
start: number;
end: number;
}
export type SnapLine = SnapTarget & {
axis: 'x' | 'y';
}
export interface MovableOptions<T = void> {
@@ -153,12 +158,12 @@ export interface PopupOptions {
resolve?: (this: Popup, result: { result: any, popup: Popup }) => void;
}
export interface InputOptions {
export interface InputOptionsBase {
tabIndex?: number;
default?: string;
placeholder?: string;
[key: string]: string;
}
export type InputOptions = InputOptionsBase & Record<string, any>;
/**
* 复选框选项