xframelib 0.8.7 → 0.9.0

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 CHANGED
@@ -13,6 +13,9 @@
13
13
 
14
14
  > 基于 VUE3+Hprose+Typescript+Widget 的前端框架,与ElementUI、AntDesign VUE、Quasar等界面库无关,一直是来源于项目和服务于项目。
15
15
 
16
+
17
+ - v0.9.0 给LayoutContainer增加id属性;ZipTool使用扩展promise方法时,出现内部this指向不明错误,增加saveZipFromFiles文件数组压缩和saveZipFileSync同步压缩方法;引入iconv-lite字符编码库,可直接使用iconv里所有方法;
18
+ - v0.8.9 为Function扩展promise方法(事件异步方法将按Promise异步执行);修改isElement判断错误;~~增加ZipTool用于文件在线压缩和解压(存在问题,不要使用)~~;H5Tool增加blockEvent停止冒泡bindDropFileHanlder拖拽文件、readFilePromise异步读取文件、优化readFileBytes为bytes二进制数组;IsTool增加isStringLikeJson、isStringLikeKml方法;H5Tool增加了onPasteHandler和offPasteHandler使用document绑定粘贴事件(不是任意div元素都可以绑定paste事件,只有设置了 contenteditable="true" 的元素,才会触发该事件);FileDownload增加SaveToSelectedFile方法,将文件保存到选定路径;
16
19
  - v0.8.7 修改0.8.6版的getDownload内部错误(与HttpDownload方法共存使用);
17
20
  - v0.8.6 修改get方法支持:业务服务API请求、请求网站public下资源、http完整URL请求; ~~增加getDownload方法下载文件(废弃HttpDownload方法);~~
18
21
  - v0.8.5 动态加载Widget时绑定更多IWidgetConfig属性(如:id,layoutID等);加载widget报错,输出更多异常信息;
@@ -246,3 +249,7 @@ export default boot(({ app }) => {
246
249
 
247
250
  ```
248
251
 
252
+ ## 应用示例
253
+
254
+ ![开发模版](https://zorrowm.github.io/npm/xframelib.png)
255
+
@@ -27,6 +27,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
27
27
  containerStyle: import("vue").ComputedRef<Record<string, any> | undefined>;
28
28
  isEnableRouterView: import("vue").Ref<boolean, boolean>;
29
29
  setItemRef: (el: any, key: string) => void;
30
+ idRef: import("vue").Ref<string | undefined, string | undefined>;
30
31
  topContainer?: import("vue").Ref<HTMLElement | undefined, HTMLElement | undefined> | undefined;
31
32
  centerBackContainer?: import("vue").Ref<HTMLElement | undefined, HTMLElement | undefined> | undefined;
32
33
  centerMainContainer?: import("vue").Ref<HTMLElement | undefined, HTMLElement | undefined> | undefined;
@@ -1,2 +1,7 @@
1
1
  import { InnerObject } from "./IModel";
2
+ declare global {
3
+ interface Function {
4
+ promise(...args: any[]): Promise<unknown>;
5
+ }
6
+ }
2
7
  export declare const Global: InnerObject;