@ftlab/one-vue3 0.4.3 → 0.4.5

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 CHANGED
@@ -1,5 +1,23 @@
1
1
  # Changelog
2
2
 
3
+ ## [v0.4.5] - 2026-11-26
4
+
5
+ ### Fixed
6
+ - **侧栏 logo 区与 topbar 底边对不齐**(多个接入系统复现):`FtlSidebar` 的 `.sidebar-container-header-title` 写死 `height: 36px`,`FtlNavbar` 是 56px,两者天生差 20px;接入方只能各自硬编码补(ccms 补成侧栏 52px / topbar 60px,仍差 8px)。现在两边共用同一个高度变量 `--ftl-topbar-height`(默认 56px),logo 区底边与 topbar 底边落在同一条线上
7
+ - `FtlNavbar` 原为 `height: 56px` + `padding: 10px 20px`,内容区只剩 35px;使用方自带的页签条(32px/40px)居中后底线悬在 topbar 底边框上方。现改为 `padding: 0 20px`,内容区高度 `height - 1px`
8
+
9
+ ### Changed
10
+ - 新增顶层 CSS 变量 `--ftl-topbar-height`(默认 56px),由 `FtlNavbar` 与 `FtlSidebar` 的 logo 区共同读取;使用方可写 `:root { --ftl-topbar-height: 60px }` 统一调整,**不要再单独覆盖 `.navbar-box` / `.sidebar-container-header` 的高度**,否则两边又会错开
11
+ - `FtlNavbar` 其它元素居中位置不变(原 `10 + (H-21)/2` 与新 `(H-1)/2` 相等),现有接入方升级后视觉无变化
12
+ - 页签贴底的正确用法:把页签/菜单高度设为 `calc(var(--ftl-topbar-height, 56px) - 1px)`,其底线即与 topbar 底边框重合(ccms-web 的 MultiTab 已按此调整)
13
+ - 内容区的 `padding-top` 也应写 `var(--ftl-topbar-height, 56px)`,不要写死像素(包 demo 已改)
14
+ - 显式声明 `box-sizing: border-box`,避免没有全局重置的宿主把高度算成 56+20+1=77px
15
+
16
+ ## [v0.4.4] - 2026-11-26
17
+
18
+ ### Changed
19
+ - SCSS 主题变量改名:`$--color-header` → `$color-header`、`$--color-text` → `$color-text`。以 `-` 开头的变量会被 Dart Sass 当作模块私有,使用方通过 `@forward ... with` 配置时会触发 `with-private` 弃用警告(Sass 2.0 将变为错误);使用方需同步修改 `@forward` 里的 key
20
+
3
21
  ## [v0.4.3] - 2026-11-25
4
22
 
5
23
  ### 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
- $--color-header: #2e45ad, /* 侧边栏菜单交互背景色 */
96
- $--color-text: #0026d5, /* 二级子菜单选中字体颜色 */
95
+ $color-header: #2e45ad, /* 侧边栏菜单交互背景色 */
96
+ $color-text: #0026d5, /* 二级子菜单选中字体颜色 */
97
97
  $bg: #00265d, /* 侧边栏菜单背景色 */
98
98
  $content-bg: #94a5c1 /* 二级子菜单背景色 */
99
99
  );
@@ -2,24 +2,24 @@
2
2
  @import './mixin.scss';
3
3
 
4
4
  $color: #fff !default;
5
- $--color-header: #4f83b2 !default;
6
- $--color-text: #74bdff !default;
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, $--color-header, $content-bg, $--color-text);
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, $--color-header, $--color-text);
15
+ @include el-menu--vertical($bg, $color-header, $color-text);
16
16
  }
17
17
 
18
18
  .level-bar-toggle-button {
19
- @include toggle-button($--color-header);
19
+ @include toggle-button($color-header);
20
20
  }
21
21
 
22
22
  ::-webkit-scrollbar-thumb {
23
- background-color: $--color-header;
23
+ background-color: $color-header;
24
24
  border-radius: 5px;
25
25
  }
