zs_library 0.9.3 → 0.9.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -97,6 +97,14 @@ export interface ItemsTheme {
|
|
|
97
97
|
};
|
|
98
98
|
};
|
|
99
99
|
}
|
|
100
|
+
export interface PageSwitchEdgeTheme {
|
|
101
|
+
leftGradient?: string;
|
|
102
|
+
rightGradient?: string;
|
|
103
|
+
glowColor?: string;
|
|
104
|
+
}
|
|
105
|
+
export interface DesktopTheme {
|
|
106
|
+
pageSwitchEdge?: PageSwitchEdgeTheme;
|
|
107
|
+
}
|
|
100
108
|
export interface BaseTheme {
|
|
101
109
|
hoverColor?: string;
|
|
102
110
|
dangerColor?: string;
|
|
@@ -114,6 +122,7 @@ export interface Theme {
|
|
|
114
122
|
modal?: BaseModalTheme;
|
|
115
123
|
contextMenu?: ContextMenuTheme;
|
|
116
124
|
items?: ItemsTheme;
|
|
125
|
+
desktop?: DesktopTheme;
|
|
117
126
|
};
|
|
118
127
|
}
|
|
119
128
|
export declare const defaultTheme: Theme;
|
|
@@ -20,6 +20,7 @@ export interface DndPageItem<D = any> {
|
|
|
20
20
|
id: string | number;
|
|
21
21
|
children: DndSortItem<D>[];
|
|
22
22
|
}
|
|
23
|
+
export type PageSwitchZone = "left" | "right" | null;
|
|
23
24
|
/** 拖拽状态 */
|
|
24
25
|
export interface DragState {
|
|
25
26
|
activeId: string | number | null;
|
|
@@ -33,6 +34,7 @@ export interface DragState {
|
|
|
33
34
|
y: number;
|
|
34
35
|
} | null;
|
|
35
36
|
mergeTargetId: string | number | null;
|
|
37
|
+
pageSwitchZone: PageSwitchZone;
|
|
36
38
|
dragSource: "main" | "folder" | null;
|
|
37
39
|
draggedItem: DndSortItem | null;
|
|
38
40
|
gapIndex: number;
|