@byteluck-fe/model-driven-controls 6.1.0-1-beta.3 → 6.1.0-1-beta.8

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.
@@ -123,7 +123,8 @@ var AttachmentControl = /*#__PURE__*/ function(DesignerFormControl) {
123
123
  return AttachmentControl;
124
124
  }(DesignerFormControl);
125
125
  _define_property(AttachmentControl, "controlEventKeys", [
126
- 'on_change'
126
+ 'on_change',
127
+ 'on_file_actions'
127
128
  ]);
128
129
  _define_property(AttachmentControl, "controlFieldType", FieldTypes.FILE);
129
130
  _define_property(AttachmentControl, "setting", [
@@ -185,6 +186,10 @@ _define_property(AttachmentControl, "setting", [
185
186
  key: 'attachment-size',
186
187
  visible: true
187
188
  },
189
+ {
190
+ key: 'attachment-custom-operation',
191
+ visible: true
192
+ },
188
193
  {
189
194
  key: 'attachment-operation',
190
195
  visible: true
@@ -140,7 +140,7 @@ var AttachmentProperty = /*#__PURE__*/ function(BaseControlProperty) {
140
140
  * */ _define_property(_this, "maxSize", void 0), // 附件按钮操作数组
141
141
  _define_property(_this, "operation", void 0), // 附件ai解释
142
142
  _define_property(_this, "aiExplanation", void 0), // 附件ai解释长度
143
- _define_property(_this, "aiExplanationLength", void 0);
143
+ _define_property(_this, "aiExplanationLength", void 0), _define_property(_this, "customOperation", void 0);
144
144
  var _props_defaultValue;
145
145
  _this.defaultValue = (_props_defaultValue = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _props_defaultValue !== void 0 ? _props_defaultValue : [];
146
146
  var _props_showType;
@@ -175,6 +175,8 @@ var AttachmentProperty = /*#__PURE__*/ function(BaseControlProperty) {
175
175
  _this.aiExplanationLength = (_props_aiExplanationLength = props === null || props === void 0 ? void 0 : props.aiExplanationLength) !== null && _props_aiExplanationLength !== void 0 ? _props_aiExplanationLength : 500;
176
176
  var _props_storageType;
177
177
  _this.storageType = (_props_storageType = props === null || props === void 0 ? void 0 : props.storageType) !== null && _props_storageType !== void 0 ? _props_storageType : 'local';
178
+ var _props_customOperation;
179
+ _this.customOperation = (_props_customOperation = props === null || props === void 0 ? void 0 : props.customOperation) !== null && _props_customOperation !== void 0 ? _props_customOperation : [];
178
180
  return _this;
179
181
  }
180
182
  return AttachmentProperty;
@@ -1,9 +1,9 @@
1
- /*
2
- * @Author: zhaoxiaoyang zhaoxiaoyang@byteluck.com
3
- * @Date: 2022-12-01 14:40:30
4
- * @LastEditors: zhaoxiaoyang zhaoxiaoyang@byteluck.com
5
- * @LastEditTime: 2023-09-19 15:50:38
6
- * @FilePath: /model-driven/packages/controls/src/formControls/Image/designer.ts
1
+ /*
2
+ * @Author: zhaoxiaoyang zhaoxiaoyang@byteluck.com
3
+ * @Date: 2022-12-01 14:40:30
4
+ * @LastEditors: zhaoxiaoyang zhaoxiaoyang@byteluck.com
5
+ * @LastEditTime: 2023-09-19 15:50:38
6
+ * @FilePath: /model-driven/packages/controls/src/formControls/Image/designer.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");
@@ -123,7 +123,8 @@ var SearchDateRangeProperty = /*#__PURE__*/ function(BaseControlProperty) {
123
123
  ), _define_property(_this, "dateFormat", void 0 //日期格式化字符串
124
124
  ), _define_property(_this, "commonTimeSetting", void 0 //常用时间配置
125
125
  ), _define_property(_this, "setValueType", void 0 // 日期默认值设置方式custom,now
126
- ), _define_property(_this, "defaultValue", void 0), _define_property(_this, "limitDateList", void 0);
126
+ ), _define_property(_this, "defaultValue", void 0), _define_property(_this, "limitDateList", void 0), _define_property(_this, "isInternational", void 0 //是否国际化
127
+ );
127
128
  var _props_defaultValue;
128
129
  _this.defaultValue = (_props_defaultValue = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _props_defaultValue !== void 0 ? _props_defaultValue : [
129
130
  '',
@@ -151,6 +152,8 @@ var SearchDateRangeProperty = /*#__PURE__*/ function(BaseControlProperty) {
151
152
  _this.limitDateList = (_props_limitDateList_map = props === null || props === void 0 ? void 0 : (_props_limitDateList = props.limitDateList) === null || _props_limitDateList === void 0 ? void 0 : _props_limitDateList.map(function(item) {
152
153
  return new LimitDate(item);
153
154
  })) !== null && _props_limitDateList_map !== void 0 ? _props_limitDateList_map : [];
155
+ var _props_isInternational;
156
+ _this.isInternational = (_props_isInternational = props === null || props === void 0 ? void 0 : props.isInternational) !== null && _props_isInternational !== void 0 ? _props_isInternational : false;
154
157
  return _this;
155
158
  }
156
159
  return SearchDateRangeProperty;