@newview/file-ui 1.1.49 → 1.1.51

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/README.md CHANGED
@@ -1,3 +1,16 @@
1
+ <!--
2
+ * @Description:
3
+ * @Author: 白松博
4
+ * @Date: 2025-03-07 13:44:45
5
+ * @LastEditors: 白松博
6
+ * @LastEditTime: 2026-01-14 12:12:31
7
+ -->
8
+ ## 1.1.51
9
+ 1.构建选择组件添加单位工程名称
10
+
11
+ ## 1.1.48
12
+ 1.新增房建构件划分选择组件
13
+
1
14
  ## 1.1.47
2
15
  1、UploadFile优化doBeforeUpload,增加对应'doc', 'docx', 'ppt', 'pptx', 'xls', 'xlsx'格式文件的文件名长度检测,
3
16
 
package/dist/file-ui.js CHANGED
@@ -359,8 +359,8 @@ let UploadFileInstance$1 = class UploadFileInstance extends BaseInstance {
359
359
  const ext = temp[temp.length - 1].toLowerCase();
360
360
  if (allowedExtensions.includes(ext)) {
361
361
  const fileNameWithoutExt = fileName.slice(0, -(ext.length + 1));
362
- if (fileNameWithoutExt.length > 20) {
363
- this.message.warning("文件名长度不能超过20个字符");
362
+ if (fileNameWithoutExt.length > 100) {
363
+ this.message.warning("文件名长度不能超过100个字符");
364
364
  flag = false;
365
365
  return reject();
366
366
  }
@@ -18834,6 +18834,7 @@ class StructureSelectInstance extends BaseInstance {
18834
18834
  return;
18835
18835
  }
18836
18836
  res = res.map((e) => {
18837
+ e.UnitName = this.activeUnitName;
18837
18838
  e.title = e.NodeName;
18838
18839
  e.loading = false;
18839
18840
  e.checked = this.StructureInstanceCheckData.value.find((x) => x["Id"] == e.Id) ? true : false;