feat: drag
This commit is contained in:
1 parent
05ce7035dd
commit
5c2c682baf
11 files changed
+806
-555
No files matched your search
Vendored
+9
-4
@@ -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>;
|
||||
|
||||
/**
|
||||
* 复选框选项
|
||||
|
||||
Reference in new issue
Block a user