@keyblade/pro-components 1.13.8-alpha.43 → 1.13.8-alpha.44

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.
@@ -20,4 +20,9 @@ export interface GlobalProps {
20
20
  /** 页头 */
21
21
  pageHeader?: PageHeaderProps;
22
22
  }
23
- export declare let globalProps: GlobalProps;
23
+ export declare const globalProps: GlobalProps;
24
+ /**
25
+ * 设置全局属性
26
+ * @param _globalProps
27
+ */
28
+ export declare function setGlobalProps(_globalProps: GlobalProps): void;
@@ -1,4 +1,8 @@
1
- let l = {};
1
+ const s = {};
2
+ function t(o) {
3
+ Object.assign(s, o || {});
4
+ }
2
5
  export {
3
- l as globalProps
6
+ s as globalProps,
7
+ t as setGlobalProps
4
8
  };
package/es/index.js CHANGED
@@ -1,54 +1,56 @@
1
1
  import { ProLogin as e } from "./pro-login/index.js";
2
2
  import { ProFindPassword as m } from "./pro-find-password/index.js";
3
3
  import { ProPageHeader as t } from "./pro-page-header/index.js";
4
- import { ProKeepAliveRouterView as i } from "./pro-keep-alive-router-view/index.js";
5
- import { ProLayout as s } from "./pro-layout/index.js";
4
+ import { ProKeepAliveRouterView as s } from "./pro-keep-alive-router-view/index.js";
5
+ import { ProLayout as i } from "./pro-layout/index.js";
6
6
  import { ProMenu as f } from "./pro-menu/index.js";
7
7
  import { ProPageContainer as P } from "./pro-page-container/index.js";
8
8
  import { ProReuseTabs as u } from "./pro-reuse-tabs/index.js";
9
- import { ProImageUpload as n } from "./pro-image-upload/index.js";
10
- import { ProDatesPicker as a } from "./pro-dates-picker/index.js";
11
- import { ProDateRangePicker as d } from "./pro-date-range-picker/index.js";
12
- import { ProTable as l } from "./pro-table/index.js";
9
+ import { ProImageUpload as a } from "./pro-image-upload/index.js";
10
+ import { ProDatesPicker as n } from "./pro-dates-picker/index.js";
11
+ import { ProDateRangePicker as l } from "./pro-date-range-picker/index.js";
12
+ import { ProTable as d } from "./pro-table/index.js";
13
13
  import { ProTextarea as g } from "./pro-textarea/index.js";
14
14
  import { ProFooterBar as x } from "./pro-footer-bar/index.js";
15
- import { ProFormGroup as c } from "./pro-form-group/index.js";
16
- import { ProCalendar as p } from "./pro-calendar/index.js";
17
- import { ProLoader as b } from "./pro-loader/index.js";
15
+ import { ProFormGroup as p } from "./pro-form-group/index.js";
16
+ import { ProCalendar as b } from "./pro-calendar/index.js";
17
+ import { ProLoader as c } from "./pro-loader/index.js";
18
18
  import { globalProps as F } from "./global-props.js";
19
- import { splitStringWithCommaAndSpace as M } from "./utils.js";
20
- import { EImageUploadInnerBeforeUploadStep as W } from "./pro-image-upload/types.js";
21
- import { defaultImageUploadOptions as z } from "./pro-image-upload/constant.js";
22
- import { EProLoginType as N } from "./pro-login/enum.js";
23
- import { EFindPasswordSteps as X } from "./pro-find-password/enum.js";
24
- const G = {
19
+ import { setGlobalProps as M } from "./global-props.js";
20
+ import { splitStringWithCommaAndSpace as W } from "./utils.js";
21
+ import { EImageUploadInnerBeforeUploadStep as z } from "./pro-image-upload/types.js";
22
+ import { defaultImageUploadOptions as N } from "./pro-image-upload/constant.js";
23
+ import { EProLoginType as X } from "./pro-login/enum.js";
24
+ import { EFindPasswordSteps as Z } from "./pro-find-password/enum.js";
25
+ const v = {
25
26
  install(o, r) {
26
- Object.assign(F, r || {}), o.use(e), o.use(m), o.use(t), o.use(i), o.use(s), o.use(x), o.use(f), o.use(P), o.use(u), o.use(n), o.use(a), o.use(d), o.use(g), o.use(l), o.use(c), o.use(p), o.use(b);
27
+ Object.assign(F, r || {}), o.use(e), o.use(m), o.use(t), o.use(s), o.use(i), o.use(x), o.use(f), o.use(P), o.use(u), o.use(a), o.use(n), o.use(l), o.use(g), o.use(d), o.use(p), o.use(b), o.use(c);
27
28
  }
28
29
  };
29
30
  export {
30
- X as EFindPasswordSteps,
31
- W as EImageUploadInnerBeforeUploadStep,
32
- N as EProLoginType,
33
- p as ProCalendar,
34
- d as ProDateRangePicker,
35
- a as ProDatesPicker,
31
+ Z as EFindPasswordSteps,
32
+ z as EImageUploadInnerBeforeUploadStep,
33
+ X as EProLoginType,
34
+ b as ProCalendar,
35
+ l as ProDateRangePicker,
36
+ n as ProDatesPicker,
36
37
  m as ProFindPassword,
37
38
  x as ProFooterBar,
38
- c as ProFormGroup,
39
- n as ProImageUpload,
40
- i as ProKeepAliveRouterView,
41
- s as ProLayout,
42
- b as ProLoader,
39
+ p as ProFormGroup,
40
+ a as ProImageUpload,
41
+ s as ProKeepAliveRouterView,
42
+ i as ProLayout,
43
+ c as ProLoader,
43
44
  e as ProLogin,
44
45
  f as ProMenu,
45
46
  P as ProPageContainer,
46
47
  t as ProPageHeader,
47
48
  u as ProReuseTabs,
48
- l as ProTable,
49
+ d as ProTable,
49
50
  g as ProTextarea,
50
- G as default,
51
- z as defaultImageUploadOptions,
51
+ v as default,
52
+ N as defaultImageUploadOptions,
52
53
  F as globalProps,
53
- M as splitStringWithCommaAndSpace
54
+ M as setGlobalProps,
55
+ W as splitStringWithCommaAndSpace
54
56
  };
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@keyblade/pro-components",
3
3
  "description": "KeyBlade Pro Components",
4
4
  "author": "yangshuai <704807396@qq.com>",
5
- "version": "1.13.8-alpha.43",
5
+ "version": "1.13.8-alpha.44",
6
6
  "private": false,
7
7
  "type": "module",
8
8
  "main": "es/index.js",