ele-admin-plus 1.1.5 → 1.1.6-beta.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 (100) hide show
  1. package/README.md +1 -1
  2. package/es/ele-app/types/components.d.ts +2 -2
  3. package/es/ele-app/types/index.d.ts +2 -0
  4. package/es/ele-config-provider/index.d.ts +2 -2
  5. package/es/ele-config-provider/index.js +6 -6
  6. package/es/ele-config-provider/props.d.ts +2 -2
  7. package/es/ele-config-provider/props.js +3 -3
  8. package/es/ele-config-provider/receiver.d.ts +3 -3
  9. package/es/ele-config-provider/receiver.js +103 -99
  10. package/es/ele-config-provider/types/index.d.ts +5 -7
  11. package/es/ele-data-table/index.d.ts +11 -13
  12. package/es/ele-data-table/index.js +1 -1
  13. package/es/ele-data-table/props.d.ts +5 -5
  14. package/es/ele-data-table/style/index.scss +6 -1
  15. package/es/ele-file-list/components/file-grid-item.js +5 -3
  16. package/es/ele-file-list/components/file-grid.d.ts +1 -0
  17. package/es/ele-file-list/components/file-grid.js +8 -1
  18. package/es/ele-file-list/components/file-table-item.js +5 -3
  19. package/es/ele-file-list/components/file-table.d.ts +1 -0
  20. package/es/ele-file-list/components/file-table.js +8 -1
  21. package/es/ele-modal/index.d.ts +1 -1
  22. package/es/ele-modal/index.js +37 -13
  23. package/es/ele-popconfirm/index.d.ts +8 -11
  24. package/es/ele-popconfirm/props.d.ts +5 -6
  25. package/es/ele-popover/index.d.ts +12 -15
  26. package/es/ele-popover/props.d.ts +4 -5
  27. package/es/ele-popover/props.js +1 -1
  28. package/es/ele-printer/index.d.ts +5 -3
  29. package/es/ele-printer/index.js +4 -3
  30. package/es/ele-printer/props.d.ts +4 -2
  31. package/es/ele-printer/props.js +3 -1
  32. package/es/ele-printer/types/index.d.ts +5 -1
  33. package/es/ele-printer/util.d.ts +6 -0
  34. package/es/ele-printer/util.js +11 -3
  35. package/es/ele-pro-layout/components/pro-header.js +8 -3
  36. package/es/ele-pro-layout/components/pro-sidebar.js +6 -5
  37. package/es/ele-pro-layout/components/pro-sidebox.js +6 -5
  38. package/es/ele-pro-layout/components/tab-dropdown.js +4 -3
  39. package/es/ele-pro-layout/index.d.ts +20 -22
  40. package/es/ele-pro-layout/index.js +52 -5
  41. package/es/ele-pro-layout/props.js +1 -1
  42. package/es/ele-pro-layout/style/layout-mobile.scss +4 -0
  43. package/es/ele-pro-layout/style/sidebar.scss +7 -0
  44. package/es/ele-pro-table/index.d.ts +11 -11
  45. package/es/ele-pro-table/props.d.ts +5 -5
  46. package/es/ele-tabs/components/tab-title.js +6 -5
  47. package/es/ele-tabs/style/index.scss +1 -1
  48. package/es/ele-virtual-table/props.d.ts +5 -5
  49. package/es/ele-watermark/index.js +1 -0
  50. package/es/style/themes/default.scss +2 -2
  51. package/lib/ele-app/types/components.d.ts +2 -2
  52. package/lib/ele-app/types/index.d.ts +2 -0
  53. package/lib/ele-config-provider/index.d.ts +2 -2
  54. package/lib/ele-config-provider/index.js +6 -6
  55. package/lib/ele-config-provider/props.d.ts +2 -2
  56. package/lib/ele-config-provider/props.js +3 -3
  57. package/lib/ele-config-provider/receiver.d.ts +3 -3
  58. package/lib/ele-config-provider/receiver.js +2 -2
  59. package/lib/ele-config-provider/types/index.d.ts +5 -7
  60. package/lib/ele-data-table/index.d.ts +11 -13
  61. package/lib/ele-data-table/index.js +1 -1
  62. package/lib/ele-data-table/props.d.ts +5 -5
  63. package/lib/ele-data-table/style/index.scss +6 -1
  64. package/lib/ele-file-list/components/file-grid-item.js +5 -3
  65. package/lib/ele-file-list/components/file-grid.d.ts +1 -0
  66. package/lib/ele-file-list/components/file-grid.js +8 -1
  67. package/lib/ele-file-list/components/file-table-item.js +5 -3
  68. package/lib/ele-file-list/components/file-table.d.ts +1 -0
  69. package/lib/ele-file-list/components/file-table.js +8 -1
  70. package/lib/ele-modal/index.d.ts +1 -1
  71. package/lib/ele-modal/index.js +36 -12
  72. package/lib/ele-popconfirm/index.d.ts +8 -11
  73. package/lib/ele-popconfirm/props.d.ts +5 -6
  74. package/lib/ele-popover/index.d.ts +12 -15
  75. package/lib/ele-popover/props.d.ts +4 -5
  76. package/lib/ele-popover/props.js +1 -1
  77. package/lib/ele-printer/index.d.ts +5 -3
  78. package/lib/ele-printer/index.js +3 -2
  79. package/lib/ele-printer/props.d.ts +4 -2
  80. package/lib/ele-printer/props.js +3 -1
  81. package/lib/ele-printer/types/index.d.ts +5 -1
  82. package/lib/ele-printer/util.d.ts +6 -0
  83. package/lib/ele-printer/util.js +11 -3
  84. package/lib/ele-pro-layout/components/pro-header.js +8 -3
  85. package/lib/ele-pro-layout/components/pro-sidebar.js +5 -4
  86. package/lib/ele-pro-layout/components/pro-sidebox.js +5 -4
  87. package/lib/ele-pro-layout/components/tab-dropdown.js +4 -3
  88. package/lib/ele-pro-layout/index.d.ts +20 -22
  89. package/lib/ele-pro-layout/index.js +52 -5
  90. package/lib/ele-pro-layout/props.js +1 -1
  91. package/lib/ele-pro-layout/style/layout-mobile.scss +4 -0
  92. package/lib/ele-pro-layout/style/sidebar.scss +7 -0
  93. package/lib/ele-pro-table/index.d.ts +11 -11
  94. package/lib/ele-pro-table/props.d.ts +5 -5
  95. package/lib/ele-tabs/components/tab-title.js +6 -5
  96. package/lib/ele-tabs/style/index.scss +1 -1
  97. package/lib/ele-virtual-table/props.d.ts +5 -5
  98. package/lib/ele-watermark/index.js +1 -0
  99. package/lib/style/themes/default.scss +2 -2
  100. package/package.json +1 -1
