@byteluck-fe/model-driven-controls 2.7.0-beta.1 → 2.7.0-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.
- package/dist/esm/baseControls/BatchDeleteButton/designer.js +1 -2
- package/dist/esm/baseControls/BatchDeleteButton/property.js +9 -10
- package/dist/esm/baseControls/BatchDeleteButton/runtime.js +1 -2
- package/dist/esm/baseControls/BatchPrintListButton/designer.js +1 -2
- package/dist/esm/baseControls/BatchPrintListButton/property.js +5 -5
- package/dist/esm/baseControls/BatchPrintListButton/runtime.js +1 -2
- package/dist/esm/baseControls/BatchPrintRecordListButton/designer.js +1 -2
- package/dist/esm/baseControls/BatchPrintRecordListButton/property.js +2 -3
- package/dist/esm/baseControls/BatchPrintRecordListButton/runtime.js +1 -2
- package/dist/esm/baseControls/BatchSubmissionListButton/designer.js +1 -2
- package/dist/esm/baseControls/BatchSubmissionListButton/property.js +6 -7
- package/dist/esm/baseControls/BatchSubmissionListButton/runtime.js +1 -2
- package/dist/esm/baseControls/Button/designer.js +1 -2
- package/dist/esm/baseControls/Button/property.js +8 -9
- package/dist/esm/baseControls/Button/runtime.js +1 -2
- package/dist/esm/baseControls/CreateFormListButton/designer.js +1 -2
- package/dist/esm/baseControls/CreateFormListButton/property.js +4 -5
- package/dist/esm/baseControls/CreateFormListButton/runtime.js +1 -2
- package/dist/esm/baseControls/Dashboard/designer.js +1 -2
- package/dist/esm/baseControls/Dashboard/property.js +6 -7
- package/dist/esm/baseControls/Dashboard/runtime.js +1 -2
- package/dist/esm/baseControls/Divider/designer.js +1 -2
- package/dist/esm/baseControls/Divider/property.js +2 -3
- package/dist/esm/baseControls/Divider/runtime.js +1 -2
- package/dist/esm/baseControls/ExportListButton/designer.js +1 -2
- package/dist/esm/baseControls/ExportListButton/property.js +4 -4
- package/dist/esm/baseControls/ExportListButton/runtime.js +1 -2
- package/dist/esm/baseControls/ExportRecordListButton/designer.js +1 -2
- package/dist/esm/baseControls/ExportRecordListButton/property.js +2 -3
- package/dist/esm/baseControls/ExportRecordListButton/runtime.js +1 -2
- package/dist/esm/baseControls/FormSelectButton/designer.js +1 -2
- package/dist/esm/baseControls/FormSelectButton/property.js +6 -7
- package/dist/esm/baseControls/FormSelectButton/runtime.js +1 -2
- package/dist/esm/baseControls/ImportRecordListButton/designer.js +1 -2
- package/dist/esm/baseControls/ImportRecordListButton/property.js +4 -4
- package/dist/esm/baseControls/ImportRecordListButton/runtime.js +1 -2
- package/dist/esm/baseControls/InvoiceCheckButton/designer.js +1 -2
- package/dist/esm/baseControls/InvoiceCheckButton/property.js +10 -10
- package/dist/esm/baseControls/InvoiceCheckButton/runtime.js +1 -2
- package/dist/esm/baseControls/Link/designer.js +1 -2
- package/dist/esm/baseControls/Link/property.js +3 -4
- package/dist/esm/baseControls/Link/runtime.js +1 -2
- package/dist/esm/baseControls/ListSelectButton/designer.js +1 -2
- package/dist/esm/baseControls/ListSelectButton/property.js +7 -8
- package/dist/esm/baseControls/ListSelectButton/runtime.js +1 -2
- package/dist/esm/baseControls/ListViewSelect/designer.js +1 -2
- package/dist/esm/baseControls/ListViewSelect/property.js +3 -3
- package/dist/esm/baseControls/ListViewSelect/runtime.js +1 -2
- package/dist/esm/baseControls/OperationButton/designer.js +1 -2
- package/dist/esm/baseControls/OperationButton/property.js +13 -14
- package/dist/esm/baseControls/OperationButton/runtime.js +1 -2
- package/dist/esm/baseControls/Pagination/designer.js +1 -2
- package/dist/esm/baseControls/Pagination/runtime.js +1 -2
- package/dist/esm/baseControls/SubmissionRecordListButton/designer.js +1 -2
- package/dist/esm/baseControls/SubmissionRecordListButton/property.js +2 -3
- package/dist/esm/baseControls/SubmissionRecordListButton/runtime.js +1 -2
- package/dist/esm/baseControls/Text/designer.js +1 -2
- package/dist/esm/baseControls/Text/property.js +5 -6
- package/dist/esm/baseControls/Text/runtime.js +1 -2
- package/dist/esm/baseControls/TextOcrButton/designer.js +1 -2
- package/dist/esm/baseControls/TextOcrButton/property.js +10 -10
- package/dist/esm/baseControls/TextOcrButton/runtime.js +1 -2
- package/dist/esm/baseControls/Title/designer.js +1 -2
- package/dist/esm/baseControls/Title/property.js +4 -5
- package/dist/esm/baseControls/Title/runtime.js +1 -2
- package/dist/esm/columnControls/ArrayColumn/designer.js +1 -2
- package/dist/esm/columnControls/ArrayColumn/property.js +4 -5
- package/dist/esm/columnControls/ArrayColumn/runtime.js +1 -2
- package/dist/esm/columnControls/AutoNumberColumn/designer.js +1 -2
- package/dist/esm/columnControls/AutoNumberColumn/property.js +3 -4
- package/dist/esm/columnControls/AutoNumberColumn/runtime.js +1 -2
- package/dist/esm/columnControls/CustomColumn/designer.js +2 -3
- package/dist/esm/columnControls/CustomColumn/property.js +2 -3
- package/dist/esm/columnControls/CustomColumn/runtime.js +2 -3
- package/dist/esm/columnControls/DecimalColumn/designer.js +1 -2
- package/dist/esm/columnControls/DecimalColumn/property.js +9 -10
- package/dist/esm/columnControls/DecimalColumn/runtime.js +1 -2
- package/dist/esm/columnControls/DepartmentColumn/designer.js +1 -2
- package/dist/esm/columnControls/DepartmentColumn/property.js +2 -3
- package/dist/esm/columnControls/DepartmentColumn/runtime.js +1 -2
- package/dist/esm/columnControls/EmployeeColumn/designer.js +1 -2
- package/dist/esm/columnControls/EmployeeColumn/property.js +2 -3
- package/dist/esm/columnControls/EmployeeColumn/runtime.js +1 -2
- package/dist/esm/columnControls/FileColumn/designer.js +1 -2
- package/dist/esm/columnControls/FileColumn/property.js +1 -2
- package/dist/esm/columnControls/FileColumn/runtime.js +1 -2
- package/dist/esm/columnControls/ImageColumn/designer.js +1 -2
- package/dist/esm/columnControls/ImageColumn/property.js +1 -2
- package/dist/esm/columnControls/ImageColumn/runtime.js +1 -2
- package/dist/esm/columnControls/LocationColumn/designer.js +1 -2
- package/dist/esm/columnControls/LocationColumn/property.js +3 -4
- package/dist/esm/columnControls/LocationColumn/runtime.js +1 -2
- package/dist/esm/columnControls/OperationColumn/designer.js +2 -3
- package/dist/esm/columnControls/OperationColumn/property.js +6 -6
- package/dist/esm/columnControls/OperationColumn/runtime.js +2 -3
- package/dist/esm/columnControls/OrderColumn/designer.js +1 -2
- package/dist/esm/columnControls/OrderColumn/property.js +7 -7
- package/dist/esm/columnControls/OrderColumn/runtime.js +1 -2
- package/dist/esm/columnControls/PeopleColumn/designer.js +1 -2
- package/dist/esm/columnControls/PeopleColumn/property.js +1 -2
- package/dist/esm/columnControls/PeopleColumn/runtime.js +1 -2
- package/dist/esm/columnControls/TextColumn/designer.js +1 -2
- package/dist/esm/columnControls/TextColumn/property.js +5 -6
- package/dist/esm/columnControls/TextColumn/runtime.js +1 -2
- package/dist/esm/columnControls/TimescopeColumn/designer.js +1 -2
- package/dist/esm/columnControls/TimescopeColumn/property.js +4 -5
- package/dist/esm/columnControls/TimescopeColumn/runtime.js +1 -2
- package/dist/esm/columnControls/TimestampColumn/designer.js +1 -2
- package/dist/esm/columnControls/TimestampColumn/property.js +4 -5
- package/dist/esm/columnControls/TimestampColumn/runtime.js +1 -2
- package/dist/esm/columnControls/VarcharColumn/designer.js +1 -2
- package/dist/esm/columnControls/VarcharColumn/property.js +7 -8
- package/dist/esm/columnControls/VarcharColumn/runtime.js +1 -2
- package/dist/esm/formControls/Address/designer.js +1 -2
- package/dist/esm/formControls/Address/property.js +5 -6
- package/dist/esm/formControls/Address/runtime.js +1 -2
- package/dist/esm/formControls/Amount/designer.js +1 -2
- package/dist/esm/formControls/Amount/property.js +13 -14
- package/dist/esm/formControls/Amount/runtime.js +1 -2
- package/dist/esm/formControls/Attachment/designer.js +1 -2
- package/dist/esm/formControls/Attachment/property.js +22 -10
- package/dist/esm/formControls/Attachment/runtime.js +1 -2
- package/dist/esm/formControls/AutoNumber/designer.js +1 -2
- package/dist/esm/formControls/AutoNumber/property.js +3 -4
- package/dist/esm/formControls/AutoNumber/runtime.js +1 -2
- package/dist/esm/formControls/Calc/designer.js +1 -2
- package/dist/esm/formControls/Calc/property.js +9 -10
- package/dist/esm/formControls/Calc/runtime.js +1 -2
- package/dist/esm/formControls/Checkbox/designer.js +1 -2
- package/dist/esm/formControls/Checkbox/property.js +16 -18
- package/dist/esm/formControls/Checkbox/runtime.js +1 -2
- package/dist/esm/formControls/DatePicker/designer.js +1 -2
- package/dist/esm/formControls/DatePicker/property.js +11 -11
- package/dist/esm/formControls/DatePicker/runtime.js +1 -2
- package/dist/esm/formControls/DateRange/designer.js +1 -2
- package/dist/esm/formControls/DateRange/property.js +13 -13
- package/dist/esm/formControls/DateRange/runtime.js +1 -2
- package/dist/esm/formControls/Department/designer.js +1 -2
- package/dist/esm/formControls/Department/property.js +13 -15
- package/dist/esm/formControls/Department/runtime.js +1 -2
- package/dist/esm/formControls/Department2/designer.js +1 -2
- package/dist/esm/formControls/Department2/property.js +17 -19
- package/dist/esm/formControls/Department2/runtime.js +1 -2
- package/dist/esm/formControls/ElectronicSignature/designer.js +1 -2
- package/dist/esm/formControls/ElectronicSignature/property.js +7 -8
- package/dist/esm/formControls/ElectronicSignature/runtime.js +1 -2
- package/dist/esm/formControls/Employee/designer.js +1 -2
- package/dist/esm/formControls/Employee/property.js +11 -13
- package/dist/esm/formControls/Employee/runtime.js +1 -2
- package/dist/esm/formControls/Employee2/designer.js +1 -2
- package/dist/esm/formControls/Employee2/property.js +16 -18
- package/dist/esm/formControls/Employee2/runtime.js +1 -2
- package/dist/esm/formControls/Image/designer.js +4 -4
- package/dist/esm/formControls/Image/property.js +7 -1
- package/dist/esm/formControls/Image/runtime.js +4 -4
- package/dist/esm/formControls/Input/designer.js +1 -2
- package/dist/esm/formControls/Input/property.js +8 -9
- package/dist/esm/formControls/Input/runtime.js +1 -2
- package/dist/esm/formControls/Number/designer.js +1 -2
- package/dist/esm/formControls/Number/property.js +14 -15
- package/dist/esm/formControls/Number/runtime.js +1 -2
- package/dist/esm/formControls/OrganizationSelection/designer.js +1 -2
- package/dist/esm/formControls/OrganizationSelection/property.js +22 -24
- package/dist/esm/formControls/OrganizationSelection/runtime.js +1 -2
- package/dist/esm/formControls/Radio/designer.js +1 -2
- package/dist/esm/formControls/Radio/property.js +14 -16
- package/dist/esm/formControls/Radio/runtime.js +1 -2
- package/dist/esm/formControls/RichText/designer.js +1 -2
- package/dist/esm/formControls/RichText/property.js +5 -6
- package/dist/esm/formControls/RichText/runtime.js +1 -2
- package/dist/esm/formControls/Score/designer.js +1 -2
- package/dist/esm/formControls/Score/property.js +7 -7
- package/dist/esm/formControls/Score/runtime.js +1 -2
- package/dist/esm/formControls/SearchDateRange/designer.js +1 -2
- package/dist/esm/formControls/SearchDateRange/property.js +12 -12
- package/dist/esm/formControls/SearchDateRange/runtime.js +1 -2
- package/dist/esm/formControls/SearchInput/designer.js +1 -2
- package/dist/esm/formControls/SearchInput/runtime.js +1 -2
- package/dist/esm/formControls/SearchNumberRange/designer.js +1 -2
- package/dist/esm/formControls/SearchNumberRange/property.js +6 -7
- package/dist/esm/formControls/SearchNumberRange/runtime.js +1 -2
- package/dist/esm/formControls/Select/designer.js +1 -2
- package/dist/esm/formControls/Select/property.js +11 -13
- package/dist/esm/formControls/Select/runtime.js +1 -2
- package/dist/esm/formControls/SelectMultiple/designer.js +1 -2
- package/dist/esm/formControls/SelectMultiple/property.js +10 -12
- package/dist/esm/formControls/SelectMultiple/runtime.js +1 -2
- package/dist/esm/formControls/SelectRelation/designer.js +1 -2
- package/dist/esm/formControls/SelectRelation/property.js +14 -16
- package/dist/esm/formControls/SelectRelation/runtime.js +1 -2
- package/dist/esm/formControls/Textarea/designer.js +1 -2
- package/dist/esm/formControls/Textarea/property.js +6 -7
- package/dist/esm/formControls/Textarea/runtime.js +1 -2
- package/dist/esm/formControls/Tree/designer.js +1 -2
- package/dist/esm/formControls/Tree/property.js +19 -19
- package/dist/esm/formControls/Tree/runtime.js +1 -2
- package/dist/esm/formControls/VueFormItem/designer.js +1 -2
- package/dist/esm/formControls/VueFormItem/property.js +5 -6
- package/dist/esm/formControls/VueFormItem/runtime.js +1 -2
- package/dist/esm/formControls/WPS/designer.js +1 -2
- package/dist/esm/formControls/WPS/property.js +13 -14
- package/dist/esm/formControls/WPS/runtime.js +1 -2
- package/dist/esm/framework.js +35 -42
- package/dist/esm/layoutControls/AdvancedContainer/property.js +2 -3
- package/dist/esm/layoutControls/CardGroup/designer.js +1 -2
- package/dist/esm/layoutControls/CardGroup/property.js +2 -3
- package/dist/esm/layoutControls/CardGroup/runtime.js +1 -2
- package/dist/esm/layoutControls/Col/designer.js +1 -2
- package/dist/esm/layoutControls/Col/property.js +2 -3
- package/dist/esm/layoutControls/Col/runtime.js +1 -2
- package/dist/esm/layoutControls/DataView/designer.js +1 -2
- package/dist/esm/layoutControls/DataView/property.js +7 -8
- package/dist/esm/layoutControls/DataView/runtime.js +1 -2
- package/dist/esm/layoutControls/GridTableColumn/designer.js +1 -2
- package/dist/esm/layoutControls/GridTableColumn/property.js +12 -13
- package/dist/esm/layoutControls/GridTableColumn/runtime.js +1 -2
- package/dist/esm/layoutControls/ListView/designer.js +1 -2
- package/dist/esm/layoutControls/ListView/property.js +13 -14
- package/dist/esm/layoutControls/ListView/runtime.js +1 -2
- package/dist/esm/layoutControls/Page/property.js +1 -2
- package/dist/esm/layoutControls/Position/property.js +4 -5
- package/dist/esm/layoutControls/Row/designer.js +1 -2
- package/dist/esm/layoutControls/Row/property.js +2 -3
- package/dist/esm/layoutControls/Row/runtime.js +1 -2
- package/dist/esm/layoutControls/SubTableColumn/designer.js +1 -2
- package/dist/esm/layoutControls/SubTableColumn/property.js +6 -7
- package/dist/esm/layoutControls/SubTableColumn/runtime.js +1 -2
- package/dist/esm/layoutControls/SubTableRow/designer.js +1 -2
- package/dist/esm/layoutControls/SubTableRow/runtime.js +1 -2
- package/dist/esm/layoutControls/Tab/designer.js +2 -3
- package/dist/esm/layoutControls/Tab/property.js +1 -2
- package/dist/esm/layoutControls/Tab/runtime.js +1 -2
- package/dist/esm/layoutControls/TabPane/designer.js +1 -2
- package/dist/esm/layoutControls/TabPane/property.js +1 -2
- package/dist/esm/layoutControls/TabPane/runtime.js +1 -2
- package/dist/esm/layoutControls/Toolbox/designer.js +1 -2
- package/dist/esm/layoutControls/Toolbox/runtime.js +1 -2
- package/dist/esm/listControls/GridTable/designer.js +3 -4
- package/dist/esm/listControls/GridTable/property.js +5 -6
- package/dist/esm/listControls/GridTable/runtime.js +1 -2
- package/dist/esm/listControls/SubTable/designer.js +3 -3
- package/dist/esm/listControls/SubTable/property.js +30 -31
- package/dist/esm/listControls/SubTable/runtime.js +1 -2
- package/dist/esm/searchControls/SimpleSearch/designer.js +1 -2
- package/dist/esm/searchControls/SimpleSearch/property.js +8 -9
- package/dist/esm/searchControls/SimpleSearch/runtime.js +2 -3
- package/dist/index.umd.js +1 -1
- package/dist/types/formControls/Attachment/property.d.ts +2 -0
- package/package.json +5 -5
|
@@ -106,10 +106,9 @@ var RichTextControl = /*#__PURE__*/ function(DesignerFormControl) {
|
|
|
106
106
|
function RichTextControl(props) {
|
|
107
107
|
_class_call_check(this, RichTextControl);
|
|
108
108
|
var _this;
|
|
109
|
-
var _props;
|
|
110
109
|
_this = _super.call(this, props);
|
|
111
110
|
_define_property(_assert_this_initialized(_this), "props", void 0);
|
|
112
|
-
_this.props = new RichTextProperty(
|
|
111
|
+
_this.props = new RichTextProperty(props === null || props === void 0 ? void 0 : props.props);
|
|
113
112
|
return _this;
|
|
114
113
|
}
|
|
115
114
|
_create_class(RichTextControl, null, [
|
|
@@ -149,21 +149,20 @@ var RichTextProperty = /*#__PURE__*/ function(BaseControlProperty) {
|
|
|
149
149
|
function RichTextProperty(props) {
|
|
150
150
|
_class_call_check(this, RichTextProperty);
|
|
151
151
|
var _this;
|
|
152
|
-
var _props, _props1, _props2, _props3, _props4;
|
|
153
152
|
_this = _super.call(this, props);
|
|
154
153
|
_define_property(_assert_this_initialized(_this), "maxLength", void 0);
|
|
155
154
|
_define_property(_assert_this_initialized(_this), "minLength", void 0);
|
|
156
155
|
_define_property(_assert_this_initialized(_this), "defaultValue", void 0);
|
|
157
156
|
var _props_maxLength;
|
|
158
|
-
_this.maxLength = (_props_maxLength =
|
|
157
|
+
_this.maxLength = (_props_maxLength = props === null || props === void 0 ? void 0 : props.maxLength) !== null && _props_maxLength !== void 0 ? _props_maxLength : 50000;
|
|
159
158
|
var _props_minLength;
|
|
160
|
-
_this.minLength = (_props_minLength =
|
|
159
|
+
_this.minLength = (_props_minLength = props === null || props === void 0 ? void 0 : props.minLength) !== null && _props_minLength !== void 0 ? _props_minLength : 0;
|
|
161
160
|
var _props_defaultValue;
|
|
162
|
-
_this.defaultValue = (_props_defaultValue =
|
|
161
|
+
_this.defaultValue = (_props_defaultValue = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _props_defaultValue !== void 0 ? _props_defaultValue : "";
|
|
163
162
|
var _props_caption;
|
|
164
|
-
_this.caption = (_props_caption =
|
|
163
|
+
_this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : RichTextControl.controlName;
|
|
165
164
|
var _props_placeholder;
|
|
166
|
-
_this.placeholder = (_props_placeholder =
|
|
165
|
+
_this.placeholder = (_props_placeholder = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _props_placeholder !== void 0 ? _props_placeholder : "请输入";
|
|
167
166
|
return _this;
|
|
168
167
|
}
|
|
169
168
|
return RichTextProperty;
|
|
@@ -106,10 +106,9 @@ var RichTextControl = /*#__PURE__*/ function(RuntimeFormControl) {
|
|
|
106
106
|
function RichTextControl(props) {
|
|
107
107
|
_class_call_check(this, RichTextControl);
|
|
108
108
|
var _this;
|
|
109
|
-
var _props;
|
|
110
109
|
_this = _super.call(this, props);
|
|
111
110
|
_define_property(_assert_this_initialized(_this), "props", void 0);
|
|
112
|
-
_this.props = new RichTextProperty(
|
|
111
|
+
_this.props = new RichTextProperty(props === null || props === void 0 ? void 0 : props.props);
|
|
113
112
|
return _this;
|
|
114
113
|
}
|
|
115
114
|
_create_class(RichTextControl, null, [
|
|
@@ -155,10 +155,9 @@ var ScoreControl = /*#__PURE__*/ function(DesignerFormControl) {
|
|
|
155
155
|
function ScoreControl(props) {
|
|
156
156
|
_class_call_check(this, ScoreControl);
|
|
157
157
|
var _this;
|
|
158
|
-
var _props;
|
|
159
158
|
_this = _super.call(this, props);
|
|
160
159
|
_define_property(_assert_this_initialized(_this), "props", void 0);
|
|
161
|
-
_this.props = new ScoreProperty(
|
|
160
|
+
_this.props = new ScoreProperty(props === null || props === void 0 ? void 0 : props.props);
|
|
162
161
|
return _this;
|
|
163
162
|
}
|
|
164
163
|
_create_class(ScoreControl, [
|
|
@@ -152,7 +152,7 @@ var ScoreProperty = /*#__PURE__*/ function(BaseControlProperty) {
|
|
|
152
152
|
function ScoreProperty(props) {
|
|
153
153
|
_class_call_check(this, ScoreProperty);
|
|
154
154
|
var _this;
|
|
155
|
-
var
|
|
155
|
+
var _props_explain;
|
|
156
156
|
_this = _super.call(this, props);
|
|
157
157
|
_define_property(_assert_this_initialized(_this), "totalScore", void 0);
|
|
158
158
|
_define_property(_assert_this_initialized(_this), "scoreType", void 0);
|
|
@@ -160,21 +160,21 @@ var ScoreProperty = /*#__PURE__*/ function(BaseControlProperty) {
|
|
|
160
160
|
_define_property(_assert_this_initialized(_this), "explain", void 0);
|
|
161
161
|
_define_property(_assert_this_initialized(_this), "defaultValue", void 0);
|
|
162
162
|
var _props_totalScore;
|
|
163
|
-
_this.totalScore = (_props_totalScore =
|
|
163
|
+
_this.totalScore = (_props_totalScore = props === null || props === void 0 ? void 0 : props.totalScore) !== null && _props_totalScore !== void 0 ? _props_totalScore : 5;
|
|
164
164
|
var _props_scoreType;
|
|
165
|
-
_this.scoreType = (_props_scoreType =
|
|
165
|
+
_this.scoreType = (_props_scoreType = props === null || props === void 0 ? void 0 : props.scoreType) !== null && _props_scoreType !== void 0 ? _props_scoreType : SCORE_TYPE.STAR;
|
|
166
166
|
var _props_isShowExplain;
|
|
167
|
-
_this.isShowExplain = (_props_isShowExplain =
|
|
167
|
+
_this.isShowExplain = (_props_isShowExplain = props === null || props === void 0 ? void 0 : props.isShowExplain) !== null && _props_isShowExplain !== void 0 ? _props_isShowExplain : true;
|
|
168
168
|
var _props_explain_map;
|
|
169
|
-
_this.explain = (_props_explain_map =
|
|
169
|
+
_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) {
|
|
170
170
|
return new Explain(item);
|
|
171
171
|
})) !== null && _props_explain_map !== void 0 ? _props_explain_map : Array(_this.totalScore).fill(undefined).map(function() {
|
|
172
172
|
return new Explain();
|
|
173
173
|
});
|
|
174
174
|
var _props_defaultValue;
|
|
175
|
-
_this.defaultValue = (_props_defaultValue =
|
|
175
|
+
_this.defaultValue = (_props_defaultValue = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _props_defaultValue !== void 0 ? _props_defaultValue : 0;
|
|
176
176
|
var _props_caption;
|
|
177
|
-
_this.caption = (_props_caption =
|
|
177
|
+
_this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : ScoreControl.controlName;
|
|
178
178
|
return _this;
|
|
179
179
|
}
|
|
180
180
|
return ScoreProperty;
|
|
@@ -106,10 +106,9 @@ var ScoreControl = /*#__PURE__*/ function(RuntimeFormControl) {
|
|
|
106
106
|
function ScoreControl(props) {
|
|
107
107
|
_class_call_check(this, ScoreControl);
|
|
108
108
|
var _this;
|
|
109
|
-
var _props;
|
|
110
109
|
_this = _super.call(this, props);
|
|
111
110
|
_define_property(_assert_this_initialized(_this), "props", void 0);
|
|
112
|
-
_this.props = new ScoreProperty(
|
|
111
|
+
_this.props = new ScoreProperty(props === null || props === void 0 ? void 0 : props.props);
|
|
113
112
|
return _this;
|
|
114
113
|
}
|
|
115
114
|
_create_class(ScoreControl, null, [
|
|
@@ -106,10 +106,9 @@ var SearchDateRangeControl = /*#__PURE__*/ function(DesignerFormControl) {
|
|
|
106
106
|
function SearchDateRangeControl(props) {
|
|
107
107
|
_class_call_check(this, SearchDateRangeControl);
|
|
108
108
|
var _this;
|
|
109
|
-
var _props;
|
|
110
109
|
_this = _super.call(this, props);
|
|
111
110
|
_define_property(_assert_this_initialized(_this), "props", void 0);
|
|
112
|
-
_this.props = new SearchDateRangeProperty(
|
|
111
|
+
_this.props = new SearchDateRangeProperty(props === null || props === void 0 ? void 0 : props.props);
|
|
113
112
|
return _this;
|
|
114
113
|
}
|
|
115
114
|
_create_class(SearchDateRangeControl, null, [
|
|
@@ -121,7 +121,7 @@ var SearchDateRangeProperty = /*#__PURE__*/ function(BaseControlProperty) {
|
|
|
121
121
|
function SearchDateRangeProperty(props) {
|
|
122
122
|
_class_call_check(this, SearchDateRangeProperty);
|
|
123
123
|
var _this;
|
|
124
|
-
var
|
|
124
|
+
var _props_limitDateList;
|
|
125
125
|
_this = _super.call(this, props);
|
|
126
126
|
_define_property(_assert_this_initialized(_this), "rangeMin", void 0);
|
|
127
127
|
_define_property(_assert_this_initialized(_this), "rangeMax", void 0);
|
|
@@ -140,30 +140,30 @@ var SearchDateRangeProperty = /*#__PURE__*/ function(BaseControlProperty) {
|
|
|
140
140
|
_define_property(_assert_this_initialized(_this), "defaultValue", void 0);
|
|
141
141
|
_define_property(_assert_this_initialized(_this), "limitDateList", void 0);
|
|
142
142
|
var _props_defaultValue;
|
|
143
|
-
_this.defaultValue = (_props_defaultValue =
|
|
143
|
+
_this.defaultValue = (_props_defaultValue = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _props_defaultValue !== void 0 ? _props_defaultValue : [
|
|
144
144
|
"",
|
|
145
145
|
""
|
|
146
146
|
];
|
|
147
147
|
var _props_dateType;
|
|
148
|
-
_this.dateType = (_props_dateType =
|
|
148
|
+
_this.dateType = (_props_dateType = props === null || props === void 0 ? void 0 : props.dateType) !== null && _props_dateType !== void 0 ? _props_dateType : DateType.DATE;
|
|
149
149
|
var _props_dateFormat;
|
|
150
|
-
_this.dateFormat = (_props_dateFormat =
|
|
150
|
+
_this.dateFormat = (_props_dateFormat = props === null || props === void 0 ? void 0 : props.dateFormat) !== null && _props_dateFormat !== void 0 ? _props_dateFormat : "";
|
|
151
151
|
var _props_commonTimeSetting;
|
|
152
|
-
_this.commonTimeSetting = (_props_commonTimeSetting =
|
|
152
|
+
_this.commonTimeSetting = (_props_commonTimeSetting = props === null || props === void 0 ? void 0 : props.commonTimeSetting) !== null && _props_commonTimeSetting !== void 0 ? _props_commonTimeSetting : [];
|
|
153
153
|
var _props_setValueType;
|
|
154
|
-
_this.setValueType = (_props_setValueType =
|
|
154
|
+
_this.setValueType = (_props_setValueType = props === null || props === void 0 ? void 0 : props.setValueType) !== null && _props_setValueType !== void 0 ? _props_setValueType : "custom";
|
|
155
155
|
var _props_rangeMin;
|
|
156
|
-
_this.rangeMin = (_props_rangeMin =
|
|
156
|
+
_this.rangeMin = (_props_rangeMin = props === null || props === void 0 ? void 0 : props.rangeMin) !== null && _props_rangeMin !== void 0 ? _props_rangeMin : "";
|
|
157
157
|
var _props_rangeMax;
|
|
158
|
-
_this.rangeMax = (_props_rangeMax =
|
|
158
|
+
_this.rangeMax = (_props_rangeMax = props === null || props === void 0 ? void 0 : props.rangeMax) !== null && _props_rangeMax !== void 0 ? _props_rangeMax : "";
|
|
159
159
|
var _props_placeholderStart;
|
|
160
|
-
_this.placeholderStart = (_props_placeholderStart =
|
|
160
|
+
_this.placeholderStart = (_props_placeholderStart = props === null || props === void 0 ? void 0 : props.placeholderStart) !== null && _props_placeholderStart !== void 0 ? _props_placeholderStart : "开始日期";
|
|
161
161
|
var _props_placeholderEnd;
|
|
162
|
-
_this.placeholderEnd = (_props_placeholderEnd =
|
|
162
|
+
_this.placeholderEnd = (_props_placeholderEnd = props === null || props === void 0 ? void 0 : props.placeholderEnd) !== null && _props_placeholderEnd !== void 0 ? _props_placeholderEnd : "结束日期";
|
|
163
163
|
var _props_caption;
|
|
164
|
-
_this.caption = (_props_caption =
|
|
164
|
+
_this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : SearchDateRangeControl.controlName;
|
|
165
165
|
var _props_limitDateList_map;
|
|
166
|
-
_this.limitDateList = (_props_limitDateList_map =
|
|
166
|
+
_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) {
|
|
167
167
|
return new LimitDate(item);
|
|
168
168
|
})) !== null && _props_limitDateList_map !== void 0 ? _props_limitDateList_map : [];
|
|
169
169
|
return _this;
|
|
@@ -106,10 +106,9 @@ var SearchDateRangeControl = /*#__PURE__*/ function(RuntimeFormControl) {
|
|
|
106
106
|
function SearchDateRangeControl(props) {
|
|
107
107
|
_class_call_check(this, SearchDateRangeControl);
|
|
108
108
|
var _this;
|
|
109
|
-
var _props;
|
|
110
109
|
_this = _super.call(this, props);
|
|
111
110
|
_define_property(_assert_this_initialized(_this), "props", void 0);
|
|
112
|
-
_this.props = new SearchDateRangeProperty(
|
|
111
|
+
_this.props = new SearchDateRangeProperty(props === null || props === void 0 ? void 0 : props.props);
|
|
113
112
|
return _this;
|
|
114
113
|
}
|
|
115
114
|
_create_class(SearchDateRangeControl, null, [
|
|
@@ -106,10 +106,9 @@ var SearchInputControl = /*#__PURE__*/ function(DesignerInputControl) {
|
|
|
106
106
|
function SearchInputControl(props) {
|
|
107
107
|
_class_call_check(this, SearchInputControl);
|
|
108
108
|
var _this;
|
|
109
|
-
var _props;
|
|
110
109
|
_this = _super.call(this, props);
|
|
111
110
|
_define_property(_assert_this_initialized(_this), "props", void 0);
|
|
112
|
-
_this.props = new SearchInputProperty(
|
|
111
|
+
_this.props = new SearchInputProperty(props === null || props === void 0 ? void 0 : props.props);
|
|
113
112
|
return _this;
|
|
114
113
|
}
|
|
115
114
|
_create_class(SearchInputControl, null, [
|
|
@@ -106,10 +106,9 @@ var SearchInputControl = /*#__PURE__*/ function(RuntimeFormControl) {
|
|
|
106
106
|
function SearchInputControl(props) {
|
|
107
107
|
_class_call_check(this, SearchInputControl);
|
|
108
108
|
var _this;
|
|
109
|
-
var _props;
|
|
110
109
|
_this = _super.call(this, props);
|
|
111
110
|
_define_property(_assert_this_initialized(_this), "props", void 0);
|
|
112
|
-
_this.props = new SearchInputProperty(
|
|
111
|
+
_this.props = new SearchInputProperty(props === null || props === void 0 ? void 0 : props.props);
|
|
113
112
|
return _this;
|
|
114
113
|
}
|
|
115
114
|
_create_class(SearchInputControl, null, [
|
|
@@ -106,10 +106,9 @@ var SearchNumberRangeControl = /*#__PURE__*/ function(DesignerFormControl) {
|
|
|
106
106
|
function SearchNumberRangeControl(props) {
|
|
107
107
|
_class_call_check(this, SearchNumberRangeControl);
|
|
108
108
|
var _this;
|
|
109
|
-
var _props;
|
|
110
109
|
_this = _super.call(this, props);
|
|
111
110
|
_define_property(_assert_this_initialized(_this), "props", void 0);
|
|
112
|
-
_this.props = new SearchNumberRangeProperty(
|
|
111
|
+
_this.props = new SearchNumberRangeProperty(props === null || props === void 0 ? void 0 : props.props);
|
|
113
112
|
return _this;
|
|
114
113
|
}
|
|
115
114
|
_create_class(SearchNumberRangeControl, null, [
|
|
@@ -123,7 +123,6 @@ var SearchNumberRangeProperty = /*#__PURE__*/ function(BaseControlProperty) {
|
|
|
123
123
|
function SearchNumberRangeProperty(props) {
|
|
124
124
|
_class_call_check(this, SearchNumberRangeProperty);
|
|
125
125
|
var _this;
|
|
126
|
-
var _props, _props1, _props2, _props3, _props4, _props5;
|
|
127
126
|
_this = _super.call(this, props);
|
|
128
127
|
_define_property(_assert_this_initialized(_this), "rangeMin", void 0);
|
|
129
128
|
_define_property(_assert_this_initialized(_this), "rangeMax", void 0);
|
|
@@ -133,20 +132,20 @@ var SearchNumberRangeProperty = /*#__PURE__*/ function(BaseControlProperty) {
|
|
|
133
132
|
);
|
|
134
133
|
_define_property(_assert_this_initialized(_this), "defaultValue", void 0);
|
|
135
134
|
var _props_defaultValue;
|
|
136
|
-
_this.defaultValue = (_props_defaultValue =
|
|
135
|
+
_this.defaultValue = (_props_defaultValue = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _props_defaultValue !== void 0 ? _props_defaultValue : [
|
|
137
136
|
"",
|
|
138
137
|
""
|
|
139
138
|
];
|
|
140
139
|
var _props_rangeMin;
|
|
141
|
-
_this.rangeMin = (_props_rangeMin =
|
|
140
|
+
_this.rangeMin = (_props_rangeMin = props === null || props === void 0 ? void 0 : props.rangeMin) !== null && _props_rangeMin !== void 0 ? _props_rangeMin : "";
|
|
142
141
|
var _props_rangeMax;
|
|
143
|
-
_this.rangeMax = (_props_rangeMax =
|
|
142
|
+
_this.rangeMax = (_props_rangeMax = props === null || props === void 0 ? void 0 : props.rangeMax) !== null && _props_rangeMax !== void 0 ? _props_rangeMax : "";
|
|
144
143
|
var _props_placeholderStart;
|
|
145
|
-
_this.placeholderStart = (_props_placeholderStart =
|
|
144
|
+
_this.placeholderStart = (_props_placeholderStart = props === null || props === void 0 ? void 0 : props.placeholderStart) !== null && _props_placeholderStart !== void 0 ? _props_placeholderStart : "最小值";
|
|
146
145
|
var _props_placeholderEnd;
|
|
147
|
-
_this.placeholderEnd = (_props_placeholderEnd =
|
|
146
|
+
_this.placeholderEnd = (_props_placeholderEnd = props === null || props === void 0 ? void 0 : props.placeholderEnd) !== null && _props_placeholderEnd !== void 0 ? _props_placeholderEnd : "最大值";
|
|
148
147
|
var _props_caption;
|
|
149
|
-
_this.caption = (_props_caption =
|
|
148
|
+
_this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : SearchNumberRangeControl.controlName;
|
|
150
149
|
return _this;
|
|
151
150
|
}
|
|
152
151
|
return SearchNumberRangeProperty;
|
|
@@ -106,10 +106,9 @@ var SearchNumberRangeControl = /*#__PURE__*/ function(RuntimeFormControl) {
|
|
|
106
106
|
function SearchNumberRangeControl(props) {
|
|
107
107
|
_class_call_check(this, SearchNumberRangeControl);
|
|
108
108
|
var _this;
|
|
109
|
-
var _props;
|
|
110
109
|
_this = _super.call(this, props);
|
|
111
110
|
_define_property(_assert_this_initialized(_this), "props", void 0);
|
|
112
|
-
_this.props = new SearchNumberRangeProperty(
|
|
111
|
+
_this.props = new SearchNumberRangeProperty(props === null || props === void 0 ? void 0 : props.props);
|
|
113
112
|
return _this;
|
|
114
113
|
}
|
|
115
114
|
_create_class(SearchNumberRangeControl, null, [
|
|
@@ -106,10 +106,9 @@ var SelectControl = /*#__PURE__*/ function(DesignerFormControl) {
|
|
|
106
106
|
function SelectControl(props) {
|
|
107
107
|
_class_call_check(this, SelectControl);
|
|
108
108
|
var _this;
|
|
109
|
-
var _props;
|
|
110
109
|
_this = _super.call(this, props);
|
|
111
110
|
_define_property(_assert_this_initialized(_this), "props", void 0);
|
|
112
|
-
_this.props = new SelectProperty(
|
|
111
|
+
_this.props = new SelectProperty(props === null || props === void 0 ? void 0 : props.props);
|
|
113
112
|
return _this;
|
|
114
113
|
}
|
|
115
114
|
_create_class(SelectControl, null, [
|
|
@@ -101,7 +101,6 @@ var SelectProperty = /*#__PURE__*/ function(BaseControlProperty) {
|
|
|
101
101
|
function SelectProperty(props) {
|
|
102
102
|
_class_call_check(this, SelectProperty);
|
|
103
103
|
var _this;
|
|
104
|
-
var _props, _props1, _props2, _props3, _props4, _props5, _props6, _props7, _props8, _props9;
|
|
105
104
|
_this = _super.call(this, props);
|
|
106
105
|
_define_property(_assert_this_initialized(_this), "options", void 0);
|
|
107
106
|
_define_property(_assert_this_initialized(_this), "defaultShowOptions", void 0);
|
|
@@ -115,7 +114,7 @@ var SelectProperty = /*#__PURE__*/ function(BaseControlProperty) {
|
|
|
115
114
|
_define_property(_assert_this_initialized(_this), "openMultistageFilling", void 0 //是否开启填充
|
|
116
115
|
);
|
|
117
116
|
var _props_options;
|
|
118
|
-
_this.options = initOptions((_props_options =
|
|
117
|
+
_this.options = initOptions((_props_options = props === null || props === void 0 ? void 0 : props.options) !== null && _props_options !== void 0 ? _props_options : [
|
|
119
118
|
{
|
|
120
119
|
label: "选项一",
|
|
121
120
|
value: "选项一"
|
|
@@ -130,24 +129,23 @@ var SelectProperty = /*#__PURE__*/ function(BaseControlProperty) {
|
|
|
130
129
|
}
|
|
131
130
|
]);
|
|
132
131
|
var _props_defaultShowOptions;
|
|
133
|
-
_this.defaultShowOptions = (_props_defaultShowOptions =
|
|
132
|
+
_this.defaultShowOptions = (_props_defaultShowOptions = props === null || props === void 0 ? void 0 : props.defaultShowOptions) !== null && _props_defaultShowOptions !== void 0 ? _props_defaultShowOptions : true;
|
|
134
133
|
var _props_optionConfig;
|
|
135
|
-
_this.optionConfig = (_props_optionConfig =
|
|
136
|
-
_this.datasourceBind = new DataSourceBind(
|
|
134
|
+
_this.optionConfig = (_props_optionConfig = props === null || props === void 0 ? void 0 : props.optionConfig) !== null && _props_optionConfig !== void 0 ? _props_optionConfig : "custom";
|
|
135
|
+
_this.datasourceBind = new DataSourceBind(props === null || props === void 0 ? void 0 : props.datasourceBind);
|
|
137
136
|
var _props_caption;
|
|
138
|
-
_this.caption = (_props_caption =
|
|
137
|
+
_this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : SelectControl.controlName;
|
|
139
138
|
var _props_placeholder;
|
|
140
|
-
_this.placeholder = (_props_placeholder =
|
|
139
|
+
_this.placeholder = (_props_placeholder = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _props_placeholder !== void 0 ? _props_placeholder : "请选择";
|
|
141
140
|
var _props_defaultValue;
|
|
142
|
-
_this.defaultValue = (_props_defaultValue =
|
|
141
|
+
_this.defaultValue = (_props_defaultValue = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _props_defaultValue !== void 0 ? _props_defaultValue : "";
|
|
143
142
|
var _props_allowCopyOptions;
|
|
144
|
-
_this.allowCopyOptions = (_props_allowCopyOptions =
|
|
143
|
+
_this.allowCopyOptions = (_props_allowCopyOptions = props === null || props === void 0 ? void 0 : props.allowCopyOptions) !== null && _props_allowCopyOptions !== void 0 ? _props_allowCopyOptions : false;
|
|
145
144
|
var _props_openMultistageFilling;
|
|
146
|
-
_this.openMultistageFilling = (_props_openMultistageFilling =
|
|
145
|
+
_this.openMultistageFilling = (_props_openMultistageFilling = props === null || props === void 0 ? void 0 : props.openMultistageFilling) !== null && _props_openMultistageFilling !== void 0 ? _props_openMultistageFilling : false;
|
|
147
146
|
_this.multistageFilling = [];
|
|
148
|
-
if (Array.isArray(
|
|
149
|
-
|
|
150
|
-
(_props10 = props) === null || _props10 === void 0 ? void 0 : _props10.multistageFilling.map(function(item) {
|
|
147
|
+
if (Array.isArray(props === null || props === void 0 ? void 0 : props.multistageFilling)) {
|
|
148
|
+
props === null || props === void 0 ? void 0 : props.multistageFilling.map(function(item) {
|
|
151
149
|
var _this_multistageFilling;
|
|
152
150
|
(_this_multistageFilling = _this.multistageFilling) === null || _this_multistageFilling === void 0 ? void 0 : _this_multistageFilling.push(new MultistageFillingItem(item));
|
|
153
151
|
});
|
|
@@ -106,10 +106,9 @@ var SelectControl = /*#__PURE__*/ function(RuntimeFormControl) {
|
|
|
106
106
|
function SelectControl(props) {
|
|
107
107
|
_class_call_check(this, SelectControl);
|
|
108
108
|
var _this;
|
|
109
|
-
var _props;
|
|
110
109
|
_this = _super.call(this, props);
|
|
111
110
|
_define_property(_assert_this_initialized(_this), "props", void 0);
|
|
112
|
-
_this.props = new SelectProperty(
|
|
111
|
+
_this.props = new SelectProperty(props === null || props === void 0 ? void 0 : props.props);
|
|
113
112
|
return _this;
|
|
114
113
|
}
|
|
115
114
|
_create_class(SelectControl, null, [
|
|
@@ -106,10 +106,9 @@ var SelectMultipleControl = /*#__PURE__*/ function(DesignerFormControl) {
|
|
|
106
106
|
function SelectMultipleControl(props) {
|
|
107
107
|
_class_call_check(this, SelectMultipleControl);
|
|
108
108
|
var _this;
|
|
109
|
-
var _props;
|
|
110
109
|
_this = _super.call(this, props);
|
|
111
110
|
_define_property(_assert_this_initialized(_this), "props", void 0);
|
|
112
|
-
_this.props = new SelectMultipleProperty(
|
|
111
|
+
_this.props = new SelectMultipleProperty(props === null || props === void 0 ? void 0 : props.props);
|
|
113
112
|
return _this;
|
|
114
113
|
}
|
|
115
114
|
_create_class(SelectMultipleControl, null, [
|
|
@@ -114,7 +114,6 @@ var SelectMultipleProperty = /*#__PURE__*/ function(BaseControlProperty) {
|
|
|
114
114
|
function SelectMultipleProperty(props) {
|
|
115
115
|
_class_call_check(this, SelectMultipleProperty);
|
|
116
116
|
var _this;
|
|
117
|
-
var _props, _props1, _props2, _props3, _props4, _props5, _props6, _props7, _props8;
|
|
118
117
|
_this = _super.call(this, props);
|
|
119
118
|
_define_property(_assert_this_initialized(_this), "options", void 0);
|
|
120
119
|
_define_property(_assert_this_initialized(_this), "defaultShowOptions", void 0);
|
|
@@ -126,7 +125,7 @@ var SelectMultipleProperty = /*#__PURE__*/ function(BaseControlProperty) {
|
|
|
126
125
|
_define_property(_assert_this_initialized(_this), "openMultistageFilling", void 0 //是否开启填充
|
|
127
126
|
);
|
|
128
127
|
var _props_options;
|
|
129
|
-
_this.options = initOptions((_props_options =
|
|
128
|
+
_this.options = initOptions((_props_options = props === null || props === void 0 ? void 0 : props.options) !== null && _props_options !== void 0 ? _props_options : [
|
|
130
129
|
{
|
|
131
130
|
label: "选项一",
|
|
132
131
|
value: "选项一"
|
|
@@ -141,22 +140,21 @@ var SelectMultipleProperty = /*#__PURE__*/ function(BaseControlProperty) {
|
|
|
141
140
|
}
|
|
142
141
|
]);
|
|
143
142
|
var _props_defaultShowOptions;
|
|
144
|
-
_this.defaultShowOptions = (_props_defaultShowOptions =
|
|
143
|
+
_this.defaultShowOptions = (_props_defaultShowOptions = props === null || props === void 0 ? void 0 : props.defaultShowOptions) !== null && _props_defaultShowOptions !== void 0 ? _props_defaultShowOptions : true;
|
|
145
144
|
var _props_optionConfig;
|
|
146
|
-
_this.optionConfig = (_props_optionConfig =
|
|
147
|
-
_this.datasourceBind = new DataSourceBind(
|
|
145
|
+
_this.optionConfig = (_props_optionConfig = props === null || props === void 0 ? void 0 : props.optionConfig) !== null && _props_optionConfig !== void 0 ? _props_optionConfig : "custom";
|
|
146
|
+
_this.datasourceBind = new DataSourceBind(props === null || props === void 0 ? void 0 : props.datasourceBind);
|
|
148
147
|
var _props_caption;
|
|
149
|
-
_this.caption = (_props_caption =
|
|
148
|
+
_this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : SelectMultipleControl.controlName;
|
|
150
149
|
var _props_placeholder;
|
|
151
|
-
_this.placeholder = (_props_placeholder =
|
|
150
|
+
_this.placeholder = (_props_placeholder = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _props_placeholder !== void 0 ? _props_placeholder : "请选择";
|
|
152
151
|
var _props_defaultValue;
|
|
153
|
-
_this.defaultValue = (_props_defaultValue =
|
|
152
|
+
_this.defaultValue = (_props_defaultValue = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _props_defaultValue !== void 0 ? _props_defaultValue : [];
|
|
154
153
|
var _props_openMultistageFilling;
|
|
155
|
-
_this.openMultistageFilling = (_props_openMultistageFilling =
|
|
154
|
+
_this.openMultistageFilling = (_props_openMultistageFilling = props === null || props === void 0 ? void 0 : props.openMultistageFilling) !== null && _props_openMultistageFilling !== void 0 ? _props_openMultistageFilling : false;
|
|
156
155
|
_this.multistageFilling = [];
|
|
157
|
-
if (Array.isArray(
|
|
158
|
-
|
|
159
|
-
(_props9 = props) === null || _props9 === void 0 ? void 0 : _props9.multistageFilling.map(function(item) {
|
|
156
|
+
if (Array.isArray(props === null || props === void 0 ? void 0 : props.multistageFilling)) {
|
|
157
|
+
props === null || props === void 0 ? void 0 : props.multistageFilling.map(function(item) {
|
|
160
158
|
var _this_multistageFilling;
|
|
161
159
|
(_this_multistageFilling = _this.multistageFilling) === null || _this_multistageFilling === void 0 ? void 0 : _this_multistageFilling.push(new MultistageFillingItem(item));
|
|
162
160
|
});
|
|
@@ -106,10 +106,9 @@ var SelectMultipleControl = /*#__PURE__*/ function(RuntimeFormControl) {
|
|
|
106
106
|
function SelectMultipleControl(props) {
|
|
107
107
|
_class_call_check(this, SelectMultipleControl);
|
|
108
108
|
var _this;
|
|
109
|
-
var _props;
|
|
110
109
|
_this = _super.call(this, props);
|
|
111
110
|
_define_property(_assert_this_initialized(_this), "props", void 0);
|
|
112
|
-
_this.props = new SelectMultipleProperty(
|
|
111
|
+
_this.props = new SelectMultipleProperty(props === null || props === void 0 ? void 0 : props.props);
|
|
113
112
|
return _this;
|
|
114
113
|
}
|
|
115
114
|
_create_class(SelectMultipleControl, null, [
|
|
@@ -106,10 +106,9 @@ var SelectRelationControl = /*#__PURE__*/ function(DesignerFormControl) {
|
|
|
106
106
|
function SelectRelationControl(props) {
|
|
107
107
|
_class_call_check(this, SelectRelationControl);
|
|
108
108
|
var _this;
|
|
109
|
-
var _props;
|
|
110
109
|
_this = _super.call(this, props);
|
|
111
110
|
_define_property(_assert_this_initialized(_this), "props", void 0);
|
|
112
|
-
_this.props = new SelectRelationProperty(
|
|
111
|
+
_this.props = new SelectRelationProperty(props === null || props === void 0 ? void 0 : props.props);
|
|
113
112
|
return _this;
|
|
114
113
|
}
|
|
115
114
|
_create_class(SelectRelationControl, null, [
|
|
@@ -130,7 +130,6 @@ var SelectRelationControlPropertyRules = /*#__PURE__*/ function(OptionAndDataSou
|
|
|
130
130
|
function SelectRelationProperty(props) {
|
|
131
131
|
_class_call_check(this, SelectRelationProperty);
|
|
132
132
|
var _this;
|
|
133
|
-
var _props, _props1, _props2, _props3, _props4, _props5, _props6, _props7, _props8, _props9, _props10, _props11, _props12;
|
|
134
133
|
_this = _super.call(this, props);
|
|
135
134
|
/**
|
|
136
135
|
* 自定义选项
|
|
@@ -183,34 +182,33 @@ var SelectRelationControlPropertyRules = /*#__PURE__*/ function(OptionAndDataSou
|
|
|
183
182
|
// 展示已选内容配置字段
|
|
184
183
|
_define_property(_assert_this_initialized(_this), "selectedContentConfig", void 0);
|
|
185
184
|
var _props_options;
|
|
186
|
-
_this.options = initOptions((_props_options =
|
|
185
|
+
_this.options = initOptions((_props_options = props === null || props === void 0 ? void 0 : props.options) !== null && _props_options !== void 0 ? _props_options : []);
|
|
187
186
|
var _props_optionConfig;
|
|
188
|
-
_this.optionConfig = (_props_optionConfig =
|
|
189
|
-
_this.listPageBind = new ListBind(
|
|
190
|
-
_this.datasourceBind = new DataSourceBind(
|
|
187
|
+
_this.optionConfig = (_props_optionConfig = props === null || props === void 0 ? void 0 : props.optionConfig) !== null && _props_optionConfig !== void 0 ? _props_optionConfig : "datasource";
|
|
188
|
+
_this.listPageBind = new ListBind(props === null || props === void 0 ? void 0 : props.listPageBind);
|
|
189
|
+
_this.datasourceBind = new DataSourceBind(props === null || props === void 0 ? void 0 : props.datasourceBind);
|
|
191
190
|
var _props_caption;
|
|
192
|
-
_this.caption = (_props_caption =
|
|
191
|
+
_this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : SelectRelationControl.controlName;
|
|
193
192
|
var _props_placeholder;
|
|
194
|
-
_this.placeholder = (_props_placeholder =
|
|
193
|
+
_this.placeholder = (_props_placeholder = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _props_placeholder !== void 0 ? _props_placeholder : "请选择";
|
|
195
194
|
var _props_defaultValue;
|
|
196
|
-
_this.defaultValue = (_props_defaultValue =
|
|
195
|
+
_this.defaultValue = (_props_defaultValue = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _props_defaultValue !== void 0 ? _props_defaultValue : "";
|
|
197
196
|
var _props_openMultistageFilling;
|
|
198
|
-
_this.openMultistageFilling = (_props_openMultistageFilling =
|
|
197
|
+
_this.openMultistageFilling = (_props_openMultistageFilling = props === null || props === void 0 ? void 0 : props.openMultistageFilling) !== null && _props_openMultistageFilling !== void 0 ? _props_openMultistageFilling : false;
|
|
199
198
|
var _props_showSelectedDetail;
|
|
200
|
-
_this.showSelectedDetail = (_props_showSelectedDetail =
|
|
201
|
-
_this.selectedContentConfig = new SelectedContentConfig(
|
|
199
|
+
_this.showSelectedDetail = (_props_showSelectedDetail = props === null || props === void 0 ? void 0 : props.showSelectedDetail) !== null && _props_showSelectedDetail !== void 0 ? _props_showSelectedDetail : false;
|
|
200
|
+
_this.selectedContentConfig = new SelectedContentConfig(props === null || props === void 0 ? void 0 : props.selectedContentConfig);
|
|
202
201
|
_this.multistageFilling = [];
|
|
203
|
-
if (Array.isArray(
|
|
204
|
-
|
|
205
|
-
(_props13 = props) === null || _props13 === void 0 ? void 0 : _props13.multistageFilling.map(function(item) {
|
|
202
|
+
if (Array.isArray(props === null || props === void 0 ? void 0 : props.multistageFilling)) {
|
|
203
|
+
props === null || props === void 0 ? void 0 : props.multistageFilling.map(function(item) {
|
|
206
204
|
var _this_multistageFilling;
|
|
207
205
|
(_this_multistageFilling = _this.multistageFilling) === null || _this_multistageFilling === void 0 ? void 0 : _this_multistageFilling.push(new MultistageFillingItem(item));
|
|
208
206
|
});
|
|
209
207
|
}
|
|
210
208
|
var _props_canViewForm;
|
|
211
|
-
_this.canViewForm = (_props_canViewForm =
|
|
209
|
+
_this.canViewForm = (_props_canViewForm = props === null || props === void 0 ? void 0 : props.canViewForm) !== null && _props_canViewForm !== void 0 ? _props_canViewForm : false;
|
|
212
210
|
var _props_viewFormModelType;
|
|
213
|
-
_this.viewFormModelType = (_props_viewFormModelType =
|
|
211
|
+
_this.viewFormModelType = (_props_viewFormModelType = props === null || props === void 0 ? void 0 : props.viewFormModelType) !== null && _props_viewFormModelType !== void 0 ? _props_viewFormModelType : "window";
|
|
214
212
|
return _this;
|
|
215
213
|
}
|
|
216
214
|
return SelectRelationProperty;
|
|
@@ -106,10 +106,9 @@ var SelectRelationControl = /*#__PURE__*/ function(RuntimeFormControl) {
|
|
|
106
106
|
function SelectRelationControl(props) {
|
|
107
107
|
_class_call_check(this, SelectRelationControl);
|
|
108
108
|
var _this;
|
|
109
|
-
var _props;
|
|
110
109
|
_this = _super.call(this, props);
|
|
111
110
|
_define_property(_assert_this_initialized(_this), "props", void 0);
|
|
112
|
-
_this.props = new SelectRelationProperty(
|
|
111
|
+
_this.props = new SelectRelationProperty(props === null || props === void 0 ? void 0 : props.props);
|
|
113
112
|
return _this;
|
|
114
113
|
}
|
|
115
114
|
_create_class(SelectRelationControl, null, [
|
|
@@ -106,10 +106,9 @@ var TextareaControl = /*#__PURE__*/ function(DesignerFormControl) {
|
|
|
106
106
|
function TextareaControl(props) {
|
|
107
107
|
_class_call_check(this, TextareaControl);
|
|
108
108
|
var _this;
|
|
109
|
-
var _props;
|
|
110
109
|
_this = _super.call(this, props);
|
|
111
110
|
_define_property(_assert_this_initialized(_this), "props", void 0);
|
|
112
|
-
_this.props = new TextareaProperty(
|
|
111
|
+
_this.props = new TextareaProperty(props === null || props === void 0 ? void 0 : props.props);
|
|
113
112
|
return _this;
|
|
114
113
|
}
|
|
115
114
|
_create_class(TextareaControl, null, [
|
|
@@ -152,7 +152,6 @@ var TextareaControlPropertyRuntimeRules = /*#__PURE__*/ function(BaseControlProp
|
|
|
152
152
|
function TextareaProperty(props) {
|
|
153
153
|
_class_call_check(this, TextareaProperty);
|
|
154
154
|
var _this;
|
|
155
|
-
var _props, _props1, _props2, _props3, _props4, _props5;
|
|
156
155
|
_this = _super.call(this, props);
|
|
157
156
|
/**
|
|
158
157
|
* 最大长度
|
|
@@ -175,17 +174,17 @@ var TextareaControlPropertyRuntimeRules = /*#__PURE__*/ function(BaseControlProp
|
|
|
175
174
|
* @public
|
|
176
175
|
*/ _define_property(_assert_this_initialized(_this), "lineEllipsis", void 0);
|
|
177
176
|
var _props_maxLength;
|
|
178
|
-
_this.maxLength = (_props_maxLength =
|
|
177
|
+
_this.maxLength = (_props_maxLength = props === null || props === void 0 ? void 0 : props.maxLength) !== null && _props_maxLength !== void 0 ? _props_maxLength : 50000;
|
|
179
178
|
var _props_minLength;
|
|
180
|
-
_this.minLength = (_props_minLength =
|
|
179
|
+
_this.minLength = (_props_minLength = props === null || props === void 0 ? void 0 : props.minLength) !== null && _props_minLength !== void 0 ? _props_minLength : 0;
|
|
181
180
|
var _props_defaultValue;
|
|
182
|
-
_this.defaultValue = (_props_defaultValue =
|
|
181
|
+
_this.defaultValue = (_props_defaultValue = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _props_defaultValue !== void 0 ? _props_defaultValue : "";
|
|
183
182
|
var _props_caption;
|
|
184
|
-
_this.caption = (_props_caption =
|
|
183
|
+
_this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : TextareaControl.controlName;
|
|
185
184
|
var _props_placeholder;
|
|
186
|
-
_this.placeholder = (_props_placeholder =
|
|
185
|
+
_this.placeholder = (_props_placeholder = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _props_placeholder !== void 0 ? _props_placeholder : "请输入";
|
|
187
186
|
var _props_lineEllipsis;
|
|
188
|
-
_this.lineEllipsis = (_props_lineEllipsis =
|
|
187
|
+
_this.lineEllipsis = (_props_lineEllipsis = props === null || props === void 0 ? void 0 : props.lineEllipsis) !== null && _props_lineEllipsis !== void 0 ? _props_lineEllipsis : 4;
|
|
189
188
|
return _this;
|
|
190
189
|
}
|
|
191
190
|
return TextareaProperty;
|