@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
|
@@ -89,8 +89,8 @@ var RadioProperty = /*#__PURE__*/ function(BaseControlProperty) {
|
|
|
89
89
|
_classCallCheck(this, RadioProperty);
|
|
90
90
|
var _this;
|
|
91
91
|
_this = _super.call(this, props);
|
|
92
|
-
var
|
|
93
|
-
_this.options = initOptions((
|
|
92
|
+
var _props_options;
|
|
93
|
+
_this.options = initOptions((_props_options = props === null || props === void 0 ? void 0 : props.options) !== null && _props_options !== void 0 ? _props_options : [
|
|
94
94
|
{
|
|
95
95
|
label: "选项一",
|
|
96
96
|
value: "选项一"
|
|
@@ -104,30 +104,30 @@ var RadioProperty = /*#__PURE__*/ function(BaseControlProperty) {
|
|
|
104
104
|
value: "选项三"
|
|
105
105
|
}
|
|
106
106
|
]);
|
|
107
|
-
var
|
|
108
|
-
_this.radioMode = (
|
|
109
|
-
var
|
|
110
|
-
_this.optionConfig = (
|
|
111
|
-
var
|
|
112
|
-
_this.otherOption = (
|
|
113
|
-
var
|
|
114
|
-
_this.optionsOrder = (
|
|
115
|
-
var
|
|
116
|
-
_this.defaultShowOptions = (
|
|
117
|
-
var
|
|
118
|
-
_this.optionsFormat = (
|
|
107
|
+
var _props_radioMode;
|
|
108
|
+
_this.radioMode = (_props_radioMode = props === null || props === void 0 ? void 0 : props.radioMode) !== null && _props_radioMode !== void 0 ? _props_radioMode : "horizontal";
|
|
109
|
+
var _props_optionConfig;
|
|
110
|
+
_this.optionConfig = (_props_optionConfig = props === null || props === void 0 ? void 0 : props.optionConfig) !== null && _props_optionConfig !== void 0 ? _props_optionConfig : "custom";
|
|
111
|
+
var _props_otherOption;
|
|
112
|
+
_this.otherOption = (_props_otherOption = props === null || props === void 0 ? void 0 : props.otherOption) !== null && _props_otherOption !== void 0 ? _props_otherOption : false;
|
|
113
|
+
var _props_optionsOrder;
|
|
114
|
+
_this.optionsOrder = (_props_optionsOrder = props === null || props === void 0 ? void 0 : props.optionsOrder) !== null && _props_optionsOrder !== void 0 ? _props_optionsOrder : false;
|
|
115
|
+
var _props_defaultShowOptions;
|
|
116
|
+
_this.defaultShowOptions = (_props_defaultShowOptions = props === null || props === void 0 ? void 0 : props.defaultShowOptions) !== null && _props_defaultShowOptions !== void 0 ? _props_defaultShowOptions : true;
|
|
117
|
+
var _props_optionsFormat;
|
|
118
|
+
_this.optionsFormat = (_props_optionsFormat = props === null || props === void 0 ? void 0 : props.optionsFormat) !== null && _props_optionsFormat !== void 0 ? _props_optionsFormat : "horizontal";
|
|
119
119
|
_this.datasourceBind = new DataSourceBind(props === null || props === void 0 ? void 0 : props.datasourceBind);
|
|
120
|
-
var
|
|
121
|
-
_this.interreaction = (
|
|
122
|
-
var
|
|
123
|
-
_this.caption = (
|
|
124
|
-
var
|
|
125
|
-
_this.defaultValue = (
|
|
120
|
+
var _props_interreaction;
|
|
121
|
+
_this.interreaction = (_props_interreaction = props === null || props === void 0 ? void 0 : props.interreaction) !== null && _props_interreaction !== void 0 ? _props_interreaction : [];
|
|
122
|
+
var _props_caption;
|
|
123
|
+
_this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : RadioControl.controlName;
|
|
124
|
+
var _props_defaultValue;
|
|
125
|
+
_this.defaultValue = (_props_defaultValue = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _props_defaultValue !== void 0 ? _props_defaultValue : "";
|
|
126
126
|
_this.multistageFilling = [];
|
|
127
127
|
if (Array.isArray(props === null || props === void 0 ? void 0 : props.multistageFilling)) {
|
|
128
128
|
props === null || props === void 0 ? void 0 : props.multistageFilling.map(function(item) {
|
|
129
|
-
var
|
|
130
|
-
(
|
|
129
|
+
var _this_multistageFilling;
|
|
130
|
+
(_this_multistageFilling = _this.multistageFilling) === null || _this_multistageFilling === void 0 ? void 0 : _this_multistageFilling.push(new MultistageFillingItem(item));
|
|
131
131
|
});
|
|
132
132
|
}
|
|
133
133
|
return _this;
|
|
@@ -137,16 +137,16 @@ var RichTextProperty = /*#__PURE__*/ function(BaseControlProperty) {
|
|
|
137
137
|
_classCallCheck(this, RichTextProperty);
|
|
138
138
|
var _this;
|
|
139
139
|
_this = _super.call(this, props);
|
|
140
|
-
var
|
|
141
|
-
_this.maxLength = (
|
|
142
|
-
var
|
|
143
|
-
_this.minLength = (
|
|
144
|
-
var
|
|
145
|
-
_this.defaultValue = (
|
|
146
|
-
var
|
|
147
|
-
_this.caption = (
|
|
148
|
-
var
|
|
149
|
-
_this.placeholder = (
|
|
140
|
+
var _props_maxLength;
|
|
141
|
+
_this.maxLength = (_props_maxLength = props === null || props === void 0 ? void 0 : props.maxLength) !== null && _props_maxLength !== void 0 ? _props_maxLength : 50000;
|
|
142
|
+
var _props_minLength;
|
|
143
|
+
_this.minLength = (_props_minLength = props === null || props === void 0 ? void 0 : props.minLength) !== null && _props_minLength !== void 0 ? _props_minLength : 0;
|
|
144
|
+
var _props_defaultValue;
|
|
145
|
+
_this.defaultValue = (_props_defaultValue = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _props_defaultValue !== void 0 ? _props_defaultValue : "";
|
|
146
|
+
var _props_caption;
|
|
147
|
+
_this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : RichTextControl.controlName;
|
|
148
|
+
var _props_placeholder;
|
|
149
|
+
_this.placeholder = (_props_placeholder = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _props_placeholder !== void 0 ? _props_placeholder : "请输入";
|
|
150
150
|
return _this;
|
|
151
151
|
}
|
|
152
152
|
return RichTextProperty;
|
|
@@ -153,12 +153,12 @@ var ScoreControl = /*#__PURE__*/ function(DesignerFormControl) {
|
|
|
153
153
|
if (this.props.explain.length > value) {
|
|
154
154
|
this.props.explain = this.props.explain.slice(0, value);
|
|
155
155
|
} else {
|
|
156
|
-
var
|
|
156
|
+
var _this_props_explain;
|
|
157
157
|
var addNum = value - this.props.explain.length;
|
|
158
158
|
var addExplain = Array(addNum).fill(undefined).map(function() {
|
|
159
159
|
return new Explain();
|
|
160
160
|
});
|
|
161
|
-
(
|
|
161
|
+
(_this_props_explain = this.props.explain).push.apply(_this_props_explain, _toConsumableArray(addExplain));
|
|
162
162
|
}
|
|
163
163
|
}
|
|
164
164
|
_get(_getPrototypeOf(ScoreControl.prototype), "postUpdate", this).call(this, key, value);
|
|
@@ -139,24 +139,24 @@ var ScoreProperty = /*#__PURE__*/ function(BaseControlProperty) {
|
|
|
139
139
|
function ScoreProperty(props) {
|
|
140
140
|
_classCallCheck(this, ScoreProperty);
|
|
141
141
|
var _this;
|
|
142
|
-
var
|
|
142
|
+
var _props_explain;
|
|
143
143
|
_this = _super.call(this, props);
|
|
144
|
-
var
|
|
145
|
-
_this.totalScore = (
|
|
146
|
-
var
|
|
147
|
-
_this.scoreType = (
|
|
148
|
-
var
|
|
149
|
-
_this.isShowExplain = (
|
|
150
|
-
var
|
|
151
|
-
_this.explain = (
|
|
144
|
+
var _props_totalScore;
|
|
145
|
+
_this.totalScore = (_props_totalScore = props === null || props === void 0 ? void 0 : props.totalScore) !== null && _props_totalScore !== void 0 ? _props_totalScore : 5;
|
|
146
|
+
var _props_scoreType;
|
|
147
|
+
_this.scoreType = (_props_scoreType = props === null || props === void 0 ? void 0 : props.scoreType) !== null && _props_scoreType !== void 0 ? _props_scoreType : SCORE_TYPE.STAR;
|
|
148
|
+
var _props_isShowExplain;
|
|
149
|
+
_this.isShowExplain = (_props_isShowExplain = props === null || props === void 0 ? void 0 : props.isShowExplain) !== null && _props_isShowExplain !== void 0 ? _props_isShowExplain : true;
|
|
150
|
+
var _props_explain_map;
|
|
151
|
+
_this.explain = (_props_explain_map = props === null || props === void 0 ? void 0 : (_props_explain = props.explain) === null || _props_explain === void 0 ? void 0 : _props_explain.map(function(item) {
|
|
152
152
|
return new Explain(item);
|
|
153
|
-
})) !== null &&
|
|
153
|
+
})) !== null && _props_explain_map !== void 0 ? _props_explain_map : Array(_this.totalScore).fill(undefined).map(function() {
|
|
154
154
|
return new Explain();
|
|
155
155
|
});
|
|
156
|
-
var
|
|
157
|
-
_this.defaultValue = (
|
|
158
|
-
var
|
|
159
|
-
_this.caption = (
|
|
156
|
+
var _props_defaultValue;
|
|
157
|
+
_this.defaultValue = (_props_defaultValue = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _props_defaultValue !== void 0 ? _props_defaultValue : 0;
|
|
158
|
+
var _props_caption;
|
|
159
|
+
_this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : ScoreControl.controlName;
|
|
160
160
|
return _this;
|
|
161
161
|
}
|
|
162
162
|
return ScoreProperty;
|
|
@@ -108,31 +108,31 @@ var SearchDateRangeProperty = /*#__PURE__*/ function(BaseControlProperty) {
|
|
|
108
108
|
function SearchDateRangeProperty(props) {
|
|
109
109
|
_classCallCheck(this, SearchDateRangeProperty);
|
|
110
110
|
var _this;
|
|
111
|
-
var
|
|
111
|
+
var _props_limitDateList;
|
|
112
112
|
_this = _super.call(this, props);
|
|
113
|
-
var
|
|
114
|
-
_this.defaultValue = (
|
|
113
|
+
var _props_defaultValue;
|
|
114
|
+
_this.defaultValue = (_props_defaultValue = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _props_defaultValue !== void 0 ? _props_defaultValue : [
|
|
115
115
|
"",
|
|
116
116
|
""
|
|
117
117
|
];
|
|
118
|
-
var
|
|
119
|
-
_this.dateType = (
|
|
120
|
-
var
|
|
121
|
-
_this.setValueType = (
|
|
122
|
-
var
|
|
123
|
-
_this.rangeMin = (
|
|
124
|
-
var
|
|
125
|
-
_this.rangeMax = (
|
|
126
|
-
var
|
|
127
|
-
_this.placeholderStart = (
|
|
128
|
-
var
|
|
129
|
-
_this.placeholderEnd = (
|
|
130
|
-
var
|
|
131
|
-
_this.caption = (
|
|
132
|
-
var
|
|
133
|
-
_this.limitDateList = (
|
|
118
|
+
var _props_dateType;
|
|
119
|
+
_this.dateType = (_props_dateType = props === null || props === void 0 ? void 0 : props.dateType) !== null && _props_dateType !== void 0 ? _props_dateType : DateType.DATE;
|
|
120
|
+
var _props_setValueType;
|
|
121
|
+
_this.setValueType = (_props_setValueType = props === null || props === void 0 ? void 0 : props.setValueType) !== null && _props_setValueType !== void 0 ? _props_setValueType : "custom";
|
|
122
|
+
var _props_rangeMin;
|
|
123
|
+
_this.rangeMin = (_props_rangeMin = props === null || props === void 0 ? void 0 : props.rangeMin) !== null && _props_rangeMin !== void 0 ? _props_rangeMin : "";
|
|
124
|
+
var _props_rangeMax;
|
|
125
|
+
_this.rangeMax = (_props_rangeMax = props === null || props === void 0 ? void 0 : props.rangeMax) !== null && _props_rangeMax !== void 0 ? _props_rangeMax : "";
|
|
126
|
+
var _props_placeholderStart;
|
|
127
|
+
_this.placeholderStart = (_props_placeholderStart = props === null || props === void 0 ? void 0 : props.placeholderStart) !== null && _props_placeholderStart !== void 0 ? _props_placeholderStart : "开始日期";
|
|
128
|
+
var _props_placeholderEnd;
|
|
129
|
+
_this.placeholderEnd = (_props_placeholderEnd = props === null || props === void 0 ? void 0 : props.placeholderEnd) !== null && _props_placeholderEnd !== void 0 ? _props_placeholderEnd : "结束日期";
|
|
130
|
+
var _props_caption;
|
|
131
|
+
_this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : SearchDateRangeControl.controlName;
|
|
132
|
+
var _props_limitDateList_map;
|
|
133
|
+
_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) {
|
|
134
134
|
return new LimitDate(item);
|
|
135
|
-
})) !== null &&
|
|
135
|
+
})) !== null && _props_limitDateList_map !== void 0 ? _props_limitDateList_map : [];
|
|
136
136
|
return _this;
|
|
137
137
|
}
|
|
138
138
|
return SearchDateRangeProperty;
|
|
@@ -111,21 +111,21 @@ var SearchNumberRangeProperty = /*#__PURE__*/ function(BaseControlProperty) {
|
|
|
111
111
|
_classCallCheck(this, SearchNumberRangeProperty);
|
|
112
112
|
var _this;
|
|
113
113
|
_this = _super.call(this, props);
|
|
114
|
-
var
|
|
115
|
-
_this.defaultValue = (
|
|
114
|
+
var _props_defaultValue;
|
|
115
|
+
_this.defaultValue = (_props_defaultValue = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _props_defaultValue !== void 0 ? _props_defaultValue : [
|
|
116
116
|
"",
|
|
117
117
|
""
|
|
118
118
|
];
|
|
119
|
-
var
|
|
120
|
-
_this.rangeMin = (
|
|
121
|
-
var
|
|
122
|
-
_this.rangeMax = (
|
|
123
|
-
var
|
|
124
|
-
_this.placeholderStart = (
|
|
125
|
-
var
|
|
126
|
-
_this.placeholderEnd = (
|
|
127
|
-
var
|
|
128
|
-
_this.caption = (
|
|
119
|
+
var _props_rangeMin;
|
|
120
|
+
_this.rangeMin = (_props_rangeMin = props === null || props === void 0 ? void 0 : props.rangeMin) !== null && _props_rangeMin !== void 0 ? _props_rangeMin : "";
|
|
121
|
+
var _props_rangeMax;
|
|
122
|
+
_this.rangeMax = (_props_rangeMax = props === null || props === void 0 ? void 0 : props.rangeMax) !== null && _props_rangeMax !== void 0 ? _props_rangeMax : "";
|
|
123
|
+
var _props_placeholderStart;
|
|
124
|
+
_this.placeholderStart = (_props_placeholderStart = props === null || props === void 0 ? void 0 : props.placeholderStart) !== null && _props_placeholderStart !== void 0 ? _props_placeholderStart : "最小值";
|
|
125
|
+
var _props_placeholderEnd;
|
|
126
|
+
_this.placeholderEnd = (_props_placeholderEnd = props === null || props === void 0 ? void 0 : props.placeholderEnd) !== null && _props_placeholderEnd !== void 0 ? _props_placeholderEnd : "最大值";
|
|
127
|
+
var _props_caption;
|
|
128
|
+
_this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : SearchNumberRangeControl.controlName;
|
|
129
129
|
return _this;
|
|
130
130
|
}
|
|
131
131
|
return SearchNumberRangeProperty;
|
|
@@ -89,8 +89,8 @@ var SelectProperty = /*#__PURE__*/ function(BaseControlProperty) {
|
|
|
89
89
|
_classCallCheck(this, SelectProperty);
|
|
90
90
|
var _this;
|
|
91
91
|
_this = _super.call(this, props);
|
|
92
|
-
var
|
|
93
|
-
_this.options = initOptions((
|
|
92
|
+
var _props_options;
|
|
93
|
+
_this.options = initOptions((_props_options = props === null || props === void 0 ? void 0 : props.options) !== null && _props_options !== void 0 ? _props_options : [
|
|
94
94
|
{
|
|
95
95
|
label: "选项一",
|
|
96
96
|
value: "选项一"
|
|
@@ -104,24 +104,24 @@ var SelectProperty = /*#__PURE__*/ function(BaseControlProperty) {
|
|
|
104
104
|
value: "选项三"
|
|
105
105
|
}
|
|
106
106
|
]);
|
|
107
|
-
var
|
|
108
|
-
_this.defaultShowOptions = (
|
|
109
|
-
var
|
|
110
|
-
_this.optionConfig = (
|
|
107
|
+
var _props_defaultShowOptions;
|
|
108
|
+
_this.defaultShowOptions = (_props_defaultShowOptions = props === null || props === void 0 ? void 0 : props.defaultShowOptions) !== null && _props_defaultShowOptions !== void 0 ? _props_defaultShowOptions : true;
|
|
109
|
+
var _props_optionConfig;
|
|
110
|
+
_this.optionConfig = (_props_optionConfig = props === null || props === void 0 ? void 0 : props.optionConfig) !== null && _props_optionConfig !== void 0 ? _props_optionConfig : "custom";
|
|
111
111
|
_this.datasourceBind = new DataSourceBind(props === null || props === void 0 ? void 0 : props.datasourceBind);
|
|
112
|
-
var
|
|
113
|
-
_this.caption = (
|
|
114
|
-
var
|
|
115
|
-
_this.placeholder = (
|
|
116
|
-
var
|
|
117
|
-
_this.defaultValue = (
|
|
118
|
-
var
|
|
119
|
-
_this.allowCopyOptions = (
|
|
112
|
+
var _props_caption;
|
|
113
|
+
_this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : SelectControl.controlName;
|
|
114
|
+
var _props_placeholder;
|
|
115
|
+
_this.placeholder = (_props_placeholder = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _props_placeholder !== void 0 ? _props_placeholder : "请选择";
|
|
116
|
+
var _props_defaultValue;
|
|
117
|
+
_this.defaultValue = (_props_defaultValue = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _props_defaultValue !== void 0 ? _props_defaultValue : "";
|
|
118
|
+
var _props_allowCopyOptions;
|
|
119
|
+
_this.allowCopyOptions = (_props_allowCopyOptions = props === null || props === void 0 ? void 0 : props.allowCopyOptions) !== null && _props_allowCopyOptions !== void 0 ? _props_allowCopyOptions : false;
|
|
120
120
|
_this.multistageFilling = [];
|
|
121
121
|
if (Array.isArray(props === null || props === void 0 ? void 0 : props.multistageFilling)) {
|
|
122
122
|
props === null || props === void 0 ? void 0 : props.multistageFilling.map(function(item) {
|
|
123
|
-
var
|
|
124
|
-
(
|
|
123
|
+
var _this_multistageFilling;
|
|
124
|
+
(_this_multistageFilling = _this.multistageFilling) === null || _this_multistageFilling === void 0 ? void 0 : _this_multistageFilling.push(new MultistageFillingItem(item));
|
|
125
125
|
});
|
|
126
126
|
}
|
|
127
127
|
return _this;
|
|
@@ -102,8 +102,8 @@ var SelectMultipleProperty = /*#__PURE__*/ function(BaseControlProperty) {
|
|
|
102
102
|
_classCallCheck(this, SelectMultipleProperty);
|
|
103
103
|
var _this;
|
|
104
104
|
_this = _super.call(this, props);
|
|
105
|
-
var
|
|
106
|
-
_this.options = initOptions((
|
|
105
|
+
var _props_options;
|
|
106
|
+
_this.options = initOptions((_props_options = props === null || props === void 0 ? void 0 : props.options) !== null && _props_options !== void 0 ? _props_options : [
|
|
107
107
|
{
|
|
108
108
|
label: "选项一",
|
|
109
109
|
value: "选项一"
|
|
@@ -117,22 +117,22 @@ var SelectMultipleProperty = /*#__PURE__*/ function(BaseControlProperty) {
|
|
|
117
117
|
value: "选项三"
|
|
118
118
|
}
|
|
119
119
|
]);
|
|
120
|
-
var
|
|
121
|
-
_this.defaultShowOptions = (
|
|
122
|
-
var
|
|
123
|
-
_this.optionConfig = (
|
|
120
|
+
var _props_defaultShowOptions;
|
|
121
|
+
_this.defaultShowOptions = (_props_defaultShowOptions = props === null || props === void 0 ? void 0 : props.defaultShowOptions) !== null && _props_defaultShowOptions !== void 0 ? _props_defaultShowOptions : true;
|
|
122
|
+
var _props_optionConfig;
|
|
123
|
+
_this.optionConfig = (_props_optionConfig = props === null || props === void 0 ? void 0 : props.optionConfig) !== null && _props_optionConfig !== void 0 ? _props_optionConfig : "custom";
|
|
124
124
|
_this.datasourceBind = new DataSourceBind(props === null || props === void 0 ? void 0 : props.datasourceBind);
|
|
125
|
-
var
|
|
126
|
-
_this.caption = (
|
|
127
|
-
var
|
|
128
|
-
_this.placeholder = (
|
|
129
|
-
var
|
|
130
|
-
_this.defaultValue = (
|
|
125
|
+
var _props_caption;
|
|
126
|
+
_this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : SelectMultipleControl.controlName;
|
|
127
|
+
var _props_placeholder;
|
|
128
|
+
_this.placeholder = (_props_placeholder = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _props_placeholder !== void 0 ? _props_placeholder : "请选择";
|
|
129
|
+
var _props_defaultValue;
|
|
130
|
+
_this.defaultValue = (_props_defaultValue = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _props_defaultValue !== void 0 ? _props_defaultValue : [];
|
|
131
131
|
_this.multistageFilling = [];
|
|
132
132
|
if (Array.isArray(props === null || props === void 0 ? void 0 : props.multistageFilling)) {
|
|
133
133
|
props === null || props === void 0 ? void 0 : props.multistageFilling.map(function(item) {
|
|
134
|
-
var
|
|
135
|
-
(
|
|
134
|
+
var _this_multistageFilling;
|
|
135
|
+
(_this_multistageFilling = _this.multistageFilling) === null || _this_multistageFilling === void 0 ? void 0 : _this_multistageFilling.push(new MultistageFillingItem(item));
|
|
136
136
|
});
|
|
137
137
|
}
|
|
138
138
|
return _this;
|
|
@@ -115,27 +115,27 @@ var SelectRelationProperty = /*#__PURE__*/ function(BaseControlProperty) {
|
|
|
115
115
|
_classCallCheck(this, SelectRelationProperty);
|
|
116
116
|
var _this;
|
|
117
117
|
_this = _super.call(this, props);
|
|
118
|
-
var
|
|
119
|
-
_this.options = initOptions((
|
|
120
|
-
var
|
|
121
|
-
_this.optionConfig = (
|
|
118
|
+
var _props_options;
|
|
119
|
+
_this.options = initOptions((_props_options = props === null || props === void 0 ? void 0 : props.options) !== null && _props_options !== void 0 ? _props_options : []);
|
|
120
|
+
var _props_optionConfig;
|
|
121
|
+
_this.optionConfig = (_props_optionConfig = props === null || props === void 0 ? void 0 : props.optionConfig) !== null && _props_optionConfig !== void 0 ? _props_optionConfig : "datasource";
|
|
122
122
|
_this.listPageBind = new ListBind(props === null || props === void 0 ? void 0 : props.listPageBind);
|
|
123
123
|
_this.datasourceBind = new DataSourceBind(props === null || props === void 0 ? void 0 : props.datasourceBind);
|
|
124
|
-
var
|
|
125
|
-
_this.caption = (
|
|
126
|
-
var
|
|
127
|
-
_this.placeholder = (
|
|
128
|
-
var
|
|
129
|
-
_this.defaultValue = (
|
|
124
|
+
var _props_caption;
|
|
125
|
+
_this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : SelectRelationControl.controlName;
|
|
126
|
+
var _props_placeholder;
|
|
127
|
+
_this.placeholder = (_props_placeholder = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _props_placeholder !== void 0 ? _props_placeholder : "请选择";
|
|
128
|
+
var _props_defaultValue;
|
|
129
|
+
_this.defaultValue = (_props_defaultValue = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _props_defaultValue !== void 0 ? _props_defaultValue : "";
|
|
130
130
|
_this.multistageFilling = [];
|
|
131
131
|
if (Array.isArray(props === null || props === void 0 ? void 0 : props.multistageFilling)) {
|
|
132
132
|
props === null || props === void 0 ? void 0 : props.multistageFilling.map(function(item) {
|
|
133
|
-
var
|
|
134
|
-
(
|
|
133
|
+
var _this_multistageFilling;
|
|
134
|
+
(_this_multistageFilling = _this.multistageFilling) === null || _this_multistageFilling === void 0 ? void 0 : _this_multistageFilling.push(new MultistageFillingItem(item));
|
|
135
135
|
});
|
|
136
136
|
}
|
|
137
|
-
var
|
|
138
|
-
_this.canViewForm = (
|
|
137
|
+
var _props_canViewForm;
|
|
138
|
+
_this.canViewForm = (_props_canViewForm = props === null || props === void 0 ? void 0 : props.canViewForm) !== null && _props_canViewForm !== void 0 ? _props_canViewForm : false;
|
|
139
139
|
return _this;
|
|
140
140
|
}
|
|
141
141
|
return SelectRelationProperty;
|
|
@@ -137,18 +137,18 @@ var TextareaProperty = /*#__PURE__*/ function(BaseControlProperty) {
|
|
|
137
137
|
_classCallCheck(this, TextareaProperty);
|
|
138
138
|
var _this;
|
|
139
139
|
_this = _super.call(this, props);
|
|
140
|
-
var
|
|
141
|
-
_this.maxLength = (
|
|
142
|
-
var
|
|
143
|
-
_this.minLength = (
|
|
144
|
-
var
|
|
145
|
-
_this.defaultValue = (
|
|
146
|
-
var
|
|
147
|
-
_this.caption = (
|
|
148
|
-
var
|
|
149
|
-
_this.placeholder = (
|
|
150
|
-
var
|
|
151
|
-
_this.lineEllipsis = (
|
|
140
|
+
var _props_maxLength;
|
|
141
|
+
_this.maxLength = (_props_maxLength = props === null || props === void 0 ? void 0 : props.maxLength) !== null && _props_maxLength !== void 0 ? _props_maxLength : 50000;
|
|
142
|
+
var _props_minLength;
|
|
143
|
+
_this.minLength = (_props_minLength = props === null || props === void 0 ? void 0 : props.minLength) !== null && _props_minLength !== void 0 ? _props_minLength : 0;
|
|
144
|
+
var _props_defaultValue;
|
|
145
|
+
_this.defaultValue = (_props_defaultValue = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _props_defaultValue !== void 0 ? _props_defaultValue : "";
|
|
146
|
+
var _props_caption;
|
|
147
|
+
_this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : TextareaControl.controlName;
|
|
148
|
+
var _props_placeholder;
|
|
149
|
+
_this.placeholder = (_props_placeholder = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _props_placeholder !== void 0 ? _props_placeholder : "请输入";
|
|
150
|
+
var _props_lineEllipsis;
|
|
151
|
+
_this.lineEllipsis = (_props_lineEllipsis = props === null || props === void 0 ? void 0 : props.lineEllipsis) !== null && _props_lineEllipsis !== void 0 ? _props_lineEllipsis : 4;
|
|
152
152
|
return _this;
|
|
153
153
|
}
|
|
154
154
|
return TextareaProperty;
|
|
@@ -140,38 +140,38 @@ var TreeProperty = /*#__PURE__*/ function(BaseControlProperty) {
|
|
|
140
140
|
function TreeProperty(props) {
|
|
141
141
|
_classCallCheck(this, TreeProperty);
|
|
142
142
|
var _this;
|
|
143
|
-
var
|
|
143
|
+
var _props_multistageFilling;
|
|
144
144
|
_this = _super.call(this, props);
|
|
145
145
|
_this.optionConfig = "datasource" // 选项配置 datasource
|
|
146
146
|
;
|
|
147
|
-
var
|
|
148
|
-
_this.caption = (
|
|
149
|
-
var
|
|
150
|
-
_this.placeholder = (
|
|
151
|
-
var
|
|
152
|
-
_this.multiple = (
|
|
153
|
-
var
|
|
154
|
-
_this.canSearch = (
|
|
155
|
-
var
|
|
156
|
-
_this.levelType = (
|
|
157
|
-
var
|
|
158
|
-
_this.optionalLevel = (
|
|
159
|
-
var
|
|
160
|
-
_this.containsSubNode = (
|
|
161
|
-
var
|
|
162
|
-
_this.defaultCollapse = (
|
|
163
|
-
var
|
|
164
|
-
_this.defaultCollapseLevel = (
|
|
165
|
-
var
|
|
166
|
-
_this.datasourceBind = new TreeDataSourceBind((
|
|
147
|
+
var _props_caption;
|
|
148
|
+
_this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : TreeControl.controlName;
|
|
149
|
+
var _props_placeholder;
|
|
150
|
+
_this.placeholder = (_props_placeholder = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _props_placeholder !== void 0 ? _props_placeholder : "请选择";
|
|
151
|
+
var _props_multiple;
|
|
152
|
+
_this.multiple = (_props_multiple = props === null || props === void 0 ? void 0 : props.multiple) !== null && _props_multiple !== void 0 ? _props_multiple : false;
|
|
153
|
+
var _props_canSearch;
|
|
154
|
+
_this.canSearch = (_props_canSearch = props === null || props === void 0 ? void 0 : props.canSearch) !== null && _props_canSearch !== void 0 ? _props_canSearch : true;
|
|
155
|
+
var _props_levelType;
|
|
156
|
+
_this.levelType = (_props_levelType = props === null || props === void 0 ? void 0 : props.levelType) !== null && _props_levelType !== void 0 ? _props_levelType : "all";
|
|
157
|
+
var _props_optionalLevel;
|
|
158
|
+
_this.optionalLevel = (_props_optionalLevel = props === null || props === void 0 ? void 0 : props.optionalLevel) !== null && _props_optionalLevel !== void 0 ? _props_optionalLevel : 1;
|
|
159
|
+
var _props_containsSubNode;
|
|
160
|
+
_this.containsSubNode = (_props_containsSubNode = props === null || props === void 0 ? void 0 : props.containsSubNode) !== null && _props_containsSubNode !== void 0 ? _props_containsSubNode : false;
|
|
161
|
+
var _props_defaultCollapse;
|
|
162
|
+
_this.defaultCollapse = (_props_defaultCollapse = props === null || props === void 0 ? void 0 : props.defaultCollapse) !== null && _props_defaultCollapse !== void 0 ? _props_defaultCollapse : "all";
|
|
163
|
+
var _props_defaultCollapseLevel;
|
|
164
|
+
_this.defaultCollapseLevel = (_props_defaultCollapseLevel = props === null || props === void 0 ? void 0 : props.defaultCollapseLevel) !== null && _props_defaultCollapseLevel !== void 0 ? _props_defaultCollapseLevel : 1;
|
|
165
|
+
var _props_datasourceBind;
|
|
166
|
+
_this.datasourceBind = new TreeDataSourceBind((_props_datasourceBind = props === null || props === void 0 ? void 0 : props.datasourceBind) !== null && _props_datasourceBind !== void 0 ? _props_datasourceBind : {
|
|
167
167
|
attributes: TreeControl.controlCustomAttributes
|
|
168
168
|
});
|
|
169
|
-
var
|
|
170
|
-
_this.multistageFilling = (
|
|
169
|
+
var _props_multistageFilling_map;
|
|
170
|
+
_this.multistageFilling = (_props_multistageFilling_map = props === null || props === void 0 ? void 0 : (_props_multistageFilling = props.multistageFilling) === null || _props_multistageFilling === void 0 ? void 0 : _props_multistageFilling.map(function(item) {
|
|
171
171
|
return new MultistageFillingItem(item);
|
|
172
|
-
})) !== null &&
|
|
173
|
-
var
|
|
174
|
-
_this.defaultValue = (
|
|
172
|
+
})) !== null && _props_multistageFilling_map !== void 0 ? _props_multistageFilling_map : [];
|
|
173
|
+
var _props_defaultValue;
|
|
174
|
+
_this.defaultValue = (_props_defaultValue = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _props_defaultValue !== void 0 ? _props_defaultValue : [];
|
|
175
175
|
return _this;
|
|
176
176
|
}
|
|
177
177
|
return TreeProperty;
|
|
@@ -107,16 +107,16 @@ var VueFormItemProperty = /*#__PURE__*/ function(BaseControlProperty) {
|
|
|
107
107
|
_classCallCheck(this, VueFormItemProperty);
|
|
108
108
|
var _this;
|
|
109
109
|
_this = _super.call(this, props);
|
|
110
|
-
var
|
|
111
|
-
_this.caption = (
|
|
112
|
-
var
|
|
113
|
-
_this.defaultValue = (
|
|
114
|
-
var
|
|
115
|
-
_this.controlExportName = (
|
|
116
|
-
var
|
|
117
|
-
_this.permissions = (
|
|
118
|
-
var
|
|
119
|
-
_this.isInlineEdit = (
|
|
110
|
+
var _props_caption;
|
|
111
|
+
_this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : VueFormItemControl.controlName;
|
|
112
|
+
var _props_defaultValue;
|
|
113
|
+
_this.defaultValue = (_props_defaultValue = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _props_defaultValue !== void 0 ? _props_defaultValue : undefined;
|
|
114
|
+
var _props_controlExportName;
|
|
115
|
+
_this.controlExportName = (_props_controlExportName = props === null || props === void 0 ? void 0 : props.controlExportName) !== null && _props_controlExportName !== void 0 ? _props_controlExportName : "";
|
|
116
|
+
var _props_permissions;
|
|
117
|
+
_this.permissions = (_props_permissions = props === null || props === void 0 ? void 0 : props.permissions) !== null && _props_permissions !== void 0 ? _props_permissions : [];
|
|
118
|
+
var _props_isInlineEdit;
|
|
119
|
+
_this.isInlineEdit = (_props_isInlineEdit = props === null || props === void 0 ? void 0 : props.isInlineEdit) !== null && _props_isInlineEdit !== void 0 ? _props_isInlineEdit : false;
|
|
120
120
|
return _this;
|
|
121
121
|
}
|
|
122
122
|
return VueFormItemProperty;
|
|
@@ -147,31 +147,31 @@ var WPSProperty = /*#__PURE__*/ function(BaseControlProperty) {
|
|
|
147
147
|
_classCallCheck(this, WPSProperty);
|
|
148
148
|
var _this;
|
|
149
149
|
_this = _super.call(this, props);
|
|
150
|
-
var
|
|
151
|
-
_this.caption = (
|
|
152
|
-
var
|
|
153
|
-
_this.content = (
|
|
154
|
-
var
|
|
155
|
-
_this.canAdd = (
|
|
156
|
-
var
|
|
157
|
-
_this.addLocal = (
|
|
158
|
-
var
|
|
159
|
-
_this.addOnline = (
|
|
160
|
-
var
|
|
161
|
-
_this.canEdit = (
|
|
162
|
-
var
|
|
163
|
-
_this.canDownload = (
|
|
164
|
-
var
|
|
165
|
-
_this.canExport = (
|
|
166
|
-
var
|
|
167
|
-
_this.canDelete = (
|
|
168
|
-
var
|
|
169
|
-
_this.maxSize = (
|
|
170
|
-
var
|
|
171
|
-
_this.defaultValue = (
|
|
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 : WPSControl.controlName;
|
|
152
|
+
var _props_content;
|
|
153
|
+
_this.content = (_props_content = props === null || props === void 0 ? void 0 : props.content) !== null && _props_content !== void 0 ? _props_content : "新建文档";
|
|
154
|
+
var _props_canAdd;
|
|
155
|
+
_this.canAdd = (_props_canAdd = props === null || props === void 0 ? void 0 : props.canAdd) !== null && _props_canAdd !== void 0 ? _props_canAdd : true;
|
|
156
|
+
var _props_addLocal;
|
|
157
|
+
_this.addLocal = (_props_addLocal = props === null || props === void 0 ? void 0 : props.addLocal) !== null && _props_addLocal !== void 0 ? _props_addLocal : true;
|
|
158
|
+
var _props_addOnline;
|
|
159
|
+
_this.addOnline = (_props_addOnline = props === null || props === void 0 ? void 0 : props.addOnline) !== null && _props_addOnline !== void 0 ? _props_addOnline : true;
|
|
160
|
+
var _props_canEdit;
|
|
161
|
+
_this.canEdit = (_props_canEdit = props === null || props === void 0 ? void 0 : props.canEdit) !== null && _props_canEdit !== void 0 ? _props_canEdit : true;
|
|
162
|
+
var _props_canDownload;
|
|
163
|
+
_this.canDownload = (_props_canDownload = props === null || props === void 0 ? void 0 : props.canDownload) !== null && _props_canDownload !== void 0 ? _props_canDownload : true;
|
|
164
|
+
var _props_canExport;
|
|
165
|
+
_this.canExport = (_props_canExport = props === null || props === void 0 ? void 0 : props.canExport) !== null && _props_canExport !== void 0 ? _props_canExport : true;
|
|
166
|
+
var _props_canDelete;
|
|
167
|
+
_this.canDelete = (_props_canDelete = props === null || props === void 0 ? void 0 : props.canDelete) !== null && _props_canDelete !== void 0 ? _props_canDelete : false;
|
|
168
|
+
var _props_maxSize;
|
|
169
|
+
_this.maxSize = (_props_maxSize = props === null || props === void 0 ? void 0 : props.maxSize) !== null && _props_maxSize !== void 0 ? _props_maxSize : MB10;
|
|
170
|
+
var _props_defaultValue;
|
|
171
|
+
_this.defaultValue = (_props_defaultValue = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _props_defaultValue !== void 0 ? _props_defaultValue : [];
|
|
172
172
|
_this.wpsSetting = new WPSSetting(props === null || props === void 0 ? void 0 : props.wpsSetting);
|
|
173
|
-
var
|
|
174
|
-
_this.revisionsMode = (
|
|
173
|
+
var _props_revisionsMode;
|
|
174
|
+
_this.revisionsMode = (_props_revisionsMode = props === null || props === void 0 ? void 0 : props.revisionsMode) !== null && _props_revisionsMode !== void 0 ? _props_revisionsMode : false;
|
|
175
175
|
return _this;
|
|
176
176
|
}
|
|
177
177
|
return WPSProperty;
|