package/README.md CHANGED
@@ -33,5 +33,5 @@ npm run build
33
33
  打包指定组件:
34
34
 
35
35
  ```bash
36
- npm run build --src /ele-avatar-group
36
+ npm run build --src /ele-alert
37
37
  ```
@@ -22,11 +22,11 @@ export type EleTooltipProps = Partial<TooltipProps>;
22
22
  * 组件实例
23
23
  */
24
24
  export type EleBasicSelectInstance = InstanceType<typeof EleBasicSelect> | null;
25
- export type EleDataTableInstance = InstanceType<typeof EleDataTable>;
25
+ export type EleDataTableInstance = InstanceType<typeof EleDataTable> | null;
26
26
  export type EleDropdownInstance = InstanceType<typeof EleDropdown> | null;
27
27
  export type ElePopoverInstance = InstanceType<typeof ElePopover> | null;
28
28
  export type EleProTableInstance = InstanceType<typeof EleProTable> | null;
29
29
  export type EleTabsInstance = InstanceType<typeof EleTabs> | null;
30
30
  export type EleTextInstance = InstanceType<typeof EleText> | null;
31
31
  export type EleTooltipInstance = InstanceType<typeof EleTooltip> | null;
32
- export type EleVirtualTableInstance = InstanceType<typeof EleVirtualTable>;
32
+ export type EleVirtualTableInstance = InstanceType<typeof EleVirtualTable> | null;
@@ -3,6 +3,7 @@ import type { IconProps, RowProps, ColProps, BreadcrumbProps, BreadcrumbItemProp
3
3
  import type { dropdownProps } from 'element-plus';
4
4
  import type { dropdownItemProps } from 'element-plus';
5
5
  import type columnProps from 'element-plus/es/components/table/src/table-column/defaults';
6
+ import type { TreeProps } from 'element-plus/es/components/tree-v2/src/types';
6
7
  /**
7
8
  * 样式值
8
9
  */
@@ -66,6 +67,7 @@ export type ElTabPaneProps = ComponentProps<TabPaneProps>;
66
67
  export type ElTableProps<T> = ComponentProps<TableProps<T>>;
67
68
  export type ElTableV2Props = ComponentProps<TableV2Props>;
68
69
  export type ElColumnProps = Partial<ExtractPropTypes<typeof columnProps>>;
70
+ export type ElTreeV2Props = ComponentProps<TreeProps>;
69
71
  /**
70
72
  * ElementPlus 组件实例
71
73
  */
@@ -1,14 +1,14 @@
1
1
  declare const _default: import("vue").DefineComponent<{
2
+ locale: import("vue").PropType<import("./types").EleLocale>;
2
3
  table: import("vue").PropType<Partial<Pick<import("../ele-pro-table/props").ProTableProps, "size" | "stripe" | "border" | "emptyProps" | "request" | "response" | "parseData" | "tools" | "maximizedIndex" | "pagination">>>;
3
4
  mapKey: StringConstructor;
4
5
  license: StringConstructor;
5
- locale: import("vue").PropType<import("./types").EleLocale>;
6
6
  }, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
7
7
  [key: string]: any;
8
8
  }>[] | undefined, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
9
+ locale: import("vue").PropType<import("./types").EleLocale>;
9
10
  table: import("vue").PropType<Partial<Pick<import("../ele-pro-table/props").ProTableProps, "size" | "stripe" | "border" | "emptyProps" | "request" | "response" | "parseData" | "tools" | "maximizedIndex" | "pagination">>>;
10
11
  mapKey: StringConstructor;
11
12
  license: StringConstructor;
