@byteluck-fe/model-driven-controls 1.7.5 → 1.7.8-beta.0
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/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/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 +16 -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/package.json +4 -4
|
@@ -110,7 +110,7 @@ var DecimalColumnControl = /*#__PURE__*/ function(DesignerColumnControl) {
|
|
|
110
110
|
_proto.toDataBindModel = function toDataBindModel(parentId) {
|
|
111
111
|
var dataBindModel = _get(_getPrototypeOf(DecimalColumnControl.prototype), "toDataBindModel", this).call(this, parentId);
|
|
112
112
|
if (dataBindModel) {
|
|
113
|
-
var
|
|
113
|
+
var _this_props = this.props, precision = _this_props.precision, micrometer = _this_props.micrometer;
|
|
114
114
|
precision !== "" && (dataBindModel.props.precision = precision);
|
|
115
115
|
dataBindModel.props.micrometer = micrometer;
|
|
116
116
|
}
|
|
@@ -79,19 +79,19 @@ var DecimalColumnControlProperty = /*#__PURE__*/ function(ColumnControlProperty)
|
|
|
79
79
|
_classCallCheck(this, DecimalColumnControlProperty);
|
|
80
80
|
var _this;
|
|
81
81
|
_this = _super.call(this, props);
|
|
82
|
-
var
|
|
83
|
-
_this.caption = (
|
|
84
|
-
var
|
|
85
|
-
_this.precision = (
|
|
86
|
-
var
|
|
87
|
-
_this.micrometer = (
|
|
88
|
-
var
|
|
89
|
-
_this.percentageFormat = (
|
|
90
|
-
var
|
|
91
|
-
_this.optionConfig = (
|
|
82
|
+
var _props_caption;
|
|
83
|
+
_this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : DesignerDecimalColumnControl.controlName;
|
|
84
|
+
var _props_precision;
|
|
85
|
+
_this.precision = (_props_precision = props === null || props === void 0 ? void 0 : props.precision) !== null && _props_precision !== void 0 ? _props_precision : 0;
|
|
86
|
+
var _props_micrometer;
|
|
87
|
+
_this.micrometer = (_props_micrometer = props === null || props === void 0 ? void 0 : props.micrometer) !== null && _props_micrometer !== void 0 ? _props_micrometer : false;
|
|
88
|
+
var _props_percentageFormat;
|
|
89
|
+
_this.percentageFormat = (_props_percentageFormat = props === null || props === void 0 ? void 0 : props.percentageFormat) !== null && _props_percentageFormat !== void 0 ? _props_percentageFormat : false;
|
|
90
|
+
var _props_optionConfig;
|
|
91
|
+
_this.optionConfig = (_props_optionConfig = props === null || props === void 0 ? void 0 : props.optionConfig) !== null && _props_optionConfig !== void 0 ? _props_optionConfig : "none";
|
|
92
92
|
_this.datasourceBind = new DataSourceBind(props === null || props === void 0 ? void 0 : props.datasourceBind);
|
|
93
|
-
var
|
|
94
|
-
_this.options = initOptions((
|
|
93
|
+
var _props_options;
|
|
94
|
+
_this.options = initOptions((_props_options = props === null || props === void 0 ? void 0 : props.options) !== null && _props_options !== void 0 ? _props_options : [
|
|
95
95
|
{}
|
|
96
96
|
]);
|
|
97
97
|
return _this;
|
|
@@ -79,10 +79,10 @@ var DepartmentColumnControlProperty = /*#__PURE__*/ function(ColumnControlProper
|
|
|
79
79
|
_classCallCheck(this, DepartmentColumnControlProperty);
|
|
80
80
|
var _this;
|
|
81
81
|
_this = _super.call(this, props);
|
|
82
|
-
var
|
|
83
|
-
_this.caption = (
|
|
84
|
-
var
|
|
85
|
-
_this.displayLevel = (
|
|
82
|
+
var _props_caption;
|
|
83
|
+
_this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : DesignerDepartmentColumnControl.controlName;
|
|
84
|
+
var _props_displayLevel;
|
|
85
|
+
_this.displayLevel = (_props_displayLevel = props === null || props === void 0 ? void 0 : props.displayLevel) !== null && _props_displayLevel !== void 0 ? _props_displayLevel : 1;
|
|
86
86
|
return _this;
|
|
87
87
|
}
|
|
88
88
|
return DepartmentColumnControlProperty;
|
|
@@ -79,10 +79,10 @@ var EmployeeColumnControlProperty = /*#__PURE__*/ function(ColumnControlProperty
|
|
|
79
79
|
_classCallCheck(this, EmployeeColumnControlProperty);
|
|
80
80
|
var _this;
|
|
81
81
|
_this = _super.call(this, props);
|
|
82
|
-
var
|
|
83
|
-
_this.caption = (
|
|
84
|
-
var
|
|
85
|
-
_this.datasourceBind = new SuperDataSourceBind((
|
|
82
|
+
var _props_caption;
|
|
83
|
+
_this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : EmployeeColumnControl.controlName;
|
|
84
|
+
var _props_datasourceBind;
|
|
85
|
+
_this.datasourceBind = new SuperDataSourceBind((_props_datasourceBind = props === null || props === void 0 ? void 0 : props.datasourceBind) !== null && _props_datasourceBind !== void 0 ? _props_datasourceBind : {
|
|
86
86
|
attributes: EmployeeColumnControl.controlCustomAttributes
|
|
87
87
|
});
|
|
88
88
|
return _this;
|
|
@@ -79,8 +79,8 @@ var FileColumnControlProperty = /*#__PURE__*/ function(ColumnControlProperty) {
|
|
|
79
79
|
_classCallCheck(this, FileColumnControlProperty);
|
|
80
80
|
var _this;
|
|
81
81
|
_this = _super.call(this, props);
|
|
82
|
-
var
|
|
83
|
-
_this.caption = (
|
|
82
|
+
var _props_caption;
|
|
83
|
+
_this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : DesignerFileColumnControl.controlName;
|
|
84
84
|
return _this;
|
|
85
85
|
}
|
|
86
86
|
return FileColumnControlProperty;
|
|
@@ -79,8 +79,8 @@ var ImageColumnControlProperty = /*#__PURE__*/ function(ColumnControlProperty) {
|
|
|
79
79
|
_classCallCheck(this, ImageColumnControlProperty);
|
|
80
80
|
var _this;
|
|
81
81
|
_this = _super.call(this, props);
|
|
82
|
-
var
|
|
83
|
-
_this.caption = (
|
|
82
|
+
var _props_caption;
|
|
83
|
+
_this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : DesignerImageColumnControl.controlName;
|
|
84
84
|
return _this;
|
|
85
85
|
}
|
|
86
86
|
return ImageColumnControlProperty;
|
|
@@ -79,8 +79,8 @@ var LocationColumnControlProperty = /*#__PURE__*/ function(ColumnControlProperty
|
|
|
79
79
|
_classCallCheck(this, LocationColumnControlProperty);
|
|
80
80
|
var _this;
|
|
81
81
|
_this = _super.call(this, props);
|
|
82
|
-
var
|
|
83
|
-
_this.caption = (
|
|
82
|
+
var _props_caption;
|
|
83
|
+
_this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : DesignerLocationColumnControl.controlName;
|
|
84
84
|
return _this;
|
|
85
85
|
}
|
|
86
86
|
return LocationColumnControlProperty;
|
|
@@ -122,33 +122,33 @@ var OperationColumnControlProperty = /*#__PURE__*/ function(ColumnControlPropert
|
|
|
122
122
|
_classCallCheck(this, OperationColumnControlProperty);
|
|
123
123
|
var _this;
|
|
124
124
|
_this = _super.call(this, props);
|
|
125
|
-
var
|
|
126
|
-
_this.fixed = (
|
|
127
|
-
var
|
|
128
|
-
_this.check = new OperationItem((
|
|
125
|
+
var _props_fixed;
|
|
126
|
+
_this.fixed = (_props_fixed = props === null || props === void 0 ? void 0 : props.fixed) !== null && _props_fixed !== void 0 ? _props_fixed : "right";
|
|
127
|
+
var _props_check;
|
|
128
|
+
_this.check = new OperationItem((_props_check = props === null || props === void 0 ? void 0 : props.check) !== null && _props_check !== void 0 ? _props_check : {
|
|
129
129
|
content: "查看",
|
|
130
130
|
type: "check",
|
|
131
131
|
isShow: false,
|
|
132
132
|
priorityProcess: true
|
|
133
133
|
});
|
|
134
|
-
var
|
|
135
|
-
_this.edit = new OperationItem((
|
|
134
|
+
var _props_edit;
|
|
135
|
+
_this.edit = new OperationItem((_props_edit = props === null || props === void 0 ? void 0 : props.edit) !== null && _props_edit !== void 0 ? _props_edit : {
|
|
136
136
|
content: "编辑",
|
|
137
137
|
type: "edit",
|
|
138
138
|
isShow: false
|
|
139
139
|
});
|
|
140
|
-
var
|
|
141
|
-
_this.delete = new OperationItem((
|
|
140
|
+
var _props_delete;
|
|
141
|
+
_this.delete = new OperationItem((_props_delete = props === null || props === void 0 ? void 0 : props.delete) !== null && _props_delete !== void 0 ? _props_delete : {
|
|
142
142
|
content: "删除",
|
|
143
143
|
type: "delete",
|
|
144
144
|
isShow: false
|
|
145
145
|
});
|
|
146
|
-
var
|
|
147
|
-
_this.custom = ((
|
|
146
|
+
var _props_custom;
|
|
147
|
+
_this.custom = ((_props_custom = props === null || props === void 0 ? void 0 : props.custom) !== null && _props_custom !== void 0 ? _props_custom : []).map(function(item) {
|
|
148
148
|
return new OperationItem(item);
|
|
149
149
|
});
|
|
150
|
-
var
|
|
151
|
-
_this.caption = (
|
|
150
|
+
var _props_caption;
|
|
151
|
+
_this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : DesignerOperationColumnControl.controlName;
|
|
152
152
|
return _this;
|
|
153
153
|
}
|
|
154
154
|
return OperationColumnControlProperty;
|
|
@@ -92,14 +92,14 @@ var OrderColumnControlProperty = /*#__PURE__*/ function(ColumnControlProperty) {
|
|
|
92
92
|
_classCallCheck(this, OrderColumnControlProperty);
|
|
93
93
|
var _this;
|
|
94
94
|
_this = _super.call(this, props);
|
|
95
|
-
var
|
|
96
|
-
_this.fixed = (
|
|
97
|
-
var
|
|
98
|
-
_this.caption = (
|
|
99
|
-
var
|
|
100
|
-
_this.width = (
|
|
101
|
-
var
|
|
102
|
-
_this.widthType = (
|
|
95
|
+
var _props_fixed;
|
|
96
|
+
_this.fixed = (_props_fixed = props === null || props === void 0 ? void 0 : props.fixed) !== null && _props_fixed !== void 0 ? _props_fixed : "left";
|
|
97
|
+
var _props_caption;
|
|
98
|
+
_this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : DesignerOrderColumnControl.controlName;
|
|
99
|
+
var _props_width;
|
|
100
|
+
_this.width = (_props_width = props === null || props === void 0 ? void 0 : props.width) !== null && _props_width !== void 0 ? _props_width : 50;
|
|
101
|
+
var _props_widthType;
|
|
102
|
+
_this.widthType = (_props_widthType = props === null || props === void 0 ? void 0 : props.widthType) !== null && _props_widthType !== void 0 ? _props_widthType : "px";
|
|
103
103
|
return _this;
|
|
104
104
|
}
|
|
105
105
|
return OrderColumnControlProperty;
|
|
@@ -79,8 +79,8 @@ var PeopleColumnControlProperty = /*#__PURE__*/ function(ColumnControlProperty)
|
|
|
79
79
|
_classCallCheck(this, PeopleColumnControlProperty);
|
|
80
80
|
var _this;
|
|
81
81
|
_this = _super.call(this, props);
|
|
82
|
-
var
|
|
83
|
-
_this.caption = (
|
|
82
|
+
var _props_caption;
|
|
83
|
+
_this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : DesignerPeopleColumnControl.controlName;
|
|
84
84
|
return _this;
|
|
85
85
|
}
|
|
86
86
|
return PeopleColumnControlProperty;
|
|
@@ -79,12 +79,12 @@ var TextColumnControlProperty = /*#__PURE__*/ function(ColumnControlProperty) {
|
|
|
79
79
|
_classCallCheck(this, TextColumnControlProperty);
|
|
80
80
|
var _this;
|
|
81
81
|
_this = _super.call(this, props);
|
|
82
|
-
var
|
|
83
|
-
_this.escapeHTML = (
|
|
84
|
-
var
|
|
85
|
-
_this.caption = (
|
|
86
|
-
var
|
|
87
|
-
_this.lineEllipsis = (
|
|
82
|
+
var _props_escapeHTML;
|
|
83
|
+
_this.escapeHTML = (_props_escapeHTML = props === null || props === void 0 ? void 0 : props.escapeHTML) !== null && _props_escapeHTML !== void 0 ? _props_escapeHTML : true;
|
|
84
|
+
var _props_caption;
|
|
85
|
+
_this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : DesignerTextColumnControl.controlName;
|
|
86
|
+
var _props_lineEllipsis;
|
|
87
|
+
_this.lineEllipsis = (_props_lineEllipsis = props === null || props === void 0 ? void 0 : props.lineEllipsis) !== null && _props_lineEllipsis !== void 0 ? _props_lineEllipsis : 1;
|
|
88
88
|
return _this;
|
|
89
89
|
}
|
|
90
90
|
return TextColumnControlProperty;
|
|
@@ -80,10 +80,10 @@ var TimescopeColumnControlProperty = /*#__PURE__*/ function(ColumnControlPropert
|
|
|
80
80
|
_classCallCheck(this, TimescopeColumnControlProperty);
|
|
81
81
|
var _this;
|
|
82
82
|
_this = _super.call(this, props);
|
|
83
|
-
var
|
|
84
|
-
_this.dateType = (
|
|
85
|
-
var
|
|
86
|
-
_this.caption = (
|
|
83
|
+
var _props_dateType;
|
|
84
|
+
_this.dateType = (_props_dateType = props === null || props === void 0 ? void 0 : props.dateType) !== null && _props_dateType !== void 0 ? _props_dateType : DateType.DATE;
|
|
85
|
+
var _props_caption;
|
|
86
|
+
_this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : DesignerTimescopeColumnControl.controlName;
|
|
87
87
|
return _this;
|
|
88
88
|
}
|
|
89
89
|
return TimescopeColumnControlProperty;
|
|
@@ -80,10 +80,10 @@ var TimestampColumnControlProperty = /*#__PURE__*/ function(ColumnControlPropert
|
|
|
80
80
|
_classCallCheck(this, TimestampColumnControlProperty);
|
|
81
81
|
var _this;
|
|
82
82
|
_this = _super.call(this, props);
|
|
83
|
-
var
|
|
84
|
-
_this.dateType = (
|
|
85
|
-
var
|
|
86
|
-
_this.caption = (
|
|
83
|
+
var _props_dateType;
|
|
84
|
+
_this.dateType = (_props_dateType = props === null || props === void 0 ? void 0 : props.dateType) !== null && _props_dateType !== void 0 ? _props_dateType : DateType.DATE;
|
|
85
|
+
var _props_caption;
|
|
86
|
+
_this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : DesignerTimestampColumnControl.controlName;
|
|
87
87
|
return _this;
|
|
88
88
|
}
|
|
89
89
|
return TimestampColumnControlProperty;
|
|
@@ -89,17 +89,17 @@ var VarcharColumnControlProperty = /*#__PURE__*/ function(ColumnControlProperty)
|
|
|
89
89
|
_classCallCheck(this, VarcharColumnControlProperty);
|
|
90
90
|
var _this;
|
|
91
91
|
_this = _super.call(this, props);
|
|
92
|
-
var
|
|
93
|
-
_this.caption = (
|
|
94
|
-
var
|
|
95
|
-
_this.optionConfig = (
|
|
92
|
+
var _props_caption;
|
|
93
|
+
_this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : DesignerVarcharColumnControl.controlName;
|
|
94
|
+
var _props_optionConfig;
|
|
95
|
+
_this.optionConfig = (_props_optionConfig = props === null || props === void 0 ? void 0 : props.optionConfig) !== null && _props_optionConfig !== void 0 ? _props_optionConfig : "none";
|
|
96
96
|
_this.datasourceBind = new DataSourceBind(props === null || props === void 0 ? void 0 : props.datasourceBind);
|
|
97
|
-
var
|
|
98
|
-
_this.options = initOptions((
|
|
97
|
+
var _props_options;
|
|
98
|
+
_this.options = initOptions((_props_options = props === null || props === void 0 ? void 0 : props.options) !== null && _props_options !== void 0 ? _props_options : [
|
|
99
99
|
{}
|
|
100
100
|
]);
|
|
101
|
-
var
|
|
102
|
-
_this.lineEllipsis = (
|
|
101
|
+
var _props_lineEllipsis;
|
|
102
|
+
_this.lineEllipsis = (_props_lineEllipsis = props === null || props === void 0 ? void 0 : props.lineEllipsis) !== null && _props_lineEllipsis !== void 0 ? _props_lineEllipsis : 1;
|
|
103
103
|
return _this;
|
|
104
104
|
}
|
|
105
105
|
return VarcharColumnControlProperty;
|
|
@@ -120,20 +120,20 @@ var AddressProperty = /*#__PURE__*/ function(BaseControlProperty) {
|
|
|
120
120
|
_classCallCheck(this, AddressProperty);
|
|
121
121
|
var _this;
|
|
122
122
|
_this = _super.call(this, props);
|
|
123
|
-
var
|
|
124
|
-
_this.caption = (
|
|
125
|
-
var
|
|
126
|
-
_this.defaultValueType = (
|
|
127
|
-
var
|
|
128
|
-
_this.addressType = (
|
|
123
|
+
var _props_caption;
|
|
124
|
+
_this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : AddressControl.controlName;
|
|
125
|
+
var _props_defaultValueType;
|
|
126
|
+
_this.defaultValueType = (_props_defaultValueType = props === null || props === void 0 ? void 0 : props.defaultValueType) !== null && _props_defaultValueType !== void 0 ? _props_defaultValueType : "default";
|
|
127
|
+
var _props_addressType;
|
|
128
|
+
_this.addressType = (_props_addressType = props === null || props === void 0 ? void 0 : props.addressType) !== null && _props_addressType !== void 0 ? _props_addressType : [
|
|
129
129
|
"province",
|
|
130
130
|
"city",
|
|
131
131
|
"district"
|
|
132
132
|
];
|
|
133
|
-
var
|
|
134
|
-
_this.defaultValue = new AddressValue((
|
|
135
|
-
var
|
|
136
|
-
_this.placeholder = (
|
|
133
|
+
var _props_defaultValue;
|
|
134
|
+
_this.defaultValue = new AddressValue((_props_defaultValue = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _props_defaultValue !== void 0 ? _props_defaultValue : {});
|
|
135
|
+
var _props_placeholder;
|
|
136
|
+
_this.placeholder = (_props_placeholder = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _props_placeholder !== void 0 ? _props_placeholder : "请选择地址";
|
|
137
137
|
return _this;
|
|
138
138
|
}
|
|
139
139
|
return AddressProperty;
|
|
@@ -124,7 +124,7 @@ var AmountControl = /*#__PURE__*/ function(DesignerFormControl) {
|
|
|
124
124
|
_proto.toDataBindModel = function toDataBindModel(parentId) {
|
|
125
125
|
var dataBindModel = _get(_getPrototypeOf(AmountControl.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
|
}
|
|
@@ -212,39 +212,39 @@ var AmountProperty = /*#__PURE__*/ function(BaseControlProperty) {
|
|
|
212
212
|
_classCallCheck(this, AmountProperty);
|
|
213
213
|
var _this;
|
|
214
214
|
_this = _super.call(this, props);
|
|
215
|
-
var
|
|
216
|
-
_this.rangeMin = (
|
|
217
|
-
var
|
|
218
|
-
_this.rangeMax = (
|
|
219
|
-
var
|
|
220
|
-
_this.optionConfig = (
|
|
221
|
-
var
|
|
222
|
-
_this.micrometer = (
|
|
223
|
-
var
|
|
224
|
-
_this.precision = (
|
|
215
|
+
var _props_rangeMin;
|
|
216
|
+
_this.rangeMin = (_props_rangeMin = props === null || props === void 0 ? void 0 : props.rangeMin) !== null && _props_rangeMin !== void 0 ? _props_rangeMin : "";
|
|
217
|
+
var _props_rangeMax;
|
|
218
|
+
_this.rangeMax = (_props_rangeMax = props === null || props === void 0 ? void 0 : props.rangeMax) !== null && _props_rangeMax !== void 0 ? _props_rangeMax : "";
|
|
219
|
+
var _props_optionConfig;
|
|
220
|
+
_this.optionConfig = (_props_optionConfig = props === null || props === void 0 ? void 0 : props.optionConfig) !== null && _props_optionConfig !== void 0 ? _props_optionConfig : "datasource";
|
|
221
|
+
var _props_micrometer;
|
|
222
|
+
_this.micrometer = (_props_micrometer = props === null || props === void 0 ? void 0 : props.micrometer) !== null && _props_micrometer !== void 0 ? _props_micrometer : false;
|
|
223
|
+
var _props_precision;
|
|
224
|
+
_this.precision = (_props_precision = props === null || props === void 0 ? void 0 : props.precision) !== null && _props_precision !== void 0 ? _props_precision : 2;
|
|
225
225
|
_this.dataBind = new AmountDataBind(props === null || props === void 0 ? void 0 : props.dataBind);
|
|
226
|
-
var
|
|
227
|
-
_this.datasourceBind = new DataSourceBind((
|
|
226
|
+
var _props_datasourceBind;
|
|
227
|
+
_this.datasourceBind = new DataSourceBind((_props_datasourceBind = props === null || props === void 0 ? void 0 : props.datasourceBind) !== null && _props_datasourceBind !== void 0 ? _props_datasourceBind : {
|
|
228
228
|
displayBoList: [
|
|
229
229
|
new DisplayBoListItem({
|
|
230
230
|
value: "name"
|
|
231
231
|
})
|
|
232
232
|
]
|
|
233
233
|
});
|
|
234
|
-
var
|
|
235
|
-
_this.defaultValue = new AmountValue((
|
|
234
|
+
var _props_defaultValue;
|
|
235
|
+
_this.defaultValue = new AmountValue((_props_defaultValue = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _props_defaultValue !== void 0 ? _props_defaultValue : {
|
|
236
236
|
amount: "",
|
|
237
237
|
currency: AMOUNT_TYPE.CNY
|
|
238
238
|
});
|
|
239
239
|
_this.options = initOptions(props === null || props === void 0 ? void 0 : props.options);
|
|
240
|
-
var
|
|
241
|
-
_this.caption = (
|
|
242
|
-
var
|
|
243
|
-
_this.placeholder = (
|
|
244
|
-
var
|
|
245
|
-
_this.submitSelectCurrency = (
|
|
246
|
-
var
|
|
247
|
-
_this.showUpperCase = (
|
|
240
|
+
var _props_caption;
|
|
241
|
+
_this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : AmountControl.controlName;
|
|
242
|
+
var _props_placeholder;
|
|
243
|
+
_this.placeholder = (_props_placeholder = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _props_placeholder !== void 0 ? _props_placeholder : "请输入";
|
|
244
|
+
var _props_submitSelectCurrency;
|
|
245
|
+
_this.submitSelectCurrency = (_props_submitSelectCurrency = props === null || props === void 0 ? void 0 : props.submitSelectCurrency) !== null && _props_submitSelectCurrency !== void 0 ? _props_submitSelectCurrency : false;
|
|
246
|
+
var _props_showUpperCase;
|
|
247
|
+
_this.showUpperCase = (_props_showUpperCase = props === null || props === void 0 ? void 0 : props.showUpperCase) !== null && _props_showUpperCase !== void 0 ? _props_showUpperCase : false;
|
|
248
248
|
return _this;
|
|
249
249
|
}
|
|
250
250
|
return AmountProperty;
|
|
@@ -123,22 +123,22 @@ var AttachmentProperty = /*#__PURE__*/ function(BaseControlProperty) {
|
|
|
123
123
|
_classCallCheck(this, AttachmentProperty);
|
|
124
124
|
var _this;
|
|
125
125
|
_this = _super.call(this, props);
|
|
126
|
-
var
|
|
127
|
-
_this.defaultValue = (
|
|
128
|
-
var
|
|
129
|
-
_this.showType = (
|
|
130
|
-
var
|
|
131
|
-
_this.attachmentAccept = (
|
|
132
|
-
var
|
|
133
|
-
_this.maxLimit = (
|
|
134
|
-
var
|
|
135
|
-
_this.minLimit = (
|
|
136
|
-
var
|
|
137
|
-
_this.maxSize = (
|
|
138
|
-
var
|
|
139
|
-
_this.caption = (
|
|
140
|
-
var
|
|
141
|
-
_this.placeholder = (
|
|
126
|
+
var _props_defaultValue;
|
|
127
|
+
_this.defaultValue = (_props_defaultValue = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _props_defaultValue !== void 0 ? _props_defaultValue : [];
|
|
128
|
+
var _props_showType;
|
|
129
|
+
_this.showType = (_props_showType = props === null || props === void 0 ? void 0 : props.showType) !== null && _props_showType !== void 0 ? _props_showType : "default";
|
|
130
|
+
var _props_attachmentAccept;
|
|
131
|
+
_this.attachmentAccept = (_props_attachmentAccept = props === null || props === void 0 ? void 0 : props.attachmentAccept) !== null && _props_attachmentAccept !== void 0 ? _props_attachmentAccept : [];
|
|
132
|
+
var _props_maxLimit;
|
|
133
|
+
_this.maxLimit = (_props_maxLimit = props === null || props === void 0 ? void 0 : props.maxLimit) !== null && _props_maxLimit !== void 0 ? _props_maxLimit : 10;
|
|
134
|
+
var _props_minLimit;
|
|
135
|
+
_this.minLimit = (_props_minLimit = props === null || props === void 0 ? void 0 : props.minLimit) !== null && _props_minLimit !== void 0 ? _props_minLimit : 0;
|
|
136
|
+
var _props_maxSize;
|
|
137
|
+
_this.maxSize = (_props_maxSize = props === null || props === void 0 ? void 0 : props.maxSize) !== null && _props_maxSize !== void 0 ? _props_maxSize : MB100;
|
|
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 : AttachmentControl.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
142
|
return _this;
|
|
143
143
|
}
|
|
144
144
|
return AttachmentProperty;
|
|
@@ -79,12 +79,12 @@ var AutoNumberProperty = /*#__PURE__*/ function(BaseControlProperty) {
|
|
|
79
79
|
_classCallCheck(this, AutoNumberProperty);
|
|
80
80
|
var _this;
|
|
81
81
|
_this = _super.call(this, props);
|
|
82
|
-
var
|
|
83
|
-
_this.defaultValue = (
|
|
84
|
-
var
|
|
85
|
-
_this.caption = (
|
|
86
|
-
var
|
|
87
|
-
_this.placeholder = (
|
|
82
|
+
var _props_defaultValue;
|
|
83
|
+
_this.defaultValue = (_props_defaultValue = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _props_defaultValue !== void 0 ? _props_defaultValue : "";
|
|
84
|
+
var _props_caption;
|
|
85
|
+
_this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : AutoNumberControl.controlName;
|
|
86
|
+
var _props_placeholder;
|
|
87
|
+
_this.placeholder = (_props_placeholder = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _props_placeholder !== void 0 ? _props_placeholder : "请输入自动编号";
|
|
88
88
|
return _this;
|
|
89
89
|
}
|
|
90
90
|
return AutoNumberProperty;
|
|
@@ -124,7 +124,7 @@ var CalcControl = /*#__PURE__*/ function(DesignerFormControl) {
|
|
|
124
124
|
_proto.toDataBindModel = function toDataBindModel(parentId) {
|
|
125
125
|
var dataBindModel = _get(_getPrototypeOf(CalcControl.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
|
}
|
|
@@ -127,22 +127,22 @@ var CalcProperty = /*#__PURE__*/ function(BaseControlProperty) {
|
|
|
127
127
|
_classCallCheck(this, CalcProperty);
|
|
128
128
|
var _this;
|
|
129
129
|
_this = _super.call(this, props);
|
|
130
|
-
var
|
|
131
|
-
_this.precision = (
|
|
132
|
-
var
|
|
133
|
-
_this.micrometer = (
|
|
134
|
-
var
|
|
135
|
-
_this.showUpperCase = (
|
|
130
|
+
var _props_precision;
|
|
131
|
+
_this.precision = (_props_precision = props === null || props === void 0 ? void 0 : props.precision) !== null && _props_precision !== void 0 ? _props_precision : 0;
|
|
132
|
+
var _props_micrometer;
|
|
133
|
+
_this.micrometer = (_props_micrometer = props === null || props === void 0 ? void 0 : props.micrometer) !== null && _props_micrometer !== void 0 ? _props_micrometer : false;
|
|
134
|
+
var _props_showUpperCase;
|
|
135
|
+
_this.showUpperCase = (_props_showUpperCase = props === null || props === void 0 ? void 0 : props.showUpperCase) !== null && _props_showUpperCase !== void 0 ? _props_showUpperCase : false;
|
|
136
136
|
_this.dataBind = new CalcDataBind(props === null || props === void 0 ? void 0 : props.dataBind);
|
|
137
137
|
_this.defaultValue = new CalcValue(props === null || props === void 0 ? void 0 : props.defaultValue);
|
|
138
|
-
var
|
|
139
|
-
_this.caption = (
|
|
140
|
-
var
|
|
141
|
-
_this.placeholder = (
|
|
142
|
-
var
|
|
143
|
-
_this.scriptEcho = (
|
|
144
|
-
var
|
|
145
|
-
_this.scriptSrc = (
|
|
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 : AmountControl.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_scriptEcho;
|
|
143
|
+
_this.scriptEcho = (_props_scriptEcho = props === null || props === void 0 ? void 0 : props.scriptEcho) !== null && _props_scriptEcho !== void 0 ? _props_scriptEcho : [];
|
|
144
|
+
var _props_scriptSrc;
|
|
145
|
+
_this.scriptSrc = (_props_scriptSrc = props === null || props === void 0 ? void 0 : props.scriptSrc) !== null && _props_scriptSrc !== void 0 ? _props_scriptSrc : "";
|
|
146
146
|
return _this;
|
|
147
147
|
}
|
|
148
148
|
return CalcProperty;
|
|
@@ -123,8 +123,8 @@ var CheckboxProperty = /*#__PURE__*/ function(BaseControlProperty) {
|
|
|
123
123
|
_classCallCheck(this, CheckboxProperty);
|
|
124
124
|
var _this;
|
|
125
125
|
_this = _super.call(this, props);
|
|
126
|
-
var
|
|
127
|
-
_this.options = initOptions((
|
|
126
|
+
var _props_options;
|
|
127
|
+
_this.options = initOptions((_props_options = props === null || props === void 0 ? void 0 : props.options) !== null && _props_options !== void 0 ? _props_options : [
|
|
128
128
|
{
|
|
129
129
|
label: "选项一",
|
|
130
130
|
value: "选项一"
|
|
@@ -138,34 +138,34 @@ var CheckboxProperty = /*#__PURE__*/ function(BaseControlProperty) {
|
|
|
138
138
|
value: "选项三"
|
|
139
139
|
}
|
|
140
140
|
]);
|
|
141
|
-
var
|
|
142
|
-
_this.checkboxMode = (
|
|
143
|
-
var
|
|
144
|
-
_this.optionConfig = (
|
|
145
|
-
var
|
|
146
|
-
_this.optionsOrder = (
|
|
147
|
-
var
|
|
148
|
-
_this.otherOption = (
|
|
149
|
-
var
|
|
150
|
-
_this.limitMin = (
|
|
151
|
-
var
|
|
152
|
-
_this.limitMax = (
|
|
141
|
+
var _props_checkboxMode;
|
|
142
|
+
_this.checkboxMode = (_props_checkboxMode = props === null || props === void 0 ? void 0 : props.checkboxMode) !== null && _props_checkboxMode !== void 0 ? _props_checkboxMode : "horizontal";
|
|
143
|
+
var _props_optionConfig;
|
|
144
|
+
_this.optionConfig = (_props_optionConfig = props === null || props === void 0 ? void 0 : props.optionConfig) !== null && _props_optionConfig !== void 0 ? _props_optionConfig : "custom";
|
|
145
|
+
var _props_optionsOrder;
|
|
146
|
+
_this.optionsOrder = (_props_optionsOrder = props === null || props === void 0 ? void 0 : props.optionsOrder) !== null && _props_optionsOrder !== void 0 ? _props_optionsOrder : false;
|
|
147
|
+
var _props_otherOption;
|
|
148
|
+
_this.otherOption = (_props_otherOption = props === null || props === void 0 ? void 0 : props.otherOption) !== null && _props_otherOption !== void 0 ? _props_otherOption : false;
|
|
149
|
+
var _props_limitMin;
|
|
150
|
+
_this.limitMin = (_props_limitMin = props === null || props === void 0 ? void 0 : props.limitMin) !== null && _props_limitMin !== void 0 ? _props_limitMin : "unlimited";
|
|
151
|
+
var _props_limitMax;
|
|
152
|
+
_this.limitMax = (_props_limitMax = props === null || props === void 0 ? void 0 : props.limitMax) !== null && _props_limitMax !== void 0 ? _props_limitMax : "unlimited";
|
|
153
153
|
_this.datasourceBind = new DataSourceBind(props === null || props === void 0 ? void 0 : props.datasourceBind);
|
|
154
|
-
var
|
|
155
|
-
_this.interreaction = (
|
|
156
|
-
var
|
|
157
|
-
_this.caption = (
|
|
158
|
-
var
|
|
159
|
-
_this.defaultValue = (
|
|
160
|
-
var
|
|
161
|
-
_this.optionsFormat = (
|
|
162
|
-
var
|
|
163
|
-
_this.defaultShowOptions = (
|
|
154
|
+
var _props_interreaction;
|
|
155
|
+
_this.interreaction = (_props_interreaction = props === null || props === void 0 ? void 0 : props.interreaction) !== null && _props_interreaction !== void 0 ? _props_interreaction : [];
|
|
156
|
+
var _props_caption;
|
|
157
|
+
_this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : CheckboxControl.controlName;
|
|
158
|
+
var _props_defaultValue;
|
|
159
|
+
_this.defaultValue = (_props_defaultValue = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _props_defaultValue !== void 0 ? _props_defaultValue : [];
|
|
160
|
+
var _props_optionsFormat;
|
|
161
|
+
_this.optionsFormat = (_props_optionsFormat = props === null || props === void 0 ? void 0 : props.optionsFormat) !== null && _props_optionsFormat !== void 0 ? _props_optionsFormat : "horizontal";
|
|
162
|
+
var _props_defaultShowOptions;
|
|
163
|
+
_this.defaultShowOptions = (_props_defaultShowOptions = props === null || props === void 0 ? void 0 : props.defaultShowOptions) !== null && _props_defaultShowOptions !== void 0 ? _props_defaultShowOptions : true;
|
|
164
164
|
_this.multistageFilling = [];
|
|
165
165
|
if (Array.isArray(props === null || props === void 0 ? void 0 : props.multistageFilling)) {
|
|
166
166
|
props === null || props === void 0 ? void 0 : props.multistageFilling.map(function(item) {
|
|
167
|
-
var
|
|
168
|
-
(
|
|
167
|
+
var _this_multistageFilling;
|
|
168
|
+
(_this_multistageFilling = _this.multistageFilling) === null || _this_multistageFilling === void 0 ? void 0 : _this_multistageFilling.push(new MultistageFillingItem(item));
|
|
169
169
|
});
|
|
170
170
|
}
|
|
171
171
|
return _this;
|