@ftlab/one-vue3 0.4.3 → 0.4.4
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/CHANGELOG.md +5 -0
- package/README.md +2 -2
- package/assets/css/index.scss +6 -6
- package/assets/css/mixin.scss +12 -12
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [v0.4.4] - 2026-11-26
|
|
4
|
+
|
|
5
|
+
### Changed
|
|
6
|
+
- SCSS 主题变量改名:`$--color-header` → `$color-header`、`$--color-text` → `$color-text`。以 `-` 开头的变量会被 Dart Sass 当作模块私有,使用方通过 `@forward ... with` 配置时会触发 `with-private` 弃用警告(Sass 2.0 将变为错误);使用方需同步修改 `@forward` 里的 key
|
|
7
|
+
|
|
3
8
|
## [v0.4.3] - 2026-11-25
|
|
4
9
|
|
|
5
10
|
### Fixed
|
package/README.md
CHANGED
|
@@ -92,8 +92,8 @@ app.use(FtlOne);
|
|
|
92
92
|
```sass
|
|
93
93
|
@forward 'node_modules/@ftlab/one-vue3/assets/css/index.scss' with (
|
|
94
94
|
$color: #fff, /* 侧边栏菜单字体颜色 */
|
|
95
|
-
|
|
96
|
-
|
|
95
|
+
$color-header: #2e45ad, /* 侧边栏菜单交互背景色 */
|
|
96
|
+
$color-text: #0026d5, /* 二级子菜单选中字体颜色 */
|
|
97
97
|
$bg: #00265d, /* 侧边栏菜单背景色 */
|
|
98
98
|
$content-bg: #94a5c1 /* 二级子菜单背景色 */
|
|
99
99
|
);
|
package/assets/css/index.scss
CHANGED
|
@@ -2,24 +2,24 @@
|
|
|
2
2
|
@import './mixin.scss';
|
|
3
3
|
|
|
4
4
|
$color: #fff !default;
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
$color-header: #4f83b2 !default;
|
|
6
|
+
$color-text: #74bdff !default;
|
|
7
7
|
$bg: #2b3b49 !default;
|
|
8
8
|
$content-bg: #78848e !default;
|
|
9
9
|
|
|
10
10
|
.sidebar-container {
|
|
11
|
-
@include sidebar-container($bg, $color,
|
|
11
|
+
@include sidebar-container($bg, $color, $color-header, $content-bg, $color-text);
|
|
12
12
|
}
|
|
13
13
|
|
|
14
14
|
.el-menu--vertical {
|
|
15
|
-
@include el-menu--vertical($bg,
|
|
15
|
+
@include el-menu--vertical($bg, $color-header, $color-text);
|
|
16
16
|
}
|
|
17
17
|
|
|
18
18
|
.level-bar-toggle-button {
|
|
19
|
-
@include toggle-button(
|
|
19
|
+
@include toggle-button($color-header);
|
|
20
20
|
}
|
|
21
21
|
|
|
22
22
|
::-webkit-scrollbar-thumb {
|
|
23
|
-
background-color:
|
|
23
|
+
background-color: $color-header;
|
|
24
24
|
border-radius: 5px;
|
|
25
25
|
}
|
package/assets/css/mixin.scss
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
@mixin toggle-button(
|
|
1
|
+
@mixin toggle-button($color-header) {
|
|
2
2
|
height: 35px;
|
|
3
3
|
font-size: 18px;
|
|
4
4
|
margin-left: 10px;
|
|
5
5
|
color: #fff;
|
|
6
6
|
border-radius: 5px;
|
|
7
|
-
background-color:
|
|
7
|
+
background-color: $color-header;
|
|
8
8
|
padding: 0 10px;
|
|
9
9
|
cursor: pointer;
|
|
10
10
|
display: flex;
|
|
@@ -12,12 +12,12 @@
|
|
|
12
12
|
align-items: center;
|
|
13
13
|
}
|
|
14
14
|
|
|
15
|
-
@mixin sidebar-container($bg, $color,
|
|
15
|
+
@mixin sidebar-container($bg, $color, $color-header, $content-bg, $color-text) {
|
|
16
16
|
background-color: $bg;
|
|
17
17
|
.sidebar-container-header {
|
|
18
18
|
color: $color;
|
|
19
19
|
padding: 10px 0;
|
|
20
|
-
border-bottom: 2px solid
|
|
20
|
+
border-bottom: 2px solid $color-header;
|
|
21
21
|
.pic-box {
|
|
22
22
|
width: 46px;
|
|
23
23
|
height: 46px;
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
&:focus,
|
|
56
56
|
&:hover,
|
|
57
57
|
&.is-active {
|
|
58
|
-
background-color:
|
|
58
|
+
background-color: $color-header !important;
|
|
59
59
|
}
|
|
60
60
|
i {
|
|
61
61
|
color: #fff;
|
|
@@ -68,7 +68,7 @@
|
|
|
68
68
|
&:hover,
|
|
69
69
|
&.is-active {
|
|
70
70
|
& > .el-sub-menu__title {
|
|
71
|
-
background-color:
|
|
71
|
+
background-color: $color-header !important;
|
|
72
72
|
}
|
|
73
73
|
}
|
|
74
74
|
.el-sub-menu__title {
|
|
@@ -78,7 +78,7 @@
|
|
|
78
78
|
color: #fff !important;
|
|
79
79
|
}
|
|
80
80
|
&.is-opened {
|
|
81
|
-
background:
|
|
81
|
+
background: $color-header;
|
|
82
82
|
border-radius: 10px;
|
|
83
83
|
.el-menu {
|
|
84
84
|
background-color: $content-bg !important;
|
|
@@ -95,9 +95,9 @@
|
|
|
95
95
|
&:focus,
|
|
96
96
|
&:hover,
|
|
97
97
|
&.is-active {
|
|
98
|
-
color:
|
|
98
|
+
color: $color-text !important;
|
|
99
99
|
i {
|
|
100
|
-
color:
|
|
100
|
+
color: $color-text !important;
|
|
101
101
|
}
|
|
102
102
|
}
|
|
103
103
|
&:last-child {
|
|
@@ -108,7 +108,7 @@
|
|
|
108
108
|
}
|
|
109
109
|
}
|
|
110
110
|
|
|
111
|
-
@mixin el-menu--vertical($bg,
|
|
111
|
+
@mixin el-menu--vertical($bg, $color-header, $color-text) {
|
|
112
112
|
.el-tooltip__trigger {
|
|
113
113
|
padding: 0 !important;
|
|
114
114
|
display: flex;
|
|
@@ -125,9 +125,9 @@
|
|
|
125
125
|
&:focus,
|
|
126
126
|
&:hover {
|
|
127
127
|
background: none !important;
|
|
128
|
-
color:
|
|
128
|
+
color: $color-text !important;
|
|
129
129
|
i {
|
|
130
|
-
color:
|
|
130
|
+
color: $color-text !important;
|
|
131
131
|
}
|
|
132
132
|
}
|
|
133
133
|
i {
|