fast-element-plus 2.0.27 → 2.0.29

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.
Files changed (52) hide show
  1. package/CHANGELOG.md +31 -0
  2. package/README.md +6 -6
  3. package/README.zh.md +6 -6
  4. package/dist/component.d.ts +46 -35
  5. package/dist/components/avatar/src/avatar.d.ts +4 -4
  6. package/dist/components/button/src/button.d.ts +3 -3
  7. package/dist/components/carNumber/src/carNumber.d.ts +17 -6
  8. package/dist/components/carNumber/src/carNumber.mjs +16 -1
  9. package/dist/components/carNumber/src/carNumber.mjs.map +1 -1
  10. package/dist/components/drawer/src/drawer.d.ts +4 -4
  11. package/dist/components/form/src/formItem.d.ts +9 -3
  12. package/dist/components/form/src/formItem.mjs +5 -3
  13. package/dist/components/form/src/formItem.mjs.map +1 -1
  14. package/dist/components/image/src/image.d.ts +6 -1
  15. package/dist/components/image/src/image.mjs +7 -2
  16. package/dist/components/image/src/image.mjs.map +1 -1
  17. package/dist/components/select/src/select.d.ts +13 -7
  18. package/dist/components/select/src/select.mjs +4 -6
  19. package/dist/components/select/src/select.mjs.map +1 -1
  20. package/dist/components/select/src/selectOption.d.ts +5 -0
  21. package/dist/components/select/src/selectOption.mjs +3 -0
  22. package/dist/components/select/src/selectOption.mjs.map +1 -1
  23. package/dist/components/selectPage/src/selectPage.d.ts +16 -10
  24. package/dist/components/selectPage/src/selectPage.mjs +6 -8
  25. package/dist/components/selectPage/src/selectPage.mjs.map +1 -1
  26. package/dist/components/selectV2/src/selectV2.d.ts +7 -2
  27. package/dist/components/selectV2/src/selectV2.mjs +2 -5
  28. package/dist/components/selectV2/src/selectV2.mjs.map +1 -1
  29. package/dist/components/table/src/page.type.d.ts +4 -0
  30. package/dist/components/table/src/table.mjs +5 -4
  31. package/dist/components/table/src/table.mjs.map +1 -1
  32. package/dist/components/table/src/tableColumn.d.ts +1 -0
  33. package/dist/components/table/src/tableColumn.mjs +33 -19
  34. package/dist/components/table/src/tableColumn.mjs.map +1 -1
  35. package/dist/components/tree/src/tree.d.ts +1 -1
  36. package/dist/components/treeSelect/src/treeSelect.d.ts +33 -27
  37. package/dist/components/treeSelect/src/treeSelect.mjs +14 -12
  38. package/dist/components/treeSelect/src/treeSelect.mjs.map +1 -1
  39. package/dist/components/uploadImage/src/uploadImage.d.ts +9 -0
  40. package/dist/components/uploadImage/src/uploadImage.mjs +13 -6
  41. package/dist/components/uploadImage/src/uploadImage.mjs.map +1 -1
  42. package/dist/components/uploadImages/src/uploadImages.d.ts +9 -0
  43. package/dist/components/uploadImages/src/uploadImages.mjs +7 -5
  44. package/dist/components/uploadImages/src/uploadImages.mjs.map +1 -1
  45. package/dist/index.css +1 -1
  46. package/dist/index.css.map +1 -1
  47. package/dist/index.global.min.js +3 -3
  48. package/dist/index.global.min.js.map +1 -1
  49. package/dist/version.d.ts +1 -1
  50. package/dist/version.mjs +1 -1
  51. package/dist/version.mjs.map +1 -1
  52. package/package.json +4 -4
package/CHANGELOG.md CHANGED
@@ -4,6 +4,35 @@ All notable changes to this project are documented in this file.
4
4
 
