xframelib 0.7.5 → 0.7.7
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 +6 -3
- package/dist/controls/collapsepanel/VCollapsiblePanel.vue.d.ts +1 -1
- package/dist/controls/collapsepanel/VCollapsiblePanelGroup.vue.d.ts +1 -1
- package/dist/controls/layoutcontainer/LayoutManager.d.ts +22 -1
- package/dist/controls/layoutcontainer/layout.vue.d.ts +1 -1
- package/dist/controls/routertransition/RouterTransition.vue.d.ts +4 -0
- package/dist/controls/routertransition/SuspenseWithError.vue.d.ts +4 -0
- package/dist/controls/routertransition/index.d.ts +3 -0
- package/dist/controls/vuewindow/window/Button.vue.d.ts +1 -1
- package/dist/controls/vuewindow/window/index.vue.d.ts +5 -5
- package/dist/core/IModel.d.ts +8 -1
- package/dist/hprose/HproseIO.d.ts +2 -0
- package/dist/hprose/index.d.ts +2 -1
- package/dist/index.cjs +6 -6
- package/dist/index.d.ts +1 -0
- package/dist/index.js +7 -7
- package/dist/utils/IsTool.d.ts +2 -2
- package/package.json +25 -25
- package/dist/assets/index-b43c71d9.css +0 -305
- package/dist/assets/output-1225ced9.css +0 -305
- package/dist/assets/output-ad5f5cbf.css +0 -307
- /package/dist/utils/{SignalRClient.d.ts → SignalrClient.d.ts} +0 -0
package/README.md
CHANGED
|
@@ -2,12 +2,15 @@
|
|
|
2
2
|
|
|
3
3
|
基于 VUE3+Hprose+Typescript 的前端框架
|
|
4
4
|
|
|
5
|
-
- v0.7.
|
|
6
|
-
|
|
5
|
+
- v0.7.7 增加hprose二进制序列化方法serialize和deserialize;修改Global默认自带LayoutMap和默认为console的Message;为LayoutManager增加静态方法getLayoutManager;增加RouterTransition控件,并应用于layoutcontainer中;更新依赖库版本。
|
|
6
|
+
|
|
7
|
+
- v0.7.6 为LayoutManager增加卸载全部组件unloadAllWidgets、批量卸载组件unloadWidgets、获得已经加载组件ID列表getWidgetLoadedIDList;解决H5Tool的windowResizeHandler和offWindowResizeHandler内部调用错误方法的问题。
|
|
8
|
+
- ~~v0.7.5 解决上一版LayoutContainer存在问题:CSS样式对应上,调整层级顺序;加入组件引用,changeWidgetVisible能控制Widget组件可见性;修改getWidgetComponent方法,实现对Widget组件的defineExpose方法调用;增加isWidgetVisible判断组件是否可见。~~
|
|
9
|
+
- ~~ v0.7.4 完善Axios异常捕捉(对接后端Furion包装异常);更新完善LayoutContainer;H5Tool增加removeHandler和offWindowResizeHandler方法;升级依赖基础库。~~
|
|
7
10
|
- v0.7.3 升级依赖库;loadWidget失败输出日志和事件SysEvents.WidgetLoadedErrorEvent;优化系统权限相关模型;增加GetSignalRClient、ValidateTool、WaterMark等工具。
|
|
8
11
|
- v0.7.2 解决v0.7.0的deepMerge方法存在复制对象的BUG。
|
|
9
12
|
- v0.7.0 修改requestPost无法使用FormData参数;修改deepMerge方法;修改isObjectX方法;更新rollup-plugin-scss应用版本。
|
|
10
|
-
|
|
13
|
+
- ~~v0.6.9 默认引入loglevel,为Global增加Logger()方法,使用例如:Global.Logger().warn('123')。~~
|
|
11
14
|
- v0.6.8 解决Axios 0.x升级为1.x后,序列化时带来的AxiosError: options must be an object错误
|
|
12
15
|
- v0.6.7 解决ExitLogin时报415错误;SysEvents.AxiosRequestErrorEvent、SysEvents.WebAPIErrorEvent、SysEvents.HproseServiceErrorEvent改为默认为后台记录,不主动弹框提示,需要提示使用Global.EventBus自主监听事件;升级依赖库版本;
|
|
13
16
|
- v0.6.6 解决requestGet里params参数为数组解析错误问题;更改Layout布局层次为100;解决提示XXTEA未导出的问题;copyText默认改用Clipboard方式,支持根据元素ID复制内容;
|
|
@@ -16,7 +16,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
16
16
|
expand: (element: HTMLElement) => void;
|
|
17
17
|
toggle: () => void;
|
|
18
18
|
toggleIcon: string;
|
|
19
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").
|
|
19
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
20
20
|
expanded: {
|
|
21
21
|
type: BooleanConstructor;
|
|
22
22
|
default: boolean;
|
|
@@ -17,7 +17,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
17
17
|
'--bg-color-header-active': string;
|
|
18
18
|
'--bg-color-body': string;
|
|
19
19
|
};
|
|
20
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").
|
|
20
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
21
21
|
accordion: {
|
|
22
22
|
type: BooleanConstructor;
|
|
23
23
|
default: boolean;
|
|
@@ -115,5 +115,26 @@ export declare class LayoutManager {
|
|
|
115
115
|
* @returns
|
|
116
116
|
*/
|
|
117
117
|
getContainerComponents(enumContainer: LayoutContainerEnum): Ref<Map<string, Object>>;
|
|
118
|
-
|
|
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
|
+
/**
|
|
134
|
+
* 通过widgetid 获得LayoutManager
|
|
135
|
+
* @param widgetID
|
|
136
|
+
* @param allWidgetConfig
|
|
137
|
+
* @returns
|
|
138
|
+
*/
|
|
139
|
+
static getLayoutManager(widgetID: string, allWidgetConfig: Array<IWidgetConfig>): LayoutManager | undefined;
|
|
119
140
|
}
|
|
@@ -34,7 +34,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
34
34
|
bottomContainer?: import("vue").Ref<HTMLElement | undefined> | undefined;
|
|
35
35
|
leftContainer?: import("vue").Ref<HTMLElement | undefined> | undefined;
|
|
36
36
|
rightContainer?: import("vue").Ref<HTMLElement | undefined> | undefined;
|
|
37
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "containerLoaded"[], "containerLoaded", import("vue").
|
|
37
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "containerLoaded"[], "containerLoaded", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
38
38
|
widgetConfig: {
|
|
39
39
|
type: PropType<IWidgetConfig[]>;
|
|
40
40
|
required: true;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, (_ctx: any, _cache: any) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
2
|
+
[key: string]: any;
|
|
3
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
|
|
4
|
+
export default _default;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {
|
|
2
|
+
error: import("vue").Ref<any>;
|
|
3
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
|
|
4
|
+
export default _default;
|
|
@@ -14,7 +14,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
14
14
|
style: () => any;
|
|
15
15
|
mouseup: (e: MouseEvent & TouchEvent) => void;
|
|
16
16
|
mousedown: (e: MouseEvent & TouchEvent) => void;
|
|
17
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").
|
|
17
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
18
18
|
disabled: {
|
|
19
19
|
type: PropType<boolean>;
|
|
20
20
|
default: boolean;
|
|
@@ -92,16 +92,16 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
92
92
|
};
|
|
93
93
|
}, {
|
|
94
94
|
isOpen: import("vue").Ref<boolean>;
|
|
95
|
-
windowEl: any
|
|
96
|
-
titlebar: any
|
|
97
|
-
content: any
|
|
95
|
+
windowEl: import("vue").Ref<any>;
|
|
96
|
+
titlebar: import("vue").Ref<any>;
|
|
97
|
+
content: import("vue").Ref<any>;
|
|
98
98
|
activate: () => void;
|
|
99
|
-
styleWindow: any
|
|
99
|
+
styleWindow: import("vue").Ref<any>;
|
|
100
100
|
styleTitlebar: import("vue").ComputedRef<any>;
|
|
101
101
|
styleContent: import("vue").ComputedRef<any>;
|
|
102
102
|
closeButtonClick: () => void;
|
|
103
103
|
fixPosition: () => void;
|
|
104
|
-
} | undefined, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").
|
|
104
|
+
} | undefined, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
105
105
|
windowStyle: {
|
|
106
106
|
type: ObjectConstructor;
|
|
107
107
|
required: true;
|
package/dist/core/IModel.d.ts
CHANGED
|
@@ -13,11 +13,18 @@ export interface InnerObject {
|
|
|
13
13
|
Config: ISystemConfig;
|
|
14
14
|
EventBus: Emitter;
|
|
15
15
|
DefaultProxyClient: ProxyClient | null | undefined;
|
|
16
|
-
|
|
16
|
+
/**
|
|
17
|
+
* 默认Message为console.log
|
|
18
|
+
*/
|
|
19
|
+
Message: MsgHelper;
|
|
17
20
|
/**
|
|
18
21
|
* 布局管理对象
|
|
19
22
|
*/
|
|
20
23
|
LayoutManager?: LayoutManager;
|
|
24
|
+
/**
|
|
25
|
+
* LayoutManager字典
|
|
26
|
+
*/
|
|
27
|
+
LayoutMap: Map<string, LayoutManager>;
|
|
21
28
|
/**
|
|
22
29
|
* 系统ID标识
|
|
23
30
|
*/
|
package/dist/hprose/index.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import ProxyClient from './ProxyClient';
|
|
2
2
|
import HproseClient from './HproseClient';
|
|
3
|
+
import { deserialize, serialize } from './HproseIO';
|
|
3
4
|
export interface GIHprose {
|
|
4
5
|
getDefaultClient(): ProxyClient;
|
|
5
6
|
registerHprose(hpClientName: string, hproseUrl: string): HproseClient | undefined;
|
|
@@ -8,4 +9,4 @@ export interface GIHprose {
|
|
|
8
9
|
unregisterHprose(hpClientName: string): void;
|
|
9
10
|
}
|
|
10
11
|
declare const GlobalHprose: GIHprose;
|
|
11
|
-
export { GlobalHprose, ProxyClient, HproseClient };
|
|
12
|
+
export { GlobalHprose, ProxyClient, HproseClient, deserialize, serialize };
|