xframelib 1.1.1 → 1.1.2

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.
Files changed (112) hide show
  1. package/README.md +181 -189
  2. package/README_zh.md +204 -0
  3. package/dist/assets/worker-iconv-KS7y7NCM.js +5405 -0
  4. package/dist/assets/worker-webcache-DX6bhBzy.js +956 -0
  5. package/dist/assets/worker-xmath-CbuRtVJ1.js +450 -0
  6. package/dist/index.css +1 -408
  7. package/dist/index.js +1 -12
  8. package/dist/{controls → src/controls}/ADivider.vue.d.ts +8 -12
  9. package/dist/src/controls/ScaleContainer/index.vue.d.ts +13 -0
  10. package/dist/src/controls/ScrollSnapContainer/index.vue.d.ts +25 -0
  11. package/dist/src/controls/index.d.ts +6 -0
  12. package/dist/{controls → src/controls}/layoutcontainer/LayoutManager.d.ts +8 -2
  13. package/dist/{controls → src/controls}/layoutcontainer/layout.vue.d.ts +22 -35
  14. package/dist/src/controls/popover/index.vue.d.ts +33 -0
  15. package/dist/src/controls/routertransition/RouterTransition.vue.d.ts +3 -0
  16. package/dist/src/controls/routertransition/RouterTransitionAnimate.vue.d.ts +10 -0
  17. package/dist/{controls → src/controls}/routertransition/SuspenseWithError.vue.d.ts +3 -2
  18. package/dist/{controls → src/controls}/splitpanes/pane.vue.d.ts +3 -2
  19. package/dist/{controls → src/controls}/splitpanes/splitpanes.vue.d.ts +3 -2
  20. package/dist/{controls → src/controls}/xwindow/XWindow.vue.d.ts +10 -19
  21. package/dist/{controls → src/controls}/xwindow/XWindowManager.d.ts +3 -3
  22. package/dist/src/controls/xwindow/index.d.ts +3 -0
  23. package/dist/src/directives/dbClickDirective.d.ts +5 -0
  24. package/dist/src/directives/index.d.ts +7 -0
  25. package/dist/src/directives/mediaDirective.d.ts +7 -0
  26. package/dist/{utils → src/utils}/H5Tool.d.ts +18 -7
  27. package/dist/{utils → src/utils}/IsTool.d.ts +4 -0
  28. package/dist/src/utils/Screen.d.ts +30 -0
  29. package/dist/{utils → src/utils}/WebCacheTool.d.ts +1 -1
  30. package/dist/{utils → src/utils}/index.d.ts +1 -0
  31. package/dist/src/workers/index.d.ts +13 -0
  32. package/package.json +25 -23
  33. package/dist/assets/worker-iconv-BsNle8M5.js +0 -22
  34. package/dist/assets/worker-webcache-CkCFZE0-.js +0 -6
  35. package/dist/assets/worker-xmath-AxRk6MsK.js +0 -6
  36. package/dist/controls/index.d.ts +0 -3
  37. package/dist/controls/routertransition/RouterTransition.vue.d.ts +0 -2
  38. package/dist/controls/routertransition/RouterTransitionAnimate.vue.d.ts +0 -9
  39. package/dist/controls/xwindow/index.d.ts +0 -3
  40. package/dist/directives/index.d.ts +0 -4
  41. package/dist/workers/index.d.ts +0 -19
  42. /package/dist/{api → src/api}/Token.d.ts +0 -0
  43. /package/dist/{api → src/api}/User.d.ts +0 -0
  44. /package/dist/{api → src/api}/index.d.ts +0 -0
  45. /package/dist/{controls → src/controls}/layoutcontainer/index.d.ts +0 -0
  46. /package/dist/{controls → src/controls}/routertransition/index.d.ts +0 -0
  47. /package/dist/{controls → src/controls}/splitpanes/index.d.ts +0 -0
  48. /package/dist/{core → src/core}/Global.d.ts +0 -0
  49. /package/dist/{core → src/core}/IModel.d.ts +0 -0
  50. /package/dist/{core → src/core}/Init.d.ts +0 -0
  51. /package/dist/{core → src/core}/MsgHelper.d.ts +0 -0
  52. /package/dist/{core → src/core}/SysEvents.d.ts +0 -0
  53. /package/dist/{core → src/core}/index.d.ts +0 -0
  54. /package/dist/{directives → src/directives}/dragDirective.d.ts +0 -0
  55. /package/dist/{directives/repeatClick.d.ts → src/directives/repeatClickDirective.d.ts} +0 -0
  56. /package/dist/{directives → src/directives}/wowDirective.d.ts +0 -0
  57. /package/dist/{hprose → src/hprose}/HproseClient.d.ts +0 -0
  58. /package/dist/{hprose → src/hprose}/HproseIO.d.ts +0 -0
  59. /package/dist/{hprose → src/hprose}/ProxyClient.d.ts +0 -0
  60. /package/dist/{hprose → src/hprose}/index.d.ts +0 -0
  61. /package/dist/{index.d.ts → src/index.d.ts} +0 -0
  62. /package/dist/{mitt → src/mitt}/index.d.ts +0 -0
  63. /package/dist/{model → src/model}/Config.d.ts +0 -0
  64. /package/dist/{model → src/model}/Constants.d.ts +0 -0
  65. /package/dist/{model → src/model}/IModalModels.d.ts +0 -0
  66. /package/dist/{model → src/model}/IRole.d.ts +0 -0
  67. /package/dist/{model → src/model}/ITypes.d.ts +0 -0
  68. /package/dist/{model → src/model}/IUserModel.d.ts +0 -0
  69. /package/dist/{model → src/model}/IWidgetMenu.d.ts +0 -0
  70. /package/dist/{model → src/model}/Layout.d.ts +0 -0
  71. /package/dist/{model → src/model}/index.d.ts +0 -0
  72. /package/dist/{permission → src/permission}/RoleSysRightHelper.d.ts +0 -0
  73. /package/dist/{permission → src/permission}/filter.d.ts +0 -0
  74. /package/dist/{permission → src/permission}/index.d.ts +0 -0
  75. /package/dist/{permission → src/permission}/register.d.ts +0 -0
  76. /package/dist/{permission → src/permission}/right.d.ts +0 -0
  77. /package/dist/{plugins → src/plugins}/NavigatorPlugin.d.ts +0 -0
  78. /package/dist/{plugins → src/plugins}/index.d.ts +0 -0
  79. /package/dist/{utils → src/utils}/AutoUpdate.d.ts +0 -0
  80. /package/dist/{utils → src/utils}/AxiosHelper.d.ts +0 -0
  81. /package/dist/{utils → src/utils}/BigFileDownload.d.ts +0 -0
  82. /package/dist/{utils → src/utils}/CodeHelper.d.ts +0 -0
  83. /package/dist/{utils → src/utils}/Color.d.ts +0 -0
  84. /package/dist/{utils → src/utils}/CommonTool.d.ts +0 -0
  85. /package/dist/{utils → src/utils}/DayjsTool.d.ts +0 -0
  86. /package/dist/{utils → src/utils}/FetchHelper.d.ts +0 -0
  87. /package/dist/{utils → src/utils}/FileDownload.d.ts +0 -0
  88. /package/dist/{utils → src/utils}/FileUpload.d.ts +0 -0
  89. /package/dist/{utils → src/utils}/FileUpload_/346/227/247.d.ts" +0 -0
  90. /package/dist/{utils → src/utils}/FilenameUtils.d.ts +0 -0
  91. /package/dist/{utils → src/utils}/GzipTool.d.ts +0 -0
  92. /package/dist/{utils → src/utils}/JQuery.d.ts +0 -0
  93. /package/dist/{utils → src/utils}/LocalForageHelper.d.ts +0 -0
  94. /package/dist/{utils → src/utils}/LockHelper.d.ts +0 -0
  95. /package/dist/{utils → src/utils}/RouterURLTool.d.ts +0 -0
  96. /package/dist/{utils → src/utils}/SignalrClient.d.ts +0 -0
  97. /package/dist/{utils → src/utils}/Storage.d.ts +0 -0
  98. /package/dist/{utils → src/utils}/StringUtils.d.ts +0 -0
  99. /package/dist/{utils → src/utils}/Time.d.ts +0 -0
  100. /package/dist/{utils → src/utils}/TokenHelper.d.ts +0 -0
  101. /package/dist/{utils → src/utils}/ValidateTool.d.ts +0 -0
  102. /package/dist/{utils → src/utils}/WarGridTool.d.ts +0 -0
  103. /package/dist/{utils → src/utils}/WaterMark.d.ts +0 -0
  104. /package/dist/{utils → src/utils}/WidgetsTool.d.ts +0 -0
  105. /package/dist/{utils → src/utils}/XXTEA.d.ts +0 -0
  106. /package/dist/{utils → src/utils}/ZipTool.d.ts +0 -0
  107. /package/dist/{utils → src/utils}/uuid.d.ts +0 -0
  108. /package/dist/{workers → src/workers}/worker-iconv.d.ts +0 -0
  109. /package/dist/{workers → src/workers}/worker-webcache.d.ts +0 -0
  110. /package/dist/{workers → src/workers}/worker-xmath.d.ts +0 -0
  111. /package/dist/{workerservice → src/workerservice}/frontWorker.d.ts +0 -0
  112. /package/dist/{workerservice → src/workerservice}/index.d.ts +0 -0
