el-plus-crud 0.1.124 → 0.1.126

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
@@ -2,6 +2,21 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
+ ### [0.1.126](https://github.com/KDJack/el-plus-crud/compare/v0.1.124...v0.1.126) (2026-08-19)
6
+
7
+
8
+ ### Bug Fixes
9
+
10
+ * **form:** suffix 归一化补点,dotless 后缀不再退化 FILE 图标或预览误判 ([4a8566e](https://github.com/KDJack/el-plus-crud/commit/4a8566e03cc60ca0086b9c1bafab7fa364c00a26))
11
+
12
+ ### [0.1.125](https://github.com/KDJack/el-plus-crud/compare/v0.1.124...v0.1.125) (2026-08-19)
13
+
14
+
15
+ ### Bug Fixes
16
+
17
+ * **form:** suffix 归一化补点(normalizeSuffix 单一来源),dotless 后缀("png")不再退化 FILE 图标、点击预览不再误判(file/upload 的 getFileType 与 isImageItem 三处)
18
+ * **form:** textSuffixes 中 html 补前导点,与全表口径一致(.html 此前不在 fileSuffixes 内)
19
+
5
20
  ### [0.1.124](https://github.com/KDJack/el-plus-crud/compare/v0.1.123...v0.1.124) (2026-08-15)
6
21
 
7
22
 
@@ -6,6 +6,12 @@ export declare const TYPE_META: Record<string, {
6
6
  cls: string;
7
7
  label: string;
8
8
  }>;
9
+ /**
10
+ * suffix 归一化:小写 + 统一前导点('.png')。
11
+ * 后端/调用方存在 dotless("png")口径,而后缀表(imageSuffixes/suffixTypes)全带点,
12
+ * dotless 匹配必失败 → 图片退化 FILE 图标 / 预览误判。getFileType 与 Upload.isImageItem 共用。
13
+ */
14
+ export declare function normalizeSuffix(suffix: any): string;
9
15
  /**
10
16
  * 取文件类型 key(img/pdf/word/excel/ppt/txt/zip/file)
11
17
  * 兼容 IOssInfo 与 el-upload 内部 file:suffix 优先取业务字段,缺失则从文件名提取扩展名兜底,