el-plus-crud 0.1.124 → 0.1.127

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.
@@ -0,0 +1,7 @@
1
+ {
2
+ "permissions": {
3
+ "allow": [
4
+ "Bash(npx vite *)"
5
+ ]
6
+ }
7
+ }
package/CHANGELOG.md CHANGED
@@ -2,6 +2,34 @@
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.127](https://github.com/KDJack/el-plus-crud/compare/v0.1.126...v0.1.127) (2026-08-20)
6
+
7
+
8
+ ### Features
9
+
10
+ * **form:** file/upload 非图片附件预览改为抽屉内嵌 iframe ([c3d46cb](https://github.com/KDJack/el-plus-crud/commit/c3d46cb76c417d7d9c19b60fbc72a8d16db54ad4))
11
+
12
+
13
+ ### Bug Fixes
14
+
15
+ * **form:** tag 组件 v-model 类型放宽为 any,兼容表格单元格绑定对象/数组原始值 ([522ba27](https://github.com/KDJack/el-plus-crud/commit/522ba27459ee679b31cfffdbc48d1d4a98588f3d))
16
+ * **form:** upload 上传项补落 previewUrl/shareUrl,附件预览不再回退原始地址 ([63a5388](https://github.com/KDJack/el-plus-crud/commit/63a53888d89cb78152c0ae8d723e9c896c471705))
17
+
18
+ ### [0.1.126](https://github.com/KDJack/el-plus-crud/compare/v0.1.124...v0.1.126) (2026-08-19)
19
+
20
+
21
+ ### Bug Fixes
22
+
23
+ * **form:** suffix 归一化补点,dotless 后缀不再退化 FILE 图标或预览误判 ([4a8566e](https://github.com/KDJack/el-plus-crud/commit/4a8566e03cc60ca0086b9c1bafab7fa364c00a26))
24
+
25
+ ### [0.1.125](https://github.com/KDJack/el-plus-crud/compare/v0.1.124...v0.1.125) (2026-08-19)
26
+
27
+
28
+ ### Bug Fixes
29
+
30
+ * **form:** suffix 归一化补点(normalizeSuffix 单一来源),dotless 后缀("png")不再退化 FILE 图标、点击预览不再误判(file/upload 的 getFileType 与 isImageItem 三处)
31
+ * **form:** textSuffixes 中 html 补前导点,与全表口径一致(.html 此前不在 fileSuffixes 内)
32
+
5
33
  ### [0.1.124](https://github.com/KDJack/el-plus-crud/compare/v0.1.123...v0.1.124) (2026-08-15)
6
34
 
7
35
 
@@ -1,5 +1,5 @@
1
1
  declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
2
- modelValue?: string | number | null | undefined;
2
+ modelValue?: any;
3
3
  field?: string | undefined;
4
4
  loading?: boolean | undefined;
5
5
  desc: {
@@ -10,7 +10,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
10
10
  } | undefined;
11
11
  disabled?: boolean | undefined;
12
12
  }>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
13
- modelValue?: string | number | null | undefined;
13
+ modelValue?: any;
14
14
  field?: string | undefined;
15
15
  loading?: boolean | undefined;
16
16
  desc: {
@@ -0,0 +1,7 @@
1
+ declare const _default: import('vue').DefineComponent<{}, {
2
+ openPreview: (item: any, cfg?: boolean | {
3
+ size?: string;
4
+ title?: string;
5
+ }) => void;
6
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
7
+ export default _default;
@@ -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 优先取业务字段,缺失则从文件名提取扩展名兜底,