fast-element-plus 2.0.26 → 2.0.28
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 +35 -0
- package/README.md +6 -6
- package/README.zh.md +6 -6
- package/dist/component.d.ts +46 -35
- package/dist/components/avatar/src/avatar.d.ts +4 -4
- package/dist/components/button/src/button.d.ts +3 -3
- package/dist/components/carNumber/src/carNumber.d.ts +17 -6
- package/dist/components/carNumber/src/carNumber.mjs +16 -1
- package/dist/components/carNumber/src/carNumber.mjs.map +1 -1
- package/dist/components/drawer/src/drawer.d.ts +4 -4
- package/dist/components/form/src/formItem.d.ts +9 -3
- package/dist/components/form/src/formItem.mjs +5 -3
- package/dist/components/form/src/formItem.mjs.map +1 -1
- package/dist/components/image/src/image.d.ts +6 -1
- package/dist/components/image/src/image.mjs +7 -2
- package/dist/components/image/src/image.mjs.map +1 -1
- package/dist/components/select/src/select.d.ts +13 -7
- package/dist/components/select/src/select.mjs +4 -6
- package/dist/components/select/src/select.mjs.map +1 -1
- package/dist/components/select/src/selectOption.d.ts +5 -0
- package/dist/components/select/src/selectOption.mjs +3 -0
- package/dist/components/select/src/selectOption.mjs.map +1 -1
- package/dist/components/selectPage/src/selectPage.d.ts +16 -10
- package/dist/components/selectPage/src/selectPage.mjs +6 -8
- package/dist/components/selectPage/src/selectPage.mjs.map +1 -1
- package/dist/components/selectV2/src/selectV2.d.ts +7 -2
- package/dist/components/selectV2/src/selectV2.mjs +2 -5
- package/dist/components/selectV2/src/selectV2.mjs.map +1 -1
- package/dist/components/table/src/page.type.d.ts +4 -0
- package/dist/components/table/src/table.mjs +5 -4
- package/dist/components/table/src/table.mjs.map +1 -1
- package/dist/components/table/src/tableColumn.d.ts +1 -0
- package/dist/components/table/src/tableColumn.mjs +33 -19
- package/dist/components/table/src/tableColumn.mjs.map +1 -1
- package/dist/components/tree/src/tree.d.ts +4 -4
- package/dist/components/tree/src/tree.mjs +5 -4
- package/dist/components/tree/src/tree.mjs.map +1 -1
- package/dist/components/treeSelect/src/treeSelect.d.ts +33 -27
- package/dist/components/treeSelect/src/treeSelect.mjs +14 -12
- package/dist/components/treeSelect/src/treeSelect.mjs.map +1 -1
- package/dist/components/uploadImage/src/uploadImage.d.ts +9 -0
- package/dist/components/uploadImage/src/uploadImage.mjs +13 -6
- package/dist/components/uploadImage/src/uploadImage.mjs.map +1 -1
- package/dist/components/uploadImages/src/uploadImages.d.ts +9 -0
- package/dist/components/uploadImages/src/uploadImages.mjs +7 -5
- package/dist/components/uploadImages/src/uploadImages.mjs.map +1 -1
- package/dist/index.css +1 -1
- package/dist/index.css.map +1 -1
- package/dist/index.global.min.js +3 -3
- package/dist/index.global.min.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.mjs +1 -1
- package/dist/version.mjs.map +1 -1
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,39 @@ 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.28] - 2026-11-13
|
|
8
|
+
|
|
9
|
+
### Added
|
|
10
|
+
|
|
11
|
+
- Add the optional read-only `isOrderBy` field to `PagedInput`.
|
|
12
|
+
- Support `FaImage` slot `viewerPlaceholder`, selection tag and label slot scopes, image upload slots, and underlying input instance methods on `FaCarNumber`.
|
|
13
|
+
- Let `FaFormItem` display a string or number directly with `value`, and forward `created` from `FaSelectOption` to `ElOption`.
|
|
14
|
+
|
|
15
|
+
### Fixed
|
|
16
|
+
|
|
17
|
+
- Use explicit image preview sources and honor table empty text, the column `filterIcon` slot, and the column expansion slot scope.
|
|
18
|
+
- 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`.
|
|
19
|
+
- Keep `FaFormItem` label tips visible when using a custom label slot.
|
|
20
|
+
- Forward cached tree nodes and support native node loading in `FaTreeSelect`.
|
|
21
|
+
- Invoke native upload preview callbacks from the image upload components' custom preview controls.
|
|
22
|
+
|
|
23
|
+
### Changed
|
|
24
|
+
|
|
25
|
+
- Rename the `FaImage` error slot from `viewer-error` to `viewerError`.
|
|
26
|
+
- Improve detail form layout with taller lines, baseline alignment, and wrapping for long content.
|
|
27
|
+
- Update the minimum Element Plus version to `2.14.8`.
|
|
28
|
+
- Rename the stylesheet export from `fast-element-plus/style.css` to `fast-element-plus/index.css`. Update existing imports when upgrading.
|
|
29
|
+
|
|
30
|
+
## [2.0.27] - 2026-11-10
|
|
31
|
+
|
|
32
|
+
### Fixed
|
|
33
|
+
|
|
34
|
+
- Pass string and numeric `FaTree` `initParam` values directly to `requestApi` on initial load and refresh. Object queries still merge the current `searchValue`.
|
|
35
|
+
|
|
36
|
+
### Documentation and Tooling
|
|
37
|
+
|
|
38
|
+
- Allow Promise-returning callbacks in TSX and SFC object properties and clarify the rules for JSX attributes.
|
|
39
|
+
|
|
7
40
|
## [2.0.26] - 2026-10-20
|
|
8
41
|
|
|
9
42
|
### Changed
|
|
@@ -300,6 +333,8 @@ The format follows [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and
|
|
|
300
333
|
- Scoped Table styles and added responsive IconSelector styling.
|
|
301
334
|
- Improved dialogs, drawers, tables, forms, trees, selectors, car-number input, images, and uploads for dark mode, touch input, and narrow viewports.
|
|
302
335
|
|
|
336
|
+
[2.0.28]: https://gitee.com/FastDotnet/fast.element.plus/compare/v2.0.27...v2.0.28
|
|
337
|
+
[2.0.27]: https://gitee.com/FastDotnet/fast.element.plus/compare/v2.0.26...v2.0.27
|
|
303
338
|
[2.0.26]: https://gitee.com/FastDotnet/fast.element.plus/compare/v2.0.25...v2.0.26
|
|
304
339
|
[2.0.25]: https://gitee.com/FastDotnet/fast.element.plus/compare/v2.0.24...v2.0.25
|
|
305
340
|
[2.0.24]: https://gitee.com/FastDotnet/fast.element.plus/compare/v2.0.23...v2.0.24
|
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.
|
|
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.
|
|
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.
|
|
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/
|
|
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/
|
|
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/
|
|
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.
|
|
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.
|
|
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.
|
|
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/
|
|
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/
|
|
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`
|
|
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
|
|