y-admin-ui 6.1.7 → 6.1.9
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/lib/lang/zh-cn.ts +37 -37
- package/lib/lang/zh-tw.ts +37 -37
- package/lib/style/common.scss +20 -0
- package/lib/style/extension/index.scss +1 -0
- package/lib/style/extension/y-message.scss +54 -0
- package/lib/style/fonts/iconfont.ttf +0 -0
- package/lib/style/fonts/iconfont.woff +0 -0
- package/lib/style/icon.scss +26 -3
- package/lib/style/index.scss +3 -1
- package/lib/style/tailwind.scss +3 -0
- package/lib/style/themes/dark.scss +60 -0
- package/lib/style/themes/defaults.scss +62 -0
- package/lib/style.css +1 -1
- package/lib/style.css.gz +0 -0
- package/lib/utils/core.ts +48 -25
- package/lib/utils/data.ts +63 -0
- package/lib/utils/element/message.ts +98 -0
- package/lib/utils/getStyleSheets.ts +101 -0
- package/lib/utils/other.ts +32 -0
- package/lib/y-admin-ui.js +16016 -8124
- package/lib/y-admin-ui.js.gz +0 -0
- package/lib/y-admin-ui.umd.cjs +29 -19
- package/package.json +7 -3
- package/typings/global.d.ts +6 -0
package/lib/lang/zh-cn.ts
CHANGED
|
@@ -2,40 +2,40 @@
|
|
|
2
2
|
import lang from 'element-plus/dist/locale/zh-cn';
|
|
3
3
|
|
|
4
4
|
export default {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
};
|
|
5
|
+
...lang,
|
|
6
|
+
y: {
|
|
7
|
+
name: 'zh-cn',
|
|
8
|
+
upload: {
|
|
9
|
+
uploading: '上传中',
|
|
10
|
+
exception: '上传失败',
|
|
11
|
+
retry: '重试',
|
|
12
|
+
},
|
|
13
|
+
proTable: {
|
|
14
|
+
emptyText: '暂无数据',
|
|
15
|
+
},
|
|
16
|
+
tableTools: {
|
|
17
|
+
refresh: '刷新',
|
|
18
|
+
size: '密度',
|
|
19
|
+
fullscreen: '全屏',
|
|
20
|
+
sizeOption: {
|
|
21
|
+
large: '宽松',
|
|
22
|
+
default: '默认',
|
|
23
|
+
small: '中等',
|
|
24
|
+
},
|
|
25
|
+
columns: '列设置',
|
|
26
|
+
columnsOption: {
|
|
27
|
+
columns: '全选',
|
|
28
|
+
reset: '重置',
|
|
29
|
+
index: 'index',
|
|
30
|
+
selection: 'selection',
|
|
31
|
+
untitled: 'untitled',
|
|
32
|
+
},
|
|
33
|
+
},
|
|
34
|
+
tour: {
|
|
35
|
+
skip: '跳过',
|
|
36
|
+
prev: '上一步',
|
|
37
|
+
next: '下一步',
|
|
38
|
+
finish: '完成',
|
|
39
|
+
},
|
|
40
|
+
},
|
|
41
|
+
};
|
package/lib/lang/zh-tw.ts
CHANGED
|
@@ -2,40 +2,40 @@
|
|
|
2
2
|
import lang from 'element-plus/dist/locale/zh-tw';
|
|
3
3
|
|
|
4
4
|
export default {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
};
|
|
5
|
+
...lang,
|
|
6
|
+
y: {
|
|
7
|
+
name: 'zh-tw',
|
|
8
|
+
upload: {
|
|
9
|
+
uploading: '上傳中',
|
|
10
|
+
exception: '上傳失敗',
|
|
11
|
+
retry: '重試',
|
|
12
|
+
},
|
|
13
|
+
proTable: {
|
|
14
|
+
emptyText: '暂无数据',
|
|
15
|
+
},
|
|
16
|
+
tableTools: {
|
|
17
|
+
refresh: '刷新',
|
|
18
|
+
size: '密度',
|
|
19
|
+
fullscreen: '全屏',
|
|
20
|
+
sizeOption: {
|
|
21
|
+
large: '寬鬆',
|
|
22
|
+
default: '默認',
|
|
23
|
+
small: '中等',
|
|
24
|
+
},
|
|
25
|
+
columns: '列設置',
|
|
26
|
+
columnsOption: {
|
|
27
|
+
columns: '列展示',
|
|
28
|
+
reset: '重置',
|
|
29
|
+
index: 'index',
|
|
30
|
+
selection: 'selection',
|
|
31
|
+
untitled: 'untitled',
|
|
32
|
+
},
|
|
33
|
+
},
|
|
34
|
+
tour: {
|
|
35
|
+
skip: '跳過',
|
|
36
|
+
prev: '上一步',
|
|
37
|
+
next: '下一步',
|
|
38
|
+
finish: '完成',
|
|
39
|
+
},
|
|
40
|
+
},
|
|
41
|
+
};
|
package/lib/style/common.scss
CHANGED
|
@@ -1,3 +1,23 @@
|
|
|
1
1
|
.y-fluid {
|
|
2
2
|
width: 100% !important;
|
|
3
3
|
}
|
|
4
|
+
|
|
5
|
+
.y-bg-primary {
|
|
6
|
+
background-color: var(--el-color-primary) !important;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.y-bg-success {
|
|
10
|
+
background-color: var(--el-color-success) !important;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.y-bg-warning {
|
|
14
|
+
background-color: var(--el-color-warning) !important;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.y-bg-danger {
|
|
18
|
+
background-color: var(--el-color-danger) !important;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.y-bg-info {
|
|
22
|
+
background-color: var(--el-color-info) !important;
|
|
23
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@import './y-message.scss';
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
.el-message {
|
|
2
|
+
border-radius: 10px;
|
|
3
|
+
|
|
4
|
+
.el-message__icon {
|
|
5
|
+
font-size: 18px;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.el-message__content {
|
|
9
|
+
line-height: 18px;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
&.el-message--info {
|
|
13
|
+
border-color: var(--color-primary-light-8);
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
// 是否要边框
|
|
17
|
+
&:not(.y-message-border) {
|
|
18
|
+
background: var(--popover-background-color);
|
|
19
|
+
box-shadow: 0 4px 12px 0 rgba(0, 0, 0, 0.15);
|
|
20
|
+
border-radius: 10px;
|
|
21
|
+
border: none;
|
|
22
|
+
|
|
23
|
+
.el-message__content {
|
|
24
|
+
color: inherit;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
// 加载中
|
|
29
|
+
&.y-message-loading .el-message__icon {
|
|
30
|
+
animation: rotating 1.5s linear infinite;
|
|
31
|
+
|
|
32
|
+
&:before {
|
|
33
|
+
content: '\e644';
|
|
34
|
+
font-family: 'y-icon' !important;
|
|
35
|
+
font-style: normal !important;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/* 定义旋转动画 */
|
|
39
|
+
@keyframes rotating {
|
|
40
|
+
0% {
|
|
41
|
+
transform: rotate(0deg);
|
|
42
|
+
}
|
|
43
|
+
100% {
|
|
44
|
+
transform: rotate(360deg);
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
// 居中
|
|
50
|
+
&.y-center {
|
|
51
|
+
top: 50% !important;
|
|
52
|
+
transform: translateY(-50%) !important;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
Binary file
|
|
Binary file
|
package/lib/style/icon.scss
CHANGED
|
@@ -3,9 +3,7 @@ $--y-font-path: 'fonts' !default;
|
|
|
3
3
|
|
|
4
4
|
@font-face {
|
|
5
5
|
font-family: 'y-icon'; /* Project id 4767102 */
|
|
6
|
-
src:
|
|
7
|
-
url('./fonts/iconfont.woff') format('woff'),
|
|
8
|
-
url('./fonts/iconfont.ttf') format('truetype');
|
|
6
|
+
src: url('./fonts/iconfont.woff') format('woff'), url('./fonts/iconfont.ttf') format('truetype');
|
|
9
7
|
}
|
|
10
8
|
|
|
11
9
|
body [class^='y-icon'],
|
|
@@ -18,6 +16,10 @@ body [class*='y-icon'] {
|
|
|
18
16
|
-moz-osx-font-smoothing: grayscale;
|
|
19
17
|
}
|
|
20
18
|
|
|
19
|
+
.y-icon_empty:before {
|
|
20
|
+
content: '\e601';
|
|
21
|
+
}
|
|
22
|
+
|
|
21
23
|
.y-icon_operation:before {
|
|
22
24
|
content: '\e624';
|
|
23
25
|
}
|
|
@@ -38,6 +40,27 @@ body [class*='y-icon'] {
|
|
|
38
40
|
content: '\ea9d';
|
|
39
41
|
}
|
|
40
42
|
|
|
43
|
+
.y-icon_loading:before {
|
|
44
|
+
content: '\e644';
|
|
45
|
+
}
|
|
46
|
+
|
|
41
47
|
.y-icon_tuozhuai:before {
|
|
42
48
|
content: '\e654';
|
|
43
49
|
}
|
|
50
|
+
|
|
51
|
+
// icon-picker
|
|
52
|
+
.y-icon__add:before {
|
|
53
|
+
content: '\e726';
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.y-icon__qus:before {
|
|
57
|
+
content: '\e72d';
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.y-icon___close:before {
|
|
61
|
+
content: '\e8dc';
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.y-icon___pass:before {
|
|
65
|
+
content: '\e909';
|
|
66
|
+
}
|
package/lib/style/index.scss
CHANGED
|
@@ -2,6 +2,66 @@
|
|
|
2
2
|
------------------------------- */
|
|
3
3
|
[data-theme='dark'],
|
|
4
4
|
[class='dark'] {
|
|
5
|
+
--y-color-primary: #177ddc;
|
|
6
|
+
--y-color-primary-1: #111d2c;
|
|
7
|
+
--y-color-primary-2: #112a45;
|
|
8
|
+
--y-color-primary-3: #15395b;
|
|
9
|
+
--y-color-primary-4: #164c7e;
|
|
10
|
+
--y-color-primary-5: #1765ad;
|
|
11
|
+
--y-color-primary-6: #177ddc;
|
|
12
|
+
--y-color-primary-7: #3c9ae8;
|
|
13
|
+
--y-color-primary-8: #65b7f3;
|
|
14
|
+
--y-color-primary-9: #8dcff8;
|
|
15
|
+
--y-color-primary-10: #b7e3fa;
|
|
16
|
+
|
|
17
|
+
--y-color-success: #49aa19;
|
|
18
|
+
--y-color-success-1: #162312;
|
|
19
|
+
--y-color-success-2: #1d3712;
|
|
20
|
+
--y-color-success-3: #274916;
|
|
21
|
+
--y-color-success-4: #306317;
|
|
22
|
+
--y-color-success-5: #3c8618;
|
|
23
|
+
--y-color-success-6: #49aa19;
|
|
24
|
+
--y-color-success-7: #6abe39;
|
|
25
|
+
--y-color-success-8: #8fd460;
|
|
26
|
+
--y-color-success-9: #b2e58b;
|
|
27
|
+
--y-color-success-10: #d5f2bb;
|
|
28
|
+
|
|
29
|
+
--y-color-warning: #d89614;
|
|
30
|
+
--y-color-warning-1: #2b2111;
|
|
31
|
+
--y-color-warning-2: #443111;
|
|
32
|
+
--y-color-warning-3: #594214;
|
|
33
|
+
--y-color-warning-4: #7c5914;
|
|
34
|
+
--y-color-warning-5: #aa7714;
|
|
35
|
+
--y-color-warning-6: #d89614;
|
|
36
|
+
--y-color-warning-7: #e8b339;
|
|
37
|
+
--y-color-warning-8: #f3cc62;
|
|
38
|
+
--y-color-warning-9: #f8df8b;
|
|
39
|
+
--y-color-warning-10: #faedb5;
|
|
40
|
+
|
|
41
|
+
--y-color-danger: #a61d24;
|
|
42
|
+
--y-color-danger-1: #2a1215;
|
|
43
|
+
--y-color-danger-2: #431418;
|
|
44
|
+
--y-color-danger-3: #58181c;
|
|
45
|
+
--y-color-danger-4: #791a1f;
|
|
46
|
+
--y-color-danger-5: #a61d24;
|
|
47
|
+
--y-color-danger-6: #f5222d;
|
|
48
|
+
--y-color-danger-7: #e84749;
|
|
49
|
+
--y-color-danger-8: #f37370;
|
|
50
|
+
--y-color-danger-9: #f89f9a;
|
|
51
|
+
--y-color-danger-10: #fac8c3;
|
|
52
|
+
|
|
53
|
+
--y-color-info: #909399;
|
|
54
|
+
--y-color-info-1: #2a2b2b;
|
|
55
|
+
--y-color-info-2: #414244;
|
|
56
|
+
--y-color-info-3: #58595c;
|
|
57
|
+
--y-color-info-4: #6e7074;
|
|
58
|
+
--y-color-info-5: #85878d;
|
|
59
|
+
--y-color-info-6: #909399;
|
|
60
|
+
--y-color-info-7: #9b9ea3;
|
|
61
|
+
--y-color-info-8: #b1b3b8;
|
|
62
|
+
--y-color-info-9: #c7c9cc;
|
|
63
|
+
--y-color-info-10: #dedfe0;
|
|
64
|
+
|
|
5
65
|
// 变量(自定义时,只需修改这里的值)
|
|
6
66
|
--y-bg-main: #1f1f1f;
|
|
7
67
|
|
|
@@ -1,4 +1,66 @@
|
|
|
1
|
+
@use 'element-plus/theme-chalk/src/index.scss' as *;
|
|
2
|
+
|
|
1
3
|
:root {
|
|
4
|
+
--y-color-primary: #1890ff;
|
|
5
|
+
--y-color-primary-1: #e6f7ff;
|
|
6
|
+
--y-color-primary-2: #bae7ff;
|
|
7
|
+
--y-color-primary-3: #91d5ff;
|
|
8
|
+
--y-color-primary-4: #69c0ff;
|
|
9
|
+
--y-color-primary-5: #40a9ff;
|
|
10
|
+
--y-color-primary-6: #1890ff;
|
|
11
|
+
--y-color-primary-7: #096dd9;
|
|
12
|
+
--y-color-primary-8: #0050b3;
|
|
13
|
+
--y-color-primary-9: #003a8c;
|
|
14
|
+
--y-color-primary-10: #002766;
|
|
15
|
+
|
|
16
|
+
--y-color-success: #52c41a;
|
|
17
|
+
--y-color-success-1: #f6ffed;
|
|
18
|
+
--y-color-success-2: #d9f7be;
|
|
19
|
+
--y-color-success-3: #b7eb8f;
|
|
20
|
+
--y-color-success-4: #95de64;
|
|
21
|
+
--y-color-success-5: #73d13d;
|
|
22
|
+
--y-color-success-6: #52c41a;
|
|
23
|
+
--y-color-success-7: #2e4126;
|
|
24
|
+
--y-color-success-8: #237804;
|
|
25
|
+
--y-color-success-9: #135200;
|
|
26
|
+
--y-color-success-10: #092b00;
|
|
27
|
+
|
|
28
|
+
--y-color-warning: #faad14;
|
|
29
|
+
--y-color-warning-1: #fffbe6;
|
|
30
|
+
--y-color-warning-2: #fff1b8;
|
|
31
|
+
--y-color-warning-3: #ffe58f;
|
|
32
|
+
--y-color-warning-4: #ffd666;
|
|
33
|
+
--y-color-warning-5: #ffc53d;
|
|
34
|
+
--y-color-warning-6: #faad14;
|
|
35
|
+
--y-color-warning-7: #d48806;
|
|
36
|
+
--y-color-warning-8: #ad6800;
|
|
37
|
+
--y-color-warning-9: #874d00;
|
|
38
|
+
--y-color-warning-10: #613400;
|
|
39
|
+
|
|
40
|
+
--y-color-danger: #ff4d4f;
|
|
41
|
+
--y-color-danger-1: #fff1f0;
|
|
42
|
+
--y-color-danger-2: #ffccc7;
|
|
43
|
+
--y-color-danger-3: #ffa39e;
|
|
44
|
+
--y-color-danger-4: #ff7875;
|
|
45
|
+
--y-color-danger-5: #ff4d4f;
|
|
46
|
+
--y-color-danger-6: #f5222d;
|
|
47
|
+
--y-color-danger-7: #cf1322;
|
|
48
|
+
--y-color-danger-8: #a8071a;
|
|
49
|
+
--y-color-danger-9: #820014;
|
|
50
|
+
--y-color-danger-10: #5c0011;
|
|
51
|
+
|
|
52
|
+
--y-color-info: #909399;
|
|
53
|
+
--y-color-info-1: #f4f4f5;
|
|
54
|
+
--y-color-info-2: #dedfe0;
|
|
55
|
+
--y-color-info-3: #d3d4d6;
|
|
56
|
+
--y-color-info-4: #bcbec2;
|
|
57
|
+
--y-color-info-5: #a6a9ad;
|
|
58
|
+
--y-color-info-6: #909399;
|
|
59
|
+
--y-color-info-7: #6e7074;
|
|
60
|
+
--y-color-info-8: #58595c;
|
|
61
|
+
--y-color-info-9: #414244;
|
|
62
|
+
--y-color-info-10: #2a2b2b;
|
|
63
|
+
|
|
2
64
|
// 变量(自定义时,只需修改这里的值)
|
|
3
65
|
--y-bg-main: #fafafa;
|
|
4
66
|
|