@byteluck-fe/model-driven-controls 2.7.0-alpha.5 → 2.7.0-alpha.6
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.
|
@@ -85,11 +85,12 @@ var ExportListButtonProperty = /*#__PURE__*/ function(ButtonProperty1) {
|
|
|
85
85
|
_this.icon = (ref1 = props === null || props === void 0 ? void 0 : props.icon) !== null && ref1 !== void 0 ? ref1 : ExportListButtonControl.controlIcon;
|
|
86
86
|
var ref2;
|
|
87
87
|
_this.content = (ref2 = props === null || props === void 0 ? void 0 : props.content) !== null && ref2 !== void 0 ? ref2 : ExportListButtonControl.controlName;
|
|
88
|
-
_this.templateType = 'system';
|
|
89
88
|
var ref3;
|
|
90
|
-
_this.
|
|
89
|
+
_this.templateType = (ref3 = props === null || props === void 0 ? void 0 : props.templateType) !== null && ref3 !== void 0 ? ref3 : 'system';
|
|
90
|
+
var ref4;
|
|
91
|
+
_this.templateList = (ref4 = props === null || props === void 0 ? void 0 : (ref = props.templateList) === null || ref === void 0 ? void 0 : ref.map(function(item) {
|
|
91
92
|
return new ExportTemplate(item);
|
|
92
|
-
})) !== null &&
|
|
93
|
+
})) !== null && ref4 !== void 0 ? ref4 : [
|
|
93
94
|
new ExportTemplate({
|
|
94
95
|
id: 'default',
|
|
95
96
|
name: '默认模板',
|
|
@@ -128,17 +128,19 @@ var AttachmentProperty = /*#__PURE__*/ function(BaseControlProperty1) {
|
|
|
128
128
|
var ref1;
|
|
129
129
|
_this.showType = (ref1 = props === null || props === void 0 ? void 0 : props.showType) !== null && ref1 !== void 0 ? ref1 : 'default';
|
|
130
130
|
var ref2;
|
|
131
|
-
_this.
|
|
131
|
+
_this.resultShowType = (ref2 = props === null || props === void 0 ? void 0 : props.resultShowType) !== null && ref2 !== void 0 ? ref2 : 'simple';
|
|
132
132
|
var ref3;
|
|
133
|
-
_this.
|
|
133
|
+
_this.attachmentAccept = (ref3 = props === null || props === void 0 ? void 0 : props.attachmentAccept) !== null && ref3 !== void 0 ? ref3 : [];
|
|
134
134
|
var ref4;
|
|
135
|
-
_this.
|
|
135
|
+
_this.maxLimit = (ref4 = props === null || props === void 0 ? void 0 : props.maxLimit) !== null && ref4 !== void 0 ? ref4 : 10;
|
|
136
136
|
var ref5;
|
|
137
|
-
_this.
|
|
137
|
+
_this.minLimit = (ref5 = props === null || props === void 0 ? void 0 : props.minLimit) !== null && ref5 !== void 0 ? ref5 : 0;
|
|
138
138
|
var ref6;
|
|
139
|
-
_this.
|
|
139
|
+
_this.maxSize = (ref6 = props === null || props === void 0 ? void 0 : props.maxSize) !== null && ref6 !== void 0 ? ref6 : MB100;
|
|
140
140
|
var ref7;
|
|
141
|
-
_this.
|
|
141
|
+
_this.caption = (ref7 = props === null || props === void 0 ? void 0 : props.caption) !== null && ref7 !== void 0 ? ref7 : AttachmentControl.controlName;
|
|
142
|
+
var ref8;
|
|
143
|
+
_this.placeholder = (ref8 = props === null || props === void 0 ? void 0 : props.placeholder) !== null && ref8 !== void 0 ? ref8 : '上传附件';
|
|
142
144
|
return _this;
|
|
143
145
|
}
|
|
144
146
|
return AttachmentProperty;
|