xframelib 1.0.7 → 1.0.9
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 +2 -16
- package/dist/controls/layoutcontainer/layout.vue.d.ts +101 -3
- package/dist/controls/xwindow/XWindow.vue.d.ts +18 -0
- package/dist/index.js +3 -3
- package/dist/utils/LocalForageHelper.d.ts +14 -0
- package/dist/utils/index.d.ts +3 -2
- package/dist/workers/worker-xmath.d.ts +3 -3
- package/package.json +7 -6
package/README.md
CHANGED
|
@@ -13,6 +13,8 @@
|
|
|
13
13
|
|
|
14
14
|
> 基于 VUE3+Hprose+Typescript+Widget 的前端框架,与ElementUI、AntDesign VUE、Quasar等界面库无关,一直是来源于项目和服务于项目。
|
|
15
15
|
|
|
16
|
+
- v1.0.9 增加LocalForage二次导出等;解决iconv-lite库升级的代码更新问题;更新依赖库版本;
|
|
17
|
+
- v1.0.8 优化LayoutContainer组件,增加属性(默认值为false):noTop、noMain、noBack、noFront、noLeft、noRight、noBottom来支持移除无用布局层,用noMain来取代enableRouterView属性;优化XWindow组件,增加right和bottom属性来进行窗体初始化定位;更新依赖库版本;
|
|
16
18
|
- v1.0.7 解决LayoutContainer与LayoutManager生命周期不一致导致的BUG;为LayoutManager增加dispose释放资源方法;更新依赖库版本;
|
|
17
19
|
- v1.0.6 移除vuewindow组件;修改XWindow组件:默认不显示最小化按钮和窗体图标,对外暴露updatePosition方法允许代码修改位置;更新基础依赖库版本;
|
|
18
20
|
- v1.0.5 补充积累CommonTool公共方法;新增Grid计算工具类;更新基础依赖库版本;
|
|
@@ -103,37 +105,21 @@
|
|
|
103
105
|
|
|
104
106
|
- 网站系统配置Sysconfig.js对应的Global.Config
|
|
105
107
|
- 公共事件总线Global.EventBus
|
|
106
|
-
|
|
107
108
|
- Layout布局容器和Widget机制实现
|
|
108
|
-
|
|
109
109
|
- Axios的Http请求封装实现Global.Axios、AxiosHelper{get, post, requestPost, requestGet, getData, requestPostBody}
|
|
110
|
-
|
|
111
110
|
- Hprose Proxy方式调用后台Hprose服务实现
|
|
112
|
-
|
|
113
111
|
- 与用户系统后台服务适配的Token验证/刷新和角色权限过滤
|
|
114
|
-
|
|
115
112
|
- 大文件下载BigFileDownload
|
|
116
|
-
|
|
117
113
|
- 普通文件下载FileDownload封装{ Download, SaveAs, JsonDownload, HttpDownload, DownloadByUrl }
|
|
118
|
-
|
|
119
114
|
- 大文件上传FileUpload
|
|
120
|
-
|
|
121
115
|
- H5Tool常用小功能
|
|
122
|
-
|
|
123
116
|
- SignalrClient
|
|
124
|
-
|
|
125
117
|
- JQuery工具 (hasClass 、addClass、removeClass、toggleClass、setCssProperty)
|
|
126
|
-
|
|
127
118
|
- StorageHelper 本地缓存对象
|
|
128
|
-
|
|
129
119
|
- IsTool类型判断工具(数字、字符串、对象、数组、函数等)
|
|
130
|
-
|
|
131
120
|
- ValidateTool验证工具(身份证、手机号、IP地址、邮箱、密码强度判断、URL、车牌号等)
|
|
132
|
-
|
|
133
121
|
- 与后端配合使用的加密解密算法XXTEA
|
|
134
|
-
|
|
135
122
|
- 前端缓存功能(WebCacheTool和webCacheWorker)
|
|
136
|
-
|
|
137
123
|
- maplibre加载大图展示(使用bigImageWorker)
|
|
138
124
|
|
|
139
125
|
## 使用
|
|
@@ -37,7 +37,53 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
37
37
|
layoutStyle: {
|
|
38
38
|
type: ObjectConstructor;
|
|
39
39
|
};
|
|
40
|
-
|
|
40
|
+
/**
|
|
41
|
+
* 移除左侧left层
|
|
42
|
+
*/
|
|
43
|
+
noLeft: {
|
|
44
|
+
type: BooleanConstructor;
|
|
45
|
+
default: boolean;
|
|
46
|
+
};
|
|
47
|
+
/**
|
|
48
|
+
* 移除右侧侧层级
|
|
49
|
+
*/
|
|
50
|
+
noRight: {
|
|
51
|
+
type: BooleanConstructor;
|
|
52
|
+
default: boolean;
|
|
53
|
+
};
|
|
54
|
+
/**
|
|
55
|
+
* 移除底侧bottom层级
|
|
56
|
+
*/
|
|
57
|
+
noBottom: {
|
|
58
|
+
type: BooleanConstructor;
|
|
59
|
+
default: boolean;
|
|
60
|
+
};
|
|
61
|
+
/**
|
|
62
|
+
* 移除右侧right层级
|
|
63
|
+
*/
|
|
64
|
+
noTop: {
|
|
65
|
+
type: BooleanConstructor;
|
|
66
|
+
default: boolean;
|
|
67
|
+
};
|
|
68
|
+
/**
|
|
69
|
+
* 移除中间front前层
|
|
70
|
+
*/
|
|
71
|
+
noFront: {
|
|
72
|
+
type: BooleanConstructor;
|
|
73
|
+
default: boolean;
|
|
74
|
+
};
|
|
75
|
+
/**
|
|
76
|
+
* 移除中间back侧层
|
|
77
|
+
*/
|
|
78
|
+
noBack: {
|
|
79
|
+
type: BooleanConstructor;
|
|
80
|
+
default: boolean;
|
|
81
|
+
};
|
|
82
|
+
/**
|
|
83
|
+
* 移除中间主层
|
|
84
|
+
* 是否启用默认路由视图,默认启用:false
|
|
85
|
+
*/
|
|
86
|
+
noMain: {
|
|
41
87
|
type: BooleanConstructor;
|
|
42
88
|
default: boolean;
|
|
43
89
|
};
|
|
@@ -56,7 +102,53 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
56
102
|
layoutStyle: {
|
|
57
103
|
type: ObjectConstructor;
|
|
58
104
|
};
|
|
59
|
-
|
|
105
|
+
/**
|
|
106
|
+
* 移除左侧left层
|
|
107
|
+
*/
|
|
108
|
+
noLeft: {
|
|
109
|
+
type: BooleanConstructor;
|
|
110
|
+
default: boolean;
|
|
111
|
+
};
|
|
112
|
+
/**
|
|
113
|
+
* 移除右侧侧层级
|
|
114
|
+
*/
|
|
115
|
+
noRight: {
|
|
116
|
+
type: BooleanConstructor;
|
|
117
|
+
default: boolean;
|
|
118
|
+
};
|
|
119
|
+
/**
|
|
120
|
+
* 移除底侧bottom层级
|
|
121
|
+
*/
|
|
122
|
+
noBottom: {
|
|
123
|
+
type: BooleanConstructor;
|
|
124
|
+
default: boolean;
|
|
125
|
+
};
|
|
126
|
+
/**
|
|
127
|
+
* 移除右侧right层级
|
|
128
|
+
*/
|
|
129
|
+
noTop: {
|
|
130
|
+
type: BooleanConstructor;
|
|
131
|
+
default: boolean;
|
|
132
|
+
};
|
|
133
|
+
/**
|
|
134
|
+
* 移除中间front前层
|
|
135
|
+
*/
|
|
136
|
+
noFront: {
|
|
137
|
+
type: BooleanConstructor;
|
|
138
|
+
default: boolean;
|
|
139
|
+
};
|
|
140
|
+
/**
|
|
141
|
+
* 移除中间back侧层
|
|
142
|
+
*/
|
|
143
|
+
noBack: {
|
|
144
|
+
type: BooleanConstructor;
|
|
145
|
+
default: boolean;
|
|
146
|
+
};
|
|
147
|
+
/**
|
|
148
|
+
* 移除中间主层
|
|
149
|
+
* 是否启用默认路由视图,默认启用:false
|
|
150
|
+
*/
|
|
151
|
+
noMain: {
|
|
60
152
|
type: BooleanConstructor;
|
|
61
153
|
default: boolean;
|
|
62
154
|
};
|
|
@@ -65,7 +157,13 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
65
157
|
}>, {
|
|
66
158
|
layoutID: string;
|
|
67
159
|
widgetConfig: IWidgetConfig[];
|
|
68
|
-
|
|
160
|
+
noLeft: boolean;
|
|
161
|
+
noRight: boolean;
|
|
162
|
+
noBottom: boolean;
|
|
163
|
+
noTop: boolean;
|
|
164
|
+
noFront: boolean;
|
|
165
|
+
noBack: boolean;
|
|
166
|
+
noMain: boolean;
|
|
69
167
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
|
|
70
168
|
topContainer: HTMLDivElement;
|
|
71
169
|
centerMainContainer: HTMLDivElement;
|
|
@@ -73,6 +73,14 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
73
73
|
type: (StringConstructor | ObjectConstructor | ArrayConstructor | NumberConstructor)[];
|
|
74
74
|
default: string;
|
|
75
75
|
};
|
|
76
|
+
right: {
|
|
77
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
78
|
+
default: string;
|
|
79
|
+
};
|
|
80
|
+
bottom: {
|
|
81
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
82
|
+
default: string;
|
|
83
|
+
};
|
|
76
84
|
}>, {
|
|
77
85
|
id: string;
|
|
78
86
|
isShow: import('vue').ComputedRef<boolean>;
|
|
@@ -141,6 +149,14 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
141
149
|
type: (StringConstructor | ObjectConstructor | ArrayConstructor | NumberConstructor)[];
|
|
142
150
|
default: string;
|
|
143
151
|
};
|
|
152
|
+
right: {
|
|
153
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
154
|
+
default: string;
|
|
155
|
+
};
|
|
156
|
+
bottom: {
|
|
157
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
158
|
+
default: string;
|
|
159
|
+
};
|
|
144
160
|
}>> & Readonly<{
|
|
145
161
|
onClose?: ((...args: any[]) => any) | undefined;
|
|
146
162
|
onOpen?: ((...args: any[]) => any) | undefined;
|
|
@@ -150,6 +166,8 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
150
166
|
title: string;
|
|
151
167
|
top: string | number;
|
|
152
168
|
left: string | number;
|
|
169
|
+
right: string | number;
|
|
170
|
+
bottom: string | number;
|
|
153
171
|
icon: string;
|
|
154
172
|
tag: string | number | unknown[] | Record<string, any>;
|
|
155
173
|
nWidth: string | number;
|