@byteluck-fe/model-driven-controls 6.1.0-1-beta.2 → 6.1.0-1-beta.4
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;
|