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.
- package/README.md +1 -1
- package/es/ele-app/types/components.d.ts +2 -2
- package/es/ele-app/types/index.d.ts +2 -0
- package/es/ele-config-provider/index.d.ts +2 -2
- package/es/ele-config-provider/index.js +6 -6
- package/es/ele-config-provider/props.d.ts +2 -2
- package/es/ele-config-provider/props.js +3 -3
- package/es/ele-config-provider/receiver.d.ts +3 -3
- package/es/ele-config-provider/receiver.js +103 -99
- package/es/ele-config-provider/types/index.d.ts +5 -7
- package/es/ele-data-table/index.d.ts +11 -13
- package/es/ele-data-table/index.js +1 -1
- package/es/ele-data-table/props.d.ts +5 -5
- package/es/ele-data-table/style/index.scss +6 -1
- package/es/ele-file-list/components/file-grid-item.js +5 -3
- package/es/ele-file-list/components/file-grid.d.ts +1 -0
- package/es/ele-file-list/components/file-grid.js +8 -1
- package/es/ele-file-list/components/file-table-item.js +5 -3
- package/es/ele-file-list/components/file-table.d.ts +1 -0
- package/es/ele-file-list/components/file-table.js +8 -1
- package/es/ele-modal/index.d.ts +1 -1
- package/es/ele-modal/index.js +37 -13
- package/es/ele-popconfirm/index.d.ts +8 -11
- package/es/ele-popconfirm/props.d.ts +5 -6
- package/es/ele-popover/index.d.ts +12 -15
- package/es/ele-popover/props.d.ts +4 -5
- package/es/ele-popover/props.js +1 -1
- package/es/ele-printer/index.d.ts +5 -3
- package/es/ele-printer/index.js +4 -3
- package/es/ele-printer/props.d.ts +4 -2
- package/es/ele-printer/props.js +3 -1
- package/es/ele-printer/types/index.d.ts +5 -1
- package/es/ele-printer/util.d.ts +6 -0
- package/es/ele-printer/util.js +11 -3
- package/es/ele-pro-layout/components/pro-header.js +8 -3
- package/es/ele-pro-layout/components/pro-sidebar.js +6 -5
- package/es/ele-pro-layout/components/pro-sidebox.js +6 -5
- package/es/ele-pro-layout/components/tab-dropdown.js +4 -3
- package/es/ele-pro-layout/index.d.ts +20 -22
- package/es/ele-pro-layout/index.js +52 -5
- package/es/ele-pro-layout/props.js +1 -1
- package/es/ele-pro-layout/style/layout-mobile.scss +4 -0
- package/es/ele-pro-layout/style/sidebar.scss +7 -0
- package/es/ele-pro-table/index.d.ts +11 -11
- package/es/ele-pro-table/props.d.ts +5 -5
- package/es/ele-tabs/components/tab-title.js +6 -5
- package/es/ele-tabs/style/index.scss +1 -1
- package/es/ele-virtual-table/props.d.ts +5 -5
- package/es/ele-watermark/index.js +1 -0
- package/es/style/themes/default.scss +2 -2
- package/lib/ele-app/types/components.d.ts +2 -2
- package/lib/ele-app/types/index.d.ts +2 -0
- package/lib/ele-config-provider/index.d.ts +2 -2
- package/lib/ele-config-provider/index.js +6 -6
- package/lib/ele-config-provider/props.d.ts +2 -2
- package/lib/ele-config-provider/props.js +3 -3
- package/lib/ele-config-provider/receiver.d.ts +3 -3
- package/lib/ele-config-provider/receiver.js +2 -2
- package/lib/ele-config-provider/types/index.d.ts +5 -7
- package/lib/ele-data-table/index.d.ts +11 -13
- package/lib/ele-data-table/index.js +1 -1
- package/lib/ele-data-table/props.d.ts +5 -5
- package/lib/ele-data-table/style/index.scss +6 -1
- package/lib/ele-file-list/components/file-grid-item.js +5 -3
- package/lib/ele-file-list/components/file-grid.d.ts +1 -0
- package/lib/ele-file-list/components/file-grid.js +8 -1
- package/lib/ele-file-list/components/file-table-item.js +5 -3
- package/lib/ele-file-list/components/file-table.d.ts +1 -0
- package/lib/ele-file-list/components/file-table.js +8 -1
- package/lib/ele-modal/index.d.ts +1 -1
- package/lib/ele-modal/index.js +36 -12
- package/lib/ele-popconfirm/index.d.ts +8 -11
- package/lib/ele-popconfirm/props.d.ts +5 -6
- package/lib/ele-popover/index.d.ts +12 -15
- package/lib/ele-popover/props.d.ts +4 -5
- package/lib/ele-popover/props.js +1 -1
- package/lib/ele-printer/index.d.ts +5 -3
- package/lib/ele-printer/index.js +3 -2
- package/lib/ele-printer/props.d.ts +4 -2
- package/lib/ele-printer/props.js +3 -1
- package/lib/ele-printer/types/index.d.ts +5 -1
- package/lib/ele-printer/util.d.ts +6 -0
- package/lib/ele-printer/util.js +11 -3
- package/lib/ele-pro-layout/components/pro-header.js +8 -3
- package/lib/ele-pro-layout/components/pro-sidebar.js +5 -4
- package/lib/ele-pro-layout/components/pro-sidebox.js +5 -4
- package/lib/ele-pro-layout/components/tab-dropdown.js +4 -3
- package/lib/ele-pro-layout/index.d.ts +20 -22
- package/lib/ele-pro-layout/index.js +52 -5
- package/lib/ele-pro-layout/props.js +1 -1
- package/lib/ele-pro-layout/style/layout-mobile.scss +4 -0
- package/lib/ele-pro-layout/style/sidebar.scss +7 -0
- package/lib/ele-pro-table/index.d.ts +11 -11
- package/lib/ele-pro-table/props.d.ts +5 -5
- package/lib/ele-tabs/components/tab-title.js +6 -5
- package/lib/ele-tabs/style/index.scss +1 -1
- package/lib/ele-virtual-table/props.d.ts +5 -5
- package/lib/ele-watermark/index.js +1 -0
- package/lib/style/themes/default.scss +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -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 {
|
|
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():
|
|
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
|
|
2
|
-
import { PROVIDE_KEY as I, LAYOUT_KEY as
|
|
3
|
-
import { LAYOUT_KEY as
|
|
4
|
-
import
|
|
5
|
-
const
|
|
6
|
-
function
|
|
7
|
-
return
|
|
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
|
|
10
|
-
const
|
|
11
|
-
return
|
|
9
|
+
function J(u) {
|
|
10
|
+
const t = P();
|
|
11
|
+
return S(() => t[u] ?? {});
|
|
12
12
|
}
|
|
13
|
-
function
|
|
14
|
-
const
|
|
15
|
-
return { lang:
|
|
16
|
-
const
|
|
17
|
-
return
|
|
18
|
-
}), globalConfig:
|
|
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
|
|
21
|
-
const
|
|
22
|
-
const
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
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
|
|
28
|
+
var c;
|
|
34
29
|
if (typeof r != "string" || !r)
|
|
35
|
-
return
|
|
30
|
+
return e.value = !1, h();
|
|
36
31
|
try {
|
|
37
|
-
const
|
|
38
|
-
if (
|
|
39
|
-
return
|
|
40
|
-
const { version: l, expiration:
|
|
41
|
-
if (l && l !==
|
|
42
|
-
return
|
|
43
|
-
if (
|
|
44
|
-
return
|
|
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
|
|
47
|
-
if (!
|
|
48
|
-
return
|
|
49
|
-
if (
|
|
50
|
-
const
|
|
51
|
-
for (let
|
|
52
|
-
if (m
|
|
53
|
-
return
|
|
54
|
-
if (
|
|
55
|
-
return
|
|
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 (
|
|
59
|
-
return console.error(
|
|
53
|
+
} catch (o) {
|
|
54
|
+
return e.value = !1, console.error(o), h("");
|
|
60
55
|
}
|
|
61
|
-
|
|
56
|
+
e.value = !0;
|
|
62
57
|
},
|
|
63
58
|
{ immediate: !0 }
|
|
64
|
-
), { authenticated:
|
|
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
|
|
67
|
-
const
|
|
68
|
-
const i = ((
|
|
69
|
-
const
|
|
70
|
-
if (
|
|
71
|
-
return
|
|
72
|
-
const
|
|
73
|
-
for (let
|
|
74
|
-
|
|
75
|
-
return
|
|
76
|
-
})(E.split(""),
|
|
77
|
-
let
|
|
78
|
-
for (;
|
|
79
|
-
let
|
|
80
|
-
|
|
81
|
-
const
|
|
82
|
-
|
|
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
|
|
85
|
-
},
|
|
86
|
-
let
|
|
87
|
-
for (;
|
|
88
|
-
|
|
89
|
-
return
|
|
90
|
-
let
|
|
91
|
-
for (;
|
|
92
|
-
i = E.charCodeAt(
|
|
93
|
-
(i & 15) << 12 | (
|
|
94
|
-
),
|
|
95
|
-
return
|
|
96
|
-
})(
|
|
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
|
|
99
|
-
return
|
|
100
|
-
|
|
101
|
-
|
|
102
|
+
function Z(u) {
|
|
103
|
+
return j(
|
|
104
|
+
K,
|
|
105
|
+
u ?? x({})
|
|
102
106
|
);
|
|
103
107
|
}
|
|
104
|
-
function
|
|
105
|
-
const
|
|
106
|
-
return
|
|
107
|
-
var
|
|
108
|
-
return
|
|
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
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
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
|
|
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:
|
|
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:
|
|
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
|
-
|
|
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({
|
|
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:
|
|
131
|
+
contextMenus: _ctx.getContextMenus(item),
|
|
125
132
|
contextMenuProps: _ctx.contextMenuProps,
|
|
126
133
|
onClick: _ctx.onItemClick,
|
|
127
134
|
onCheckChange: _ctx.onItemCheckChange,
|