12
- locale: import("vue").PropType<import("./types").EleLocale>;
13
13
  }>>, {}, {}>;
14
14
  export default _default;
@@ -6,6 +6,12 @@ const index = defineComponent({
6
6
  setup(props, { slots }) {
7
7
  const config = reactive({ ...props });
8
8
  provide(PROVIDE_KEY, config);
9
+ watch(
10
+ () => props.locale,
11
+ () => {
12
+ config.locale = props.locale;
13
+ }
14
+ );
9
15
  watch(
10
16
  () => props.table,
11
17
  () => {
@@ -25,12 +31,6 @@ const index = defineComponent({
25
31
  config.license = props.license;
26
32
  }
27
33
  );
28
- watch(
29
- () => props.locale,
30
- () => {
31
- config.locale = props.locale;
32
- }
33
- );
34
34
  return () => {
35
35
  var _a;
36
36
  return (_a = slots.default) == null ? void 0 : _a.call(slots);
@@ -4,14 +4,14 @@ import type { EleLocale } from './types';
4
4
  * 属性
5
5
  */
6
6
  export declare const configProviderProps: {
7
+ /** 国际化 */
8
+ locale: PropType<EleLocale>;
7
9
  /** 表格全局配置 */
8
10
  table: PropType<Partial<Pick<import("../ele-pro-table/props").ProTableProps, "size" | "stripe" | "border" | "emptyProps" | "request" | "response" | "parseData" | "tools" | "maximizedIndex" | "pagination">>>;
9
11
  /** 高德地图密钥 */
10
12
  mapKey: StringConstructor;
11
13
  /** 授权码 */
12
14
  license: StringConstructor;
13
- /** 国际化 */
14
- locale: PropType<EleLocale>;
15
15
  };
16
16
  export type ConfigProviderProps = ExtractPropTypes<typeof configProviderProps>;
17
17
  /**
@@ -1,12 +1,12 @@
1
1
  const configProviderProps = {
2
+ /** 国际化 */
3
+ locale: Object,
2
4
  /** 表格全局配置 */
3
5
  table: Object,
4
6
  /** 高德地图密钥 */
5
7
  mapKey: String,
6
8
  /** 授权码 */
7
- license: String,
8
- /** 国际化 */
9
- locale: Object
9
+ license: String
10
10
  };
11
11
  const PROVIDE_KEY = "EleGlobalConfig";
12
12
  const LAYOUT_KEY = "EleLayoutState";
@@ -1,11 +1,11 @@
1
1
  import type { Ref } from 'vue';
2
2
  import { LAYOUT_KEY } from './props';
3
- import type { EleGlobalProvide, LocaleProps, UseLicenseResult, UseLocaleResult, LayoutProvide, ResponsiveProps } from './types';
3
+ import type { GlobalProvide, UseLocaleResult, UseLicenseResult, LocaleProps, ResponsiveProps, LayoutProvide } from './types';
4
4
  export declare const UNAUTHORIZED_TIP = "EleAdminPlus \u4E3A\u5546\u4E1A\u4EA7\u54C1\u9700\u8981\u6388\u6743\u4F7F\u7528, \u8BF7\u524D\u5F80\u5B98\u7F51 www.eleadmin.com \u8D2D\u4E70\u6388\u6743";
5
5
  /**
6
6
  * 获取全局配置
7
7
  */
8
- export declare function useReceiver(): EleGlobalProvide;
8
+ export declare function useReceiver(): GlobalProvide;
9
9
  /**
10
10
  * 获取全局属性
11
11
  */
@@ -15,7 +15,7 @@ export declare function useGlobalProps<T>(name: string): Ref<T>;
15
15
  */
16
16
  export declare function useLocale<T>(name?: string, props?: LocaleProps<T>): UseLocaleResult<T>;
17
17
  /**
18
- * 获取是否授权
18
+ * useLicense
19
19
  */
20
20
  export declare function useLicense(): UseLicenseResult;
21
21
  /**
@@ -1,120 +1,124 @@
1
- import { inject as L, computed as v, ref as P, watch as R, unref as T } from "vue";
2
- import { PROVIDE_KEY as I, LAYOUT_KEY as N } from "./props";
3
- import { LAYOUT_KEY as W } from "./props";
4
- import _ from "../lang/zh_CN";
5
- const K = "EleAdminPlus \u4E3A\u5546\u4E1A\u4EA7\u54C1\u9700\u8981\u6388\u6743\u4F7F\u7528, \u8BF7\u524D\u5F80\u5B98\u7F51 www.eleadmin.com \u8D2D\u4E70\u6388\u6743", U = "BAFEDIHGLKJONMRQPUTSXWVaZYdcbgfejihmlkponsrqvutyxw10z432765+98/C", $ = 1698336417, x = "1.1";
6
- function B() {
7
- return L(I, {});
1
+ import { inject as j, computed as S, ref as x, watch as N, unref as _ } from "vue";
2
+ import { PROVIDE_KEY as I, LAYOUT_KEY as K } from "./props";
3
+ import { LAYOUT_KEY as y } from "./props";
4
+ import U from "../lang/zh_CN";
5
+ const $ = "EleAdminPlus \u4E3A\u5546\u4E1A\u4EA7\u54C1\u9700\u8981\u6388\u6743\u4F7F\u7528, \u8BF7\u524D\u5F80\u5B98\u7F51 www.eleadmin.com \u8D2D\u4E70\u6388\u6743", M = 1698336417, L = "1.1";
6
+ function P() {
7
+ return j(I, {});
8
8
  }
9
- function H(t) {
10
- const o = B();
11
- return v(() => o[t] ?? {});
9
+ function J(u) {
10
+ const t = P();
11
+ return S(() => t[u] ?? {});
12
12
  }
13
- function J(t, o) {
14
- const n = B();
15
- return { lang: v(() => {
16
- const r = n.locale ?? _;
17
- return t ? Object.assign({}, r[t] ?? {}, o == null ? void 0 : o.locale) : r;
18
- }), globalConfig: n };
13
+ function k(u, t) {
14
+ const e = P();
15
+ return { lang: S(() => {
16
+ const c = e.locale ?? U;
17
+ return u ? Object.assign({}, c[u] ?? {}, t == null ? void 0 : t.locale) : c;
18
+ }), globalConfig: e };
19
19
  }
20
- function k() {
21
- const t = B(), o = v(() => t.license), n = P(!1), s = (r, g, u, l) => {
22
- const e = [new Array(60).join("*")];
23
- if (e.push(K), o.value ? !r && g == null && !u && e.push("\u8BF7\u4F7F\u7528\u6B63\u786E\u683C\u5F0F\u7684\u6388\u6743\u7801;") : e.push("\u8BF7\u5148\u914D\u7F6E\u81EA\u5DF1\u7684\u6388\u6743\u7801;"), r && e.push(`\u6388\u6743\u7248\u672C\u53F7\u4E0D\u5339\u914D, \u8BF7\u4F7F\u7528: ${r}, \u5F53\u524D\u7248\u672C: ${x};`), typeof g == "number") {
24
- const f = new Date(g * 1e3).toLocaleString();
25
- e.push(`\u6388\u6743\u5DF2\u5931\u6548, \u5230\u671F\u65F6\u95F4: ${f};`);
26
- }
27
- u && e.push(`\u57DF\u540D\u4E0D\u5339\u914D, \u8BF7\u90E8\u7F72\u5728: ${u} \u4E0B, \u5F53\u524D\u57DF\u540D: ${l};`), e.push(new Array(60).join("*")), console.error(e.join(`
28
- `)), n.value = !1;
29
- };
30
- return R(
31
- o,
20
+ function q() {
21
+ const u = P(), t = S(() => {
22
+ const r = u.license;
23
+ return r ? r.trim() : void 0;
24
+ }), e = x(!1);
25
+ return N(
26
+ t,
32
27
  (r) => {
33
- var g;
28
+ var c;
34
29
  if (typeof r != "string" || !r)
35
- return s();
30
+ return e.value = !1, h();
36
31
  try {
37
- const u = JSON.parse(M(r));
38
- if (u.product !== "EleAdminPlus")
39
- return s();
40
- const { version: l, expiration: e, domain: f } = u;
41
- if (l && l !== x)
42
- return s(l);
43
- if (e && e < $)
44
- return s(void 0, e);
32
+ const o = JSON.parse(V(r));
33
+ if (o.product !== "EleAdminPlus")
34
+ return e.value = !1, h("");
35
+ const { version: l, expiration: w, domain: f } = o;
36
+ if (l && l !== L)
37
+ return e.value = !1, h(l);
38
+ if (w && w < M)
39
+ return e.value = !1, h(void 0, w);
45
40
  if (f) {
46
- const a = (g = window == null ? void 0 : window.location) == null ? void 0 : g.hostname;
47
- if (!a)
48
- return s(void 0, void 0, f, "");
49
- if (a !== "localhost" && a !== "127.0.0.1") {
50
- const m = f.split("."), F = a.split(".");
51
- for (let d = m.length - 1; d >= 0; d--)
52
- if (m[d] !== F[d])
53
- return s(void 0, void 0, f, a);
54
- if (F.length > m.length && F[F.length - m.length - 1] !== "www")
55
- return s(void 0, void 0, f, a);
41
+ const n = (c = window == null ? void 0 : window.location) == null ? void 0 : c.hostname;
42
+ if (!n)
43
+ return e.value = !1, h(void 0, void 0, f, "");
44
+ if (n !== "localhost" && n !== "127.0.0.1") {
45
+ const d = f.split("."), g = n.split(".");
46
+ for (let m = d.length - 1; m >= 0; m--)
47
+ if (d[m] !== g[m])
48
+ return e.value = !1, h(void 0, void 0, f, n);
49
+ if (g.length > d.length && g[g.length - d.length - 1] !== "www")
50
+ return e.value = !1, h(void 0, void 0, f, n);
56
51
  }
57
52
  }
58
- } catch (u) {
59
- return console.error(u), s();
53
+ } catch (o) {
54
+ return e.value = !1, console.error(o), h("");
60
55
  }
61
- n.value = !0;
56
+ e.value = !0;
62
57
  },
63
58
  { immediate: !0 }
64
- ), { authenticated: n, globalConfig: t };
59
+ ), { authenticated: e, globalConfig: u };
60
+ }
61
+ function h(u, t, e, r) {
62
+ const c = new Array(60).join("*"), o = [c];
63
+ if (o.push($), u == null && t == null && e == null && r == null && o.push("\u8BF7\u5148\u914D\u7F6E\u81EA\u5DF1\u7684\u6388\u6743\u7801;"), !u && t == null && !e && o.push("\u8BF7\u4F7F\u7528\u6B63\u786E\u683C\u5F0F\u7684\u6388\u6743\u7801;"), u && o.push(`\u6388\u6743\u7248\u672C\u53F7\u4E0D\u5339\u914D, \u8BF7\u4F7F\u7528: ${u}, \u5F53\u524D\u7248\u672C: ${L};`), typeof t == "number") {
64
+ const l = new Date(t * 1e3).toLocaleString();
65
+ o.push(`\u6388\u6743\u5DF2\u5931\u6548, \u5230\u671F\u65F6\u95F4: ${l};`);
66
+ }
67
+ e && o.push(`\u57DF\u540D\u4E0D\u5339\u914D, \u8BF7\u90E8\u7F72\u5728: ${e} \u4E0B, \u5F53\u524D\u57DF\u540D: ${r};`), o.push(c), console.error(o.join(`
68
+ `));
65
69
  }
66
- function M(t) {
67
- const o = (E, D, h) => {
68
- const i = ((c, O) => {
69
- const Y = c.length - O;
70
- if (Y <= 0)
71
- return c;
72
- const j = new Array(c.length);
73
- for (let A = 0; A < c.length; A++)
74
- A < O ? j[A] = c[Y + A] : j[A] = c[A - O];
75
- return j;
76
- })(E.split(""), h).join(""), C = [];
77
- let p = 0;
78
- for (; p < i.length; ) {
79
- let c = p + D;
80
- c > i.length && (c = i.length);
81
- const O = i.substring(p, c);
82
- C.push(O.split("").reverse().join("")), p = c;
70
+ function V(u) {
71
+ const t = (E, A, a) => {
72
+ const i = ((s, D) => {
73
+ const T = s.length - D;
74
+ if (T <= 0)
75
+ return s;
76
+ const B = new Array(s.length);
77
+ for (let p = 0; p < s.length; p++)
78
+ p < D ? B[p] = s[T + p] : B[p] = s[p - D];
79
+ return B;
80
+ })(E.split(""), a).join(""), F = [];
81
+ let C = 0;
82
+ for (; C < i.length; ) {
83
+ let s = C + A;
84
+ s > i.length && (s = i.length);
85
+ const D = i.substring(C, s);
86
+ F.push(D.split("").reverse().join("")), C = s;
83
87
  }
84
- return C.join("");
85
- }, n = t.indexOf("="), s = n === -1 ? t : t.substring(0, n), r = n === -1 ? "" : t.substring(n), u = (o(s, 12, 3) + r).replace(/[^A-Za-z0-9\+\/\=]/g, ""), l = o(U, 3, 1) + "=";
86
- let e = "", f, a, m, F, d, S, b, w = 0;
87
- for (; w < u.length; )
88
- F = l.indexOf(u.charAt(w++)), d = l.indexOf(u.charAt(w++)), S = l.indexOf(u.charAt(w++)), b = l.indexOf(u.charAt(w++)), f = F << 2 | d >> 4, a = (d & 15) << 4 | S >> 2, m = (S & 3) << 6 | b, e = e + String.fromCharCode(f), S != 64 && (e = e + String.fromCharCode(a)), b != 64 && (e = e + String.fromCharCode(m));
89
- return e = ((E) => {
90
- let D = "", h = 0, i = 0, C = 0, p = 0;
91
- for (; h < E.length; )
92
- i = E.charCodeAt(h), i < 128 ? (D += String.fromCharCode(i), h++) : i > 191 && i < 224 ? (C = E.charCodeAt(h + 1), D += String.fromCharCode((i & 31) << 6 | C & 63), h += 2) : (C = E.charCodeAt(h + 1), p = E.charCodeAt(h + 2), D += String.fromCharCode(
93
- (i & 15) << 12 | (C & 63) << 6 | p & 63
94
- ), h += 3);
95
- return D;
96
- })(e), e;
88
+ return F.join("");
89
+ }, e = u.indexOf("="), r = e === -1 ? u : u.substring(0, e), c = e === -1 ? "" : u.substring(e), l = (t(r, 12, 3) + c).replace(/[^A-Za-z0-9\+\/\=]/g, ""), f = t("BAFEDIHGLKJONMRQPUTSXWVaZYdcbgfejihmlkponsrqvutyxw10z432765+98/C", 3, 1) + "=";
90
+ let n = "", d, g, m, R, b, O, Y, v = 0;
91
+ for (; v < l.length; )
92
+ R = f.indexOf(l.charAt(v++)), b = f.indexOf(l.charAt(v++)), O = f.indexOf(l.charAt(v++)), Y = f.indexOf(l.charAt(v++)), d = R << 2 | b >> 4, g = (b & 15) << 4 | O >> 2, m = (O & 3) << 6 | Y, n = n + String.fromCharCode(d), O != 64 && (n = n + String.fromCharCode(g)), Y != 64 && (n = n + String.fromCharCode(m));
93
+ return n = ((E) => {
94
+ let A = "", a = 0, i = 0, F = 0, C = 0;
95
+ for (; a < E.length; )
96
+ i = E.charCodeAt(a), i < 128 ? (A += String.fromCharCode(i), a++) : i > 191 && i < 224 ? (F = E.charCodeAt(a + 1), A += String.fromCharCode((i & 31) << 6 | F & 63), a += 2) : (F = E.charCodeAt(a + 1), C = E.charCodeAt(a + 2), A += String.fromCharCode(
97
+ (i & 15) << 12 | (F & 63) << 6 | C & 63
98
+ ), a += 3);
99
+ return A;
100
+ })(n), n;
97
101
  }
98
- function V(t) {
99
- return L(
100
- N,
101
- t ?? P({})
102
+ function Z(u) {
103
+ return j(
104
+ K,
105
+ u ?? x({})
102
106
  );
103
107
  }
104
- function q(t) {
105
- const o = V();
106
- return v(() => {
107
- var n;
108
- return t.responsive ?? ((n = T(o)) == null ? void 0 : n.responsive) ?? !0;
108
+ function Q(u) {
109
+ const t = Z();
110
+ return S(() => {
111
+ var e;
112
+ return u.responsive ?? ((e = _(t)) == null ? void 0 : e.responsive) ?? !0;
109
113
  });
110
114
  }
111
115
  export {
112
- W as LAYOUT_KEY,
113
- K as UNAUTHORIZED_TIP,
114
- H as useGlobalProps,
115
- V as useLayoutState,
116
- k as useLicense,
117
- J as useLocale,
118
- B as useReceiver,
119
- q as useResponsive
116
+ y as LAYOUT_KEY,
117
+ $ as UNAUTHORIZED_TIP,
118
+ J as useGlobalProps,
119
+ Z as useLayoutState,
120
+ q as useLicense,
121
+ k as useLocale,
122
+ P as useReceiver,
123
+ Q as useResponsive
120
124
  };
@@ -10,17 +10,15 @@ import type { CopyableLocale } from '../../ele-copyable/types';
10
10
  /**
11
11
  * 全局配置
12
12
  */
13
- export interface EleGlobalProvide {
13
+ export interface GlobalProvide {
14
+ /** 国际化 */
15
+ locale?: EleLocale;
14
16
  /** 表格配置 */
15
17
  table?: TableGlobalConfig;
16
18
  /** 地图密钥 */
17
19
  mapKey?: string;
18
20
  /** 授权码 */
19
21
  license?: string;
20
- /** 国际化 */
21
- locale?: EleLocale;
22
- /** 是否开启页签缓存 */
23
- keepAlive?: boolean;
24
22
  }
25
23
  /**
26
24
  * 表格配置
@@ -52,7 +50,7 @@ export interface UseLicenseResult {
52
50
  /** 是否授权 */
53
51
  authenticated: Ref<boolean>;
54
52
  /** 全局配置 */
55
- globalConfig: EleGlobalProvide;
53
+ globalConfig: GlobalProvide;
56
54
  }
57
55
  /**
58
56
  * 获取国际化方法返回结果
@@ -61,7 +59,7 @@ export interface UseLocaleResult<T> {
61
59
  /** 语言 */
62
60
  lang: ComputedRef<T>;
63
61
  /** 全局配置 */
64
- globalConfig: EleGlobalProvide;
62
+ globalConfig: GlobalProvide;
65
63
  }
66
64
  /**
67
65
  * 带国际化的组件属性
@@ -32,7 +32,6 @@ declare const _default: import("vue").DefineComponent<{
32
32
  type: import("vue").PropType<import("./types").TableEmptyProps>;
33
33
  default: () => null;
34
34
  };
35
- /** 表格列配置 */
36
35
  rowClickChecked: import("vue").PropType<import("./types").RowClickChecked>;
37
36
  size: {
38
37
  readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "default" | "small" | "large", never>>;
@@ -62,6 +61,11 @@ declare const _default: import("vue").DefineComponent<{
62
61
  default: boolean;
63
62
  };
64
63
  showOverflowTooltip: import("vue").PropType<boolean | Partial<Pick<import("element-plus").ElTooltipProps, "offset" | "effect" | "placement" | "popperOptions" | "popperClass" | "showArrow" | "enterable" | "showAfter" | "hideAfter">> | undefined>;
64
+ emptyText: StringConstructor;
65
+ indent: {
66
+ type: NumberConstructor;
67
+ default: number;
68
+ };
65
69
  showHeader: {
66
70
  type: BooleanConstructor;
67
71
  default: boolean;
@@ -79,7 +83,6 @@ declare const _default: import("vue").DefineComponent<{
79
83
  headerCellStyle: import("vue").PropType<import("element-plus/es/components/table/src/table/defaults").CellStyle<any> | undefined>;
80
84
  highlightCurrentRow: BooleanConstructor;
81
85
  currentRowKey: (StringConstructor | NumberConstructor)[];
82
- emptyText: StringConstructor;
83
86
  expandRowKeys: import("vue").PropType<any[] | undefined>;
84
87
  defaultExpandAll: BooleanConstructor;
85
88
  defaultSort: import("vue").PropType<import("element-plus/es/components/table/src/table/defaults").Sort | undefined>;
@@ -98,10 +101,6 @@ declare const _default: import("vue").DefineComponent<{
98
101
  type: BooleanConstructor;
99
102
  default: boolean;
100
103
  };
101
- indent: {
102
- type: NumberConstructor;
103
- default: number;
104
- };
105
104
  treeProps: {
106
105
  type: import("vue").PropType<{
107
106
  hasChildren?: string | undefined;
@@ -187,7 +186,6 @@ declare const _default: import("vue").DefineComponent<{
187
186
  type: import("vue").PropType<import("./types").TableEmptyProps>;
188
187
  default: () => null;
189
188
  };
190
- /** 表格列配置 */
191
189
  rowClickChecked: import("vue").PropType<import("./types").RowClickChecked>;
192
190
  size: {
193
191
  readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "default" | "small" | "large", never>>;
@@ -217,6 +215,11 @@ declare const _default: import("vue").DefineComponent<{
217
215
  default: boolean;
218
216
  };
219
217
  showOverflowTooltip: import("vue").PropType<boolean | Partial<Pick<import("element-plus").ElTooltipProps, "offset" | "effect" | "placement" | "popperOptions" | "popperClass" | "showArrow" | "enterable" | "showAfter" | "hideAfter">> | undefined>;
218
+ emptyText: StringConstructor;
219
+ indent: {
220
+ type: NumberConstructor;
221
+ default: number;
222
+ };
220
223
  showHeader: {
221
224
  type: BooleanConstructor;
222
225
  default: boolean;
@@ -234,7 +237,6 @@ declare const _default: import("vue").DefineComponent<{
234
237
  headerCellStyle: import("vue").PropType<import("element-plus/es/components/table/src/table/defaults").CellStyle<any> | undefined>;
235
238
  highlightCurrentRow: BooleanConstructor;
236
239
  currentRowKey: (StringConstructor | NumberConstructor)[];
237
- emptyText: StringConstructor;
238
240
  expandRowKeys: import("vue").PropType<any[] | undefined>;
239
241
  defaultExpandAll: BooleanConstructor;
240
242
  defaultSort: import("vue").PropType<import("element-plus/es/components/table/src/table/defaults").Sort | undefined>;
@@ -253,10 +255,6 @@ declare const _default: import("vue").DefineComponent<{
253
255
  type: BooleanConstructor;
254
256
  default: boolean;
255
257
  };
256
- indent: {
257
- type: NumberConstructor;
258
- default: number;
259
- };
260
258
  treeProps: {
261
259
  type: import("vue").PropType<{
262
260
  hasChildren?: string | undefined;
@@ -298,6 +296,7 @@ declare const _default: import("vue").DefineComponent<{
298
296
  lazy: boolean;
299
297
  data: any[];
300
298
  scrollbarAlwaysOn: boolean;
299
+ indent: number;
301
300
  stripe: boolean;
302
301
  border: boolean;
303
302
  showHeader: boolean;
@@ -305,7 +304,6 @@ declare const _default: import("vue").DefineComponent<{
305
304
  highlightCurrentRow: boolean;
306
305
  defaultExpandAll: boolean;
307
306
  selectOnIndeterminate: boolean;
308
- indent: number;
309
307
  treeProps: {
310
308
  hasChildren?: string | undefined;
311
309
  children?: string | undefined;
@@ -124,7 +124,7 @@ const index = defineComponent({
124
124
  if (props.rowClickChecked && !isDisableRow(row, props.data.indexOf(row), props.columns)) {
125
125
  const selections = methods.getSelectionRows();
126
126
  if (props.rowClickChecked === "smart" && selections != null && selections.length === 1) {
127
- methods.setSelectedRows([row]);
127
+ setSelectedRows([row]);
128
128
  } else {
129
129
  methods.toggleRowSelection(row);
130
130
  }
@@ -165,6 +165,11 @@ export declare const dataTableProps: {
165
165
  default: boolean;
166
166
  };
167
167
  showOverflowTooltip: PropType<boolean | Partial<Pick<import("element-plus").ElTooltipProps, "offset" | "effect" | "placement" | "popperOptions" | "popperClass" | "showArrow" | "enterable" | "showAfter" | "hideAfter">> | undefined>;
168
+ emptyText: StringConstructor;
169
+ indent: {
170
+ type: NumberConstructor;
171
+ default: number;
172
+ };
168
173
  showHeader: {
169
174
  type: BooleanConstructor;
170
175
  default: boolean;
@@ -182,7 +187,6 @@ export declare const dataTableProps: {
182
187
  headerCellStyle: PropType<import("element-plus/es/components/table/src/table/defaults").CellStyle<any> | undefined>;
183
188
  highlightCurrentRow: BooleanConstructor;
184
189
  currentRowKey: (StringConstructor | NumberConstructor)[];
185
- emptyText: StringConstructor;
186
190
  expandRowKeys: PropType<any[] | undefined>;
187
191
  defaultExpandAll: BooleanConstructor;
188
192
  defaultSort: PropType<import("element-plus/es/components/table/src/table/defaults").Sort | undefined>;
@@ -201,10 +205,6 @@ export declare const dataTableProps: {
201
205
  type: BooleanConstructor;
202
206
  default: boolean;
203
207
  };
204
- indent: {
205
- type: NumberConstructor;
206
- default: number;
207
- };
208
208
  treeProps: {
209
209
  type: PropType<{
210
210
  hasChildren?: string | undefined;
@@ -13,6 +13,10 @@ $ele-expand-path: 'M605.08 512.14L338.35 245.27l51.76-51.68 318.41 318.58L390.09
13
13
  background: none;
14
14
  }
15
15
 
16
+ .ele-data-table > .el-table__inner-wrapper > .el-table__header-wrapper {
17
+ z-index: 4;
18
+ }
19
+
16
20
  .ele-data-table {
17
21
  /* 单元格背景 */
18
22
  & > .el-table__inner-wrapper {
@@ -268,6 +272,7 @@ $ele-expand-path: 'M605.08 512.14L338.35 245.27l51.76-51.68 318.41 318.58L390.09
268
272
  bottom: 0;
269
273
  width: 0;
270
274
  border-left: 1px solid eleVar('table', 'border-color');
275
+ z-index: 5;
271
276
  }
272
277
 
273
278
  &.el-table > .el-table__inner-wrapper::before,
@@ -275,6 +280,7 @@ $ele-expand-path: 'M605.08 512.14L338.35 245.27l51.76-51.68 318.41 318.58L390.09
275
280
  right: 0;
276
281
  height: 0;
277
282
  border-top: 1px solid eleVar('table', 'border-color');
283
+ z-index: 5;
278
284
  }
279
285
 
280
286
  &.el-table:not(.has-footer) > .el-table__inner-wrapper::before {
@@ -338,7 +344,6 @@ $ele-expand-path: 'M605.08 512.14L338.35 245.27l51.76-51.68 318.41 318.58L390.09
338
344
  & > .el-table__inner-wrapper > .el-table__header-wrapper {
339
345
  position: sticky;
340
346
  top: eleVar('table', 'sticky-top');
341
- z-index: 3;
342
347
  }
343
348
  }
344
349
  }
@@ -147,11 +147,13 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
147
147
  class: "ele-file-list-item-checkbox",
148
148
  onClick: _cache[1] || (_cache[1] = withModifiers((...args) => _ctx.onCheckChange && _ctx.onCheckChange(...args), ["stop"]))
149
149
  }, _hoisted_5)) : createCommentVNode("", true),
150
- _ctx.contextMenus || _ctx.$slots.contextMenu ? (openBlock(), createBlock(_component_EleDropdown, mergeProps({ key: 1 }, _ctx.contextMenuProps, {
150
+ _ctx.contextMenus || _ctx.$slots.contextMenu ? (openBlock(), createBlock(_component_EleDropdown, mergeProps({
151
+ key: 1,
152
+ placement: "bottom-start",
153
+ popperClass: "ele-file-list-item-context"
154
+ }, _ctx.contextMenuProps, {
151
155
  ref: "dropdownRef",
152
156
  trigger: "click",
153
- placement: "bottom-start",
154
- popperClass: "ele-file-list-item-context",
155
157
  class: "ele-file-list-item-dropdown",
156
158
  items: _ctx.contextMenus,
157
159
  onCommand: _ctx.onItemContextMenu,
@@ -28,6 +28,7 @@ declare const _default: import("vue").DefineComponent<{
28
28
  }, {
29
29
  itemRefs: Ref<GridItemInstance[]>;
30
30
  headerText: import("vue").ComputedRef<string | undefined>;
31
+ getContextMenus: (item: FileItem) => import("../../ele-dropdown/types").DropdownItem[] | undefined;
31
32
  onCheckAllChange: () => void;
32
33
  onItemClick: (item: FileItem) => void;
33
34
  onItemCheckChange: (item: FileItem) => void;
@@ -47,6 +47,12 @@ const _sfc_main = defineComponent({
47
47
  }
48
48
  return void 0;
49
49
  });
50
+ const getContextMenus = (item) => {
51
+ if (typeof props.contextMenus === "function") {
52
+ return props.contextMenus(item);
53
+ }
54
+ return props.contextMenus;
55
+ };
50
56
  const onCheckAllChange = () => {
51
57
  emit("checkAllChange");
52
58
  };
@@ -71,6 +77,7 @@ const _sfc_main = defineComponent({
71
77
  return {
72
78
  itemRefs,
73
79
  headerText,
80
+ getContextMenus,
74
81
  onCheckAllChange,
75
82
  onItemClick,
76
83
  onItemCheckChange,
@@ -121,7 +128,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
121
128
  selections: _ctx.selections,
122
129
  current: _ctx.current,
123
130
  icons: _ctx.icons,
124
- contextMenus: typeof _ctx.contextMenus === "function" ? _ctx.contextMenus(item) : _ctx.contextMenus,
131
+ contextMenus: _ctx.getContextMenus(item),
125
132
  contextMenuProps: _ctx.contextMenuProps,
126
133
  onClick: _ctx.onItemClick,
127
134
  onCheckChange: _ctx.onItemCheckChange,