@byteluck-fe/model-driven-controls 2.23.0-beta.17 → 2.23.0-beta.19
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/dist/esm/columnControls/FileColumn/designer.js +4 -0
- package/dist/esm/columnControls/FileColumn/property.js +21 -1
- package/dist/esm/formControls/Attachment/designer.js +4 -0
- package/dist/esm/formControls/Attachment/property.js +8 -1
- package/dist/index.umd.js +1 -1
- package/dist/types/columnControls/FileColumn/property.d.ts +1 -0
- package/dist/types/formControls/Attachment/property.d.ts +1 -0
- package/package.json +5 -5
|
@@ -13,6 +13,19 @@ function _class_call_check(instance, Constructor) {
|
|
|
13
13
|
throw new TypeError("Cannot call a class as a function");
|
|
14
14
|
}
|
|
15
15
|
}
|
|
16
|
+
function _define_property(obj, key, value) {
|
|
17
|
+
if (key in obj) {
|
|
18
|
+
Object.defineProperty(obj, key, {
|
|
19
|
+
value: value,
|
|
20
|
+
enumerable: true,
|
|
21
|
+
configurable: true,
|
|
22
|
+
writable: true
|
|
23
|
+
});
|
|
24
|
+
} else {
|
|
25
|
+
obj[key] = value;
|
|
26
|
+
}
|
|
27
|
+
return obj;
|
|
28
|
+
}
|
|
16
29
|
function _get_prototype_of(o) {
|
|
17
30
|
_get_prototype_of = Object.setPrototypeOf ? Object.getPrototypeOf : function getPrototypeOf(o) {
|
|
18
31
|
return o.__proto__ || Object.getPrototypeOf(o);
|
|
@@ -69,9 +82,16 @@ import { DesignerFileColumnControl } from './designer';
|
|
|
69
82
|
var _this;
|
|
70
83
|
_this = _call_super(this, FileColumnControlProperty, [
|
|
71
84
|
props
|
|
72
|
-
])
|
|
85
|
+
]), // 附件按钮操作数组
|
|
86
|
+
_define_property(_this, "operation", void 0);
|
|
73
87
|
var _props_caption;
|
|
74
88
|
_this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : DesignerFileColumnControl.controlName;
|
|
89
|
+
var _props_operation;
|
|
90
|
+
_this.operation = (_props_operation = props === null || props === void 0 ? void 0 : props.operation) !== null && _props_operation !== void 0 ? _props_operation : [
|
|
91
|
+
'info',
|
|
92
|
+
'preview',
|
|
93
|
+
'download'
|
|
94
|
+
];
|
|
75
95
|
return _this;
|
|
76
96
|
}
|
|
77
97
|
return FileColumnControlProperty;
|
|
@@ -137,7 +137,8 @@ var AttachmentProperty = /*#__PURE__*/ function(BaseControlProperty) {
|
|
|
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
138
|
), _define_property(_this, "watermarkFx", void 0), /**
|
|
139
139
|
* maxSize 存储大小,单位为Byte,默认值为100MB
|
|
140
|
-
* */ _define_property(_this, "maxSize", void 0)
|
|
140
|
+
* */ _define_property(_this, "maxSize", void 0), // 附件按钮操作数组
|
|
141
|
+
_define_property(_this, "operation", void 0);
|
|
141
142
|
var _props_defaultValue;
|
|
142
143
|
_this.defaultValue = (_props_defaultValue = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _props_defaultValue !== void 0 ? _props_defaultValue : [];
|
|
143
144
|
var _props_showType;
|
|
@@ -160,6 +161,12 @@ var AttachmentProperty = /*#__PURE__*/ function(BaseControlProperty) {
|
|
|
160
161
|
_this.isShowWatermark = (_props_isShowWatermark = props === null || props === void 0 ? void 0 : props.isShowWatermark) !== null && _props_isShowWatermark !== void 0 ? _props_isShowWatermark : false;
|
|
161
162
|
var _props_watermarkFx;
|
|
162
163
|
_this.watermarkFx = (_props_watermarkFx = props === null || props === void 0 ? void 0 : props.watermarkFx) !== null && _props_watermarkFx !== void 0 ? _props_watermarkFx : {};
|
|
164
|
+
var _props_operation;
|
|
165
|
+
_this.operation = (_props_operation = props === null || props === void 0 ? void 0 : props.operation) !== null && _props_operation !== void 0 ? _props_operation : [
|
|
166
|
+
'info',
|
|
167
|
+
'preview',
|
|
168
|
+
'download'
|
|
169
|
+
];
|
|
163
170
|
return _this;
|
|
164
171
|
}
|
|
165
172
|
return AttachmentProperty;
|