@ftlab/one-vue3 0.4.0 → 0.4.2

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,18 @@
1
1
  # Changelog
2
2
 
3
+ ## [v0.4.2] - 2026-11-25
4
+
5
+ ### Added
6
+ - `FtlSidebar` 新增 `version` / `versionTitle` / `showVersion` 属性:传入版本号即在侧边栏底部渲染版本条(贴底、菜单在剩余高度内滚动),颜色与背景跟随侧边栏主题,其他系统无需再自己包 flex 容器写样式
7
+
8
+ ### Changed
9
+ - `FtlSidebar` 根节点改为纵向 flex(`height: 100vh`),菜单由固定 `calc(100vh - 68px)` 改为 `flex: 1` 自适应剩余高度
10
+
11
+ ## [v0.4.1] - 2026-11-25
12
+
13
+ ### Fixed
14
+ - 发布内容改用 `files` 白名单(`dist` / `assets` / `i18n` / 两个 d.ts),不再把仓库里的 `*.tgz`、`eslint.config.js`、`vitest.config.ts` 打进产物(0.4.0 的 tarball 因混入本地 `ftlab-one-vue3-0.4.0.tgz` 体积翻倍)
15
+
3
16
  ## [v0.4.0] - 2026-11-25
4
17
 
5
18
  ### Added
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) {
@@ -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
- })), R = /*#__PURE__*/ t(L, [["__scopeId", "data-v-c082122d"]]);
159
- export { R as t };
169
+ })), z = /*#__PURE__*/ t(R, [["__scopeId", "data-v-21b27733"]]);
170
+ export { z as t };
@@ -1 +1 @@
1
- export { t as default } from "./FtlSidebar-D5AkRjgA.js";
1
+ export { t as default } from "./FtlSidebar-CH1lii9S.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-D5AkRjgA.js";
2
+ import { t } from "./FtlSidebar-CH1lii9S.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-c082122d]{width:-webkit-fit-content;width:-moz-fit-content;width:fit-content}.sidebar-container-header[data-v-c082122d]{justify-content:center;align-items:center;display:flex}.sidebar-container-header-title[data-v-c082122d]{align-items:center;height:36px;display:flex}.sidebar-container-header-title .title[data-v-c082122d]{height:100%;margin-left:5px;font-size:22px;font-weight:600}.sidebar-container-header-title-right[data-v-c082122d]{text-align:center;margin-left:10px}.sidebar-container-header-title .environment[data-v-c082122d]{font-size:12px;font-style:italic;font-weight:700}.el-menu-vertical-demo[data-v-c082122d]{height:calc(100vh - 68px);overflow-x:hidden;overflow-y:auto}.el-menu-vertical-demo[data-v-c082122d]::-webkit-scrollbar{width:0}.el-menu-vertical-demo[data-v-c082122d]:not(.el-menu--collapse){width:240px}.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-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-21b27733]{flex-direction:column;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;height:100vh;display:flex}.sidebar-container-header[data-v-21b27733]{justify-content:center;align-items:center;display:flex}.sidebar-container-header-title[data-v-21b27733]{align-items:center;height:36px;display:flex}.sidebar-container-header-title .title[data-v-21b27733]{height:100%;margin-left:5px;font-size:22px;font-weight:600}.sidebar-container-header-title-right[data-v-21b27733]{text-align:center;margin-left:10px}.sidebar-container-header-title .environment[data-v-21b27733]{font-size:12px;font-style:italic;font-weight:700}.el-menu-vertical-demo[data-v-21b27733]{flex:1;height:auto;min-height:0;overflow-x:hidden;overflow-y:auto}.el-menu-vertical-demo[data-v-21b27733]::-webkit-scrollbar{width:0}.el-menu-vertical-demo[data-v-21b27733]:not(.el-menu--collapse){width:240px}.sidebar-version[data-v-21b27733]{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,10 +1,18 @@
1
1
  {
2
2
  "name": "@ftlab/one-vue3",
3
- "version": "0.4.0",
3
+ "version": "0.4.2",
4
4
  "description": "One for Apps",
5
5
  "main": "dist/ftlOne.js",
6
6
  "type": "module",
7
7
  "types": "global.d.ts",
8
+ "files": [
9
+ "dist",
10
+ "assets",
11
+ "i18n",
12
+ "global.d.ts",
13
+ "components.d.ts",
14
+ "CHANGELOG.md"
15
+ ],
8
16
  "scripts": {
9
17
  "serve": "vite --host",
10
18
  "push": "npm publish --access=public",
package/eslint.config.js DELETED
@@ -1,34 +0,0 @@
1
- import js from '@eslint/js';
2
- import pluginVue from 'eslint-plugin-vue';
3
- import tseslint from 'typescript-eslint';
4
- import globals from 'globals';
5
- import eslintConfigPrettier from 'eslint-config-prettier';
6
-
7
- export default tseslint.config(
8
- { ignores: ['dist/**', 'node_modules/**', 'auto-import.d.ts', '**/*.d.ts'] },
9
- js.configs.recommended,
10
- ...tseslint.configs.recommended,
11
- ...pluginVue.configs['flat/essential'],
12
- {
13
- languageOptions: {
14
- ecmaVersion: 'latest',
15
- sourceType: 'module',
16
- globals: { ...globals.browser, ...globals.node }
17
- },
18
- rules: {
19
- '@typescript-eslint/no-explicit-any': 'off',
20
- '@typescript-eslint/no-unused-vars': 'off',
21
- // 历史代码里的 `obj && obj.emit()` 短路口语与直接改 modelValue 数组,保持现状
22
- '@typescript-eslint/no-unused-expressions': 'off',
23
- 'vue/no-mutating-props': 'off',
24
- '@typescript-eslint/no-empty-object-type': 'off',
25
- 'vue/multi-word-component-names': 'off',
26
- 'no-undef': 'off'
27
- }
28
- },
29
- {
30
- files: ['**/*.vue'],
31
- languageOptions: { parserOptions: { parser: tseslint.parser } }
32
- },
33
- eslintConfigPrettier
34
- );
Binary file
package/vitest.config.ts DELETED
@@ -1,8 +0,0 @@
1
- import { defineConfig } from 'vitest/config';
2
-
3
- export default defineConfig({
4
- test: {
5
- environment: 'node',
6
- include: ['__test__/**/*.test.ts']
7
- }
8
- });