@byteluck-fe/model-driven-controls 4.48.0-lx0 → 4.51.0-lx1

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.
@@ -204,7 +204,8 @@ _define_property(AttachmentControl, "setting", [
204
204
  COMMON_SETTING_TYPE.IS_HIDE_CAPTION,
205
205
  COMMON_SETTING_TYPE.IS_SHOW_CAPTION_TIP,
206
206
  COMMON_SETTING_TYPE.FORBID_DOWNLOAD,
207
- COMMON_SETTING_TYPE.ACCESS_CONTROL
207
+ COMMON_SETTING_TYPE.ACCESS_CONTROL,
208
+ COMMON_SETTING_TYPE.NOT_REPEAT_FILE_NAME
208
209
  ]
209
210
  },
210
211
  {
@@ -1,9 +1,9 @@
1
- /*
2
- * @Author: zhaoxiaoyang zhaoxiaoyang@byteluck.com
3
- * @Date: 2023-09-14 18:31:51
4
- * @LastEditors: zhaoxiaoyang zhaoxiaoyang@byteluck.com
5
- * @LastEditTime: 2023-09-19 15:49:31
6
- * @FilePath: /model-driven/packages/controls/src/formControls/Attachment/property.ts
1
+ /*
2
+ * @Author: zhaoxiaoyang zhaoxiaoyang@byteluck.com
3
+ * @Date: 2023-09-14 18:31:51
4
+ * @LastEditors: zhaoxiaoyang zhaoxiaoyang@byteluck.com
5
+ * @LastEditTime: 2023-09-19 15:49:31
6
+ * @FilePath: /model-driven/packages/controls/src/formControls/Attachment/property.ts
7
7
  */ function _assert_this_initialized(self) {
8
8
  if (self === void 0) {
9
9
  throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
@@ -135,15 +135,16 @@ var AttachmentProperty = /*#__PURE__*/ function(BaseControlProperty) {
135
135
  props
136
136
  ]), _define_property(_this, "defaultValue", void 0), // 默认格式和列表格式,原应用内是title和table
137
137
  _define_property(_this, "showType", void 0), _define_property(_this, "resultShowType", void 0), _define_property(_this, "attachmentAccept", void 0), _define_property(_this, "maxLimit", void 0), _define_property(_this, "minLimit", void 0), _define_property(_this, "isShowWatermark", void 0 // 是否开启水印
138
- ), _define_property(_this, "watermarkFx", void 0), /**
139
- * maxSize 存储大小,单位为Byte,默认值为100MB
140
- * */ _define_property(_this, "maxSize", void 0), /**
141
- * 禁止下载
142
- * default false
143
- */ _define_property(_this, "forbidDownload", void 0), /**
144
- * 访问控制
145
- * default false
146
- */ _define_property(_this, "accessControl", void 0);
138
+ ), _define_property(_this, "watermarkFx", void 0), /**
139
+ * maxSize 存储大小,单位为Byte,默认值为100MB
140
+ * */ _define_property(_this, "maxSize", void 0), /**
141
+ * 禁止下载
142
+ * default false
143
+ */ _define_property(_this, "forbidDownload", void 0), /**
144
+ * 访问控制
145
+ * default false
146
+ */ _define_property(_this, "accessControl", void 0), _define_property(_this, "notRepeatFileName", void 0 // 是否禁止上传重复文件名的附件
147
+ );
147
148
  var _props_defaultValue;
148
149
  _this.defaultValue = (_props_defaultValue = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _props_defaultValue !== void 0 ? _props_defaultValue : [];
149
150
  var _props_showType;
@@ -170,6 +171,8 @@ var AttachmentProperty = /*#__PURE__*/ function(BaseControlProperty) {
170
171
  _this.forbidDownload = (_props_forbidDownload = props === null || props === void 0 ? void 0 : props.forbidDownload) !== null && _props_forbidDownload !== void 0 ? _props_forbidDownload : false;
171
172
  var _props_accessControl;
172
173
  _this.accessControl = (_props_accessControl = props === null || props === void 0 ? void 0 : props.accessControl) !== null && _props_accessControl !== void 0 ? _props_accessControl : false;
174
+ var _props_notRepeatFileName;
175
+ _this.notRepeatFileName = (_props_notRepeatFileName = props === null || props === void 0 ? void 0 : props.notRepeatFileName) !== null && _props_notRepeatFileName !== void 0 ? _props_notRepeatFileName : false;
173
176
  return _this;
174
177
  }
175
178
  return AttachmentProperty;
@@ -153,7 +153,8 @@ _define_property(SubTableControl, "controlEventKeys", [
153
153
  'on_list_change',
154
154
  'on_list_delete',
155
155
  'on_list_before_insert',
156
- 'on_list_before_import'
156
+ 'on_list_before_import',
157
+ 'on_list_after_import'
157
158
  ]);
158
159
  _define_property(SubTableControl, "setting", [
159
160
  {