xframelib 0.7.3 → 0.7.6
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.
- package/README.md +23 -18
- package/dist/api/Token.d.ts +15 -15
- package/dist/api/User.d.ts +49 -49
- package/dist/api/index.d.ts +2 -2
- package/dist/assets/output-ad5f5cbf.css +307 -0
- package/dist/controls/collapsepanel/VCollapsiblePanel.vue.d.ts +27 -27
- package/dist/controls/collapsepanel/VCollapsiblePanelGroup.vue.d.ts +33 -33
- package/dist/controls/collapsepanel/color.util.d.ts +1 -1
- package/dist/controls/collapsepanel/composables/store.d.ts +7 -7
- package/dist/controls/collapsepanel/constant.d.ts +1 -1
- package/dist/controls/collapsepanel/index.d.ts +3 -3
- package/dist/controls/layoutcontainer/LayoutManager.d.ts +133 -112
- package/dist/controls/layoutcontainer/index.d.ts +3 -3
- package/dist/controls/layoutcontainer/layout.vue.d.ts +61 -60
- package/dist/controls/splitpanes/index.d.ts +3 -3
- package/dist/controls/vuewindow/SinglePointerEvent.d.ts +23 -23
- package/dist/controls/vuewindow/dom.d.ts +16 -16
- package/dist/controls/vuewindow/draggable_helper.d.ts +20 -20
- package/dist/controls/vuewindow/index.d.ts +6 -6
- package/dist/controls/vuewindow/resizable_helper.d.ts +16 -16
- package/dist/controls/vuewindow/style.d.ts +110 -110
- package/dist/controls/vuewindow/window/Button.vue.d.ts +29 -29
- package/dist/controls/vuewindow/window/index.vue.d.ts +211 -211
- package/dist/controls/vuewindow/window/utils.d.ts +17 -17
- package/dist/controls/vuewindow/z_element.d.ts +11 -11
- package/dist/core/Global.d.ts +2 -2
- package/dist/core/IModel.d.ts +46 -46
- package/dist/core/Init.d.ts +20 -20
- package/dist/core/MsgHelper.d.ts +13 -13
- package/dist/core/SysEvents.d.ts +24 -24
- package/dist/core/index.d.ts +4 -4
- package/dist/hprose/HproseClient.d.ts +20 -20
- package/dist/hprose/ProxyClient.d.ts +39 -39
- package/dist/hprose/index.d.ts +11 -11
- package/dist/index.cjs +10 -5
- package/dist/index.css +96 -81
- package/dist/index.d.ts +11 -11
- package/dist/index.js +10 -5
- package/dist/mitt/index.d.ts +25 -25
- package/dist/model/Config.d.ts +151 -151
- package/dist/model/Constants.d.ts +19 -19
- package/dist/model/IRole.d.ts +89 -89
- package/dist/model/IUserModel.d.ts +67 -67
- package/dist/model/Layout.d.ts +83 -83
- package/dist/model/index.d.ts +5 -5
- package/dist/permission/RoleSysRightHelper.d.ts +27 -27
- package/dist/permission/filter.d.ts +45 -45
- package/dist/permission/index.d.ts +4 -4
- package/dist/permission/register.d.ts +24 -24
- package/dist/permission/right.d.ts +15 -15
- package/dist/utils/AxiosHelper.d.ts +58 -58
- package/dist/utils/BigFileDownload.d.ts +117 -117
- package/dist/utils/CodeHelper.d.ts +14 -14
- package/dist/utils/Color.d.ts +74 -74
- package/dist/utils/FileDownload.d.ts +36 -36
- package/dist/utils/FileUpload.d.ts +90 -90
- package/dist/utils/H5Tool.d.ts +158 -150
- package/dist/utils/IsTool.d.ts +101 -101
- package/dist/utils/JQuery.d.ts +41 -41
- package/dist/utils/LockHelper.d.ts +17 -17
- package/dist/utils/SignalRClient.d.ts +8 -8
- package/dist/utils/Storage.d.ts +66 -66
- package/dist/utils/StringUtils.d.ts +15 -15
- package/dist/utils/Time.d.ts +11 -11
- package/dist/utils/TokenHelper.d.ts +18 -18
- package/dist/utils/URLTool.d.ts +18 -18
- package/dist/utils/ValidateTool.d.ts +149 -149
- package/dist/utils/WaterMark.d.ts +10 -10
- package/dist/utils/XXTEA.d.ts +15 -15
- package/dist/utils/index.d.ts +21 -21
- package/dist/utils/uuid.d.ts +3 -3
- package/package.json +19 -19
|
@@ -1,112 +1,133 @@
|
|
|
1
|
-
import { LayoutContainerEnum } from '../../model/Layout';
|
|
2
|
-
import { Ref } from 'vue';
|
|
3
|
-
import type { IWidgetConfig } from '../../model/Layout';
|
|
4
|
-
/**
|
|
5
|
-
* 布局对象定义
|
|
6
|
-
*/
|
|
7
|
-
export interface ILayoutContainer {
|
|
8
|
-
topContainer?: HTMLElement;
|
|
9
|
-
centerBackContainer?: HTMLElement;
|
|
10
|
-
centerMainContainer?: HTMLElement;
|
|
11
|
-
centerFrontContainer?: HTMLElement;
|
|
12
|
-
bottomContainer?: HTMLElement;
|
|
13
|
-
leftContainer?: HTMLElement;
|
|
14
|
-
rightContainer?: HTMLElement;
|
|
15
|
-
}
|
|
16
|
-
export declare class LayoutManager {
|
|
17
|
-
private layoutState;
|
|
18
|
-
private layoutMap;
|
|
19
|
-
private preConditionMap;
|
|
20
|
-
private widgetsLoadedSet;
|
|
21
|
-
private widgetConfig;
|
|
22
|
-
private _LayoutID;
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
*
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
*
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
*
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
private
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
*
|
|
48
|
-
* @
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
*
|
|
54
|
-
* @
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
*
|
|
60
|
-
* @
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
*
|
|
66
|
-
*
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
*
|
|
72
|
-
* @
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
*
|
|
78
|
-
* @param
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
*
|
|
84
|
-
* @param
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
*
|
|
90
|
-
* @
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
*
|
|
96
|
-
* @
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
*
|
|
102
|
-
* @
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
*
|
|
108
|
-
* @
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
1
|
+
import { LayoutContainerEnum } from '../../model/Layout';
|
|
2
|
+
import { Ref } from 'vue';
|
|
3
|
+
import type { IWidgetConfig } from '../../model/Layout';
|
|
4
|
+
/**
|
|
5
|
+
* 布局对象定义
|
|
6
|
+
*/
|
|
7
|
+
export interface ILayoutContainer {
|
|
8
|
+
topContainer?: HTMLElement;
|
|
9
|
+
centerBackContainer?: HTMLElement;
|
|
10
|
+
centerMainContainer?: HTMLElement;
|
|
11
|
+
centerFrontContainer?: HTMLElement;
|
|
12
|
+
bottomContainer?: HTMLElement;
|
|
13
|
+
leftContainer?: HTMLElement;
|
|
14
|
+
rightContainer?: HTMLElement;
|
|
15
|
+
}
|
|
16
|
+
export declare class LayoutManager {
|
|
17
|
+
private layoutState;
|
|
18
|
+
private layoutMap;
|
|
19
|
+
private preConditionMap;
|
|
20
|
+
private widgetsLoadedSet;
|
|
21
|
+
private widgetConfig;
|
|
22
|
+
private _LayoutID;
|
|
23
|
+
private _mapItemRefs?;
|
|
24
|
+
constructor(layoutState: ILayoutContainer, allWidgetConfig: Array<IWidgetConfig>, layoutID?: string, mapRefs?: Map<string, any>);
|
|
25
|
+
/**
|
|
26
|
+
* 所属的Layout布局对象ID
|
|
27
|
+
* @returns
|
|
28
|
+
*/
|
|
29
|
+
getLayoutID(): string | undefined;
|
|
30
|
+
/**
|
|
31
|
+
* 获得widget配置参数
|
|
32
|
+
* @returns
|
|
33
|
+
*/
|
|
34
|
+
getWidgetConfig(): Array<IWidgetConfig>;
|
|
35
|
+
/**
|
|
36
|
+
* 预先加载Widget组件
|
|
37
|
+
*/
|
|
38
|
+
preloadWidgets(): void;
|
|
39
|
+
/**
|
|
40
|
+
* 加载组件和子组件
|
|
41
|
+
* @param widgetItem 组件对象
|
|
42
|
+
*/
|
|
43
|
+
loadWidget(widgetItem: IWidgetConfig | string): Promise<void>;
|
|
44
|
+
private loadOtherDependenceWidgets;
|
|
45
|
+
private _loadWidget;
|
|
46
|
+
/**
|
|
47
|
+
* 检查是否存在依赖其的组件
|
|
48
|
+
* @param widgetID
|
|
49
|
+
* @returns
|
|
50
|
+
*/
|
|
51
|
+
hasDependentWidgets(widgetID: string): boolean;
|
|
52
|
+
/**
|
|
53
|
+
* 卸载组件
|
|
54
|
+
* @param widgetItem
|
|
55
|
+
* @returns
|
|
56
|
+
*/
|
|
57
|
+
unloadWidget(widgetID: string): void;
|
|
58
|
+
/**
|
|
59
|
+
* 查询某一组件是否被加载
|
|
60
|
+
* @param widgetID 组件ID
|
|
61
|
+
* @returns
|
|
62
|
+
*/
|
|
63
|
+
isWidgetLoaded(widgetID: string): boolean;
|
|
64
|
+
/**
|
|
65
|
+
* 中心两DIV
|
|
66
|
+
* 左右分屏
|
|
67
|
+
* @param restore
|
|
68
|
+
*/
|
|
69
|
+
splitTwoContainer(restore?: boolean): void;
|
|
70
|
+
/**
|
|
71
|
+
* 获取到对应容器
|
|
72
|
+
* @param enumContainer
|
|
73
|
+
* @returns
|
|
74
|
+
*/
|
|
75
|
+
getLayoutContainer(enumContainer: LayoutContainerEnum): HTMLElement | undefined;
|
|
76
|
+
/**
|
|
77
|
+
* 改变容器可见性
|
|
78
|
+
* @param enumContainer
|
|
79
|
+
* @param isVisible
|
|
80
|
+
*/
|
|
81
|
+
changeContainerVisible(enumContainer: LayoutContainerEnum, isVisible?: boolean): void;
|
|
82
|
+
/**
|
|
83
|
+
* 改变组件的可见性
|
|
84
|
+
* @param enumContainer
|
|
85
|
+
* @param isVisible
|
|
86
|
+
*/
|
|
87
|
+
changeWidgetVisible(widgetID: string, isVisible?: boolean): void;
|
|
88
|
+
/**
|
|
89
|
+
* 获取Widget组件是否可见
|
|
90
|
+
* @param widgetID
|
|
91
|
+
* @returns
|
|
92
|
+
*/
|
|
93
|
+
isWidgetVisible(widgetID: string): boolean;
|
|
94
|
+
/**
|
|
95
|
+
* 根据ID,获取已经加载的Widget组件对象
|
|
96
|
+
* @param widgetID
|
|
97
|
+
* @returns
|
|
98
|
+
*/
|
|
99
|
+
getWidgetComponent(widgetID: string): any;
|
|
100
|
+
/**
|
|
101
|
+
* 获取组件记录
|
|
102
|
+
* @param widgetID 组件ID
|
|
103
|
+
* @returns
|
|
104
|
+
*/
|
|
105
|
+
getWigetItem(widgetID: string): IWidgetConfig | undefined;
|
|
106
|
+
/**
|
|
107
|
+
* 根据分组名,获取组件列表
|
|
108
|
+
* @param group 分组名
|
|
109
|
+
* @returns
|
|
110
|
+
*/
|
|
111
|
+
getGroupWigetItems(group: string): IWidgetConfig[] | undefined;
|
|
112
|
+
/**
|
|
113
|
+
* 获取容器里的组件集合
|
|
114
|
+
* @param enumContainer
|
|
115
|
+
* @returns
|
|
116
|
+
*/
|
|
117
|
+
getContainerComponents(enumContainer: LayoutContainerEnum): Ref<Map<string, Object>>;
|
|
118
|
+
/**
|
|
119
|
+
* 获取已经加载组件ID列表
|
|
120
|
+
* @returns ID列表数组
|
|
121
|
+
*/
|
|
122
|
+
getWidgetLoadedIDList(): string[];
|
|
123
|
+
/**
|
|
124
|
+
* 卸载所有已加载的组件
|
|
125
|
+
* @param excludeIDs 排除ID列表
|
|
126
|
+
*/
|
|
127
|
+
unloadAllWidgets(excludeIDs?: string[]): void;
|
|
128
|
+
/**
|
|
129
|
+
* 批量卸载一批Widget组件
|
|
130
|
+
* @param idList 组件ID列表
|
|
131
|
+
*/
|
|
132
|
+
unloadWidgets(idList: string[]): void;
|
|
133
|
+
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import LayoutContainer from './layout.vue';
|
|
2
|
-
import { LayoutManager } from './LayoutManager';
|
|
3
|
-
export { LayoutContainer, LayoutManager };
|
|
1
|
+
import LayoutContainer from './layout.vue';
|
|
2
|
+
import { LayoutManager } from './LayoutManager';
|
|
3
|
+
export { LayoutContainer, LayoutManager };
|
|
@@ -1,60 +1,61 @@
|
|
|
1
|
-
import { PropType } from
|
|
2
|
-
import { IWidgetConfig } from
|
|
3
|
-
declare const _default: import("vue").DefineComponent<{
|
|
4
|
-
widgetConfig: {
|
|
5
|
-
type: PropType<IWidgetConfig[]>;
|
|
6
|
-
required: true;
|
|
7
|
-
default: () => never[];
|
|
8
|
-
};
|
|
9
|
-
layoutID: {
|
|
10
|
-
type: StringConstructor;
|
|
11
|
-
default: undefined;
|
|
12
|
-
};
|
|
13
|
-
layoutStyle: {
|
|
14
|
-
type: ObjectConstructor;
|
|
15
|
-
};
|
|
16
|
-
enableRouterView: {
|
|
17
|
-
type: BooleanConstructor;
|
|
18
|
-
default: boolean;
|
|
19
|
-
};
|
|
20
|
-
}, {
|
|
21
|
-
topContainerComponents: import("vue").Ref<Map<string, Object>>;
|
|
22
|
-
centerbackComponents: import("vue").Ref<Map<string, Object>>;
|
|
23
|
-
centerfrontComponents: import("vue").Ref<Map<string, Object>>;
|
|
24
|
-
leftContainerComponents: import("vue").Ref<Map<string, Object>>;
|
|
25
|
-
rightContainerComponents: import("vue").Ref<Map<string, Object>>;
|
|
26
|
-
bottomContainerComponents: import("vue").Ref<Map<string, Object>>;
|
|
27
|
-
containerStyle: import("vue").ComputedRef<Record<string, any> | undefined>;
|
|
28
|
-
isEnableRouterView: import("vue").Ref<boolean>;
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
1
|
+
import { PropType } from "vue";
|
|
2
|
+
import { IWidgetConfig } from "../../model/Layout";
|
|
3
|
+
declare const _default: import("vue").DefineComponent<{
|
|
4
|
+
widgetConfig: {
|
|
5
|
+
type: PropType<IWidgetConfig[]>;
|
|
6
|
+
required: true;
|
|
7
|
+
default: () => never[];
|
|
8
|
+
};
|
|
9
|
+
layoutID: {
|
|
10
|
+
type: StringConstructor;
|
|
11
|
+
default: undefined;
|
|
12
|
+
};
|
|
13
|
+
layoutStyle: {
|
|
14
|
+
type: ObjectConstructor;
|
|
15
|
+
};
|
|
16
|
+
enableRouterView: {
|
|
17
|
+
type: BooleanConstructor;
|
|
18
|
+
default: boolean;
|
|
19
|
+
};
|
|
20
|
+
}, {
|
|
21
|
+
topContainerComponents: import("vue").Ref<Map<string, Object>>;
|
|
22
|
+
centerbackComponents: import("vue").Ref<Map<string, Object>>;
|
|
23
|
+
centerfrontComponents: import("vue").Ref<Map<string, Object>>;
|
|
24
|
+
leftContainerComponents: import("vue").Ref<Map<string, Object>>;
|
|
25
|
+
rightContainerComponents: import("vue").Ref<Map<string, Object>>;
|
|
26
|
+
bottomContainerComponents: import("vue").Ref<Map<string, Object>>;
|
|
27
|
+
containerStyle: import("vue").ComputedRef<Record<string, any> | undefined>;
|
|
28
|
+
isEnableRouterView: import("vue").Ref<boolean>;
|
|
29
|
+
setItemRef: (el: any, key: string) => void;
|
|
30
|
+
topContainer?: import("vue").Ref<HTMLElement | undefined> | undefined;
|
|
31
|
+
centerBackContainer?: import("vue").Ref<HTMLElement | undefined> | undefined;
|
|
32
|
+
centerMainContainer?: import("vue").Ref<HTMLElement | undefined> | undefined;
|
|
33
|
+
centerFrontContainer?: import("vue").Ref<HTMLElement | undefined> | undefined;
|
|
34
|
+
bottomContainer?: import("vue").Ref<HTMLElement | undefined> | undefined;
|
|
35
|
+
leftContainer?: import("vue").Ref<HTMLElement | undefined> | undefined;
|
|
36
|
+
rightContainer?: import("vue").Ref<HTMLElement | undefined> | undefined;
|
|
37
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "containerLoaded"[], "containerLoaded", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
38
|
+
widgetConfig: {
|
|
39
|
+
type: PropType<IWidgetConfig[]>;
|
|
40
|
+
required: true;
|
|
41
|
+
default: () => never[];
|
|
42
|
+
};
|
|
43
|
+
layoutID: {
|
|
44
|
+
type: StringConstructor;
|
|
45
|
+
default: undefined;
|
|
46
|
+
};
|
|
47
|
+
layoutStyle: {
|
|
48
|
+
type: ObjectConstructor;
|
|
49
|
+
};
|
|
50
|
+
enableRouterView: {
|
|
51
|
+
type: BooleanConstructor;
|
|
52
|
+
default: boolean;
|
|
53
|
+
};
|
|
54
|
+
}>> & {
|
|
55
|
+
onContainerLoaded?: ((...args: any[]) => any) | undefined;
|
|
56
|
+
}, {
|
|
57
|
+
widgetConfig: IWidgetConfig[];
|
|
58
|
+
layoutID: string;
|
|
59
|
+
enableRouterView: boolean;
|
|
60
|
+
}, {}>;
|
|
61
|
+
export default _default;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import Splitpanes from './splitpanes.vue';
|
|
2
|
-
import Pane from './pane.vue';
|
|
3
|
-
export { Splitpanes, Pane };
|
|
1
|
+
import Splitpanes from './splitpanes.vue';
|
|
2
|
+
import Pane from './pane.vue';
|
|
3
|
+
export { Splitpanes, Pane };
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
export declare function isTouchEvent(e: MouseEvent | TouchEvent): e is TouchEvent;
|
|
2
|
-
export declare class SinglePointerEvent {
|
|
3
|
-
readonly e: MouseEvent | TouchEvent;
|
|
4
|
-
constructor(e: MouseEvent | TouchEvent);
|
|
5
|
-
stopPropagation(): void;
|
|
6
|
-
preventDefault(): void;
|
|
7
|
-
get clientX(): number;
|
|
8
|
-
get clientY(): number;
|
|
9
|
-
get clientCoord(): V2;
|
|
10
|
-
static bindDown(target: HTMLElement, cb: (e: SinglePointerEvent) => void, cancel?: (e: SinglePointerEvent) => void, useCapture?: boolean): () => void;
|
|
11
|
-
static bindMove(target: HTMLElement | Document, cb: (e: SinglePointerEvent) => void, useCapture?: boolean): () => void;
|
|
12
|
-
static bindUp(target: HTMLElement | Document, cb: (e: SinglePointerEvent) => void, useCapture?: boolean): () => void;
|
|
13
|
-
originalEvent({ mouse, touch }: Partial<{
|
|
14
|
-
mouse: (e: MouseEvent) => void;
|
|
15
|
-
touch: (e: TouchEvent) => void;
|
|
16
|
-
}>): void;
|
|
17
|
-
}
|
|
18
|
-
export declare class V2 {
|
|
19
|
-
x: number;
|
|
20
|
-
y: number;
|
|
21
|
-
constructor(x: number, y: number);
|
|
22
|
-
clone(): V2;
|
|
23
|
-
}
|
|
1
|
+
export declare function isTouchEvent(e: MouseEvent | TouchEvent): e is TouchEvent;
|
|
2
|
+
export declare class SinglePointerEvent {
|
|
3
|
+
readonly e: MouseEvent | TouchEvent;
|
|
4
|
+
constructor(e: MouseEvent | TouchEvent);
|
|
5
|
+
stopPropagation(): void;
|
|
6
|
+
preventDefault(): void;
|
|
7
|
+
get clientX(): number;
|
|
8
|
+
get clientY(): number;
|
|
9
|
+
get clientCoord(): V2;
|
|
10
|
+
static bindDown(target: HTMLElement, cb: (e: SinglePointerEvent) => void, cancel?: (e: SinglePointerEvent) => void, useCapture?: boolean): () => void;
|
|
11
|
+
static bindMove(target: HTMLElement | Document, cb: (e: SinglePointerEvent) => void, useCapture?: boolean): () => void;
|
|
12
|
+
static bindUp(target: HTMLElement | Document, cb: (e: SinglePointerEvent) => void, useCapture?: boolean): () => void;
|
|
13
|
+
originalEvent({ mouse, touch }: Partial<{
|
|
14
|
+
mouse: (e: MouseEvent) => void;
|
|
15
|
+
touch: (e: TouchEvent) => void;
|
|
16
|
+
}>): void;
|
|
17
|
+
}
|
|
18
|
+
export declare class V2 {
|
|
19
|
+
x: number;
|
|
20
|
+
y: number;
|
|
21
|
+
constructor(x: number, y: number);
|
|
22
|
+
clone(): V2;
|
|
23
|
+
}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
export declare function naturalSize(el?: HTMLElement): {
|
|
2
|
-
width: number;
|
|
3
|
-
height: number;
|
|
4
|
-
top: number;
|
|
5
|
-
left: number;
|
|
6
|
-
bottom: number;
|
|
7
|
-
right: number;
|
|
8
|
-
};
|
|
9
|
-
export declare function getRect(el: HTMLElement): {
|
|
10
|
-
width: number;
|
|
11
|
-
height: number;
|
|
12
|
-
top: number;
|
|
13
|
-
left: number;
|
|
14
|
-
bottom: number;
|
|
15
|
-
right: number;
|
|
16
|
-
};
|
|
1
|
+
export declare function naturalSize(el?: HTMLElement): {
|
|
2
|
+
width: number;
|
|
3
|
+
height: number;
|
|
4
|
+
top: number;
|
|
5
|
+
left: number;
|
|
6
|
+
bottom: number;
|
|
7
|
+
right: number;
|
|
8
|
+
};
|
|
9
|
+
export declare function getRect(el: HTMLElement): {
|
|
10
|
+
width: number;
|
|
11
|
+
height: number;
|
|
12
|
+
top: number;
|
|
13
|
+
left: number;
|
|
14
|
+
bottom: number;
|
|
15
|
+
right: number;
|
|
16
|
+
};
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
export type Options = {
|
|
2
|
-
onMove?: () => void;
|
|
3
|
-
onMoveStart?: () => void;
|
|
4
|
-
onMoveEnd?: () => void;
|
|
5
|
-
};
|
|
6
|
-
export default class DraggableHelper {
|
|
7
|
-
readonly handle?: HTMLElement | undefined;
|
|
8
|
-
readonly container?: HTMLElement | undefined;
|
|
9
|
-
readonly options: Options;
|
|
10
|
-
private unbindDown?;
|
|
11
|
-
private unbindMove?;
|
|
12
|
-
private unbindUp?;
|
|
13
|
-
constructor(handle?: HTMLElement | undefined, container?: HTMLElement | undefined, options?: Options);
|
|
14
|
-
teardown(): void;
|
|
15
|
-
private offsetX;
|
|
16
|
-
private offsetY;
|
|
17
|
-
private mousedown;
|
|
18
|
-
private mousemove;
|
|
19
|
-
private mouseup;
|
|
20
|
-
}
|
|
1
|
+
export type Options = {
|
|
2
|
+
onMove?: () => void;
|
|
3
|
+
onMoveStart?: () => void;
|
|
4
|
+
onMoveEnd?: () => void;
|
|
5
|
+
};
|
|
6
|
+
export default class DraggableHelper {
|
|
7
|
+
readonly handle?: HTMLElement | undefined;
|
|
8
|
+
readonly container?: HTMLElement | undefined;
|
|
9
|
+
readonly options: Options;
|
|
10
|
+
private unbindDown?;
|
|
11
|
+
private unbindMove?;
|
|
12
|
+
private unbindUp?;
|
|
13
|
+
constructor(handle?: HTMLElement | undefined, container?: HTMLElement | undefined, options?: Options);
|
|
14
|
+
teardown(): void;
|
|
15
|
+
private offsetX;
|
|
16
|
+
private offsetY;
|
|
17
|
+
private mousedown;
|
|
18
|
+
private mousemove;
|
|
19
|
+
private mouseup;
|
|
20
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
/// <reference path="../../../../../../src/shims-vue.d.ts" />
|
|
2
|
-
import VWindow from './window/index.vue';
|
|
3
|
-
import { StyleBlack, StyleWhite, StyleMetal, StyleGrayblue } from './style';
|
|
4
|
-
export { WindowResizeEvent } from './window/utils';
|
|
5
|
-
export { StyleBlack, StyleWhite, StyleMetal, StyleGrayblue, VWindow };
|
|
6
|
-
export declare const WindowType: typeof import("*.vue");
|
|
1
|
+
/// <reference path="../../../../../../src/shims-vue.d.ts" />
|
|
2
|
+
import VWindow from './window/index.vue';
|
|
3
|
+
import { StyleBlack, StyleWhite, StyleMetal, StyleGrayblue } from './style';
|
|
4
|
+
export { WindowResizeEvent } from './window/utils';
|
|
5
|
+
export { StyleBlack, StyleWhite, StyleMetal, StyleGrayblue, VWindow };
|
|
6
|
+
export declare const WindowType: typeof import("*.vue");
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
export interface Options {
|
|
2
|
-
minWidth: number;
|
|
3
|
-
maxWidth?: number;
|
|
4
|
-
minHeight: number;
|
|
5
|
-
maxHeight?: number;
|
|
6
|
-
onResize?: () => void;
|
|
7
|
-
onResizeStart?: () => void;
|
|
8
|
-
onResizeEnd?: () => void;
|
|
9
|
-
}
|
|
10
|
-
export default class ResizableHelper {
|
|
11
|
-
readonly container?: HTMLElement | undefined;
|
|
12
|
-
readonly options?: Options | undefined;
|
|
13
|
-
private handles?;
|
|
14
|
-
constructor(container?: HTMLElement | undefined, options?: Options | undefined);
|
|
15
|
-
teardown(): void;
|
|
16
|
-
}
|
|
1
|
+
export interface Options {
|
|
2
|
+
minWidth: number;
|
|
3
|
+
maxWidth?: number;
|
|
4
|
+
minHeight: number;
|
|
5
|
+
maxHeight?: number;
|
|
6
|
+
onResize?: () => void;
|
|
7
|
+
onResizeStart?: () => void;
|
|
8
|
+
onResizeEnd?: () => void;
|
|
9
|
+
}
|
|
10
|
+
export default class ResizableHelper {
|
|
11
|
+
readonly container?: HTMLElement | undefined;
|
|
12
|
+
readonly options?: Options | undefined;
|
|
13
|
+
private handles?;
|
|
14
|
+
constructor(container?: HTMLElement | undefined, options?: Options | undefined);
|
|
15
|
+
teardown(): void;
|
|
16
|
+
}
|