ele-admin-plus 1.1.3-beta.1 → 1.1.3
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/es/ele-app/style/common.scss +4 -0
- package/es/ele-app/style/overwrite.scss +10 -3
- package/es/ele-app/types/index.d.ts +2 -1
- package/es/ele-bar-code/index.d.ts +4 -26
- package/es/ele-bar-code/types/index.d.ts +5 -0
- package/es/ele-basic-select/index.d.ts +1 -1
- package/es/ele-check-card/index.d.ts +1 -1
- package/es/ele-config-provider/receiver.js +57 -57
- package/es/ele-copyable/index.d.ts +2 -1137
- package/es/ele-copyable/types/index.d.ts +5 -0
- package/es/ele-drawer/index.d.ts +22 -22
- package/es/ele-drawer/props.d.ts +7 -7
- package/es/ele-ellipsis/index.d.ts +2 -128
- package/es/ele-ellipsis/props.d.ts +0 -5
- package/es/ele-ellipsis/props.js +0 -4
- package/es/ele-ellipsis/types/index.d.ts +5 -0
- package/es/ele-file-list/components/file-grid.d.ts +2 -153
- package/es/ele-file-list/components/file-grid.js +1 -1
- package/es/ele-file-list/components/file-table.d.ts +2 -1
- package/es/ele-file-list/components/file-table.js +1 -1
- package/es/ele-file-list/props.d.ts +3 -3
- package/es/ele-map-picker/index.d.ts +1 -1
- package/es/ele-modal/index.d.ts +18 -18
- package/es/ele-modal/props.d.ts +5 -8
- package/es/ele-popconfirm/index.d.ts +2 -188
- package/es/ele-popconfirm/props.d.ts +1 -94
- package/es/ele-popover/index.d.ts +4 -261
- package/es/ele-popover/index.js +6 -4
- package/es/ele-popover/props.d.ts +1 -94
- package/es/ele-popover/props.js +1 -0
- package/es/ele-printer/util.js +1 -1
- package/es/ele-pro-layout/index.d.ts +1 -1
- package/es/ele-pro-table/index.d.ts +1 -159
- package/es/ele-table-select/index.d.ts +2 -2
- package/es/ele-tabs/index.d.ts +2 -135
- package/es/ele-tabs/index.js +2 -2
- package/es/ele-tabs/props.d.ts +6 -1
- package/es/ele-tooltip/index.d.ts +6 -449
- package/es/ele-tooltip/index.js +6 -4
- package/es/ele-tooltip/props.d.ts +2 -188
- package/es/ele-tooltip/props.js +6 -1
- package/lib/ele-app/style/common.scss +4 -0
- package/lib/ele-app/style/overwrite.scss +10 -3
- package/lib/ele-app/types/index.d.ts +2 -1
- package/lib/ele-bar-code/index.d.ts +4 -26
- package/lib/ele-bar-code/types/index.d.ts +5 -0
- package/lib/ele-basic-select/index.d.ts +1 -1
- package/lib/ele-check-card/index.d.ts +1 -1
- package/lib/ele-config-provider/receiver.js +2 -2
- package/lib/ele-copyable/index.d.ts +2 -1137
- package/lib/ele-copyable/types/index.d.ts +5 -0
- package/lib/ele-drawer/index.d.ts +22 -22
- package/lib/ele-drawer/props.d.ts +7 -7
- package/lib/ele-ellipsis/index.d.ts +2 -128
- package/lib/ele-ellipsis/props.d.ts +0 -5
- package/lib/ele-ellipsis/props.js +0 -4
- package/lib/ele-ellipsis/types/index.d.ts +5 -0
- package/lib/ele-file-list/components/file-grid.d.ts +2 -153
- package/lib/ele-file-list/components/file-grid.js +1 -1
- package/lib/ele-file-list/components/file-table.d.ts +2 -1
- package/lib/ele-file-list/components/file-table.js +1 -1
- package/lib/ele-file-list/props.d.ts +3 -3
- package/lib/ele-map-picker/index.d.ts +1 -1
- package/lib/ele-modal/index.d.ts +18 -18
- package/lib/ele-modal/props.d.ts +5 -8
- package/lib/ele-popconfirm/index.d.ts +2 -188
- package/lib/ele-popconfirm/props.d.ts +1 -94
- package/lib/ele-popover/index.d.ts +4 -261
- package/lib/ele-popover/index.js +6 -4
- package/lib/ele-popover/props.d.ts +1 -94
- package/lib/ele-popover/props.js +1 -0
- package/lib/ele-printer/util.js +1 -1
- package/lib/ele-pro-layout/index.d.ts +1 -1
- package/lib/ele-pro-table/index.d.ts +1 -159
- package/lib/ele-table-select/index.d.ts +2 -2
- package/lib/ele-tabs/index.d.ts +2 -135
- package/lib/ele-tabs/index.js +2 -2
- package/lib/ele-tabs/props.d.ts +6 -1
- package/lib/ele-tooltip/index.d.ts +6 -449
- package/lib/ele-tooltip/index.js +6 -4
- package/lib/ele-tooltip/props.d.ts +2 -188
- package/lib/ele-tooltip/props.js +6 -1
- package/package.json +7 -7
|
@@ -153,6 +153,7 @@
|
|
|
153
153
|
line-height: eleVar('cascader', 'item-height');
|
|
154
154
|
padding: eleVar('cascader', 'item-padding');
|
|
155
155
|
border-radius: eleVar('cascader', 'item-radius');
|
|
156
|
+
transition: (color $ele-transition, background-color $ele-transition);
|
|
156
157
|
|
|
157
158
|
& > .el-checkbox {
|
|
158
159
|
margin-right: 8px;
|
|
@@ -802,8 +803,9 @@ body .el-color-picker .el-color-picker__empty {
|
|
|
802
803
|
flex-shrink: 0;
|
|
803
804
|
}
|
|
804
805
|
|
|
805
|
-
.el-date-picker.has-sidebar,
|
|
806
|
+
.el-picker__popper .el-date-picker.has-sidebar,
|
|
806
807
|
.el-picker__popper .el-date-range-picker,
|
|
808
|
+
.el-picker__popper .el-date-range-picker.has-sidebar,
|
|
807
809
|
.el-picker__popper .el-date-picker.has-sidebar.has-time {
|
|
808
810
|
width: auto;
|
|
809
811
|
}
|
|
@@ -1083,8 +1085,12 @@ body .el-color-picker .el-color-picker__empty {
|
|
|
1083
1085
|
box-sizing: border-box;
|
|
1084
1086
|
}
|
|
1085
1087
|
|
|
1086
|
-
&.is-left
|
|
1087
|
-
|
|
1088
|
+
&.is-left {
|
|
1089
|
+
border: none;
|
|
1090
|
+
|
|
1091
|
+
table {
|
|
1092
|
+
box-shadow: 0.8px 0 0 0 eleVar('datepicker', 'inner-border');
|
|
1093
|
+
}
|
|
1088
1094
|
}
|
|
1089
1095
|
}
|
|
1090
1096
|
|
|
@@ -1395,6 +1401,7 @@ body .el-color-picker .el-color-picker__empty {
|
|
|
1395
1401
|
|
|
1396
1402
|
&.confirm {
|
|
1397
1403
|
font-weight: normal;
|
|
1404
|
+
color: elVar('text-color', 'primary');
|
|
1398
1405
|
border: 1px solid elVar('border-color');
|
|
1399
1406
|
|
|
1400
1407
|
&:hover {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ExtractPropTypes, CSSProperties } from 'vue';
|
|
2
|
-
import type { IconProps, RowProps, ColProps, BreadcrumbProps, BreadcrumbItemProps, InputProps, TagProps, AvatarProps, PopoverProps, ElTooltipProps as TooltipProps, PopconfirmProps, AlertProps, ButtonProps, CardProps, EmptyProps, ProgressProps, MenuProps, MenuItemProps, SubMenuProps, MenuItemGroupProps, BadgeProps, DialogProps, StepProps, TabsProps, TabPaneProps, TableProps, ElPopover, ElTooltip, ElBreadcrumb, ElDrawer, ElInput, ElDropdown, ElMenu, ElSubMenu, ElDialog, ElTable, ElTabs, ElImage, ElScrollbar } from 'element-plus';
|
|
2
|
+
import type { IconProps, RowProps, ColProps, BreadcrumbProps, BreadcrumbItemProps, InputProps, TagProps, AvatarProps, PopoverProps, ElTooltipProps as TooltipProps, PopconfirmProps, AlertProps, ButtonProps, CardProps, EmptyProps, ProgressProps, MenuProps, MenuItemProps, SubMenuProps, MenuItemGroupProps, BadgeProps, DialogProps, StepProps, TabsProps, TabPaneProps, TableProps, ElPopper, ElPopover, ElTooltip, ElBreadcrumb, ElDrawer, ElInput, ElDropdown, ElMenu, ElSubMenu, ElDialog, ElTable, ElTabs, ElImage, ElScrollbar } from 'element-plus';
|
|
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';
|
|
@@ -63,6 +63,7 @@ export type ElColumnProps = Partial<ExtractPropTypes<typeof columnProps>>;
|
|
|
63
63
|
/**
|
|
64
64
|
* ElementPlus 组件实例
|
|
65
65
|
*/
|
|
66
|
+
export type ElPopperInstance = InstanceType<typeof ElPopper> | null;
|
|
66
67
|
export type ElPopoverInstance = InstanceType<typeof ElPopover> | null;
|
|
67
68
|
export type ElTooltipInstance = InstanceType<typeof ElTooltip> | null;
|
|
68
69
|
export type ElBreadcrumbInstance = InstanceType<typeof ElBreadcrumb> | null;
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
+
import type { Ref } from 'vue';
|
|
1
2
|
import JsBarCode from 'jsbarcode';
|
|
3
|
+
import type { JsBarCodeInstance } from './types';
|
|
2
4
|
declare const _default: import("vue").DefineComponent<{
|
|
3
5
|
value: StringConstructor;
|
|
4
6
|
tag: {
|
|
@@ -7,32 +9,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
7
9
|
};
|
|
8
10
|
options: import("vue").PropType<JsBarCode.Options>;
|
|
9
11
|
}, {
|
|
10
|
-
rootRef:
|
|
11
|
-
instance:
|
|
12
|
-
options: (options: JsBarCode.Options) => JsBarCode.api;
|
|
13
|
-
blank: (size: number) => JsBarCode.api;
|
|
14
|
-
init: (options?: JsBarCode.Options | undefined) => void;
|
|
15
|
-
render: () => void;
|
|
16
|
-
CODE39: (value: string, options?: JsBarCode.BaseOptions | undefined) => JsBarCode.api;
|
|
17
|
-
CODE128: (value: string, options?: JsBarCode.Code128Options | undefined) => JsBarCode.api;
|
|
18
|
-
CODE128A: (value: string, options?: JsBarCode.Code128Options | undefined) => JsBarCode.api;
|
|
19
|
-
CODE128B: (value: string, options?: JsBarCode.Code128Options | undefined) => JsBarCode.api;
|
|
20
|
-
CODE128C: (value: string, options?: JsBarCode.Code128Options | undefined) => JsBarCode.api;
|
|
21
|
-
EAN13: (value: string, options?: JsBarCode.Ean13Options | undefined) => JsBarCode.api;
|
|
22
|
-
EAN8: (value: string, options?: JsBarCode.Ean8Options | undefined) => JsBarCode.api;
|
|
23
|
-
EAN5: (value: string, options?: JsBarCode.BaseOptions | undefined) => JsBarCode.api;
|
|
24
|
-
EAN2: (value: string, options?: JsBarCode.BaseOptions | undefined) => JsBarCode.api;
|
|
25
|
-
UPC: (value: string, options?: JsBarCode.BaseOptions | undefined) => JsBarCode.api;
|
|
26
|
-
ITF14: (value: string, options?: JsBarCode.BaseOptions | undefined) => JsBarCode.api;
|
|
27
|
-
ITF: (value: string, options?: JsBarCode.BaseOptions | undefined) => JsBarCode.api;
|
|
28
|
-
MSI: (value: string, options?: JsBarCode.BaseOptions | undefined) => JsBarCode.api;
|
|
29
|
-
MSI10: (value: string, options?: JsBarCode.BaseOptions | undefined) => JsBarCode.api;
|
|
30
|
-
MSI11: (value: string, options?: JsBarCode.BaseOptions | undefined) => JsBarCode.api;
|
|
31
|
-
MSI1010: (value: string, options?: JsBarCode.BaseOptions | undefined) => JsBarCode.api;
|
|
32
|
-
MSI1110: (value: string, options?: JsBarCode.BaseOptions | undefined) => JsBarCode.api;
|
|
33
|
-
pharmacode: (value: string, options?: JsBarCode.BaseOptions | undefined) => JsBarCode.api;
|
|
34
|
-
codabar: (value: string, options?: JsBarCode.BaseOptions | undefined) => JsBarCode.api;
|
|
35
|
-
} | null>;
|
|
12
|
+
rootRef: Ref<HTMLElement | null>;
|
|
13
|
+
instance: Ref<JsBarCodeInstance>;
|
|
36
14
|
render: () => void;
|
|
37
15
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
38
16
|
value: StringConstructor;
|
|
@@ -66,8 +66,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
66
66
|
"onUpdate:visible"?: ((_visible: boolean) => any) | undefined;
|
|
67
67
|
onFocus?: ((_e: FocusEvent) => any) | undefined;
|
|
68
68
|
onBlur?: ((_e: FocusEvent) => any) | undefined;
|
|
69
|
-
onRemoveTag?: ((_item: SelectedItem) => any) | undefined;
|
|
70
69
|
onClear?: (() => any) | undefined;
|
|
70
|
+
onRemoveTag?: ((_item: SelectedItem) => any) | undefined;
|
|
71
71
|
}, {
|
|
72
72
|
disabled: boolean;
|
|
73
73
|
teleported: boolean;
|
|
@@ -44,8 +44,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
44
44
|
onChange?: ((_value: CheckedValue) => any) | undefined;
|
|
45
45
|
}, {
|
|
46
46
|
disabled: boolean;
|
|
47
|
+
multiple: boolean;
|
|
47
48
|
bordered: boolean;
|
|
48
49
|
arrow: boolean;
|
|
49
|
-
multiple: boolean;
|
|
50
50
|
}, {}>;
|
|
51
51
|
export default _default;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { inject as L, computed as
|
|
1
|
+
import { inject as L, computed as v, ref as P, watch as R, unref as T } from "vue";
|
|
2
2
|
import { PROVIDE_KEY as I, LAYOUT_KEY as N } from "./props";
|
|
3
3
|
import { LAYOUT_KEY as W } from "./props";
|
|
4
4
|
import _ from "../lang/zh_CN";
|
|
@@ -7,56 +7,56 @@ function Y() {
|
|
|
7
7
|
return L(I, {});
|
|
8
8
|
}
|
|
9
9
|
function H(t) {
|
|
10
|
-
const
|
|
11
|
-
return
|
|
10
|
+
const o = Y();
|
|
11
|
+
return v(() => o[t] ?? {});
|
|
12
12
|
}
|
|
13
|
-
function J(t,
|
|
13
|
+
function J(t, o) {
|
|
14
14
|
const n = Y();
|
|
15
|
-
return { lang:
|
|
16
|
-
const
|
|
17
|
-
return t ? Object.assign({},
|
|
15
|
+
return { lang: v(() => {
|
|
16
|
+
const r = n.locale ?? _;
|
|
17
|
+
return t ? Object.assign({}, r[t] ?? {}, o == null ? void 0 : o.locale) : r;
|
|
18
18
|
}), globalConfig: n };
|
|
19
19
|
}
|
|
20
20
|
function k() {
|
|
21
|
-
const t = Y(),
|
|
21
|
+
const t = Y(), o = v(() => t.license), n = P(!1), s = (r, g, u, l) => {
|
|
22
22
|
const e = [new Array(60).join("*")];
|
|
23
|
-
if (e.push(K),
|
|
24
|
-
const f = new Date(
|
|
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: ${B};`), typeof g == "number") {
|
|
24
|
+
const f = new Date(g * 1e3).toLocaleString();
|
|
25
25
|
e.push(`\u6388\u6743\u5DF2\u5931\u6548, \u5230\u671F\u65F6\u95F4: ${f};`);
|
|
26
26
|
}
|
|
27
|
-
|
|
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
28
|
`)), n.value = !1;
|
|
29
29
|
};
|
|
30
30
|
return R(
|
|
31
|
-
|
|
32
|
-
(
|
|
33
|
-
var
|
|
34
|
-
if (typeof
|
|
35
|
-
return
|
|
31
|
+
o,
|
|
32
|
+
(r) => {
|
|
33
|
+
var g;
|
|
34
|
+
if (typeof r != "string" || !r)
|
|
35
|
+
return s();
|
|
36
36
|
try {
|
|
37
|
-
const
|
|
38
|
-
if (
|
|
39
|
-
return
|
|
40
|
-
const { version: l, expiration: e, domain: f } =
|
|
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
41
|
if (l && l !== B)
|
|
42
|
-
return
|
|
42
|
+
return s(l);
|
|
43
43
|
if (e && e < $)
|
|
44
|
-
return
|
|
44
|
+
return s(void 0, e);
|
|
45
45
|
if (f) {
|
|
46
|
-
const a = (
|
|
46
|
+
const a = (g = window == null ? void 0 : window.location) == null ? void 0 : g.hostname;
|
|
47
47
|
if (!a)
|
|
48
|
-
return
|
|
48
|
+
return s(void 0, void 0, f, "");
|
|
49
49
|
if (a !== "localhost" && a !== "127.0.0.1") {
|
|
50
|
-
const
|
|
51
|
-
for (let d =
|
|
52
|
-
if (
|
|
53
|
-
return
|
|
54
|
-
if (
|
|
55
|
-
return
|
|
50
|
+
const m = f.split("."), E = a.split(".");
|
|
51
|
+
for (let d = m.length - 1; d >= 0; d--)
|
|
52
|
+
if (m[d] !== E[d])
|
|
53
|
+
return s(void 0, void 0, f, a);
|
|
54
|
+
if (E.length > m.length && E[E.length - m.length - 1] !== "www")
|
|
55
|
+
return s(void 0, void 0, f, a);
|
|
56
56
|
}
|
|
57
57
|
}
|
|
58
|
-
} catch (
|
|
59
|
-
return console.error(
|
|
58
|
+
} catch (u) {
|
|
59
|
+
return console.error(u), s();
|
|
60
60
|
}
|
|
61
61
|
n.value = !0;
|
|
62
62
|
},
|
|
@@ -64,33 +64,33 @@ function k() {
|
|
|
64
64
|
), { authenticated: n, globalConfig: t };
|
|
65
65
|
}
|
|
66
66
|
function M(t) {
|
|
67
|
-
const
|
|
68
|
-
const
|
|
69
|
-
const x = c.length -
|
|
67
|
+
const o = (F, D, h) => {
|
|
68
|
+
const i = ((c, O) => {
|
|
69
|
+
const x = c.length - O;
|
|
70
70
|
if (x <= 0)
|
|
71
71
|
return c;
|
|
72
72
|
const j = new Array(c.length);
|
|
73
|
-
for (let
|
|
74
|
-
|
|
73
|
+
for (let A = 0; A < c.length; A++)
|
|
74
|
+
A < O ? j[A] = c[x + A] : j[A] = c[A - O];
|
|
75
75
|
return j;
|
|
76
|
-
})(
|
|
77
|
-
let
|
|
78
|
-
for (;
|
|
79
|
-
let c =
|
|
80
|
-
c >
|
|
81
|
-
const
|
|
82
|
-
|
|
76
|
+
})(F.split(""), h).join(""), p = [];
|
|
77
|
+
let C = 0;
|
|
78
|
+
for (; C < i.length; ) {
|
|
79
|
+
let c = C + D;
|
|
80
|
+
c > i.length && (c = i.length);
|
|
81
|
+
const O = i.substring(C, c);
|
|
82
|
+
p.push(O.split("").reverse().join("")), C = c;
|
|
83
83
|
}
|
|
84
|
-
return
|
|
85
|
-
}, n = t.indexOf("="),
|
|
86
|
-
let e = "", f, a,
|
|
87
|
-
for (;
|
|
88
|
-
|
|
89
|
-
return e = ((
|
|
90
|
-
let D = "", h = 0,
|
|
91
|
-
for (; h <
|
|
92
|
-
|
|
93
|
-
(
|
|
84
|
+
return p.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, E, d, S, b, w = 0;
|
|
87
|
+
for (; w < u.length; )
|
|
88
|
+
E = l.indexOf(u.charAt(w++)), d = l.indexOf(u.charAt(w++)), S = l.indexOf(u.charAt(w++)), b = l.indexOf(u.charAt(w++)), f = E << 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 = ((F) => {
|
|
90
|
+
let D = "", h = 0, i = 0, p = 0, C = 0;
|
|
91
|
+
for (; h < F.length; )
|
|
92
|
+
i = F.charCodeAt(h), i < 128 ? (D += String.fromCharCode(i), h++) : i > 191 && i < 224 ? (p = F.charCodeAt(h + 1), D += String.fromCharCode((i & 31) << 6 | p & 63), h += 2) : (p = F.charCodeAt(h + 1), C = F.charCodeAt(h + 2), D += String.fromCharCode(
|
|
93
|
+
(i & 15) << 12 | (p & 63) << 6 | C & 63
|
|
94
94
|
), h += 3);
|
|
95
95
|
return D;
|
|
96
96
|
})(e), e;
|
|
@@ -102,10 +102,10 @@ function V(t) {
|
|
|
102
102
|
);
|
|
103
103
|
}
|
|
104
104
|
function q(t) {
|
|
105
|
-
const
|
|
106
|
-
return
|
|
105
|
+
const o = V();
|
|
106
|
+
return v(() => {
|
|
107
107
|
var n;
|
|
108
|
-
return t.responsive ?? ((n = T(
|
|
108
|
+
return t.responsive ?? ((n = T(o)) == null ? void 0 : n.responsive) ?? !0;
|
|
109
109
|
});
|
|
110
110
|
}
|
|
111
111
|
export {
|