@@ -1,15 +1,10 @@
1
1
  import { PropType } from 'vue';
2
2
  type alignType = 'left' | 'center' | 'right';
3
- declare function __VLS_template(): {
4
- attrs: Partial<{}>;
5
- slots: {
6
- default?(_: {}): any;
7
- };
8
- refs: {};
9
- rootEl: HTMLDivElement;
3
+ declare var __VLS_1: {};
4
+ type __VLS_Slots = {} & {
5
+ default?: (props: typeof __VLS_1) => any;
10
6
  };
11
- type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
12
- declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
7
+ declare const __VLS_base: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
13
8
  align: {
14
9
  type: PropType<alignType>;
15
10
  default: string;
@@ -30,10 +25,11 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
30
25
  }>> & Readonly<{}>, {
31
26
  color: string;
32
27
  align: alignType;
33
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
34
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
28
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
29
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
30
+ declare const _default: typeof __VLS_export;
35
31
  export default _default;
36
- type __VLS_WithTemplateSlots<T, S> = T & {
32
+ type __VLS_WithSlots<T, S> = T & {
37
33
  new (): {
38
34
  $slots: S;
39
35
  };
@@ -0,0 +1,13 @@
1
+ declare var __VLS_1: {};
2
+ type __VLS_Slots = {} & {
3
+ default?: (props: typeof __VLS_1) => any;
4
+ };
5
+ declare const __VLS_base: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
6
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
7
+ declare const _default: typeof __VLS_export;
8
+ export default _default;
9
+ type __VLS_WithSlots<T, S> = T & {
10
+ new (): {
11
+ $slots: S;
12
+ };
13
+ };
@@ -0,0 +1,25 @@
1
+ declare var __VLS_1: {};
2
+ type __VLS_Slots = {} & {
3
+ default?: (props: typeof __VLS_1) => any;
4
+ };
5
+ declare const __VLS_base: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
6
+ height: {
7
+ type: NumberConstructor;
8
+ default: number;
9
+ };
10
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
11
+ height: {
12
+ type: NumberConstructor;
13
+ default: number;
14
+ };
15
+ }>> & Readonly<{}>, {
16
+ height: number;
17
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
18
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
19
+ declare const _default: typeof __VLS_export;
20
+ export default _default;
21
+ type __VLS_WithSlots<T, S> = T & {
22
+ new (): {
23
+ $slots: S;
24
+ };
25
+ };
@@ -0,0 +1,6 @@
1
+ import { default as ADivider } from './ADivider.vue';
2
+ import { Splitpanes, Pane } from './splitpanes';
3
+ import { default as Popover } from './popover/index.vue';
4
+ import { default as ScaleContainer } from './ScaleContainer/index.vue';
5
+ import { default as ScrollSnapContainer } from './ScrollSnapContainer/index.vue';
6
+ export { ADivider, Splitpanes, Pane, Popover, ScaleContainer, ScrollSnapContainer };
@@ -94,17 +94,23 @@ export declare class LayoutManager {
94
94
  */
95
95
  isWidgetVisible(widgetID: string): boolean;
96
96
  /**
97
- * 根据ID,获取已经加载的Widget组件对象
97
+ * 根据ID,获取已经加载的Widget组件对象(可调用公开方法)
98
98
  * @param widgetID
99
99
  * @returns
100
100
  */
101
101
  getWidgetComponent(widgetID: string): any;
102
102
  /**
103
- * 获取组件记录
103
+ * 获取组件的IWidgetConfig配置对象
104
104
  * @param widgetID 组件ID
105
105
  * @returns
106
106
  */
107
107
  getWigetItem(widgetID: string): IWidgetConfig | undefined;
108
+ /**
109
+ * 根据组件ID获取对应的IWidgetConfig配置对象
110
+ * @param widgetID 组件ID
111
+ * @returns
112
+ */
113
+ getIWigetConfig(widgetID: string): IWidgetConfig | undefined;
108
114
  /**
109
115
  * 根据分组名,获取组件列表
110
116
  * @param group 分组名
@@ -1,30 +1,24 @@
1
1
  import { PropType } from 'vue';
2
2
  import { IWidgetConfig } from '../../model/Layout';
3
- declare function __VLS_template(): {
4
- attrs: Partial<{}>;
5
- slots: {
6
- top?(_: {}): any;
7
- main?(_: {}): any;
8
- back?(_: {}): any;
9
- front?(_: {}): any;
10
- left?(_: {}): any;
11
- right?(_: {}): any;
12
- bottom?(_: {}): any;
13
- default?(_: {}): any;
14
- };
15
- refs: {
16
- topContainer: HTMLDivElement;
17
- centerMainContainer: HTMLDivElement;
18
- centerBackContainer: HTMLDivElement;
19
- centerFrontContainer: HTMLDivElement;
20
- leftContainer: HTMLDivElement;
21
- rightContainer: HTMLDivElement;
22
- bottomContainer: HTMLDivElement;
23
- };
24
- rootEl: HTMLDivElement;
3
+ declare var __VLS_1: {}, __VLS_8: {}, __VLS_15: {}, __VLS_22: {}, __VLS_29: {}, __VLS_36: {}, __VLS_43: {}, __VLS_50: {};
4
+ type __VLS_Slots = {} & {
5
+ top?: (props: typeof __VLS_1) => any;
6
+ } & {
7
+ main?: (props: typeof __VLS_8) => any;
8
+ } & {
9
+ back?: (props: typeof __VLS_15) => any;
10
+ } & {
11
+ front?: (props: typeof __VLS_22) => any;
12
+ } & {
13
+ left?: (props: typeof __VLS_29) => any;
14
+ } & {
15
+ right?: (props: typeof __VLS_36) => any;
16
+ } & {
17
+ bottom?: (props: typeof __VLS_43) => any;
18
+ } & {
19
+ default?: (props: typeof __VLS_50) => any;
25
20
  };
26
- type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
27
- declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
21
+ declare const __VLS_base: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
28
22
  widgetConfig: {
29
23
  type: PropType<IWidgetConfig[]>;
30
24
  required: false;
@@ -164,18 +158,11 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
164
158
  noFront: boolean;
165
159
  noBack: boolean;
166
160
  noMain: boolean;
167
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
168
- topContainer: HTMLDivElement;
169
- centerMainContainer: HTMLDivElement;
170
- centerBackContainer: HTMLDivElement;
171
- centerFrontContainer: HTMLDivElement;
172
- leftContainer: HTMLDivElement;
173
- rightContainer: HTMLDivElement;
174
- bottomContainer: HTMLDivElement;
175
- }, HTMLDivElement>;
176
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
161
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
162
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
163
+ declare const _default: typeof __VLS_export;
177
164
  export default _default;
178
- type __VLS_WithTemplateSlots<T, S> = T & {
165
+ type __VLS_WithSlots<T, S> = T & {
179
166
  new (): {
180
167
  $slots: S;
181
168
  };
@@ -0,0 +1,33 @@
1
+ declare var __VLS_7: {}, __VLS_9: {};
2
+ type __VLS_Slots = {} & {
3
+ default?: (props: typeof __VLS_7) => any;
4
+ } & {
5
+ reference?: (props: typeof __VLS_9) => any;
6
+ };
7
+ declare const __VLS_base: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
8
+ dir: {
9
+ type: StringConstructor;
10
+ default: string;
11
+ };
12
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
13
+ show: (...args: any[]) => void;
14
+ hide: (...args: any[]) => void;
15
+ }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
16
+ dir: {
17
+ type: StringConstructor;
18
+ default: string;
19
+ };
20
+ }>> & Readonly<{
21
+ onShow?: ((...args: any[]) => any) | undefined;
22
+ onHide?: ((...args: any[]) => any) | undefined;
23
+ }>, {
24
+ dir: string;
25
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
26
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
27
+ declare const _default: typeof __VLS_export;
28
+ export default _default;
29
+ type __VLS_WithSlots<T, S> = T & {
30
+ new (): {
31
+ $slots: S;
32
+ };
33
+ };
@@ -0,0 +1,3 @@
1
+ declare const __VLS_export: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
2
+ declare const _default: typeof __VLS_export;
3
+ export default _default;
@@ -0,0 +1,10 @@
1
+ interface Props {
2
+ enterActive?: string;
3
+ leaveActive?: string;
4
+ }
5
+ declare const __VLS_export: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {
6
+ enterActive: string;
7
+ leaveActive: string;
8
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
9
+ declare const _default: typeof __VLS_export;
10
+ export default _default;
@@ -1,4 +1,5 @@
1
- declare const _default: import('vue').DefineComponent<{}, {
1
+ declare const _default: typeof __VLS_export;
2
+ export default _default;
3
+ declare const __VLS_export: import('vue').DefineComponent<{}, {
2
4
  error: import('vue').Ref<any, any>;
3
5
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
4
- export default _default;
@@ -1,4 +1,6 @@
1
- declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
1
+ declare const _default: typeof __VLS_export;
2
+ export default _default;
3
+ declare const __VLS_export: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
2
4
  size: {
3
5
  type: (StringConstructor | NumberConstructor)[];
4
6
  default: number;
@@ -37,4 +39,3 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
37
39
  minSize: string | number;
38
40
  maxSize: string | number;
39
41
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
40
- export default _default;
@@ -1,4 +1,6 @@
1
- declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
1
+ declare const _default: typeof __VLS_export;
2
+ export default _default;
3
+ declare const __VLS_export: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
2
4
  horizontal: {
3
5
  type: BooleanConstructor;
4
6
  };
@@ -106,4 +108,3 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
106
108
  onPaneRemove: (pane: any) => void;
107
109
  onPaneClick: (event: any, paneId: any) => void;
108
110
  }, true, {}, any>;
109
- export default _default;
@@ -7,20 +7,13 @@ declare function close(): void;
7
7
  * 重新加载当前面板
8
8
  */
9
9
  declare function open(): void;
10
- declare function __VLS_template(): {
11
- attrs: Partial<{}>;
12
- slots: {
13
- title?(_: {}): any;
14
- default?(_: {}): any;
15
- };
16
- refs: {
17
- dragPanelRef: HTMLDivElement;
18
- dragPanelTitleRef: HTMLDivElement;
19
- };
20
- rootEl: any;
10
+ declare var __VLS_7: {}, __VLS_30: {};
11
+ type __VLS_Slots = {} & {
12
+ title?: (props: typeof __VLS_7) => any;
13
+ } & {
14
+ default?: (props: typeof __VLS_30) => any;
21
15
  };
22
- type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
23
- declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
16
+ declare const __VLS_base: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
24
17
  top: {
25
18
  type: (StringConstructor | NumberConstructor)[];
26
19
  default: number;
@@ -178,13 +171,11 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
178
171
  hasClose: boolean;
179
172
  isDark: boolean;
180
173
  pid: string;
181
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
182
- dragPanelRef: HTMLDivElement;
183
- dragPanelTitleRef: HTMLDivElement;
184
- }, any>;
185
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
174
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
175
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
176
+ declare const _default: typeof __VLS_export;
186
177
  export default _default;
187
- type __VLS_WithTemplateSlots<T, S> = T & {
178
+ type __VLS_WithSlots<T, S> = T & {
188
179
  new (): {
189
180
  $slots: S;
190
181
  };
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * 传递的WindowPanel数据模型
3
3
  */
4
- export interface IPanelData {
4
+ export interface IWindowData {
5
5
  id: string;
6
6
  icon?: string;
7
7
  title?: string;
@@ -11,7 +11,7 @@ export interface IPanelData {
11
11
  /**
12
12
  * Windows窗体Map集合
13
13
  */
14
- export declare const WindowsMap: Map<string, IPanelData>;
14
+ export declare const WindowsMap: Map<string, IWindowData>;
15
15
  /**
16
16
  * 最小化窗体Map集合
17
17
  */
@@ -22,7 +22,7 @@ declare class XWindowManager {
22
22
  * 注册添加窗体对象
23
23
  * @param panelData
24
24
  */
25
- static addWindowPanel(panelData: IPanelData): void;
25
+ static addWindowPanel(panelData: IWindowData): void;
26
26
  /**
27
27
  * 移除窗体
28
28
  * @param id
@@ -0,0 +1,3 @@
1
+ import { default as XWindow } from './XWindow.vue';
2
+ import { default as XWindowManager, WindowsMap, MinWindowMap, IWindowData } from './XWindowManager';
3
+ export { WindowsMap, MinWindowMap, XWindowManager, XWindow, IWindowData };
@@ -0,0 +1,5 @@
1
+ import { App, Directive } from 'vue';
2
+ export declare const directiveName = "dc";
3
+ declare const doubleClickDirective: Directive;
4
+ export declare function setupDCDirective(app: App): void;
5
+ export default doubleClickDirective;
@@ -0,0 +1,7 @@
1
+ import { default as dragDirective, setupDragDirective } from './dragDirective';
2
+ import { default as doubleClickDirective, setupDCDirective } from './dbClickDirective';
3
+ import { default as repeatDirective, setupRepeatDirective } from './repeatClickDirective';
4
+ import { default as wowDirective, setupWowDirective } from './wowDirective';
5
+ import { default as mediaDirective, setupmediaDirective } from './mediaDirective';
6
+ export { wowDirective, setupWowDirective, repeatDirective, setupRepeatDirective, dragDirective, setupDragDirective, doubleClickDirective, setupDCDirective, mediaDirective, setupmediaDirective };
7
+ export default function setupDirectives(app: any): void;
@@ -0,0 +1,7 @@
1
+ import { Directive, App } from 'vue';
2
+ /**
3
+ * 自适应样式
4
+ */
5
+ declare const mediaDirective: Directive;
6
+ export declare function setupmediaDirective(app: App): void;
7
+ export default mediaDirective;
@@ -200,19 +200,19 @@ export default class H5Tool {
200
200
  */
201
201
  static emptyImageUrl(): string;
202
202
  /**
203
- * Creates a debounced function that delays invoking `fn` until after `delay`
203
+ * 防抖函数
204
204
  * @param fn
205
205
  * @param delay
206
- * @returns {function(): void}
206
+ * @returns
207
207
  */
208
- static debounce(fn: any, delay: any): () => void;
208
+ static debounce(fn: Function, delay: number): (...args: any[]) => void;
209
209
  /**
210
- * Creates a throttled function that only invokes `fn` at most once per
210
+ * 节流函数
211
211
  * @param fn
212
- * @param delay
213
- * @returns {function(): void}
212
+ * @param interval
213
+ * @returns
214
214
  */
215
- static throttle(fn: any, delay: any): () => false | undefined;
215
+ static throttle(fn: Function, interval: number): (...args: any[]) => void;
216
216
  /**
217
217
  *
218
218
  * @param dataUrl
@@ -386,4 +386,15 @@ export default class H5Tool {
386
386
  * @returns
387
387
  */
388
388
  static deepCopy(original: any): any;
389
+ /**
390
+ * 对象深度拷贝
391
+ */
392
+ static deepClone: typeof H5Tool.deepCopy;
393
+ /**
394
+ * 深度拷贝对象(自己手写的)
395
+ * @param obj
396
+ * @param map
397
+ * @returns
398
+ */
399
+ static deepClone2(obj: any, map?: WeakMap<WeakKey, any>): any;
389
400
  }
@@ -111,3 +111,7 @@ export declare function isStringLikeJson(content: string): boolean;
111
111
  * @returns
112
112
  */
113
113
  export declare function isStringLikeKml(content: string): boolean;
114
+ /**
115
+ * 判断是否是移动端
116
+ */
117
+ export declare function isMobile(): boolean;
@@ -0,0 +1,30 @@
1
+ declare class ScreenClass {
2
+ sizes: {
3
+ sm: number;
4
+ md: number;
5
+ lg: number;
6
+ xl: number;
7
+ };
8
+ lt: {
9
+ sm: boolean;
10
+ md: boolean;
11
+ lg: boolean;
12
+ xl: boolean;
13
+ };
14
+ gt: {
15
+ xs: boolean;
16
+ sm: boolean;
17
+ md: boolean;
18
+ lg: boolean;
19
+ };
20
+ xs: boolean;
21
+ sm: boolean;
22
+ md: boolean;
23
+ lg: boolean;
24
+ xl: boolean;
25
+ getSize(): number[];
26
+ updateSize(): void;
27
+ }
28
+ declare const Screen: ScreenClass;
29
+ export { ScreenClass, Screen };
30
+ export default Screen;
@@ -2,7 +2,7 @@ import { LRUCache } from 'lru-cache';
2
2
  declare class WebCacheTool {
3
3
  static defaultOptions: {
4
4
  max: number;
5
- maxAge: number;
5
+ ttl: number;
6
6
  };
7
7
  /**
8
8
  * 当前默认集合对象
@@ -31,4 +31,5 @@ export * from './FilenameUtils';
31
31
  export * from './AutoUpdate';
32
32
  export * from './LocalForageHelper';
33
33
  export * from './FetchHelper';
34
+ export * from './Screen';
34
35
  export { iconv, EncodeOptions, DecodeOptions, GetSignalRClient, WaterMark, XXTEA, H5Tool, StringUtils, StorageHelper as Storage, storage, uuid, newGuid, ZipTool, GzipTool, DayjsTool, WebCacheTool, WarGridTool, CommonTool };
@@ -0,0 +1,13 @@
1
+ /**
2
+ * 编码/解码
3
+ */
4
+ declare const iconvWorker: any;
5
+ /**
6
+ * 通用数学计算;前端大图片,瓦片化加载-webworker
7
+ */
8
+ declare const xmathWorker: any;
9
+ /**
10
+ * 前端缓存层-webworker
11
+ */
12
+ declare const webCacheWorker: any;
13
+ export { xmathWorker, iconvWorker, webCacheWorker, };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "xframelib",
3
- "version": "1.1.1",
3
+ "version": "1.1.2",
4
4
  "description": "积累的前端开发基础库,来源于项目,服务于项目。",
5
5
  "main": "dist/index.js",
6
6
  "common": "dist/index.cjs",
@@ -8,13 +8,16 @@
8
8
  "type": "module",
9
9
  "scripts": {
10
10
  "build": "vite build",
11
- "lib": "rollup -c ",
12
11
  "clean": "rimraf dist && rimraf package-lock.json && rimraf node_modules/.cache && rimraf node_modules/.vite"
13
12
  },
14
13
  "keywords": [
14
+ "xframelib",
15
+ "widget",
16
+ "typescript",
15
17
  "hprose",
16
- "rpc",
17
- "typescript"
18
+ "vue",
19
+ "H5Tool",
20
+ "XWindow"
18
21
  ],
19
22
  "author": {
20
23
  "name": "zorrowm",
@@ -33,41 +36,40 @@
33
36
  "@iconify-icons/ant-design": "^1.2.7",
34
37
  "@iconify/vue": "^5.0.0",
35
38
  "@microsoft/signalr": "^10.0.0",
36
- "axios": "^1.13.5",
39
+ "axios": "^1.16.0",
37
40
  "buffer": "^6.0.3",
38
41
  "fflate": "^0.8.2",
39
42
  "iconv-lite": "^0.7.2",
40
43
  "localforage": "^1.10.0",
41
44
  "loglevel": "^1.9.2",
42
- "lru-cache": "^11.2.6",
43
- "qs": "^6.15.0",
45
+ "lru-cache": "^11.3.5",
46
+ "qs": "^6.15.1",
44
47
  "spark-md5": "^3.0.2",
45
48
  "xhr": "^2.6.0"
46
49
  },
47
50
  "devDependencies": {
48
51
  "@rollup/plugin-alias": "^6.0.0",
49
- "@rollup/plugin-commonjs": "^29.0.0",
50
- "@rollup/plugin-json": "^6.1.0",
51
- "@rollup/plugin-node-resolve": "^16.0.3",
52
- "@rollup/plugin-terser": "^0.4.4",
52
+ "@rollup/plugin-commonjs": "^29.0.2",
53
+ "@rollup/plugin-terser": "^1.0.0",
53
54
  "@rollup/plugin-typescript": "^12.3.0",
54
- "@types/node": "^25.3.0",
55
- "@vitejs/plugin-vue": "^6.0.4",
56
- "esbuild": "^0.27.3",
55
+ "@types/node": "^25.6.0",
56
+ "@vitejs/plugin-vue": "^6.0.6",
57
+ "@vue/language-core": "^3.2.7",
58
+ "comlink": "^4.4.2",
59
+ "esbuild": "^0.28.0",
57
60
  "rollup-plugin-copy": "^3.5.0",
58
61
  "rollup-plugin-esbuild": "^6.2.1",
59
62
  "rollup-plugin-scss": "^4.0.1",
60
- "rollup-plugin-typescript2": "^0.36.0",
61
63
  "rollup-plugin-vue": "^6.0.0",
62
- "sass": "^1.97.3",
63
- "typescript": "^5.9.3",
64
- "vite": "^7.3.1",
64
+ "sass": "^1.99.0",
65
+ "typescript": "^6.0.3",
66
+ "unplugin-dts": "1.0.0",
67
+ "vite": "^8.0.10",
65
68
  "vite-plugin-comlink": "^5.3.0",
66
69
  "vite-plugin-commonjs": "^0.10.4",
67
- "vite-plugin-dts": "^4.5.4",
68
- "vite-plugin-node-polyfills": "^0.25.0",
69
- "vite-plugin-static-copy": "^3.2.0",
70
- "vue": "^3.5.29",
71
- "vue-router": "^5.0.3"
70
+ "vite-plugin-node-polyfills": "^0.26.0",
71
+ "vite-plugin-static-copy": "^4.1.0",
72
+ "vue": "^3.5.33",
73
+ "vue-router": "^5.0.6"
72
74
  }
73
75
  }