@@ -1,10 +1,10 @@
1
- @mixin toggle-button($--color-header) {
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: $--color-header;
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, $--color-header, $content-bg, $--color-text) {
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 $--color-header;
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: $--color-header !important;
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: $--color-header !important;
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: $--color-header;
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: $--color-text !important;
98
+ color: $color-text !important;
99
99
  i {
100
- color: $--color-text !important;
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, $--color-header, $--color-text) {
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: $--color-text !important;
128
+ color: $color-text !important;
129
129
  i {
130
- color: $--color-text !important;
130
+ color: $color-text !important;
131
131
  }
132
132
  }
133
133
  i {
@@ -187,5 +187,5 @@ var R = { class: "f-c" }, z = { class: "f-c" }, B = { class: "ml15 cp f-c" }, V
187
187
  ], 4);
188
188
  };
189
189
  }
190
- })), U = /*#__PURE__*/ r(H, [["__scopeId", "data-v-76ec61cd"]]);
190
+ })), U = /*#__PURE__*/ r(H, [["__scopeId", "data-v-5c2c6191"]]);
191
191
  export { U as t };
package/dist/FtlNavbar.js CHANGED
@@ -1 +1 @@
1
- export { t as default } from "./FtlNavbar-SsenWatk.js";
1
+ export { t as default } from "./FtlNavbar-pXDOAN8l.js";
@@ -166,5 +166,5 @@ var j = /*#__PURE__*/ t(/* @__PURE__ */ m({
166
166
  ]);
167
167
  };
168
168
  }
169
- })), z = /*#__PURE__*/ t(R, [["__scopeId", "data-v-5cf4ef34"]]);
169
+ })), z = /*#__PURE__*/ t(R, [["__scopeId", "data-v-bc90968e"]]);
170
170
  export { z as t };
@@ -1 +1 @@
1
- export { t as default } from "./FtlSidebar-BuNhUZHt.js";
1
+ export { t as default } from "./FtlSidebar-ClB1wxoa.js";
package/dist/ftlOne.js CHANGED
@@ -1,5 +1,5 @@
1
- import { t as e } from "./FtlNavbar-SsenWatk.js";
2
- import { t } from "./FtlSidebar-BuNhUZHt.js";
1
+ import { t as e } from "./FtlNavbar-pXDOAN8l.js";
2
+ import { t } from "./FtlSidebar-ClB1wxoa.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-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}
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-5c2c6191]{box-sizing:border-box;height:var(--ftl-topbar-height,56px);-webkit-backdrop-filter:saturate(50%)blur(8px);backdrop-filter:saturate(50%)blur(8px);z-index:100;border-bottom:1px solid #e6e6e6;padding:0 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-bc90968e]{flex-direction:column;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;height:100vh;display:flex}.sidebar-container-header[data-v-bc90968e]{box-sizing:border-box;height:var(--ftl-topbar-height,56px);justify-content:center;align-items:center;display:flex}.sidebar-container-header-title[data-v-bc90968e]{align-items:center;height:100%;display:flex}.sidebar-container-header-title .title[data-v-bc90968e]{height:100%;margin-left:5px;font-size:22px;font-weight:600}.sidebar-container-header-title-right[data-v-bc90968e]{text-align:center;margin-left:10px}.sidebar-container-header-title .environment[data-v-bc90968e]{font-size:12px;font-style:italic;font-weight:700}.el-menu-vertical-demo[data-v-bc90968e]{flex:1;height:auto;min-height:0;overflow-x:hidden;overflow-y:auto}.el-menu-vertical-demo[data-v-bc90968e]::-webkit-scrollbar{width:0}.el-menu-vertical-demo[data-v-bc90968e]:not(.el-menu--collapse){width:240px}.sidebar-version[data-v-bc90968e]{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*/
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ftlab/one-vue3",
3
- "version": "0.4.3",
3
+ "version": "0.4.5",
4
4
  "description": "One for Apps",
5
5
  "main": "dist/ftlOne.js",
6
6
  "type": "module",