@ftlab/one-vue3 0.4.2 → 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 +10 -0
- package/README.md +2 -2
- package/assets/css/index.scss +6 -6
- package/assets/css/mixin.scss +12 -12
- package/dist/{FtlSidebar-CH1lii9S.js → FtlSidebar-BuNhUZHt.js} +5 -5
- package/dist/FtlSidebar.js +1 -1
- package/dist/ftlOne.js +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
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
|
+
|
|
8
|
+
## [v0.4.3] - 2026-11-25
|
|
9
|
+
|
|
10
|
+
### Fixed
|
|
11
|
+
- `FtlSidebar` 的 logo 不显示:模板误用了 `sideBarParams.needLogo`(调用方通常不会在 `sideBarParams` 里传),导致两个分支都不渲染。改为使用 `needLogo` prop(默认 true),无 `logoSrc` 时的默认图恢复为 0.3.x 的 `assets.ftlapp.io/ui/berry-logo.png`
|
|
12
|
+
|
|
3
13
|
## [v0.4.2] - 2026-11-25
|
|
4
14
|
|
|
5
15
|
### Added
|
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 {
|
|
@@ -108,21 +108,21 @@ var j = /*#__PURE__*/ t(/* @__PURE__ */ m({
|
|
|
108
108
|
let a = n;
|
|
109
109
|
return x(), l("div", M, [
|
|
110
110
|
u("div", N, [u("div", P, [
|
|
111
|
-
e.
|
|
111
|
+
e.needLogo && e.sideBarParams.logoSrc ? (x(), l("div", {
|
|
112
112
|
key: 0,
|
|
113
113
|
class: "pic-box cp",
|
|
114
114
|
onClick: i[0] || (i[0] = (n) => t.$router.push(e.sideBarParams.logoLink || "/"))
|
|
115
115
|
}, [u("img", {
|
|
116
|
-
src: e.sideBarParams.logoSrc
|
|
116
|
+
src: e.sideBarParams.logoSrc,
|
|
117
117
|
alt: "",
|
|
118
118
|
class: "logo"
|
|
119
119
|
}, null, 8, F)])) : c("", !0),
|
|
120
|
-
|
|
120
|
+
e.needLogo && !e.sideBarParams.logoSrc ? (x(), l("div", {
|
|
121
121
|
key: 1,
|
|
122
122
|
class: "ftl-pic-box cp",
|
|
123
123
|
onClick: i[1] || (i[1] = (n) => t.$router.push(e.sideBarParams.logoLink || "/"))
|
|
124
124
|
}, [...i[3] || (i[3] = [u("img", {
|
|
125
|
-
src: "https://
|
|
125
|
+
src: "https://assets.ftlapp.io/ui/berry-logo.png",
|
|
126
126
|
alt: "",
|
|
127
127
|
class: "logo"
|
|
128
128
|
}, null, -1)])])) : c("", !0),
|
|
@@ -166,5 +166,5 @@ var j = /*#__PURE__*/ t(/* @__PURE__ */ m({
|
|
|
166
166
|
]);
|
|
167
167
|
};
|
|
168
168
|
}
|
|
169
|
-
})), z = /*#__PURE__*/ t(R, [["__scopeId", "data-v-
|
|
169
|
+
})), z = /*#__PURE__*/ t(R, [["__scopeId", "data-v-5cf4ef34"]]);
|
|
170
170
|
export { z as t };
|
package/dist/FtlSidebar.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as default } from "./FtlSidebar-
|
|
1
|
+
export { t as default } from "./FtlSidebar-BuNhUZHt.js";
|
package/dist/ftlOne.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as e } from "./FtlNavbar-SsenWatk.js";
|
|
2
|
-
import { t } from "./FtlSidebar-
|
|
2
|
+
import { t } from "./FtlSidebar-BuNhUZHt.js";
|
|
3
3
|
import { t as n } from "./FtlPasswordDialog-Dj_vS0mC.js";
|
|
4
4
|
import { t as r } from "./FtlMultipleChoose-D8o09guU.js";
|
|
5
5
|
// package/index.ts
|
package/dist/style.css
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
.app-item[data-v-54faffb2]{justify-content:space-between;align-items:center;width:100%;padding:5px 0;display:flex}.app-item-img[data-v-54faffb2]{width:30px;height:30px;margin-right:12px}.system-select-dropdown::-webkit-scrollbar{width:0}.system-select-dropdown{max-height:250px;overflow-x:hidden;overflow-y:auto}.system-select-dropdown .el-dropdown-menu__item.is-disabled{color:#606266}.system-select-dropdown .el-dropdown-menu__item:focus,.system-select-dropdown .el-dropdown-menu__item:not(.is-disabled):hover{color:#000;background-color:#f9f9fa;font-weight:700}.keep-left{left:0!important}.dot[data-v-5886c311]{background:red;border-radius:50%;width:5px;height:5px;position:absolute;transform:translate(10px,-8px)}.message-card__text[data-v-5886c311]{color:var(--ftlOne-message-text-color,#999);font-size:12px}[data-v-45841d07] .el-input__wrapper{border:none;border-radius:0;height:24px!important;box-shadow:none!important;background:0 0!important;padding-left:5px!important;line-height:24px!important}.show-content[data-v-45841d07]{position:relative}.show-content-popover[data-v-45841d07]{z-index:2000;color:#606266;word-break:break-all;background:#fff;border:1px solid #e6ebf5;border-radius:4px;width:320px;padding:12px;font-size:14px;line-height:1.4;position:absolute;top:40px;box-shadow:0 2px 12px rgba(0,0,0,.1)}.show-content-popover-content[data-v-45841d07]{height:250px;padding:10px;overflow:auto}.show-content-popover-content .innerInfo[data-v-45841d07],.show-content-popover-content .showInfo[data-v-45841d07]{align-items:center;display:flex}.show-content-popover-content .innerInfo .number[data-v-45841d07],.show-content-popover-content .showInfo .number[data-v-45841d07]{text-align:right;color:#bec1c7;width:40px;font-size:12px;display:inline-block}.input-cotainer[data-v-45841d07]{z-index:200;border:1px solid #dadde4;border-radius:5px;justify-content:space-between;align-items:center;width:300px;height:28px;padding:2px 10px 1px 2px;display:flex;position:relative}.input-cotainer-content[data-v-45841d07]{width:225px;height:26px;overflow-y:auto}.input-cotainer-content .innerInfo[data-v-45841d07],.input-cotainer-content .showInfo[data-v-45841d07]{align-items:center;height:26px;line-height:26px;display:flex;overflow:hidden}.input-cotainer-content .innerInfo .number[data-v-45841d07],.input-cotainer-content .showInfo .number[data-v-45841d07]{text-align:right;color:#bec1c7;width:30px;font-size:12px}.input-cotainer-content[data-v-45841d07]::-webkit-scrollbar{width:4px;height:4px}.input-cotainer-tool[data-v-45841d07]{align-items:flex-start;display:flex}.input-cotainer-tool-count[data-v-45841d07]{border-radius:0 0 0 10px;margin-right:3px;padding:0 8px;font-size:10px;line-height:14px}.input-cotainer-tool-icon[data-v-45841d07]{display:flex}.input-height-large[data-v-45841d07]{height:var(--el-component-size-large)!important}.input-height-large .input-cotainer-content[data-v-45841d07]{height:calc(var(--el-component-size-large) - 2px)!important}.input-height-large .innerInfo[data-v-45841d07],.input-height-large .showInfo[data-v-45841d07]{height:calc(var(--el-component-size-large) - 2px)!important;line-height:calc(var(--el-component-size-large) - 2px)!important}.input-height-small[data-v-45841d07]{height:var(--el-component-size-small)!important}.input-height-small .input-cotainer-content[data-v-45841d07]{height:calc(var(--el-component-size-small) - 2px)!important}.input-height-small .innerInfo[data-v-45841d07],.input-height-small .showInfo[data-v-45841d07]{height:calc(var(--el-component-size-small) - 2px)!important;line-height:calc(var(--el-component-size-small) - 2px)!important}.input-height-default[data-v-45841d07]{height:var(--el-component-size)!important}.input-height-default .input-cotainer-content[data-v-45841d07]{height:calc(var(--el-component-size) - 2px)!important}.input-height-default .innerInfo[data-v-45841d07],.input-height-default .showInfo[data-v-45841d07]{height:calc(var(--el-component-size) - 2px)!important;line-height:calc(var(--el-component-size) - 2px)!important}.func-area[data-v-45841d07]{justify-content:space-between;align-items:center;margin-top:10px;display:flex}.require_label[data-v-6006d849]:before{content:"*";color:#f36c6c;margin-right:4px}.ftlOne-changePasswordDialog[data-v-6006d849] .el-form-item__label{justify-content:flex-end}.ftlOne-changePasswordDialog[data-v-6006d849] .el-form .el-input{max-width:100%}.ftlOne-changePasswordDialog[data-v-6006d849] .el-input__wrapper{width:100%}.navbar-box[data-v-76ec61cd]{-webkit-backdrop-filter:saturate(50%)blur(8px);backdrop-filter:saturate(50%)blur(8px);z-index:100;border-bottom:1px solid #e6e6e6;height:56px;padding:10px 20px;position:fixed}.one-sidebar__iconPark[data-v-4680c4dc]{visibility:visible!important;width:19px!important;height:19px!important;overflow:unset!important;display:flex!important}.sidebar-container[data-v-
|
|
1
|
+
.app-item[data-v-54faffb2]{justify-content:space-between;align-items:center;width:100%;padding:5px 0;display:flex}.app-item-img[data-v-54faffb2]{width:30px;height:30px;margin-right:12px}.system-select-dropdown::-webkit-scrollbar{width:0}.system-select-dropdown{max-height:250px;overflow-x:hidden;overflow-y:auto}.system-select-dropdown .el-dropdown-menu__item.is-disabled{color:#606266}.system-select-dropdown .el-dropdown-menu__item:focus,.system-select-dropdown .el-dropdown-menu__item:not(.is-disabled):hover{color:#000;background-color:#f9f9fa;font-weight:700}.keep-left{left:0!important}.dot[data-v-5886c311]{background:red;border-radius:50%;width:5px;height:5px;position:absolute;transform:translate(10px,-8px)}.message-card__text[data-v-5886c311]{color:var(--ftlOne-message-text-color,#999);font-size:12px}[data-v-45841d07] .el-input__wrapper{border:none;border-radius:0;height:24px!important;box-shadow:none!important;background:0 0!important;padding-left:5px!important;line-height:24px!important}.show-content[data-v-45841d07]{position:relative}.show-content-popover[data-v-45841d07]{z-index:2000;color:#606266;word-break:break-all;background:#fff;border:1px solid #e6ebf5;border-radius:4px;width:320px;padding:12px;font-size:14px;line-height:1.4;position:absolute;top:40px;box-shadow:0 2px 12px rgba(0,0,0,.1)}.show-content-popover-content[data-v-45841d07]{height:250px;padding:10px;overflow:auto}.show-content-popover-content .innerInfo[data-v-45841d07],.show-content-popover-content .showInfo[data-v-45841d07]{align-items:center;display:flex}.show-content-popover-content .innerInfo .number[data-v-45841d07],.show-content-popover-content .showInfo .number[data-v-45841d07]{text-align:right;color:#bec1c7;width:40px;font-size:12px;display:inline-block}.input-cotainer[data-v-45841d07]{z-index:200;border:1px solid #dadde4;border-radius:5px;justify-content:space-between;align-items:center;width:300px;height:28px;padding:2px 10px 1px 2px;display:flex;position:relative}.input-cotainer-content[data-v-45841d07]{width:225px;height:26px;overflow-y:auto}.input-cotainer-content .innerInfo[data-v-45841d07],.input-cotainer-content .showInfo[data-v-45841d07]{align-items:center;height:26px;line-height:26px;display:flex;overflow:hidden}.input-cotainer-content .innerInfo .number[data-v-45841d07],.input-cotainer-content .showInfo .number[data-v-45841d07]{text-align:right;color:#bec1c7;width:30px;font-size:12px}.input-cotainer-content[data-v-45841d07]::-webkit-scrollbar{width:4px;height:4px}.input-cotainer-tool[data-v-45841d07]{align-items:flex-start;display:flex}.input-cotainer-tool-count[data-v-45841d07]{border-radius:0 0 0 10px;margin-right:3px;padding:0 8px;font-size:10px;line-height:14px}.input-cotainer-tool-icon[data-v-45841d07]{display:flex}.input-height-large[data-v-45841d07]{height:var(--el-component-size-large)!important}.input-height-large .input-cotainer-content[data-v-45841d07]{height:calc(var(--el-component-size-large) - 2px)!important}.input-height-large .innerInfo[data-v-45841d07],.input-height-large .showInfo[data-v-45841d07]{height:calc(var(--el-component-size-large) - 2px)!important;line-height:calc(var(--el-component-size-large) - 2px)!important}.input-height-small[data-v-45841d07]{height:var(--el-component-size-small)!important}.input-height-small .input-cotainer-content[data-v-45841d07]{height:calc(var(--el-component-size-small) - 2px)!important}.input-height-small .innerInfo[data-v-45841d07],.input-height-small .showInfo[data-v-45841d07]{height:calc(var(--el-component-size-small) - 2px)!important;line-height:calc(var(--el-component-size-small) - 2px)!important}.input-height-default[data-v-45841d07]{height:var(--el-component-size)!important}.input-height-default .input-cotainer-content[data-v-45841d07]{height:calc(var(--el-component-size) - 2px)!important}.input-height-default .innerInfo[data-v-45841d07],.input-height-default .showInfo[data-v-45841d07]{height:calc(var(--el-component-size) - 2px)!important;line-height:calc(var(--el-component-size) - 2px)!important}.func-area[data-v-45841d07]{justify-content:space-between;align-items:center;margin-top:10px;display:flex}.require_label[data-v-6006d849]:before{content:"*";color:#f36c6c;margin-right:4px}.ftlOne-changePasswordDialog[data-v-6006d849] .el-form-item__label{justify-content:flex-end}.ftlOne-changePasswordDialog[data-v-6006d849] .el-form .el-input{max-width:100%}.ftlOne-changePasswordDialog[data-v-6006d849] .el-input__wrapper{width:100%}.navbar-box[data-v-76ec61cd]{-webkit-backdrop-filter:saturate(50%)blur(8px);backdrop-filter:saturate(50%)blur(8px);z-index:100;border-bottom:1px solid #e6e6e6;height:56px;padding:10px 20px;position:fixed}.one-sidebar__iconPark[data-v-4680c4dc]{visibility:visible!important;width:19px!important;height:19px!important;overflow:unset!important;display:flex!important}.sidebar-container[data-v-5cf4ef34]{flex-direction:column;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;height:100vh;display:flex}.sidebar-container-header[data-v-5cf4ef34]{justify-content:center;align-items:center;display:flex}.sidebar-container-header-title[data-v-5cf4ef34]{align-items:center;height:36px;display:flex}.sidebar-container-header-title .title[data-v-5cf4ef34]{height:100%;margin-left:5px;font-size:22px;font-weight:600}.sidebar-container-header-title-right[data-v-5cf4ef34]{text-align:center;margin-left:10px}.sidebar-container-header-title .environment[data-v-5cf4ef34]{font-size:12px;font-style:italic;font-weight:700}.el-menu-vertical-demo[data-v-5cf4ef34]{flex:1;height:auto;min-height:0;overflow-x:hidden;overflow-y:auto}.el-menu-vertical-demo[data-v-5cf4ef34]::-webkit-scrollbar{width:0}.el-menu-vertical-demo[data-v-5cf4ef34]:not(.el-menu--collapse){width:240px}.sidebar-version[data-v-5cf4ef34]{letter-spacing:.2px;color:inherit;opacity:.65;background-color:inherit;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;white-space:nowrap;flex:0 0 24px;justify-content:center;align-items:center;font-size:12px;line-height:1;display:flex;overflow:hidden}.dialog__title[data-v-0003507a]{text-align:center;margin-bottom:20px;font-size:20px;line-height:30px}
|
|
2
2
|
/*$vite$:1*/
|