5
5
  The format follows [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and releases should follow [Semantic Versioning](https://semver.org/).
6
6
 
7
+ ## [2.0.29] - 2026-11-13
8
+
9
+ ### Fixed
10
+
11
+ - Top-align labels and content within `FaForm` detail items.
12
+
13
+ ## [2.0.28] - 2026-11-13
14
+
15
+ ### Added
16
+
17
+ - Add the optional read-only `isOrderBy` field to `PagedInput`.
18
+ - Support `FaImage` slot `viewerPlaceholder`, selection tag and label slot scopes, image upload slots, and underlying input instance methods on `FaCarNumber`.
19
+ - Let `FaFormItem` display a string or number directly with `value`, and forward `created` from `FaSelectOption` to `ElOption`.
20
+
21
+ ### Fixed
22
+
23
+ - Use explicit image preview sources and honor table empty text, the column `filterIcon` slot, and the column expansion slot scope.
24
+ - Apply `FaTable` inline styles to its outer wrapper, render the append slot only when supplied, and forward custom headers and overflow-tooltip options in `FaTableColumn`.
25
+ - Keep `FaFormItem` label tips visible when using a custom label slot.
26
+ - Forward cached tree nodes and support native node loading in `FaTreeSelect`.
27
+ - Invoke native upload preview callbacks from the image upload components' custom preview controls.
28
+
29
+ ### Changed
30
+
31
+ - Rename the `FaImage` error slot from `viewer-error` to `viewerError`.
32
+ - Improve detail form layout with taller lines, baseline alignment, and wrapping for long content.
33
+ - Update the minimum Element Plus version to `2.14.8`.
34
+ - Rename the stylesheet export from `fast-element-plus/style.css` to `fast-element-plus/index.css`. Update existing imports when upgrading.
35
+
7
36
  ## [2.0.27] - 2026-11-10
8
37
 
9
38
  ### Fixed
@@ -310,6 +339,8 @@ The format follows [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and
310
339
  - Scoped Table styles and added responsive IconSelector styling.
311
340
  - Improved dialogs, drawers, tables, forms, trees, selectors, car-number input, images, and uploads for dark mode, touch input, and narrow viewports.
312
341
 
342
+ [2.0.29]: https://gitee.com/FastDotnet/fast.element.plus/compare/v2.0.28...v2.0.29
343
+ [2.0.28]: https://gitee.com/FastDotnet/fast.element.plus/compare/v2.0.27...v2.0.28
313
344
  [2.0.27]: https://gitee.com/FastDotnet/fast.element.plus/compare/v2.0.26...v2.0.27
314
345
  [2.0.26]: https://gitee.com/FastDotnet/fast.element.plus/compare/v2.0.25...v2.0.26
315
346
  [2.0.25]: https://gitee.com/FastDotnet/fast.element.plus/compare/v2.0.24...v2.0.25
package/README.md CHANGED
@@ -22,7 +22,7 @@ This SDK is not a drop-in replacement for Element Plus; business defaults, event
22
22
 
23
23
  - ES2022 modern browsers or WebViews.
24
24
  - Vue `^3.5.11`.
25
- - Element Plus `^2.14.5`.
25
+ - Element Plus `^2.14.8`.
26
26
  - Element Plus Icons `^2.3.2`.
27
27
  - Fast.Element.Plus.Icons `^2.0.0`.
28
28
 
@@ -51,13 +51,13 @@ The jsDelivr entry uses `dist/index.global.min.js`. Load Vue, Element Plus, Elem
51
51
  <head>
52
52
  <meta charset="UTF-8" />
53
53
  <title>Fast Element Plus</title>
54
- <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/element-plus@2.14.5/dist/index.css" />
54
+ <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/element-plus@2.14.8/dist/index.css" />
55
55
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/fast-element-plus/dist/index.css" />
56
56
  </head>
57
57
  <body>
58
58
  <div id="app"></div>
59
59
  <script src="https://cdn.jsdelivr.net/npm/vue@3.5.11/dist/vue.global.prod.js"></script>
60
- <script src="https://cdn.jsdelivr.net/npm/element-plus@2.14.5/dist/index.full.min.js"></script>
60
+ <script src="https://cdn.jsdelivr.net/npm/element-plus@2.14.8/dist/index.full.min.js"></script>
61
61
  <script src="https://cdn.jsdelivr.net/npm/@element-plus/icons-vue@2.3.2/dist/index.iife.min.js"></script>
62
62
  <script src="https://cdn.jsdelivr.net/npm/@fast-element-plus/icons-vue/dist/index.global.min.js"></script>
63
63
  <script src="https://cdn.jsdelivr.net/npm/fast-element-plus/dist/index.global.min.js"></script>
@@ -80,7 +80,7 @@ Register the complete component library:
80
80
  import { createApp } from "vue";
81
81
  import "element-plus/dist/index.css";
82
82
  import FastElementPlus from "fast-element-plus";
83
- import "fast-element-plus/style.css";
83
+ import "fast-element-plus/index.css";
84
84
  import App from "./App.vue";
85
85
 
86
86
  createApp(App).use(FastElementPlus).mount("#app");
@@ -93,7 +93,7 @@ Fast.Element.Plus uses Element Plus CSS Variables and supports its official `htm
93
93
  ```ts
94
94
  import "element-plus/dist/index.css";
95
95
  import "element-plus/theme-chalk/dark/css-vars.css";
96
- import "fast-element-plus/style.css";
96
+ import "fast-element-plus/index.css";
97
97
 
98
98
  document.documentElement.classList.toggle("dark", isDark);
99
99
  ```
@@ -150,7 +150,7 @@ When using internal loading for asynchronous work, finish through the click `don
150
150
  | Constants | `FaMimeType`, `RegExps` |
151
151
  | Utilities | `Decimal`, `install`, `version` |
152
152
 
153
- The package root is the only JavaScript API entry. `fast-element-plus/global` provides Vue global declarations, and `fast-element-plus/style.css` provides the component styles. Files under `dist/` are implementation details.
153
+ The package root is the only JavaScript API entry. `fast-element-plus/global` provides Vue global declarations, and `fast-element-plus/index.css` provides the component styles. When upgrading from 2.0.27, replace imports of `fast-element-plus/style.css`. Files under `dist/` are implementation details.
154
154
 
155
155
  Open-ended business rows, paging extensions, selector/tree payloads, request parameters, and dynamic configuration use `any` where the SDK cannot know the application schema; exported generics can constrain known models. Untrusted runtime inputs, errors, and values that require validation remain `unknown`. `DefaultRow` is the public default FaTable row type for business tables whose fields are not declared in advance.
156
156
 
package/README.zh.md CHANGED
@@ -22,7 +22,7 @@
22
22
 
23
23
  - 支持 ES2022 的现代浏览器或 WebView。
24
24
  - Vue `^3.5.11`。
25
- - Element Plus `^2.14.5`。
25
+ - Element Plus `^2.14.8`。
26
26
  - Element Plus Icons `^2.3.2`。
27
27
  - Fast.Element.Plus.Icons `^2.0.0`。
28
28
 
@@ -51,13 +51,13 @@ jsDelivr 入口为 `dist/index.global.min.js`。页面先加载 Vue、Element Pl
51
51
  <head>
52
52
  <meta charset="UTF-8" />
53
53
  <title>Fast Element Plus</title>
54
- <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/element-plus@2.14.5/dist/index.css" />
54
+ <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/element-plus@2.14.8/dist/index.css" />
55
55
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/fast-element-plus/dist/index.css" />
56
56
  </head>
57
57
  <body>
58
58
  <div id="app"></div>
59
59
  <script src="https://cdn.jsdelivr.net/npm/vue@3.5.11/dist/vue.global.prod.js"></script>
60
- <script src="https://cdn.jsdelivr.net/npm/element-plus@2.14.5/dist/index.full.min.js"></script>
60
+ <script src="https://cdn.jsdelivr.net/npm/element-plus@2.14.8/dist/index.full.min.js"></script>
61
61
  <script src="https://cdn.jsdelivr.net/npm/@element-plus/icons-vue@2.3.2/dist/index.iife.min.js"></script>
62
62
  <script src="https://cdn.jsdelivr.net/npm/@fast-element-plus/icons-vue/dist/index.global.min.js"></script>
63
63
  <script src="https://cdn.jsdelivr.net/npm/fast-element-plus/dist/index.global.min.js"></script>
@@ -80,7 +80,7 @@ jsDelivr 入口为 `dist/index.global.min.js`。页面先加载 Vue、Element Pl
80
80
  import { createApp } from "vue";
81
81
  import "element-plus/dist/index.css";
82
82
  import FastElementPlus from "fast-element-plus";
83
- import "fast-element-plus/style.css";
83
+ import "fast-element-plus/index.css";
84
84
  import App from "./App.vue";
85
85
 
86
86
  createApp(App).use(FastElementPlus).mount("#app");
@@ -93,7 +93,7 @@ Fast.Element.Plus 使用 Element Plus CSS Variables,并兼容其官方 `html.d
93
93
  ```ts
94
94
  import "element-plus/dist/index.css";
95
95
  import "element-plus/theme-chalk/dark/css-vars.css";
96
- import "fast-element-plus/style.css";
96
+ import "fast-element-plus/index.css";
97
97
 
98
98
  document.documentElement.classList.toggle("dark", isDark);
99
99
  ```
@@ -132,7 +132,7 @@ useOverlay.show();
132
132
  | 常量 | `FaMimeType`、`RegExps` |
133
133
  | 工具 | `Decimal`、`install`、`version` |
134
134
 
135
- 包根入口是唯一 JavaScript API 入口;`fast-element-plus/global` 提供 Vue 全局声明,`fast-element-plus/style.css` 提供组件样式。`dist/` 下的其他文件均为实现细节。
135
+ 包根入口是唯一 JavaScript API 入口;`fast-element-plus/global` 提供 Vue 全局声明,`fast-element-plus/index.css` 提供组件样式。从 2.0.27 升级时,将原来的 `fast-element-plus/style.css` 导入替换为新路径。`dist/` 下的其他文件均为实现细节。
136
136
 
137
137
  业务行、分页扩展字段、选择器与树节点附加数据、请求参数和动态配置在 SDK 无法预知应用模型时使用 `any`,已知模型可通过公开泛型约束;未经验证的运行时输入、错误对象和必须先收窄的值继续使用 `unknown`。`DefaultRow` 是 FaTable 默认公开行类型,可直接用于未预先定义字段的业务表格。
138
138