ele-admin-plus 1.1.4-beta.1 → 1.1.4-beta.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-alert/style/index.scss +4 -1
- package/es/ele-app/style/css-var.scss +52 -0
- package/es/ele-app/style/overwrite.scss +65 -0
- package/es/ele-app/style/scrollbar.scss +1 -29
- package/es/ele-count-up/index.d.ts +2 -2
- package/es/ele-count-up/index.js +2 -1
- package/es/ele-count-up/props.d.ts +1 -1
- package/es/ele-modal/types/index.d.ts +9 -0
- package/es/ele-modal/util.js +45 -32
- package/es/ele-printer/index.d.ts +1 -0
- package/es/ele-printer/index.js +11 -4
- package/es/ele-printer/style/index.scss +13 -10
- package/es/ele-pro-layout/index.js +5 -5
- package/es/ele-pro-layout/style/layout-mobile.scss +1 -0
- package/es/ele-tabs/index.js +1 -0
- package/es/ele-xg-player/index.js +1 -0
- package/es/style/themes/default.scss +28 -0
- package/es/style/themes/rounded.scss +4 -0
- package/lib/ele-alert/style/index.scss +4 -1
- package/lib/ele-app/style/css-var.scss +52 -0
- package/lib/ele-app/style/overwrite.scss +65 -0
- package/lib/ele-app/style/scrollbar.scss +1 -29
- package/lib/ele-count-up/index.d.ts +2 -2
- package/lib/ele-count-up/index.js +2 -1
- package/lib/ele-count-up/props.d.ts +1 -1
- package/lib/ele-modal/types/index.d.ts +9 -0
- package/lib/ele-modal/util.js +45 -32
- package/lib/ele-printer/index.d.ts +1 -0
- package/lib/ele-printer/index.js +10 -3
- package/lib/ele-printer/style/index.scss +13 -10
- package/lib/ele-pro-layout/index.js +5 -5
- package/lib/ele-pro-layout/style/layout-mobile.scss +1 -0
- package/lib/ele-tabs/index.js +1 -0
- package/lib/ele-xg-player/index.js +1 -0
- package/lib/style/themes/default.scss +28 -0
- package/lib/style/themes/rounded.scss +4 -0
- package/package.json +5 -4
- package/typings/global.d.ts +52 -52
|
@@ -53,6 +53,11 @@
|
|
|
53
53
|
@include set-ele-var('message-box', $var);
|
|
54
54
|
}
|
|
55
55
|
|
|
56
|
+
// Notification
|
|
57
|
+
.el-notification {
|
|
58
|
+
@include set-ele-var('notification', $var);
|
|
59
|
+
}
|
|
60
|
+
|
|
56
61
|
// Radio
|
|
57
62
|
.el-radio {
|
|
58
63
|
@include set-ele-var('radio', $var);
|
|
@@ -85,3 +90,50 @@
|
|
|
85
90
|
@include set-ele-var('timepicker', $var);
|
|
86
91
|
}
|
|
87
92
|
}
|
|
93
|
+
|
|
94
|
+
// 美化滚动条样式
|
|
95
|
+
@mixin scrollbar-style() {
|
|
96
|
+
::-webkit-scrollbar {
|
|
97
|
+
width: eleVar('scrollbar', 'size');
|
|
98
|
+
height: eleVar('scrollbar', 'size');
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
::-webkit-scrollbar-thumb {
|
|
102
|
+
border: eleVar('scrollbar', 'padding') solid transparent;
|
|
103
|
+
border-radius: eleVar('scrollbar', 'radius');
|
|
104
|
+
background-color: eleVar('scrollbar', 'color');
|
|
105
|
+
background-clip: padding-box;
|
|
106
|
+
|
|
107
|
+
&:hover {
|
|
108
|
+
background-color: eleVar('scrollbar', 'hover-color');
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
::-webkit-scrollbar-track {
|
|
113
|
+
background: eleVar('scrollbar', 'bg');
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
::-webkit-scrollbar-corner {
|
|
117
|
+
background: transparent;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
// 火狐浏览器
|
|
121
|
+
* {
|
|
122
|
+
scrollbar-width: thin;
|
|
123
|
+
scrollbar-color: eleVar('scrollbar', 'color') eleVar('scrollbar', 'bg');
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
@mixin set-scrollbar-style($selector) {
|
|
128
|
+
@if $selector == '' {
|
|
129
|
+
@include scrollbar-style();
|
|
130
|
+
} @else if $selector == 'pc' {
|
|
131
|
+
@media (hover: hover) and (pointer: fine) {
|
|
132
|
+
@include scrollbar-style();
|
|
133
|
+
}
|
|
134
|
+
} @else if $selector != 'never' {
|
|
135
|
+
#{$selector} {
|
|
136
|
+
@include scrollbar-style();
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
}
|
|
@@ -385,6 +385,71 @@
|
|
|
385
385
|
|
|
386
386
|
body .el-overlay.is-message-box > .el-overlay-message-box {
|
|
387
387
|
overflow-x: hidden;
|
|
388
|
+
scrollbar-width: none;
|
|
389
|
+
|
|
390
|
+
&::-webkit-scrollbar {
|
|
391
|
+
display: none;
|
|
392
|
+
}
|
|
393
|
+
}
|
|
394
|
+
|
|
395
|
+
/* Notification */
|
|
396
|
+
body .el-notification {
|
|
397
|
+
width: eleVar('notification', 'width');
|
|
398
|
+
max-width: calc(100vw - 48px);
|
|
399
|
+
padding: eleVar('notification', 'padding');
|
|
400
|
+
border: eleVar('notification', 'border');
|
|
401
|
+
border-radius: eleVar('notification', 'radius');
|
|
402
|
+
box-shadow: eleVar('notification', 'shadow');
|
|
403
|
+
|
|
404
|
+
.el-notification__icon {
|
|
405
|
+
width: eleVar('notification', 'icon-size');
|
|
406
|
+
height: eleVar('notification', 'icon-size');
|
|
407
|
+
font-size: eleVar('notification', 'icon-size');
|
|
408
|
+
margin: eleVar('notification', 'icon-margin');
|
|
409
|
+
}
|
|
410
|
+
}
|
|
411
|
+
|
|
412
|
+
.el-notification .el-notification__icon.el-notification--info {
|
|
413
|
+
color: elVar('color-primary');
|
|
414
|
+
}
|
|
415
|
+
|
|
416
|
+
.el-notification .el-notification__group {
|
|
417
|
+
margin: 0;
|
|
418
|
+
|
|
419
|
+
.el-notification__closeBtn {
|
|
420
|
+
top: 0;
|
|
421
|
+
right: 0;
|
|
422
|
+
width: eleVar('notification', 'close-size');
|
|
423
|
+
height: eleVar('notification', 'close-size');
|
|
424
|
+
line-height: eleVar('notification', 'close-size');
|
|
425
|
+
color: eleVar('notification', 'close-color');
|
|
426
|
+
font-size: eleVar('notification', 'close-font-size');
|
|
427
|
+
margin: eleVar('notification', 'close-margin');
|
|
428
|
+
border-radius: eleVar('notification', 'close-radius');
|
|
429
|
+
transition: (color $ele-transition, background-color $ele-transition);
|
|
430
|
+
|
|
431
|
+
&:hover {
|
|
432
|
+
color: eleVar('notification', 'close-hover-color');
|
|
433
|
+
background: eleVar('notification', 'close-hover-bg');
|
|
434
|
+
}
|
|
435
|
+
}
|
|
436
|
+
|
|
437
|
+
.el-notification__title {
|
|
438
|
+
color: eleVar('notification', 'title-color');
|
|
439
|
+
font-size: eleVar('notification', 'title-size');
|
|
440
|
+
font-weight: eleVar('notification', 'title-font-weight');
|
|
441
|
+
line-height: eleVar('notification', 'title-line-height');
|
|
442
|
+
padding: eleVar('notification', 'title-padding');
|
|
443
|
+
box-sizing: border-box;
|
|
444
|
+
}
|
|
445
|
+
|
|
446
|
+
.el-notification__content {
|
|
447
|
+
color: eleVar('notification', 'color');
|
|
448
|
+
font-size: eleVar('notification', 'size');
|
|
449
|
+
margin-top: eleVar('notification', 'body-margin');
|
|
450
|
+
line-height: inherit;
|
|
451
|
+
text-align: left;
|
|
452
|
+
}
|
|
388
453
|
}
|
|
389
454
|
|
|
390
455
|
/* Radio */
|
|
@@ -6,32 +6,4 @@
|
|
|
6
6
|
@include set-scrollbar-var($ele);
|
|
7
7
|
}
|
|
8
8
|
|
|
9
|
-
|
|
10
|
-
width: eleVar('scrollbar', 'size');
|
|
11
|
-
height: eleVar('scrollbar', 'size');
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
::-webkit-scrollbar-thumb {
|
|
15
|
-
border: eleVar('scrollbar', 'padding') solid transparent;
|
|
16
|
-
border-radius: eleVar('scrollbar', 'radius');
|
|
17
|
-
background-color: eleVar('scrollbar', 'color');
|
|
18
|
-
background-clip: padding-box;
|
|
19
|
-
|
|
20
|
-
&:hover {
|
|
21
|
-
background-color: eleVar('scrollbar', 'hover-color');
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
::-webkit-scrollbar-track {
|
|
26
|
-
background: eleVar('scrollbar', 'bg');
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
::-webkit-scrollbar-corner {
|
|
30
|
-
background: transparent;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
// 火狐浏览器
|
|
34
|
-
* {
|
|
35
|
-
scrollbar-width: thin;
|
|
36
|
-
scrollbar-color: eleVar('scrollbar', 'color') eleVar('scrollbar', 'bg');
|
|
37
|
-
}
|
|
9
|
+
@include set-scrollbar-style($scrollbar-selector);
|
|
@@ -17,7 +17,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
17
17
|
reset: () => void;
|
|
18
18
|
update: (newEndVal?: string | number) => void;
|
|
19
19
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
20
|
-
ready: (_instance?: CountUp | undefined) => boolean;
|
|
20
|
+
ready: (_instance?: CountUp | null | undefined) => boolean;
|
|
21
21
|
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
22
22
|
delay: {
|
|
23
23
|
type: NumberConstructor;
|
|
@@ -29,7 +29,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
29
29
|
};
|
|
30
30
|
options: import("vue").PropType<import("countup.js").CountUpOptions>;
|
|
31
31
|
}>> & {
|
|
32
|
-
onReady?: ((_instance?: CountUp | undefined) => any) | undefined;
|
|
32
|
+
onReady?: ((_instance?: CountUp | null | undefined) => any) | undefined;
|
|
33
33
|
}, {
|
|
34
34
|
delay: number;
|
|
35
35
|
}, {}>;
|
|
@@ -25,3 +25,12 @@ export type PositionValue = 'top' | 'bottom' | 'left' | 'right' | 'leftTop' | 'l
|
|
|
25
25
|
* 初始位置类型
|
|
26
26
|
*/
|
|
27
27
|
export type Position = PositionValue | PositionObject;
|
|
28
|
+
/**
|
|
29
|
+
* 弹窗坐标
|
|
30
|
+
*/
|
|
31
|
+
export interface Location {
|
|
32
|
+
top?: number;
|
|
33
|
+
left?: number;
|
|
34
|
+
topValue?: string;
|
|
35
|
+
leftValue?: string;
|
|
36
|
+
}
|
package/lib/ele-modal/util.js
CHANGED
|
@@ -22,6 +22,8 @@ const singleSidebarClass = "ele-state-single-sidebar";
|
|
|
22
22
|
const topLayoutClass = "ele-state-top-layout";
|
|
23
23
|
const expandedClass = "ele-state-expanded";
|
|
24
24
|
const mobileClass = "ele-state-mobile";
|
|
25
|
+
const fixTop = 0.65;
|
|
26
|
+
const fixLeft = 0.65;
|
|
25
27
|
function initModalStyle(modalEl, resizable) {
|
|
26
28
|
modalEl.style.top = modalEl.offsetTop + "px";
|
|
27
29
|
modalEl.style.left = modalEl.offsetLeft + "px";
|
|
@@ -104,8 +106,8 @@ function handleMovable(event, props) {
|
|
|
104
106
|
left: e.clientX - downX + downOL,
|
|
105
107
|
top: e.clientY - downY + downOT
|
|
106
108
|
};
|
|
107
|
-
const limitL = wrapEl.clientWidth - modalEl.clientWidth -
|
|
108
|
-
const limitT = wrapEl.clientHeight - modalEl.clientHeight -
|
|
109
|
+
const limitL = wrapEl.clientWidth - modalEl.clientWidth - fixLeft;
|
|
110
|
+
const limitT = wrapEl.clientHeight - modalEl.clientHeight - fixTop;
|
|
109
111
|
if (!props.moveOut) {
|
|
110
112
|
if (position.left < 0) {
|
|
111
113
|
position.left = 0;
|
|
@@ -140,8 +142,8 @@ function handleMovable(event, props) {
|
|
|
140
142
|
position.top = minLimitT;
|
|
141
143
|
}
|
|
142
144
|
}
|
|
143
|
-
modalEl.style.left = `${position.left}px`;
|
|
144
|
-
modalEl.style.top = `${position.top}px`;
|
|
145
|
+
modalEl.style.left = `${Math.floor(position.left)}px`;
|
|
146
|
+
modalEl.style.top = `${Math.floor(position.top)}px`;
|
|
145
147
|
};
|
|
146
148
|
const mouseupFn = function() {
|
|
147
149
|
modalEl.style.userSelect = "";
|
|
@@ -184,7 +186,7 @@ function handleResizable(event, props) {
|
|
|
184
186
|
const mousemoveFn = function(e) {
|
|
185
187
|
if (props.resizable !== "vertical") {
|
|
186
188
|
const w = e.clientX - downX + downW;
|
|
187
|
-
const maxW = wrapEl.clientWidth - modalEl.offsetLeft -
|
|
189
|
+
const maxW = wrapEl.clientWidth - modalEl.offsetLeft - fixLeft;
|
|
188
190
|
const nw = (w < props.minWidth ? props.minWidth : !canMoveOut(props.moveOut, "right") && w > maxW ? maxW : w) + "px";
|
|
189
191
|
modalEl.style.width = nw;
|
|
190
192
|
modalEl.style.maxWidth = nw;
|
|
@@ -192,7 +194,7 @@ function handleResizable(event, props) {
|
|
|
192
194
|
}
|
|
193
195
|
if (props.resizable !== "horizontal") {
|
|
194
196
|
const h = e.clientY - downY + downH;
|
|
195
|
-
const maxH = wrapEl.clientHeight - modalEl.offsetTop -
|
|
197
|
+
const maxH = wrapEl.clientHeight - modalEl.offsetTop - fixTop;
|
|
196
198
|
const nh = (h < props.minHeight ? props.minHeight : !canMoveOut(props.moveOut, "bottom") && h > maxH ? maxH : h) + "px";
|
|
197
199
|
modalEl.style.height = nh;
|
|
198
200
|
modalEl.style.maxHeight = nh;
|
|
@@ -250,60 +252,71 @@ function setModalPosition(modalEl, resizable, position, moveOut) {
|
|
|
250
252
|
if (!wrapEl) {
|
|
251
253
|
return;
|
|
252
254
|
}
|
|
255
|
+
const location = {};
|
|
253
256
|
initModalStyle(modalEl, resizable);
|
|
254
257
|
const canOutB = canMoveOut(moveOut, "bottom");
|
|
255
258
|
const canOutR = canMoveOut(moveOut, "right");
|
|
256
|
-
const t = wrapEl.clientHeight - modalEl.clientHeight - (canOutB ? 0 :
|
|
259
|
+
const t = wrapEl.clientHeight - modalEl.clientHeight - (canOutB ? 0 : fixTop);
|
|
257
260
|
const maxTop = t < 0 ? 0 : t;
|
|
258
|
-
const l = wrapEl.clientWidth - modalEl.clientWidth - (canOutR ? 0 :
|
|
261
|
+
const l = wrapEl.clientWidth - modalEl.clientWidth - (canOutR ? 0 : fixLeft);
|
|
259
262
|
const maxLeft = l < 0 ? 0 : l;
|
|
260
263
|
if (position === "top") {
|
|
261
|
-
|
|
262
|
-
|
|
264
|
+
location.top = 0;
|
|
265
|
+
location.left = maxLeft / 2;
|
|
263
266
|
} else if (position === "bottom") {
|
|
264
|
-
|
|
265
|
-
|
|
267
|
+
location.top = maxTop;
|
|
268
|
+
location.left = maxLeft / 2;
|
|
266
269
|
} else if (position === "left") {
|
|
267
|
-
|
|
268
|
-
|
|
270
|
+
location.top = maxTop / 2;
|
|
271
|
+
location.left = 0;
|
|
269
272
|
} else if (position === "right") {
|
|
270
|
-
|
|
271
|
-
|
|
273
|
+
location.top = maxTop / 2;
|
|
274
|
+
location.left = maxLeft;
|
|
272
275
|
} else if (position === "leftTop") {
|
|
273
|
-
|
|
274
|
-
|
|
276
|
+
location.top = 0;
|
|
277
|
+
location.left = 0;
|
|
275
278
|
} else if (position === "leftBottom") {
|
|
276
|
-
|
|
277
|
-
|
|
279
|
+
location.top = maxTop;
|
|
280
|
+
location.left = 0;
|
|
278
281
|
} else if (position === "rightTop") {
|
|
279
|
-
|
|
280
|
-
|
|
282
|
+
location.top = 0;
|
|
283
|
+
location.left = maxLeft;
|
|
281
284
|
} else if (position === "rightBottom") {
|
|
282
|
-
|
|
283
|
-
|
|
285
|
+
location.top = maxTop;
|
|
286
|
+
location.left = maxLeft;
|
|
284
287
|
} else if (position === "center") {
|
|
285
|
-
|
|
286
|
-
|
|
288
|
+
location.top = maxTop / 2;
|
|
289
|
+
location.left = maxLeft / 2;
|
|
287
290
|
} else if (typeof position === "object") {
|
|
288
291
|
if (position.top != null) {
|
|
289
292
|
if (typeof position.top === "number") {
|
|
290
|
-
|
|
293
|
+
location.top = position.top;
|
|
291
294
|
} else {
|
|
292
|
-
|
|
295
|
+
location.topValue = position.top;
|
|
293
296
|
}
|
|
294
297
|
} else if (position.left != null) {
|
|
295
|
-
|
|
298
|
+
location.top = maxTop / 2;
|
|
296
299
|
}
|
|
297
300
|
if (position.left != null) {
|
|
298
301
|
if (typeof position.left === "number") {
|
|
299
|
-
|
|
302
|
+
location.left = position.left;
|
|
300
303
|
} else {
|
|
301
|
-
|
|
304
|
+
location.leftValue = position.left;
|
|
302
305
|
}
|
|
303
306
|
} else if (position.top != null) {
|
|
304
|
-
|
|
307
|
+
location.left = maxLeft / 2;
|
|
305
308
|
}
|
|
306
309
|
}
|
|
310
|
+
if (location.top != null) {
|
|
311
|
+
modalEl.style.top = `${Math.floor(location.top)}px`;
|
|
312
|
+
} else if (location.topValue != null) {
|
|
313
|
+
modalEl.style.top = location.topValue;
|
|
314
|
+
}
|
|
315
|
+
if (location.left != null) {
|
|
316
|
+
modalEl.style.left = `${Math.floor(location.left)}px`;
|
|
317
|
+
} else if (location.leftValue != null) {
|
|
318
|
+
modalEl.style.left = location.leftValue;
|
|
319
|
+
}
|
|
307
320
|
}
|
|
308
321
|
function setInitPosition(modalEl, resizable, position, moveOut, force) {
|
|
309
322
|
const attr = "ele-position";
|
|
@@ -12,6 +12,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
12
12
|
}, {
|
|
13
13
|
container: import("vue").ShallowRef<Element>;
|
|
14
14
|
visible: import("vue").Ref<boolean>;
|
|
15
|
+
isStatic: import("vue").ComputedRef<boolean>;
|
|
15
16
|
print: () => void;
|
|
16
17
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
17
18
|
'update:modelValue': (_value: boolean) => boolean;
|
package/lib/ele-printer/index.js
CHANGED
|
@@ -15,6 +15,9 @@ const _sfc_main = vue.defineComponent({
|
|
|
15
15
|
});
|
|
16
16
|
const container = vue.shallowRef(util.getPrintContainer());
|
|
17
17
|
const visible = vue.ref(false);
|
|
18
|
+
const isStatic = vue.computed(() => {
|
|
19
|
+
return props2.static;
|
|
20
|
+
});
|
|
18
21
|
const print = () => {
|
|
19
22
|
if (!authenticated.value) {
|
|
20
23
|
updateModelValue(false);
|
|
@@ -55,7 +58,7 @@ const _sfc_main = vue.defineComponent({
|
|
|
55
58
|
},
|
|
56
59
|
{ immediate: true }
|
|
57
60
|
);
|
|
58
|
-
return { container, visible, print };
|
|
61
|
+
return { container, visible, isStatic, print };
|
|
59
62
|
}
|
|
60
63
|
});
|
|
61
64
|
const _export_sfc = (sfc, props2) => {
|
|
@@ -70,10 +73,14 @@ const _hoisted_2 = { key: 1 };
|
|
|
70
73
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
71
74
|
return vue.openBlock(), vue.createBlock(vue.Teleport, {
|
|
72
75
|
to: _ctx.container,
|
|
73
|
-
disabled: _ctx.
|
|
76
|
+
disabled: _ctx.isStatic && !_ctx.visible
|
|
74
77
|
}, [
|
|
75
78
|
vue.createElementVNode("table", {
|
|
76
|
-
class: vue.normalizeClass([
|
|
79
|
+
class: vue.normalizeClass([
|
|
80
|
+
"ele-printer",
|
|
81
|
+
{ "is-open": _ctx.visible },
|
|
82
|
+
{ "is-static": _ctx.isStatic }
|
|
83
|
+
])
|
|
77
84
|
}, [
|
|
78
85
|
_ctx.$slots.header ? (vue.openBlock(), vue.createElementBlock("thead", _hoisted_1, [
|
|
79
86
|
vue.createElementVNode("tr", null, [
|
|
@@ -40,19 +40,22 @@
|
|
|
40
40
|
}
|
|
41
41
|
|
|
42
42
|
/* 打印状态 */
|
|
43
|
+
html.ele-printing,
|
|
43
44
|
html.ele-printing > body {
|
|
44
|
-
color: #000;
|
|
45
|
-
background: #fff;
|
|
45
|
+
color: #000 !important;
|
|
46
|
+
background: #fff !important;
|
|
47
|
+
height: auto !important;
|
|
48
|
+
overflow: visible !important;
|
|
49
|
+
}
|
|
46
50
|
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
51
|
+
html.ele-printing > body > * {
|
|
52
|
+
display: none !important;
|
|
53
|
+
}
|
|
50
54
|
|
|
51
|
-
|
|
52
|
-
|
|
55
|
+
html.ele-printing #ele-printer-container {
|
|
56
|
+
display: block !important;
|
|
53
57
|
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
}
|
|
58
|
+
* {
|
|
59
|
+
pointer-events: none !important;
|
|
57
60
|
}
|
|
58
61
|
}
|
|
@@ -108,7 +108,7 @@ const _sfc_main = vue.defineComponent({
|
|
|
108
108
|
if (props2.fixedBody) {
|
|
109
109
|
return ".ele-admin-layout.ele-admin-fixed-body>.ele-admin-main>.ele-admin-body>.ele-admin-content";
|
|
110
110
|
}
|
|
111
|
-
return
|
|
111
|
+
return "body";
|
|
112
112
|
});
|
|
113
113
|
const sidebarCollapse = vue.computed(() => {
|
|
114
114
|
return mobile.value || mixSidebar.value ? false : props2.collapse;
|
|
@@ -637,11 +637,11 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
637
637
|
})
|
|
638
638
|
]), 1032, ["menus", "headerStyle", "active", "ellipsis", "ellipsisProps", "menuTrigger", "itemTrigger", "collapse", "sidebar", "titleSlot", "iconSlot", "levels", "breadcrumb", "breadcrumbSeparator", "homePath", "isHome", "onLogoClick", "onOpen", "onClsoe", "onItemClick"]),
|
|
639
639
|
vue.createVNode(_component_EleWatermark, {
|
|
640
|
-
|
|
640
|
+
class: "ele-admin-main",
|
|
641
641
|
height: 68,
|
|
642
|
-
content: _ctx.watermark,
|
|
643
642
|
disabled: _ctx.authenticated,
|
|
644
|
-
|
|
643
|
+
fixed: true,
|
|
644
|
+
content: _ctx.watermark
|
|
645
645
|
}, {
|
|
646
646
|
default: vue.withCtx(() => [
|
|
647
647
|
_ctx.sidebox ? (vue.openBlock(), vue.createBlock(_component_ProSidebox, {
|
|
@@ -734,7 +734,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
734
734
|
])
|
|
735
735
|
]),
|
|
736
736
|
_: 3
|
|
737
|
-
}, 8, ["
|
|
737
|
+
}, 8, ["disabled", "content"]),
|
|
738
738
|
vue.createElementVNode("div", {
|
|
739
739
|
class: "ele-admin-mask",
|
|
740
740
|
onClick: _cache[0] || (_cache[0] = (...args) => _ctx.updateCollapse && _ctx.updateCollapse(...args))
|
package/lib/ele-tabs/index.js
CHANGED
|
@@ -5,6 +5,9 @@
|
|
|
5
5
|
// 过渡动画
|
|
6
6
|
$ele-transition: 0.2s !default;
|
|
7
7
|
|
|
8
|
+
// 美化滚动条样式选择器
|
|
9
|
+
$scrollbar-selector: '' !default;
|
|
10
|
+
|
|
8
11
|
// 样式变量
|
|
9
12
|
$ele: () !default;
|
|
10
13
|
$ele: map.deep-merge(
|
|
@@ -838,6 +841,31 @@ $ele: map.deep-merge(
|
|
|
838
841
|
'footer-border': none,
|
|
839
842
|
'mobile-space': 16px
|
|
840
843
|
),
|
|
844
|
+
'notification': (
|
|
845
|
+
// 通知
|
|
846
|
+
'width': 360px,
|
|
847
|
+
'border': none,
|
|
848
|
+
'padding': 20px,
|
|
849
|
+
'radius': elVar('border-radius', 'base'),
|
|
850
|
+
'shadow': elVar('box-shadow', 'light'),
|
|
851
|
+
'color': elVar('text-color', 'regular'),
|
|
852
|
+
'size': elVar('font-size', 'base'),
|
|
853
|
+
'icon-size': 26px,
|
|
854
|
+
'icon-margin': -2px 12px 0 0,
|
|
855
|
+
'title-color': elVar('text-color', 'primary'),
|
|
856
|
+
'title-size': elVar('font-size', 'medium'),
|
|
857
|
+
'title-font-weight': normal,
|
|
858
|
+
'title-line-height': 22px,
|
|
859
|
+
'title-padding': 0 22px 0 0,
|
|
860
|
+
'body-margin': 8px,
|
|
861
|
+
'close-size': 22px,
|
|
862
|
+
'close-margin': 20px 24px 0 0,
|
|
863
|
+
'close-radius': elVar('border-radius', 'small'),
|
|
864
|
+
'close-font-size': 18px,
|
|
865
|
+
'close-color': elVar('text-color', 'secondary'),
|
|
866
|
+
'close-hover-color': elVar('text-color', 'primary'),
|
|
867
|
+
'close-hover-bg': transparent
|
|
868
|
+
),
|
|
841
869
|
'radio': (
|
|
842
870
|
// 单选框
|
|
843
871
|
'color': elVar('text-color', 'regular'),
|
|
@@ -216,6 +216,10 @@ $ele-rounded: map.deep-merge(
|
|
|
216
216
|
'header-font-weight': bold,
|
|
217
217
|
'icon-hover-bg': elVar('fill-color', 'light')
|
|
218
218
|
),
|
|
219
|
+
'notification': (
|
|
220
|
+
'radius': $radius-large,
|
|
221
|
+
'close-hover-bg': elVar('fill-color', 'light')
|
|
222
|
+
),
|
|
219
223
|
'descriptions': (
|
|
220
224
|
'radius': $radius-large
|
|
221
225
|
),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ele-admin-plus",
|
|
3
|
-
"version": "1.1.4-beta.
|
|
3
|
+
"version": "1.1.4-beta.3",
|
|
4
4
|
"description": "EleAdminPlus Library",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"module": "es/index.js",
|
|
@@ -14,11 +14,10 @@
|
|
|
14
14
|
"dev": "vite --host --config vite.global.ts",
|
|
15
15
|
"dev:needed": "vite --host",
|
|
16
16
|
"build": "esno scripts/build.ts",
|
|
17
|
+
"ts2js": "esno scripts/ts2js.ts",
|
|
17
18
|
"lint:eslint": "eslint --cache --max-warnings 0 \"{src,components}/**/*.{vue,ts}\" --fix",
|
|
18
19
|
"clean:cache": "rimraf node_modules/.cache/ && rimraf node_modules/.vite/",
|
|
19
|
-
"clean:lib": "rimraf node_modules"
|
|
20
|
-
"publish:beta": "npm publish --tag beta",
|
|
21
|
-
"publish": "npm publish"
|
|
20
|
+
"clean:lib": "rimraf node_modules"
|
|
22
21
|
},
|
|
23
22
|
"keywords": [],
|
|
24
23
|
"author": "eclouds@foxmail.com",
|
|
@@ -32,6 +31,7 @@
|
|
|
32
31
|
"devDependencies": {
|
|
33
32
|
"@amap/amap-jsapi-loader": "^1.0.1",
|
|
34
33
|
"@ant-design/colors": "^7.0.0",
|
|
34
|
+
"@babel/types": "^7.22.11",
|
|
35
35
|
"@bytemd/plugin-gfm": "^1.21.0",
|
|
36
36
|
"@bytemd/plugin-highlight": "^1.21.0",
|
|
37
37
|
"@element-plus/icons-vue": "^2.1.0",
|
|
@@ -42,6 +42,7 @@
|
|
|
42
42
|
"@typescript-eslint/eslint-plugin": "^6.5.0",
|
|
43
43
|
"@typescript-eslint/parser": "^6.5.0",
|
|
44
44
|
"@vitejs/plugin-vue": "^4.3.4",
|
|
45
|
+
"@vitejs/plugin-vue-jsx": "^3.0.2",
|
|
45
46
|
"@vue/compiler-sfc": "^3.3.4",
|
|
46
47
|
"axios": "^1.5.0",
|
|
47
48
|
"bytemd": "^1.21.0",
|