@ftlab/one-vue3 0.4.1 → 0.4.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/CHANGELOG.md +13 -0
- package/README.md +5 -0
- package/dist/{FtlSidebar-D5AkRjgA.js → FtlSidebar-BuNhUZHt.js} +19 -8
- 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,18 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [v0.4.3] - 2026-11-25
|
|
4
|
+
|
|
5
|
+
### Fixed
|
|
6
|
+
- `FtlSidebar` 的 logo 不显示:模板误用了 `sideBarParams.needLogo`(调用方通常不会在 `sideBarParams` 里传),导致两个分支都不渲染。改为使用 `needLogo` prop(默认 true),无 `logoSrc` 时的默认图恢复为 0.3.x 的 `assets.ftlapp.io/ui/berry-logo.png`
|
|
7
|
+
|
|
8
|
+
## [v0.4.2] - 2026-11-25
|
|
9
|
+
|
|
10
|
+
### Added
|
|
11
|
+
- `FtlSidebar` 新增 `version` / `versionTitle` / `showVersion` 属性:传入版本号即在侧边栏底部渲染版本条(贴底、菜单在剩余高度内滚动),颜色与背景跟随侧边栏主题,其他系统无需再自己包 flex 容器写样式
|
|
12
|
+
|
|
13
|
+
### Changed
|
|
14
|
+
- `FtlSidebar` 根节点改为纵向 flex(`height: 100vh`),菜单由固定 `calc(100vh - 68px)` 改为 `flex: 1` 自适应剩余高度
|
|
15
|
+
|
|
3
16
|
## [v0.4.1] - 2026-11-25
|
|
4
17
|
|
|
5
18
|
### Fixed
|
package/README.md
CHANGED
|
@@ -123,6 +123,11 @@ app.use(FtlOne);
|
|
|
123
123
|
|---|---|---|---|
|
|
124
124
|
| collapse | 是否展开 | boolean | true |
|
|
125
125
|
| sideBarParams | 侧边栏配置(logoName / logoLink / logoSrc / projectEntry / isProd / useIconPark…) | object | {} |
|
|
126
|
+
| version | 底部版本号(如 `v1.1.1`),传了才显示;颜色/底色跟随侧边栏主题 | string | '' |
|
|
127
|
+
| versionTitle | 版本号悬浮提示 | string | 同 version |
|
|
128
|
+
| showVersion | 是否显示版本号(可用于临时关闭) | boolean | true |
|
|
129
|
+
|
|
130
|
+
> 版本条固定在侧边栏底部,菜单在剩余高度内滚动,不需要使用方再包一层 flex 容器或写额外 CSS。
|
|
126
131
|
|
|
127
132
|
### FtlMultipleChoose(批量输入)
|
|
128
133
|
|
|
@@ -80,7 +80,7 @@ var j = /*#__PURE__*/ t(/* @__PURE__ */ m({
|
|
|
80
80
|
}), [["__scopeId", "data-v-4680c4dc"]]), M = { class: "sidebar-container" }, N = { class: "sidebar-container-header" }, P = { class: "sidebar-container-header-title" }, F = ["src"], I = {
|
|
81
81
|
key: 3,
|
|
82
82
|
class: "sidebar-container-header-title-right"
|
|
83
|
-
}, L = /*@__PURE__*/ m(e(e(e({}, { inheritAttrs: !1 }), { name: "FtlSidebar" }), {}, {
|
|
83
|
+
}, L = ["title"], R = /*@__PURE__*/ m(e(e(e({}, { inheritAttrs: !1 }), { name: "FtlSidebar" }), {}, {
|
|
84
84
|
__name: "index",
|
|
85
85
|
props: {
|
|
86
86
|
sideBarParams: { default: () => ({}) },
|
|
@@ -91,6 +91,12 @@ var j = /*#__PURE__*/ t(/* @__PURE__ */ m({
|
|
|
91
91
|
needLogo: {
|
|
92
92
|
type: Boolean,
|
|
93
93
|
default: !0
|
|
94
|
+
},
|
|
95
|
+
version: { default: "" },
|
|
96
|
+
versionTitle: { default: "" },
|
|
97
|
+
showVersion: {
|
|
98
|
+
type: Boolean,
|
|
99
|
+
default: !0
|
|
94
100
|
}
|
|
95
101
|
},
|
|
96
102
|
setup(e) {
|
|
@@ -102,21 +108,21 @@ var j = /*#__PURE__*/ t(/* @__PURE__ */ m({
|
|
|
102
108
|
let a = n;
|
|
103
109
|
return x(), l("div", M, [
|
|
104
110
|
u("div", N, [u("div", P, [
|
|
105
|
-
e.
|
|
111
|
+
e.needLogo && e.sideBarParams.logoSrc ? (x(), l("div", {
|
|
106
112
|
key: 0,
|
|
107
113
|
class: "pic-box cp",
|
|
108
114
|
onClick: i[0] || (i[0] = (n) => t.$router.push(e.sideBarParams.logoLink || "/"))
|
|
109
115
|
}, [u("img", {
|
|
110
|
-
src: e.sideBarParams.logoSrc
|
|
116
|
+
src: e.sideBarParams.logoSrc,
|
|
111
117
|
alt: "",
|
|
112
118
|
class: "logo"
|
|
113
119
|
}, null, 8, F)])) : c("", !0),
|
|
114
|
-
|
|
120
|
+
e.needLogo && !e.sideBarParams.logoSrc ? (x(), l("div", {
|
|
115
121
|
key: 1,
|
|
116
122
|
class: "ftl-pic-box cp",
|
|
117
123
|
onClick: i[1] || (i[1] = (n) => t.$router.push(e.sideBarParams.logoLink || "/"))
|
|
118
124
|
}, [...i[3] || (i[3] = [u("img", {
|
|
119
|
-
src: "https://
|
|
125
|
+
src: "https://assets.ftlapp.io/ui/berry-logo.png",
|
|
120
126
|
alt: "",
|
|
121
127
|
class: "logo"
|
|
122
128
|
}, null, -1)])])) : c("", !0),
|
|
@@ -151,9 +157,14 @@ var j = /*#__PURE__*/ t(/* @__PURE__ */ m({
|
|
|
151
157
|
"i18n"
|
|
152
158
|
])) : c("", !0)]),
|
|
153
159
|
_: 1
|
|
154
|
-
}, 8, ["collapse", "default-active"])
|
|
160
|
+
}, 8, ["collapse", "default-active"]),
|
|
161
|
+
e.showVersion && e.version ? (x(), l("div", {
|
|
162
|
+
key: 0,
|
|
163
|
+
class: "sidebar-version",
|
|
164
|
+
title: e.versionTitle || e.version
|
|
165
|
+
}, E(e.version), 9, L)) : c("", !0)
|
|
155
166
|
]);
|
|
156
167
|
};
|
|
157
168
|
}
|
|
158
|
-
})),
|
|
159
|
-
export {
|
|
169
|
+
})), z = /*#__PURE__*/ t(R, [["__scopeId", "data-v-5cf4ef34"]]);
|
|
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*/
|