@byteluck-fe/model-driven-controls 1.7.5 → 1.7.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.
- package/dist/esm/baseControls/BatchDeleteButton/designer.js +158 -0
- package/dist/esm/baseControls/BatchDeleteButton/index.js +11 -0
- package/dist/esm/baseControls/BatchDeleteButton/property.js +106 -0
- package/dist/esm/baseControls/BatchDeleteButton/runtime.js +110 -0
- package/dist/esm/baseControls/BatchDeleteButton/types.js +0 -0
- package/dist/esm/baseControls/BatchPrintListButton/property.js +10 -10
- package/dist/esm/baseControls/BatchPrintRecordListButton/property.js +4 -4
- package/dist/esm/baseControls/BatchSubmissionListButton/property.js +12 -12
- package/dist/esm/baseControls/Button/property.js +16 -16
- package/dist/esm/baseControls/CreateFormListButton/property.js +8 -8
- package/dist/esm/baseControls/Dashboard/property.js +12 -12
- package/dist/esm/baseControls/Divider/property.js +4 -4
- package/dist/esm/baseControls/ExportListButton/property.js +8 -8
- package/dist/esm/baseControls/ExportRecordListButton/property.js +4 -4
- package/dist/esm/baseControls/FormSelectButton/property.js +6 -6
- package/dist/esm/baseControls/ImportRecordListButton/property.js +8 -8
- package/dist/esm/baseControls/InvoiceCheckButton/property.js +20 -20
- package/dist/esm/baseControls/Link/property.js +6 -6
- package/dist/esm/baseControls/ListSelectButton/property.js +4 -4
- package/dist/esm/baseControls/ListViewSelect/property.js +6 -6
- package/dist/esm/baseControls/SubmissionRecordListButton/property.js +4 -4
- package/dist/esm/baseControls/Text/property.js +10 -10
- package/dist/esm/baseControls/TextOcrButton/property.js +20 -20
- package/dist/esm/baseControls/Title/property.js +4 -4
- package/dist/esm/baseControls/index.js +1 -0
- package/dist/esm/columnControls/ArrayColumn/property.js +6 -6
- package/dist/esm/columnControls/AutoNumberColumn/property.js +2 -2
- package/dist/esm/columnControls/CustomColumn/designer.js +1 -1
- package/dist/esm/columnControls/CustomColumn/property.js +4 -4
- package/dist/esm/columnControls/DecimalColumn/designer.js +1 -1
- package/dist/esm/columnControls/DecimalColumn/property.js +12 -12
- package/dist/esm/columnControls/DepartmentColumn/property.js +4 -4
- package/dist/esm/columnControls/EmployeeColumn/property.js +4 -4
- package/dist/esm/columnControls/FileColumn/property.js +2 -2
- package/dist/esm/columnControls/ImageColumn/property.js +2 -2
- package/dist/esm/columnControls/LocationColumn/property.js +2 -2
- package/dist/esm/columnControls/OperationColumn/property.js +12 -12
- package/dist/esm/columnControls/OrderColumn/property.js +8 -8
- package/dist/esm/columnControls/PeopleColumn/property.js +2 -2
- package/dist/esm/columnControls/TextColumn/property.js +6 -6
- package/dist/esm/columnControls/TimescopeColumn/property.js +4 -4
- package/dist/esm/columnControls/TimestampColumn/property.js +4 -4
- package/dist/esm/columnControls/VarcharColumn/property.js +8 -8
- package/dist/esm/formControls/Address/property.js +10 -10
- package/dist/esm/formControls/Amount/designer.js +1 -1
- package/dist/esm/formControls/Amount/property.js +22 -22
- package/dist/esm/formControls/Attachment/property.js +16 -16
- package/dist/esm/formControls/AutoNumber/property.js +6 -6
- package/dist/esm/formControls/Calc/designer.js +1 -1
- package/dist/esm/formControls/Calc/property.js +14 -14
- package/dist/esm/formControls/Checkbox/property.js +26 -26
- package/dist/esm/formControls/DatePicker/property.js +18 -18
- package/dist/esm/formControls/DateRange/property.js +18 -18
- package/dist/esm/formControls/Department/designer.js +1 -1
- package/dist/esm/formControls/Department/property.js +22 -22
- package/dist/esm/formControls/Department2/designer.js +1 -1
- package/dist/esm/formControls/Department2/property.js +30 -30
- package/dist/esm/formControls/ElectronicSignature/property.js +12 -12
- package/dist/esm/formControls/Employee/property.js +18 -18
- package/dist/esm/formControls/Employee2/property.js +28 -28
- package/dist/esm/formControls/Image/designer.js +5 -5
- package/dist/esm/formControls/Image/runtime.js +7 -7
- package/dist/esm/formControls/Input/property.js +14 -14
- package/dist/esm/formControls/Number/designer.js +1 -1
- package/dist/esm/formControls/Number/property.js +26 -26
- package/dist/esm/formControls/Radio/property.js +22 -22
- package/dist/esm/formControls/RichText/property.js +10 -10
- package/dist/esm/formControls/Score/designer.js +2 -2
- package/dist/esm/formControls/Score/property.js +14 -14
- package/dist/esm/formControls/SearchDateRange/property.js +20 -20
- package/dist/esm/formControls/SearchNumberRange/property.js +12 -12
- package/dist/esm/formControls/Select/property.js +16 -16
- package/dist/esm/formControls/SelectMultiple/property.js +14 -14
- package/dist/esm/formControls/SelectRelation/property.js +14 -14
- package/dist/esm/formControls/Textarea/property.js +12 -12
- package/dist/esm/formControls/Tree/property.js +26 -26
- package/dist/esm/formControls/VueFormItem/property.js +10 -10
- package/dist/esm/formControls/WPS/property.js +24 -24
- package/dist/esm/framework.js +70 -70
- package/dist/esm/layoutControls/CardGroup/property.js +6 -6
- package/dist/esm/layoutControls/Col/property.js +4 -4
- package/dist/esm/layoutControls/DataView/property.js +12 -12
- package/dist/esm/layoutControls/GridTableColumn/property.js +20 -20
- package/dist/esm/layoutControls/ListView/property.js +18 -16
- package/dist/esm/layoutControls/Page/property.js +2 -2
- package/dist/esm/layoutControls/Position/property.js +8 -8
- package/dist/esm/layoutControls/Row/property.js +4 -4
- package/dist/esm/layoutControls/SubTableColumn/property.js +12 -12
- package/dist/esm/layoutControls/Tab/designer.js +2 -2
- package/dist/esm/layoutControls/TabPane/property.js +2 -2
- package/dist/esm/listControls/GridTable/property.js +8 -8
- package/dist/esm/listControls/SubTable/designer.js +2 -2
- package/dist/esm/listControls/SubTable/property.js +42 -42
- package/dist/esm/searchControls/SimpleSearch/property.js +14 -14
- package/dist/esm/searchControls/SimpleSearch/runtime.js +2 -2
- package/dist/index.umd.js +1 -1
- package/dist/types/baseControls/BatchDeleteButton/designer.d.ts +13 -0
- package/dist/types/baseControls/BatchDeleteButton/index.d.ts +12 -0
- package/dist/types/baseControls/BatchDeleteButton/property.d.ts +14 -0
- package/dist/types/baseControls/BatchDeleteButton/runtime.d.ts +9 -0
- package/dist/types/baseControls/BatchDeleteButton/types.d.ts +0 -0
- package/dist/types/baseControls/index.d.ts +1 -0
- package/dist/types/layoutControls/ListView/property.d.ts +1 -0
- package/package.json +2 -2
|
@@ -123,41 +123,41 @@ var Department2Property = /*#__PURE__*/ function(BaseControlProperty) {
|
|
|
123
123
|
_classCallCheck(this, Department2Property);
|
|
124
124
|
var _this;
|
|
125
125
|
_this = _super.call(this, props);
|
|
126
|
-
var
|
|
127
|
-
_this.showType = (
|
|
128
|
-
var
|
|
129
|
-
_this.multiple = (
|
|
130
|
-
var
|
|
131
|
-
_this.range = (
|
|
132
|
-
var
|
|
133
|
-
_this.defaultValueType = (
|
|
134
|
-
var
|
|
135
|
-
_this.rangeOptions = (
|
|
136
|
-
var
|
|
137
|
-
_this.defaultValue = (
|
|
138
|
-
var
|
|
139
|
-
_this.displayLevel = (
|
|
140
|
-
var
|
|
141
|
-
_this.showSubDept = (
|
|
142
|
-
var
|
|
143
|
-
_this.caption = (
|
|
144
|
-
var
|
|
145
|
-
_this.placeholder = (
|
|
146
|
-
var
|
|
147
|
-
_this.datasourceBind = new SuperDataSourceBind((
|
|
126
|
+
var _props_showType;
|
|
127
|
+
_this.showType = (_props_showType = props === null || props === void 0 ? void 0 : props.showType) !== null && _props_showType !== void 0 ? _props_showType : "default";
|
|
128
|
+
var _props_multiple;
|
|
129
|
+
_this.multiple = (_props_multiple = props === null || props === void 0 ? void 0 : props.multiple) !== null && _props_multiple !== void 0 ? _props_multiple : false;
|
|
130
|
+
var _props_range;
|
|
131
|
+
_this.range = (_props_range = props === null || props === void 0 ? void 0 : props.range) !== null && _props_range !== void 0 ? _props_range : "all";
|
|
132
|
+
var _props_defaultValueType;
|
|
133
|
+
_this.defaultValueType = (_props_defaultValueType = props === null || props === void 0 ? void 0 : props.defaultValueType) !== null && _props_defaultValueType !== void 0 ? _props_defaultValueType : "none";
|
|
134
|
+
var _props_rangeOptions;
|
|
135
|
+
_this.rangeOptions = (_props_rangeOptions = props === null || props === void 0 ? void 0 : props.rangeOptions) !== null && _props_rangeOptions !== void 0 ? _props_rangeOptions : [];
|
|
136
|
+
var _props_defaultValue;
|
|
137
|
+
_this.defaultValue = (_props_defaultValue = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _props_defaultValue !== void 0 ? _props_defaultValue : [];
|
|
138
|
+
var _props_displayLevel;
|
|
139
|
+
_this.displayLevel = (_props_displayLevel = props === null || props === void 0 ? void 0 : props.displayLevel) !== null && _props_displayLevel !== void 0 ? _props_displayLevel : 1;
|
|
140
|
+
var _props_showSubDept;
|
|
141
|
+
_this.showSubDept = (_props_showSubDept = props === null || props === void 0 ? void 0 : props.showSubDept) !== null && _props_showSubDept !== void 0 ? _props_showSubDept : true;
|
|
142
|
+
var _props_caption;
|
|
143
|
+
_this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : Department2Control.controlName;
|
|
144
|
+
var _props_placeholder;
|
|
145
|
+
_this.placeholder = (_props_placeholder = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _props_placeholder !== void 0 ? _props_placeholder : "请选择部门";
|
|
146
|
+
var _props_datasourceBind;
|
|
147
|
+
_this.datasourceBind = new SuperDataSourceBind((_props_datasourceBind = props === null || props === void 0 ? void 0 : props.datasourceBind) !== null && _props_datasourceBind !== void 0 ? _props_datasourceBind : {
|
|
148
148
|
attributes: Department2Control.controlCustomAttributes
|
|
149
149
|
});
|
|
150
|
-
var
|
|
151
|
-
_this.datasourceType = (
|
|
152
|
-
var
|
|
153
|
-
_this.businessScope = (
|
|
154
|
-
var
|
|
155
|
-
_this.businessType = (
|
|
150
|
+
var _props_datasourceType;
|
|
151
|
+
_this.datasourceType = (_props_datasourceType = props === null || props === void 0 ? void 0 : props.datasourceType) !== null && _props_datasourceType !== void 0 ? _props_datasourceType : DepartmentType.INTERNAL;
|
|
152
|
+
var _props_businessScope;
|
|
153
|
+
_this.businessScope = (_props_businessScope = props === null || props === void 0 ? void 0 : props.businessScope) !== null && _props_businessScope !== void 0 ? _props_businessScope : [];
|
|
154
|
+
var _props_businessType;
|
|
155
|
+
_this.businessType = (_props_businessType = props === null || props === void 0 ? void 0 : props.businessType) !== null && _props_businessType !== void 0 ? _props_businessType : AssignType.ALL;
|
|
156
156
|
_this.multistageFilling = [];
|
|
157
157
|
if (Array.isArray(props === null || props === void 0 ? void 0 : props.multistageFilling)) {
|
|
158
158
|
props === null || props === void 0 ? void 0 : props.multistageFilling.map(function(item) {
|
|
159
|
-
var
|
|
160
|
-
(
|
|
159
|
+
var _this_multistageFilling;
|
|
160
|
+
(_this_multistageFilling = _this.multistageFilling) === null || _this_multistageFilling === void 0 ? void 0 : _this_multistageFilling.push(new MultistageFillingItem(item));
|
|
161
161
|
});
|
|
162
162
|
}
|
|
163
163
|
return _this;
|
|
@@ -172,18 +172,18 @@ var ElectronicSignatureProperty = /*#__PURE__*/ function(BaseControlProperty) {
|
|
|
172
172
|
_this = _super.call(this, props);
|
|
173
173
|
_this.command = "";
|
|
174
174
|
_this.isLoading = false;
|
|
175
|
-
var
|
|
176
|
-
_this.caption = (
|
|
177
|
-
var
|
|
178
|
-
_this.content = (
|
|
179
|
-
var
|
|
180
|
-
_this.buttonType = (
|
|
181
|
-
var
|
|
182
|
-
_this.showType = (
|
|
183
|
-
var
|
|
184
|
-
_this.color = (
|
|
185
|
-
var
|
|
186
|
-
_this.icon = (
|
|
175
|
+
var _props_caption;
|
|
176
|
+
_this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : ElectronicSignatureControl.controlName;
|
|
177
|
+
var _props_content;
|
|
178
|
+
_this.content = (_props_content = props === null || props === void 0 ? void 0 : props.content) !== null && _props_content !== void 0 ? _props_content : "发起签署";
|
|
179
|
+
var _props_buttonType;
|
|
180
|
+
_this.buttonType = (_props_buttonType = props === null || props === void 0 ? void 0 : props.buttonType) !== null && _props_buttonType !== void 0 ? _props_buttonType : "primary";
|
|
181
|
+
var _props_showType;
|
|
182
|
+
_this.showType = (_props_showType = props === null || props === void 0 ? void 0 : props.showType) !== null && _props_showType !== void 0 ? _props_showType : "text";
|
|
183
|
+
var _props_color;
|
|
184
|
+
_this.color = (_props_color = props === null || props === void 0 ? void 0 : props.color) !== null && _props_color !== void 0 ? _props_color : "primary";
|
|
185
|
+
var _props_icon;
|
|
186
|
+
_this.icon = (_props_icon = props === null || props === void 0 ? void 0 : props.icon) !== null && _props_icon !== void 0 ? _props_icon : "iconfenlei2";
|
|
187
187
|
_this.signatureConfig = new ElectronicSignatureConfig(props === null || props === void 0 ? void 0 : props.signatureConfig);
|
|
188
188
|
return _this;
|
|
189
189
|
}
|
|
@@ -92,27 +92,27 @@ var EmployeeProperty = /*#__PURE__*/ function(BaseControlProperty) {
|
|
|
92
92
|
_classCallCheck(this, EmployeeProperty);
|
|
93
93
|
var _this;
|
|
94
94
|
_this = _super.call(this, props);
|
|
95
|
-
var
|
|
96
|
-
_this.showType = (
|
|
97
|
-
var
|
|
98
|
-
_this.range = (
|
|
99
|
-
var
|
|
100
|
-
_this.rangeOptions = (
|
|
101
|
-
var
|
|
102
|
-
_this.multiple = (
|
|
103
|
-
var
|
|
104
|
-
_this.defaultValueType = (
|
|
105
|
-
var
|
|
106
|
-
_this.defaultValue = (
|
|
107
|
-
var
|
|
108
|
-
_this.caption = (
|
|
109
|
-
var
|
|
110
|
-
_this.placeholder = (
|
|
95
|
+
var _props_showType;
|
|
96
|
+
_this.showType = (_props_showType = props === null || props === void 0 ? void 0 : props.showType) !== null && _props_showType !== void 0 ? _props_showType : "default";
|
|
97
|
+
var _props_range;
|
|
98
|
+
_this.range = (_props_range = props === null || props === void 0 ? void 0 : props.range) !== null && _props_range !== void 0 ? _props_range : "all";
|
|
99
|
+
var _props_rangeOptions;
|
|
100
|
+
_this.rangeOptions = (_props_rangeOptions = props === null || props === void 0 ? void 0 : props.rangeOptions) !== null && _props_rangeOptions !== void 0 ? _props_rangeOptions : [];
|
|
101
|
+
var _props_multiple;
|
|
102
|
+
_this.multiple = (_props_multiple = props === null || props === void 0 ? void 0 : props.multiple) !== null && _props_multiple !== void 0 ? _props_multiple : false;
|
|
103
|
+
var _props_defaultValueType;
|
|
104
|
+
_this.defaultValueType = (_props_defaultValueType = props === null || props === void 0 ? void 0 : props.defaultValueType) !== null && _props_defaultValueType !== void 0 ? _props_defaultValueType : "none";
|
|
105
|
+
var _props_defaultValue;
|
|
106
|
+
_this.defaultValue = (_props_defaultValue = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _props_defaultValue !== void 0 ? _props_defaultValue : [];
|
|
107
|
+
var _props_caption;
|
|
108
|
+
_this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : EmployeeControl.controlName;
|
|
109
|
+
var _props_placeholder;
|
|
110
|
+
_this.placeholder = (_props_placeholder = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _props_placeholder !== void 0 ? _props_placeholder : "请输入人员姓名或邮箱";
|
|
111
111
|
_this.multistageFilling = [];
|
|
112
112
|
if (Array.isArray(props === null || props === void 0 ? void 0 : props.multistageFilling)) {
|
|
113
113
|
props === null || props === void 0 ? void 0 : props.multistageFilling.map(function(item) {
|
|
114
|
-
var
|
|
115
|
-
(
|
|
114
|
+
var _this_multistageFilling;
|
|
115
|
+
(_this_multistageFilling = _this.multistageFilling) === null || _this_multistageFilling === void 0 ? void 0 : _this_multistageFilling.push(new MultistageFillingItem(item));
|
|
116
116
|
});
|
|
117
117
|
}
|
|
118
118
|
return _this;
|
|
@@ -123,40 +123,40 @@ var Employee2Property = /*#__PURE__*/ function(BaseControlProperty) {
|
|
|
123
123
|
_classCallCheck(this, Employee2Property);
|
|
124
124
|
var _this;
|
|
125
125
|
_this = _super.call(this, props);
|
|
126
|
-
var
|
|
127
|
-
_this.showType = (
|
|
128
|
-
var
|
|
129
|
-
_this.range = (
|
|
130
|
-
var
|
|
131
|
-
_this.rangeOptions = (
|
|
132
|
-
var
|
|
133
|
-
_this.multiple = (
|
|
134
|
-
var
|
|
135
|
-
_this.defaultValueType = (
|
|
136
|
-
var
|
|
137
|
-
_this.defaultValue = (
|
|
138
|
-
var
|
|
139
|
-
_this.caption = (
|
|
140
|
-
var
|
|
141
|
-
_this.placeholder = (
|
|
142
|
-
var
|
|
143
|
-
_this.datasourceBind = new SuperDataSourceBind((
|
|
126
|
+
var _props_showType;
|
|
127
|
+
_this.showType = (_props_showType = props === null || props === void 0 ? void 0 : props.showType) !== null && _props_showType !== void 0 ? _props_showType : "default";
|
|
128
|
+
var _props_range;
|
|
129
|
+
_this.range = (_props_range = props === null || props === void 0 ? void 0 : props.range) !== null && _props_range !== void 0 ? _props_range : "all";
|
|
130
|
+
var _props_rangeOptions;
|
|
131
|
+
_this.rangeOptions = (_props_rangeOptions = props === null || props === void 0 ? void 0 : props.rangeOptions) !== null && _props_rangeOptions !== void 0 ? _props_rangeOptions : [];
|
|
132
|
+
var _props_multiple;
|
|
133
|
+
_this.multiple = (_props_multiple = props === null || props === void 0 ? void 0 : props.multiple) !== null && _props_multiple !== void 0 ? _props_multiple : false;
|
|
134
|
+
var _props_defaultValueType;
|
|
135
|
+
_this.defaultValueType = (_props_defaultValueType = props === null || props === void 0 ? void 0 : props.defaultValueType) !== null && _props_defaultValueType !== void 0 ? _props_defaultValueType : "none";
|
|
136
|
+
var _props_defaultValue;
|
|
137
|
+
_this.defaultValue = (_props_defaultValue = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _props_defaultValue !== void 0 ? _props_defaultValue : [];
|
|
138
|
+
var _props_caption;
|
|
139
|
+
_this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : Employee2Control.controlName;
|
|
140
|
+
var _props_placeholder;
|
|
141
|
+
_this.placeholder = (_props_placeholder = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _props_placeholder !== void 0 ? _props_placeholder : "请输入人员姓名或邮箱";
|
|
142
|
+
var _props_datasourceBind;
|
|
143
|
+
_this.datasourceBind = new SuperDataSourceBind((_props_datasourceBind = props === null || props === void 0 ? void 0 : props.datasourceBind) !== null && _props_datasourceBind !== void 0 ? _props_datasourceBind : {
|
|
144
144
|
attributes: Employee2Control.controlCustomAttributes
|
|
145
145
|
});
|
|
146
|
-
var
|
|
147
|
-
_this.datasourceType = (
|
|
146
|
+
var _props_datasourceType;
|
|
147
|
+
_this.datasourceType = (_props_datasourceType = props === null || props === void 0 ? void 0 : props.datasourceType) !== null && _props_datasourceType !== void 0 ? _props_datasourceType : OrganizeType.INTERNAL //默认内部组织 EXTERNAL 外部组织
|
|
148
148
|
;
|
|
149
|
-
var
|
|
150
|
-
_this.insideType = (
|
|
151
|
-
var
|
|
152
|
-
_this.externalType = (
|
|
153
|
-
var
|
|
154
|
-
_this.externalScope = (
|
|
149
|
+
var _props_insideType;
|
|
150
|
+
_this.insideType = (_props_insideType = props === null || props === void 0 ? void 0 : props.insideType) !== null && _props_insideType !== void 0 ? _props_insideType : InternalType.ADMIN;
|
|
151
|
+
var _props_externalType;
|
|
152
|
+
_this.externalType = (_props_externalType = props === null || props === void 0 ? void 0 : props.externalType) !== null && _props_externalType !== void 0 ? _props_externalType : AssignType.ALL;
|
|
153
|
+
var _props_externalScope;
|
|
154
|
+
_this.externalScope = (_props_externalScope = props === null || props === void 0 ? void 0 : props.externalScope) !== null && _props_externalScope !== void 0 ? _props_externalScope : [];
|
|
155
155
|
_this.multistageFilling = [];
|
|
156
156
|
if (Array.isArray(props === null || props === void 0 ? void 0 : props.multistageFilling)) {
|
|
157
157
|
props === null || props === void 0 ? void 0 : props.multistageFilling.map(function(item) {
|
|
158
|
-
var
|
|
159
|
-
(
|
|
158
|
+
var _this_multistageFilling;
|
|
159
|
+
(_this_multistageFilling = _this.multistageFilling) === null || _this_multistageFilling === void 0 ? void 0 : _this_multistageFilling.push(new MultistageFillingItem(item));
|
|
160
160
|
});
|
|
161
161
|
}
|
|
162
162
|
return _this;
|
|
@@ -93,13 +93,13 @@ var ImageControl = /*#__PURE__*/ function(DesignerAttachmentControl) {
|
|
|
93
93
|
function ImageControl(props) {
|
|
94
94
|
_classCallCheck(this, ImageControl);
|
|
95
95
|
var _this;
|
|
96
|
-
var
|
|
96
|
+
var _props_props, _props_props1;
|
|
97
97
|
_this = _super.call(this, props);
|
|
98
98
|
_this.props.showType = "image";
|
|
99
|
-
var
|
|
100
|
-
_this.props.caption = (
|
|
101
|
-
var
|
|
102
|
-
_this.props.placeholder = (
|
|
99
|
+
var _props_props_caption;
|
|
100
|
+
_this.props.caption = (_props_props_caption = props === null || props === void 0 ? void 0 : (_props_props = props.props) === null || _props_props === void 0 ? void 0 : _props_props.caption) !== null && _props_props_caption !== void 0 ? _props_props_caption : ImageControl.controlName;
|
|
101
|
+
var _props_props_placeholder;
|
|
102
|
+
_this.props.placeholder = (_props_props_placeholder = props === null || props === void 0 ? void 0 : (_props_props1 = props.props) === null || _props_props1 === void 0 ? void 0 : _props_props1.placeholder) !== null && _props_props_placeholder !== void 0 ? _props_props_placeholder : "上传图片";
|
|
103
103
|
return _this;
|
|
104
104
|
}
|
|
105
105
|
_createClass(ImageControl, null, [
|
|
@@ -91,15 +91,15 @@ var ImageControl = /*#__PURE__*/ function(RuntimeAttachmentControl) {
|
|
|
91
91
|
function ImageControl(props) {
|
|
92
92
|
_classCallCheck(this, ImageControl);
|
|
93
93
|
var _this;
|
|
94
|
-
var
|
|
94
|
+
var _props_props, _props_props1, _props_props2;
|
|
95
95
|
_this = _super.call(this, props);
|
|
96
96
|
_this.props.showType = "image";
|
|
97
|
-
var
|
|
98
|
-
_this.props.maxLimit = (
|
|
99
|
-
var
|
|
100
|
-
_this.props.caption = (
|
|
101
|
-
var
|
|
102
|
-
_this.props.placeholder = (
|
|
97
|
+
var _props_props_maxLimit;
|
|
98
|
+
_this.props.maxLimit = (_props_props_maxLimit = props === null || props === void 0 ? void 0 : (_props_props = props.props) === null || _props_props === void 0 ? void 0 : _props_props.maxLimit) !== null && _props_props_maxLimit !== void 0 ? _props_props_maxLimit : 9;
|
|
99
|
+
var _props_props_caption;
|
|
100
|
+
_this.props.caption = (_props_props_caption = props === null || props === void 0 ? void 0 : (_props_props1 = props.props) === null || _props_props1 === void 0 ? void 0 : _props_props1.caption) !== null && _props_props_caption !== void 0 ? _props_props_caption : "图片";
|
|
101
|
+
var _props_props_placeholder;
|
|
102
|
+
_this.props.placeholder = (_props_props_placeholder = props === null || props === void 0 ? void 0 : (_props_props2 = props.props) === null || _props_props2 === void 0 ? void 0 : _props_props2.placeholder) !== null && _props_props_placeholder !== void 0 ? _props_props_placeholder : "上传图片";
|
|
103
103
|
return _this;
|
|
104
104
|
}
|
|
105
105
|
_createClass(ImageControl, null, [
|
|
@@ -154,21 +154,21 @@ var InputProperty = /*#__PURE__*/ function(BaseControlProperty) {
|
|
|
154
154
|
_classCallCheck(this, InputProperty);
|
|
155
155
|
var _this;
|
|
156
156
|
_this = _super.call(this, props);
|
|
157
|
-
var
|
|
158
|
-
_this.maxLength = (
|
|
159
|
-
var
|
|
160
|
-
_this.minLength = (
|
|
157
|
+
var _props_maxLength;
|
|
158
|
+
_this.maxLength = (_props_maxLength = props === null || props === void 0 ? void 0 : props.maxLength) !== null && _props_maxLength !== void 0 ? _props_maxLength : 200;
|
|
159
|
+
var _props_minLength;
|
|
160
|
+
_this.minLength = (_props_minLength = props === null || props === void 0 ? void 0 : props.minLength) !== null && _props_minLength !== void 0 ? _props_minLength : 0;
|
|
161
161
|
_this.regularRules = new RegularRules(props === null || props === void 0 ? void 0 : props.regularRules);
|
|
162
|
-
var
|
|
163
|
-
_this.defaultValue = (
|
|
164
|
-
var
|
|
165
|
-
_this.caption = (
|
|
166
|
-
var
|
|
167
|
-
_this.placeholder = (
|
|
168
|
-
var
|
|
169
|
-
_this.encrypted = (
|
|
170
|
-
var
|
|
171
|
-
_this.encryptedMode = (
|
|
162
|
+
var _props_defaultValue;
|
|
163
|
+
_this.defaultValue = (_props_defaultValue = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _props_defaultValue !== void 0 ? _props_defaultValue : "";
|
|
164
|
+
var _props_caption;
|
|
165
|
+
_this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : InputControl.controlName;
|
|
166
|
+
var _props_placeholder;
|
|
167
|
+
_this.placeholder = (_props_placeholder = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _props_placeholder !== void 0 ? _props_placeholder : "请输入";
|
|
168
|
+
var _props_encrypted;
|
|
169
|
+
_this.encrypted = (_props_encrypted = props === null || props === void 0 ? void 0 : props.encrypted) !== null && _props_encrypted !== void 0 ? _props_encrypted : false;
|
|
170
|
+
var _props_encryptedMode;
|
|
171
|
+
_this.encryptedMode = (_props_encryptedMode = props === null || props === void 0 ? void 0 : props.encryptedMode) !== null && _props_encryptedMode !== void 0 ? _props_encryptedMode : "";
|
|
172
172
|
return _this;
|
|
173
173
|
}
|
|
174
174
|
return InputProperty;
|
|
@@ -124,7 +124,7 @@ var NumberControl = /*#__PURE__*/ function(DesignerFormControl) {
|
|
|
124
124
|
_proto.toDataBindModel = function toDataBindModel(parentId) {
|
|
125
125
|
var dataBindModel = _get(_getPrototypeOf(NumberControl.prototype), "toDataBindModel", this).call(this, parentId);
|
|
126
126
|
if (dataBindModel && !Array.isArray(dataBindModel)) {
|
|
127
|
-
var
|
|
127
|
+
var _this_props = this.props, precision = _this_props.precision, micrometer = _this_props.micrometer;
|
|
128
128
|
precision !== "" && (dataBindModel.props.precision = precision);
|
|
129
129
|
dataBindModel.props.micrometer = micrometer;
|
|
130
130
|
}
|
|
@@ -155,32 +155,32 @@ var NumberProperty = /*#__PURE__*/ function(BaseControlProperty) {
|
|
|
155
155
|
_classCallCheck(this, NumberProperty);
|
|
156
156
|
var _this;
|
|
157
157
|
_this = _super.call(this, props);
|
|
158
|
-
var
|
|
159
|
-
_this.rangeMin = (
|
|
160
|
-
var
|
|
161
|
-
_this.rangeMax = (
|
|
162
|
-
var
|
|
163
|
-
_this.numberType = (
|
|
164
|
-
var
|
|
165
|
-
_this.percentageFormat = (
|
|
166
|
-
var
|
|
167
|
-
_this.micrometer = (
|
|
168
|
-
var
|
|
169
|
-
_this.precision = (
|
|
170
|
-
var
|
|
171
|
-
_this.showUpperCase = (
|
|
172
|
-
var
|
|
173
|
-
_this.isShowUnit = (
|
|
174
|
-
var
|
|
175
|
-
_this.unitPosition = (
|
|
176
|
-
var
|
|
177
|
-
_this.unit = (
|
|
178
|
-
var
|
|
179
|
-
_this.caption = (
|
|
180
|
-
var
|
|
181
|
-
_this.placeholder = (
|
|
182
|
-
var
|
|
183
|
-
_this.defaultValue = (
|
|
158
|
+
var _props_rangeMin;
|
|
159
|
+
_this.rangeMin = (_props_rangeMin = props === null || props === void 0 ? void 0 : props.rangeMin) !== null && _props_rangeMin !== void 0 ? _props_rangeMin : "";
|
|
160
|
+
var _props_rangeMax;
|
|
161
|
+
_this.rangeMax = (_props_rangeMax = props === null || props === void 0 ? void 0 : props.rangeMax) !== null && _props_rangeMax !== void 0 ? _props_rangeMax : "";
|
|
162
|
+
var _props_numberType;
|
|
163
|
+
_this.numberType = (_props_numberType = props === null || props === void 0 ? void 0 : props.numberType) !== null && _props_numberType !== void 0 ? _props_numberType : "number";
|
|
164
|
+
var _props_percentageFormat;
|
|
165
|
+
_this.percentageFormat = (_props_percentageFormat = props === null || props === void 0 ? void 0 : props.percentageFormat) !== null && _props_percentageFormat !== void 0 ? _props_percentageFormat : false;
|
|
166
|
+
var _props_micrometer;
|
|
167
|
+
_this.micrometer = (_props_micrometer = props === null || props === void 0 ? void 0 : props.micrometer) !== null && _props_micrometer !== void 0 ? _props_micrometer : false;
|
|
168
|
+
var _props_precision;
|
|
169
|
+
_this.precision = (_props_precision = props === null || props === void 0 ? void 0 : props.precision) !== null && _props_precision !== void 0 ? _props_precision : 0;
|
|
170
|
+
var _props_showUpperCase;
|
|
171
|
+
_this.showUpperCase = (_props_showUpperCase = props === null || props === void 0 ? void 0 : props.showUpperCase) !== null && _props_showUpperCase !== void 0 ? _props_showUpperCase : false;
|
|
172
|
+
var _props_isShowUnit;
|
|
173
|
+
_this.isShowUnit = (_props_isShowUnit = props === null || props === void 0 ? void 0 : props.isShowUnit) !== null && _props_isShowUnit !== void 0 ? _props_isShowUnit : false;
|
|
174
|
+
var _props_unitPosition;
|
|
175
|
+
_this.unitPosition = (_props_unitPosition = props === null || props === void 0 ? void 0 : props.unitPosition) !== null && _props_unitPosition !== void 0 ? _props_unitPosition : "right";
|
|
176
|
+
var _props_unit;
|
|
177
|
+
_this.unit = (_props_unit = props === null || props === void 0 ? void 0 : props.unit) !== null && _props_unit !== void 0 ? _props_unit : "";
|
|
178
|
+
var _props_caption;
|
|
179
|
+
_this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : NumberControl.controlName;
|
|
180
|
+
var _props_placeholder;
|
|
181
|
+
_this.placeholder = (_props_placeholder = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _props_placeholder !== void 0 ? _props_placeholder : "请输入";
|
|
182
|
+
var _props_defaultValue;
|
|
183
|
+
_this.defaultValue = (_props_defaultValue = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _props_defaultValue !== void 0 ? _props_defaultValue : "";
|
|
184
184
|
_this.regularRules = new RegularRules(props === null || props === void 0 ? void 0 : props.regularRules);
|
|
185
185
|
return _this;
|
|
186
186
|
}
|
|
@@ -89,8 +89,8 @@ var RadioProperty = /*#__PURE__*/ function(BaseControlProperty) {
|
|
|
89
89
|
_classCallCheck(this, RadioProperty);
|
|
90
90
|
var _this;
|
|
91
91
|
_this = _super.call(this, props);
|
|
92
|
-
var
|
|
93
|
-
_this.options = initOptions((
|
|
92
|
+
var _props_options;
|
|
93
|
+
_this.options = initOptions((_props_options = props === null || props === void 0 ? void 0 : props.options) !== null && _props_options !== void 0 ? _props_options : [
|
|
94
94
|
{
|
|
95
95
|
label: "选项一",
|
|
96
96
|
value: "选项一"
|
|
@@ -104,30 +104,30 @@ var RadioProperty = /*#__PURE__*/ function(BaseControlProperty) {
|
|
|
104
104
|
value: "选项三"
|
|
105
105
|
}
|
|
106
106
|
]);
|
|
107
|
-
var
|
|
108
|
-
_this.radioMode = (
|
|
109
|
-
var
|
|
110
|
-
_this.optionConfig = (
|
|
111
|
-
var
|
|
112
|
-
_this.otherOption = (
|
|
113
|
-
var
|
|
114
|
-
_this.optionsOrder = (
|
|
115
|
-
var
|
|
116
|
-
_this.defaultShowOptions = (
|
|
117
|
-
var
|
|
118
|
-
_this.optionsFormat = (
|
|
107
|
+
var _props_radioMode;
|
|
108
|
+
_this.radioMode = (_props_radioMode = props === null || props === void 0 ? void 0 : props.radioMode) !== null && _props_radioMode !== void 0 ? _props_radioMode : "horizontal";
|
|
109
|
+
var _props_optionConfig;
|
|
110
|
+
_this.optionConfig = (_props_optionConfig = props === null || props === void 0 ? void 0 : props.optionConfig) !== null && _props_optionConfig !== void 0 ? _props_optionConfig : "custom";
|
|
111
|
+
var _props_otherOption;
|
|
112
|
+
_this.otherOption = (_props_otherOption = props === null || props === void 0 ? void 0 : props.otherOption) !== null && _props_otherOption !== void 0 ? _props_otherOption : false;
|
|
113
|
+
var _props_optionsOrder;
|
|
114
|
+
_this.optionsOrder = (_props_optionsOrder = props === null || props === void 0 ? void 0 : props.optionsOrder) !== null && _props_optionsOrder !== void 0 ? _props_optionsOrder : false;
|
|
115
|
+
var _props_defaultShowOptions;
|
|
116
|
+
_this.defaultShowOptions = (_props_defaultShowOptions = props === null || props === void 0 ? void 0 : props.defaultShowOptions) !== null && _props_defaultShowOptions !== void 0 ? _props_defaultShowOptions : true;
|
|
117
|
+
var _props_optionsFormat;
|
|
118
|
+
_this.optionsFormat = (_props_optionsFormat = props === null || props === void 0 ? void 0 : props.optionsFormat) !== null && _props_optionsFormat !== void 0 ? _props_optionsFormat : "horizontal";
|
|
119
119
|
_this.datasourceBind = new DataSourceBind(props === null || props === void 0 ? void 0 : props.datasourceBind);
|
|
120
|
-
var
|
|
121
|
-
_this.interreaction = (
|
|
122
|
-
var
|
|
123
|
-
_this.caption = (
|
|
124
|
-
var
|
|
125
|
-
_this.defaultValue = (
|
|
120
|
+
var _props_interreaction;
|
|
121
|
+
_this.interreaction = (_props_interreaction = props === null || props === void 0 ? void 0 : props.interreaction) !== null && _props_interreaction !== void 0 ? _props_interreaction : [];
|
|
122
|
+
var _props_caption;
|
|
123
|
+
_this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : RadioControl.controlName;
|
|
124
|
+
var _props_defaultValue;
|
|
125
|
+
_this.defaultValue = (_props_defaultValue = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _props_defaultValue !== void 0 ? _props_defaultValue : "";
|
|
126
126
|
_this.multistageFilling = [];
|
|
127
127
|
if (Array.isArray(props === null || props === void 0 ? void 0 : props.multistageFilling)) {
|
|
128
128
|
props === null || props === void 0 ? void 0 : props.multistageFilling.map(function(item) {
|
|
129
|
-
var
|
|
130
|
-
(
|
|
129
|
+
var _this_multistageFilling;
|
|
130
|
+
(_this_multistageFilling = _this.multistageFilling) === null || _this_multistageFilling === void 0 ? void 0 : _this_multistageFilling.push(new MultistageFillingItem(item));
|
|
131
131
|
});
|
|
132
132
|
}
|
|
133
133
|
return _this;
|
|
@@ -137,16 +137,16 @@ var RichTextProperty = /*#__PURE__*/ function(BaseControlProperty) {
|
|
|
137
137
|
_classCallCheck(this, RichTextProperty);
|
|
138
138
|
var _this;
|
|
139
139
|
_this = _super.call(this, props);
|
|
140
|
-
var
|
|
141
|
-
_this.maxLength = (
|
|
142
|
-
var
|
|
143
|
-
_this.minLength = (
|
|
144
|
-
var
|
|
145
|
-
_this.defaultValue = (
|
|
146
|
-
var
|
|
147
|
-
_this.caption = (
|
|
148
|
-
var
|
|
149
|
-
_this.placeholder = (
|
|
140
|
+
var _props_maxLength;
|
|
141
|
+
_this.maxLength = (_props_maxLength = props === null || props === void 0 ? void 0 : props.maxLength) !== null && _props_maxLength !== void 0 ? _props_maxLength : 50000;
|
|
142
|
+
var _props_minLength;
|
|
143
|
+
_this.minLength = (_props_minLength = props === null || props === void 0 ? void 0 : props.minLength) !== null && _props_minLength !== void 0 ? _props_minLength : 0;
|
|
144
|
+
var _props_defaultValue;
|
|
145
|
+
_this.defaultValue = (_props_defaultValue = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _props_defaultValue !== void 0 ? _props_defaultValue : "";
|
|
146
|
+
var _props_caption;
|
|
147
|
+
_this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : RichTextControl.controlName;
|
|
148
|
+
var _props_placeholder;
|
|
149
|
+
_this.placeholder = (_props_placeholder = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _props_placeholder !== void 0 ? _props_placeholder : "请输入";
|
|
150
150
|
return _this;
|
|
151
151
|
}
|
|
152
152
|
return RichTextProperty;
|
|
@@ -153,12 +153,12 @@ var ScoreControl = /*#__PURE__*/ function(DesignerFormControl) {
|
|
|
153
153
|
if (this.props.explain.length > value) {
|
|
154
154
|
this.props.explain = this.props.explain.slice(0, value);
|
|
155
155
|
} else {
|
|
156
|
-
var
|
|
156
|
+
var _this_props_explain;
|
|
157
157
|
var addNum = value - this.props.explain.length;
|
|
158
158
|
var addExplain = Array(addNum).fill(undefined).map(function() {
|
|
159
159
|
return new Explain();
|
|
160
160
|
});
|
|
161
|
-
(
|
|
161
|
+
(_this_props_explain = this.props.explain).push.apply(_this_props_explain, _toConsumableArray(addExplain));
|
|
162
162
|
}
|
|
163
163
|
}
|
|
164
164
|
_get(_getPrototypeOf(ScoreControl.prototype), "postUpdate", this).call(this, key, value);
|
|
@@ -139,24 +139,24 @@ var ScoreProperty = /*#__PURE__*/ function(BaseControlProperty) {
|
|
|
139
139
|
function ScoreProperty(props) {
|
|
140
140
|
_classCallCheck(this, ScoreProperty);
|
|
141
141
|
var _this;
|
|
142
|
-
var
|
|
142
|
+
var _props_explain;
|
|
143
143
|
_this = _super.call(this, props);
|
|
144
|
-
var
|
|
145
|
-
_this.totalScore = (
|
|
146
|
-
var
|
|
147
|
-
_this.scoreType = (
|
|
148
|
-
var
|
|
149
|
-
_this.isShowExplain = (
|
|
150
|
-
var
|
|
151
|
-
_this.explain = (
|
|
144
|
+
var _props_totalScore;
|
|
145
|
+
_this.totalScore = (_props_totalScore = props === null || props === void 0 ? void 0 : props.totalScore) !== null && _props_totalScore !== void 0 ? _props_totalScore : 5;
|
|
146
|
+
var _props_scoreType;
|
|
147
|
+
_this.scoreType = (_props_scoreType = props === null || props === void 0 ? void 0 : props.scoreType) !== null && _props_scoreType !== void 0 ? _props_scoreType : SCORE_TYPE.STAR;
|
|
148
|
+
var _props_isShowExplain;
|
|
149
|
+
_this.isShowExplain = (_props_isShowExplain = props === null || props === void 0 ? void 0 : props.isShowExplain) !== null && _props_isShowExplain !== void 0 ? _props_isShowExplain : true;
|
|
150
|
+
var _props_explain_map;
|
|
151
|
+
_this.explain = (_props_explain_map = props === null || props === void 0 ? void 0 : (_props_explain = props.explain) === null || _props_explain === void 0 ? void 0 : _props_explain.map(function(item) {
|
|
152
152
|
return new Explain(item);
|
|
153
|
-
})) !== null &&
|
|
153
|
+
})) !== null && _props_explain_map !== void 0 ? _props_explain_map : Array(_this.totalScore).fill(undefined).map(function() {
|
|
154
154
|
return new Explain();
|
|
155
155
|
});
|
|
156
|
-
var
|
|
157
|
-
_this.defaultValue = (
|
|
158
|
-
var
|
|
159
|
-
_this.caption = (
|
|
156
|
+
var _props_defaultValue;
|
|
157
|
+
_this.defaultValue = (_props_defaultValue = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _props_defaultValue !== void 0 ? _props_defaultValue : 0;
|
|
158
|
+
var _props_caption;
|
|
159
|
+
_this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : ScoreControl.controlName;
|
|
160
160
|
return _this;
|
|
161
161
|
}
|
|
162
162
|
return ScoreProperty;
|