@byteluck-fe/model-driven-controls 4.53.0-lx2 → 4.54.0-lx2
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/property.js +10 -18
- package/dist/esm/baseControls/BatchPrintListButton/property.js +6 -9
- package/dist/esm/baseControls/BatchPrintRecordListButton/property.js +3 -4
- package/dist/esm/baseControls/BatchSubmissionListButton/property.js +7 -12
- package/dist/esm/baseControls/Button/property.js +10 -18
- package/dist/esm/baseControls/CreateFormListButton/property.js +5 -8
- package/dist/esm/baseControls/Dashboard/property.js +7 -12
- package/dist/esm/baseControls/Divider/property.js +4 -5
- package/dist/esm/baseControls/ExportListButton/property.js +6 -9
- package/dist/esm/baseControls/ExportRecordListButton/property.js +3 -4
- package/dist/esm/baseControls/FormSelectButton/property.js +5 -8
- package/dist/esm/baseControls/ImportRecordListButton/designer.js +4 -0
- package/dist/esm/baseControls/ImportRecordListButton/property.js +10 -10
- package/dist/esm/baseControls/InvoiceCheckButton/property.js +11 -19
- package/dist/esm/baseControls/ListSelectButton/property.js +5 -8
- package/dist/esm/baseControls/ListViewSelect/property.js +4 -5
- package/dist/esm/baseControls/OperationButton/property.js +6 -10
- package/dist/esm/baseControls/SubmissionRecordListButton/property.js +3 -4
- package/dist/esm/baseControls/Text/property.js +7 -12
- package/dist/esm/baseControls/TextOcrButton/property.js +11 -19
- package/dist/esm/baseControls/Title/property.js +7 -12
- package/dist/esm/columnControls/ApprovalStatusColumn/property.js +4 -6
- package/dist/esm/columnControls/ArrayColumn/property.js +5 -8
- package/dist/esm/columnControls/AutoNumberColumn/property.js +3 -4
- package/dist/esm/columnControls/CustomColumn/designer.js +1 -0
- package/dist/esm/columnControls/CustomColumn/property.js +4 -6
- package/dist/esm/columnControls/DecimalColumn/property.js +8 -14
- package/dist/esm/columnControls/DepartmentColumn/property.js +3 -4
- package/dist/esm/columnControls/EmployeeColumn/property.js +3 -4
- package/dist/esm/columnControls/FileColumn/designer.js +8 -8
- 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 +3 -4
- package/dist/esm/columnControls/OperationColumn/designer.js +12 -4
- package/dist/esm/columnControls/OperationColumn/property.js +6 -10
- package/dist/esm/columnControls/OrderColumn/property.js +7 -12
- package/dist/esm/columnControls/PeopleColumn/property.js +2 -2
- package/dist/esm/columnControls/TextColumn/property.js +5 -8
- package/dist/esm/columnControls/TimescopeColumn/property.js +4 -6
- package/dist/esm/columnControls/TimestampColumn/property.js +4 -6
- package/dist/esm/columnControls/VarcharColumn/property.js +7 -12
- package/dist/esm/formControls/Address/property.js +6 -10
- package/dist/esm/formControls/Amount/property.js +12 -22
- package/dist/esm/formControls/Attachment/property.js +23 -36
- package/dist/esm/formControls/AutoNumber/property.js +4 -6
- package/dist/esm/formControls/Calc/property.js +9 -16
- package/dist/esm/formControls/Checkbox/property.js +15 -27
- package/dist/esm/formControls/DatePicker/property.js +12 -21
- package/dist/esm/formControls/DateRange/property.js +12 -21
- package/dist/esm/formControls/Department/property.js +12 -22
- package/dist/esm/formControls/Department2/property.js +17 -32
- package/dist/esm/formControls/ElectronicSignature/property.js +7 -12
- package/dist/esm/formControls/Employee/property.js +10 -18
- package/dist/esm/formControls/Employee2/property.js +15 -28
- package/dist/esm/formControls/Image/designer.js +11 -12
- package/dist/esm/formControls/Image/property.js +10 -10
- package/dist/esm/formControls/Image/runtime.js +4 -6
- package/dist/esm/formControls/Input/property.js +8 -14
- package/dist/esm/formControls/Link/property.js +4 -6
- package/dist/esm/formControls/Number/property.js +14 -26
- package/dist/esm/formControls/OrganizationSelection/property.js +19 -36
- package/dist/esm/formControls/Radio/property.js +12 -22
- package/dist/esm/formControls/RichText/property.js +6 -10
- package/dist/esm/formControls/Score/property.js +8 -13
- package/dist/esm/formControls/SearchDateRange/property.js +13 -23
- package/dist/esm/formControls/SearchNumberRange/property.js +7 -12
- package/dist/esm/formControls/Select/property.js +11 -20
- package/dist/esm/formControls/SelectMultiple/property.js +10 -18
- package/dist/esm/formControls/SelectRelation/property.js +10 -18
- package/dist/esm/formControls/SensitivenInformation/property.js +8 -14
- package/dist/esm/formControls/Textarea/property.js +8 -14
- package/dist/esm/formControls/Tree/property.js +20 -37
- package/dist/esm/formControls/VueFormItem/property.js +6 -10
- package/dist/esm/formControls/WPS/designer.js +9 -9
- package/dist/esm/formControls/WPS/property.js +13 -24
- package/dist/esm/framework.js +41 -67
- package/dist/esm/layoutControls/ActionBar/designer.js +2 -2
- package/dist/esm/layoutControls/ActionBar/property.js +4 -6
- package/dist/esm/layoutControls/ActionBar/runtime.js +2 -2
- package/dist/esm/layoutControls/CardGroup/property.js +3 -4
- package/dist/esm/layoutControls/Col/property.js +3 -4
- package/dist/esm/layoutControls/DataView/property.js +7 -12
- package/dist/esm/layoutControls/GridLayoutContainer/property.js +3 -4
- package/dist/esm/layoutControls/GridTableColumn/property.js +11 -20
- package/dist/esm/layoutControls/ListView/property.js +19 -34
- package/dist/esm/layoutControls/Page/property.js +2 -2
- package/dist/esm/layoutControls/Position/property.js +5 -8
- package/dist/esm/layoutControls/Row/property.js +3 -4
- package/dist/esm/layoutControls/SubTableColumn/property.js +6 -10
- package/dist/esm/layoutControls/Tab/designer.js +2 -2
- package/dist/esm/layoutControls/Tab/property.js +2 -2
- package/dist/esm/layoutControls/TabPane/property.js +2 -2
- package/dist/esm/listControls/GridTable/designer.js +12 -4
- package/dist/esm/listControls/GridTable/property.js +15 -19
- package/dist/esm/listControls/SubTable/designer.js +2 -1
- package/dist/esm/listControls/SubTable/property.js +33 -64
- package/dist/esm/searchControls/SimpleSearch/property.js +11 -20
- package/dist/esm/searchControls/SimpleSearch/runtime.js +2 -2
- package/dist/esm/wrapControls/GridLayoutWrap/designer.js +8 -8
- package/dist/esm/wrapControls/GridLayoutWrap/property.js +2 -2
- package/dist/esm/wrapControls/GridLayoutWrap/runtime.js +8 -8
- package/dist/index.umd.js +1 -1
- package/dist/types/baseControls/ImportRecordListButton/property.d.ts +2 -0
- package/package.json +5 -5
|
@@ -113,6 +113,7 @@ var SearchDateRangeProperty = /*#__PURE__*/ function(BaseControlProperty) {
|
|
|
113
113
|
function SearchDateRangeProperty(props) {
|
|
114
114
|
_class_call_check(this, SearchDateRangeProperty);
|
|
115
115
|
var _this;
|
|
116
|
+
var _ref, _ref1, _ref2, _ref3, _ref4, _ref5, _ref6, _ref7, _ref8, _ref9, _ref10;
|
|
116
117
|
var _props_limitDateList;
|
|
117
118
|
_this = _call_super(this, SearchDateRangeProperty, [
|
|
118
119
|
props
|
|
@@ -123,33 +124,22 @@ var SearchDateRangeProperty = /*#__PURE__*/ function(BaseControlProperty) {
|
|
|
123
124
|
), _define_property(_this, "commonTimeSetting", void 0 //常用时间配置
|
|
124
125
|
), _define_property(_this, "setValueType", void 0 // 日期默认值设置方式custom,now
|
|
125
126
|
), _define_property(_this, "defaultValue", void 0), _define_property(_this, "limitDateList", void 0);
|
|
126
|
-
|
|
127
|
-
_this.defaultValue = (_props_defaultValue = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _props_defaultValue !== void 0 ? _props_defaultValue : [
|
|
127
|
+
_this.defaultValue = (_ref = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _ref !== void 0 ? _ref : [
|
|
128
128
|
'',
|
|
129
129
|
''
|
|
130
130
|
];
|
|
131
|
-
|
|
132
|
-
_this.
|
|
133
|
-
|
|
134
|
-
_this.
|
|
135
|
-
|
|
136
|
-
_this.
|
|
137
|
-
|
|
138
|
-
_this.
|
|
139
|
-
|
|
140
|
-
_this.
|
|
141
|
-
var _props_rangeMax;
|
|
142
|
-
_this.rangeMax = (_props_rangeMax = props === null || props === void 0 ? void 0 : props.rangeMax) !== null && _props_rangeMax !== void 0 ? _props_rangeMax : '';
|
|
143
|
-
var _props_placeholderStart;
|
|
144
|
-
_this.placeholderStart = (_props_placeholderStart = props === null || props === void 0 ? void 0 : props.placeholderStart) !== null && _props_placeholderStart !== void 0 ? _props_placeholderStart : '开始日期';
|
|
145
|
-
var _props_placeholderEnd;
|
|
146
|
-
_this.placeholderEnd = (_props_placeholderEnd = props === null || props === void 0 ? void 0 : props.placeholderEnd) !== null && _props_placeholderEnd !== void 0 ? _props_placeholderEnd : '结束日期';
|
|
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 : SearchDateRangeControl.controlName;
|
|
149
|
-
var _props_limitDateList_map;
|
|
150
|
-
_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) {
|
|
131
|
+
_this.dateType = (_ref1 = props === null || props === void 0 ? void 0 : props.dateType) !== null && _ref1 !== void 0 ? _ref1 : DateType.DATE;
|
|
132
|
+
_this.dateFormat = (_ref2 = props === null || props === void 0 ? void 0 : props.dateFormat) !== null && _ref2 !== void 0 ? _ref2 : '';
|
|
133
|
+
_this.commonTimeSetting = (_ref3 = props === null || props === void 0 ? void 0 : props.commonTimeSetting) !== null && _ref3 !== void 0 ? _ref3 : [];
|
|
134
|
+
_this.setValueType = (_ref4 = props === null || props === void 0 ? void 0 : props.setValueType) !== null && _ref4 !== void 0 ? _ref4 : 'custom';
|
|
135
|
+
_this.rangeMin = (_ref5 = props === null || props === void 0 ? void 0 : props.rangeMin) !== null && _ref5 !== void 0 ? _ref5 : '';
|
|
136
|
+
_this.rangeMax = (_ref6 = props === null || props === void 0 ? void 0 : props.rangeMax) !== null && _ref6 !== void 0 ? _ref6 : '';
|
|
137
|
+
_this.placeholderStart = (_ref7 = props === null || props === void 0 ? void 0 : props.placeholderStart) !== null && _ref7 !== void 0 ? _ref7 : '开始日期';
|
|
138
|
+
_this.placeholderEnd = (_ref8 = props === null || props === void 0 ? void 0 : props.placeholderEnd) !== null && _ref8 !== void 0 ? _ref8 : '结束日期';
|
|
139
|
+
_this.caption = (_ref9 = props === null || props === void 0 ? void 0 : props.caption) !== null && _ref9 !== void 0 ? _ref9 : SearchDateRangeControl.controlName;
|
|
140
|
+
_this.limitDateList = (_ref10 = props === null || props === void 0 ? void 0 : (_props_limitDateList = props.limitDateList) === null || _props_limitDateList === void 0 ? void 0 : _props_limitDateList.map(function(item) {
|
|
151
141
|
return new LimitDate(item);
|
|
152
|
-
})) !== null &&
|
|
142
|
+
})) !== null && _ref10 !== void 0 ? _ref10 : [];
|
|
153
143
|
return _this;
|
|
154
144
|
}
|
|
155
145
|
return SearchDateRangeProperty;
|
|
@@ -113,26 +113,21 @@ var SearchNumberRangeProperty = /*#__PURE__*/ function(BaseControlProperty) {
|
|
|
113
113
|
function SearchNumberRangeProperty(props) {
|
|
114
114
|
_class_call_check(this, SearchNumberRangeProperty);
|
|
115
115
|
var _this;
|
|
116
|
+
var _ref, _ref1, _ref2, _ref3, _ref4, _ref5;
|
|
116
117
|
_this = _call_super(this, SearchNumberRangeProperty, [
|
|
117
118
|
props
|
|
118
119
|
]), _define_property(_this, "rangeMin", void 0), _define_property(_this, "rangeMax", void 0), _define_property(_this, "placeholderStart", void 0 // 数字区间开始的提示文字
|
|
119
120
|
), _define_property(_this, "placeholderEnd", void 0 // 数字区结束的提示文字
|
|
120
121
|
), _define_property(_this, "defaultValue", void 0);
|
|
121
|
-
|
|
122
|
-
_this.defaultValue = (_props_defaultValue = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _props_defaultValue !== void 0 ? _props_defaultValue : [
|
|
122
|
+
_this.defaultValue = (_ref = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _ref !== void 0 ? _ref : [
|
|
123
123
|
'',
|
|
124
124
|
''
|
|
125
125
|
];
|
|
126
|
-
|
|
127
|
-
_this.
|
|
128
|
-
|
|
129
|
-
_this.
|
|
130
|
-
|
|
131
|
-
_this.placeholderStart = (_props_placeholderStart = props === null || props === void 0 ? void 0 : props.placeholderStart) !== null && _props_placeholderStart !== void 0 ? _props_placeholderStart : '最小值';
|
|
132
|
-
var _props_placeholderEnd;
|
|
133
|
-
_this.placeholderEnd = (_props_placeholderEnd = props === null || props === void 0 ? void 0 : props.placeholderEnd) !== null && _props_placeholderEnd !== void 0 ? _props_placeholderEnd : '最大值';
|
|
134
|
-
var _props_caption;
|
|
135
|
-
_this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : SearchNumberRangeControl.controlName;
|
|
126
|
+
_this.rangeMin = (_ref1 = props === null || props === void 0 ? void 0 : props.rangeMin) !== null && _ref1 !== void 0 ? _ref1 : '';
|
|
127
|
+
_this.rangeMax = (_ref2 = props === null || props === void 0 ? void 0 : props.rangeMax) !== null && _ref2 !== void 0 ? _ref2 : '';
|
|
128
|
+
_this.placeholderStart = (_ref3 = props === null || props === void 0 ? void 0 : props.placeholderStart) !== null && _ref3 !== void 0 ? _ref3 : '最小值';
|
|
129
|
+
_this.placeholderEnd = (_ref4 = props === null || props === void 0 ? void 0 : props.placeholderEnd) !== null && _ref4 !== void 0 ? _ref4 : '最大值';
|
|
130
|
+
_this.caption = (_ref5 = props === null || props === void 0 ? void 0 : props.caption) !== null && _ref5 !== void 0 ? _ref5 : SearchNumberRangeControl.controlName;
|
|
136
131
|
return _this;
|
|
137
132
|
}
|
|
138
133
|
return SearchNumberRangeProperty;
|
|
@@ -103,6 +103,7 @@ var SelectProperty = /*#__PURE__*/ function(BaseControlProperty) {
|
|
|
103
103
|
function SelectProperty(props) {
|
|
104
104
|
_class_call_check(this, SelectProperty);
|
|
105
105
|
var _this;
|
|
106
|
+
var _ref, _ref1, _ref2, _ref3, _ref4, _ref5, _ref6, _ref7, _ref8, _ref9;
|
|
106
107
|
_this = _call_super(this, SelectProperty, [
|
|
107
108
|
props
|
|
108
109
|
]), _define_property(_this, "options", void 0), _define_property(_this, "defaultShowOptions", void 0), _define_property(_this, "optionConfig", void 0 // 选项配置 custom datasource
|
|
@@ -122,8 +123,7 @@ var SelectProperty = /*#__PURE__*/ function(BaseControlProperty) {
|
|
|
122
123
|
* @defaultValue 空
|
|
123
124
|
* @public
|
|
124
125
|
*/ _define_property(_this, "formBind", void 0);
|
|
125
|
-
|
|
126
|
-
_this.options = initOptions((_props_options = props === null || props === void 0 ? void 0 : props.options) !== null && _props_options !== void 0 ? _props_options : [
|
|
126
|
+
_this.options = initOptions((_ref = props === null || props === void 0 ? void 0 : props.options) !== null && _ref !== void 0 ? _ref : [
|
|
127
127
|
{
|
|
128
128
|
label: '选项一',
|
|
129
129
|
value: '选项一'
|
|
@@ -137,21 +137,14 @@ var SelectProperty = /*#__PURE__*/ function(BaseControlProperty) {
|
|
|
137
137
|
value: '选项三'
|
|
138
138
|
}
|
|
139
139
|
]);
|
|
140
|
-
|
|
141
|
-
_this.
|
|
142
|
-
var _props_optionConfig;
|
|
143
|
-
_this.optionConfig = (_props_optionConfig = props === null || props === void 0 ? void 0 : props.optionConfig) !== null && _props_optionConfig !== void 0 ? _props_optionConfig : 'custom';
|
|
140
|
+
_this.defaultShowOptions = (_ref1 = props === null || props === void 0 ? void 0 : props.defaultShowOptions) !== null && _ref1 !== void 0 ? _ref1 : true;
|
|
141
|
+
_this.optionConfig = (_ref2 = props === null || props === void 0 ? void 0 : props.optionConfig) !== null && _ref2 !== void 0 ? _ref2 : 'custom';
|
|
144
142
|
_this.datasourceBind = new DataSourceBind(props === null || props === void 0 ? void 0 : props.datasourceBind);
|
|
145
|
-
|
|
146
|
-
_this.
|
|
147
|
-
|
|
148
|
-
_this.
|
|
149
|
-
|
|
150
|
-
_this.defaultValue = (_props_defaultValue = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _props_defaultValue !== void 0 ? _props_defaultValue : '';
|
|
151
|
-
var _props_allowCopyOptions;
|
|
152
|
-
_this.allowCopyOptions = (_props_allowCopyOptions = props === null || props === void 0 ? void 0 : props.allowCopyOptions) !== null && _props_allowCopyOptions !== void 0 ? _props_allowCopyOptions : false;
|
|
153
|
-
var _props_openMultistageFilling;
|
|
154
|
-
_this.openMultistageFilling = (_props_openMultistageFilling = props === null || props === void 0 ? void 0 : props.openMultistageFilling) !== null && _props_openMultistageFilling !== void 0 ? _props_openMultistageFilling : false;
|
|
143
|
+
_this.caption = (_ref3 = props === null || props === void 0 ? void 0 : props.caption) !== null && _ref3 !== void 0 ? _ref3 : SelectControl.controlName;
|
|
144
|
+
_this.placeholder = (_ref4 = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _ref4 !== void 0 ? _ref4 : '请选择';
|
|
145
|
+
_this.defaultValue = (_ref5 = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _ref5 !== void 0 ? _ref5 : '';
|
|
146
|
+
_this.allowCopyOptions = (_ref6 = props === null || props === void 0 ? void 0 : props.allowCopyOptions) !== null && _ref6 !== void 0 ? _ref6 : false;
|
|
147
|
+
_this.openMultistageFilling = (_ref7 = props === null || props === void 0 ? void 0 : props.openMultistageFilling) !== null && _ref7 !== void 0 ? _ref7 : false;
|
|
155
148
|
_this.multistageFilling = [];
|
|
156
149
|
if (Array.isArray(props === null || props === void 0 ? void 0 : props.multistageFilling)) {
|
|
157
150
|
props === null || props === void 0 ? void 0 : props.multistageFilling.map(function(item) {
|
|
@@ -159,10 +152,8 @@ var SelectProperty = /*#__PURE__*/ function(BaseControlProperty) {
|
|
|
159
152
|
(_this_multistageFilling = _this.multistageFilling) === null || _this_multistageFilling === void 0 ? void 0 : _this_multistageFilling.push(new MultistageFillingItem(item));
|
|
160
153
|
});
|
|
161
154
|
}
|
|
162
|
-
|
|
163
|
-
_this.
|
|
164
|
-
var _props_viewFormModelType;
|
|
165
|
-
_this.viewFormModelType = (_props_viewFormModelType = props === null || props === void 0 ? void 0 : props.viewFormModelType) !== null && _props_viewFormModelType !== void 0 ? _props_viewFormModelType : 'window';
|
|
155
|
+
_this.canViewForm = (_ref8 = props === null || props === void 0 ? void 0 : props.canViewForm) !== null && _ref8 !== void 0 ? _ref8 : false;
|
|
156
|
+
_this.viewFormModelType = (_ref9 = props === null || props === void 0 ? void 0 : props.viewFormModelType) !== null && _ref9 !== void 0 ? _ref9 : 'window';
|
|
166
157
|
_this.formBind = new FormBind(props === null || props === void 0 ? void 0 : props.formBind);
|
|
167
158
|
return _this;
|
|
168
159
|
}
|
|
@@ -119,6 +119,7 @@ var SelectMultipleProperty = /*#__PURE__*/ function(BaseControlProperty) {
|
|
|
119
119
|
function SelectMultipleProperty(props) {
|
|
120
120
|
_class_call_check(this, SelectMultipleProperty);
|
|
121
121
|
var _this;
|
|
122
|
+
var _ref, _ref1, _ref2, _ref3, _ref4, _ref5, _ref6, _ref7, _ref8;
|
|
122
123
|
_this = _call_super(this, SelectMultipleProperty, [
|
|
123
124
|
props
|
|
124
125
|
]), _define_property(_this, "options", void 0), _define_property(_this, "defaultShowOptions", void 0), _define_property(_this, "optionConfig", void 0 // 选项配置 custom datasource
|
|
@@ -137,8 +138,7 @@ var SelectMultipleProperty = /*#__PURE__*/ function(BaseControlProperty) {
|
|
|
137
138
|
* @defaultValue 空
|
|
138
139
|
* @public
|
|
139
140
|
*/ _define_property(_this, "formBind", void 0);
|
|
140
|
-
|
|
141
|
-
_this.options = initOptions((_props_options = props === null || props === void 0 ? void 0 : props.options) !== null && _props_options !== void 0 ? _props_options : [
|
|
141
|
+
_this.options = initOptions((_ref = props === null || props === void 0 ? void 0 : props.options) !== null && _ref !== void 0 ? _ref : [
|
|
142
142
|
{
|
|
143
143
|
label: '选项一',
|
|
144
144
|
value: '选项一'
|
|
@@ -152,19 +152,13 @@ var SelectMultipleProperty = /*#__PURE__*/ function(BaseControlProperty) {
|
|
|
152
152
|
value: '选项三'
|
|
153
153
|
}
|
|
154
154
|
]);
|
|
155
|
-
|
|
156
|
-
_this.
|
|
157
|
-
var _props_optionConfig;
|
|
158
|
-
_this.optionConfig = (_props_optionConfig = props === null || props === void 0 ? void 0 : props.optionConfig) !== null && _props_optionConfig !== void 0 ? _props_optionConfig : 'custom';
|
|
155
|
+
_this.defaultShowOptions = (_ref1 = props === null || props === void 0 ? void 0 : props.defaultShowOptions) !== null && _ref1 !== void 0 ? _ref1 : true;
|
|
156
|
+
_this.optionConfig = (_ref2 = props === null || props === void 0 ? void 0 : props.optionConfig) !== null && _ref2 !== void 0 ? _ref2 : 'custom';
|
|
159
157
|
_this.datasourceBind = new DataSourceBind(props === null || props === void 0 ? void 0 : props.datasourceBind);
|
|
160
|
-
|
|
161
|
-
_this.
|
|
162
|
-
|
|
163
|
-
_this.
|
|
164
|
-
var _props_defaultValue;
|
|
165
|
-
_this.defaultValue = (_props_defaultValue = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _props_defaultValue !== void 0 ? _props_defaultValue : [];
|
|
166
|
-
var _props_openMultistageFilling;
|
|
167
|
-
_this.openMultistageFilling = (_props_openMultistageFilling = props === null || props === void 0 ? void 0 : props.openMultistageFilling) !== null && _props_openMultistageFilling !== void 0 ? _props_openMultistageFilling : false;
|
|
158
|
+
_this.caption = (_ref3 = props === null || props === void 0 ? void 0 : props.caption) !== null && _ref3 !== void 0 ? _ref3 : SelectMultipleControl.controlName;
|
|
159
|
+
_this.placeholder = (_ref4 = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _ref4 !== void 0 ? _ref4 : '请选择';
|
|
160
|
+
_this.defaultValue = (_ref5 = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _ref5 !== void 0 ? _ref5 : [];
|
|
161
|
+
_this.openMultistageFilling = (_ref6 = props === null || props === void 0 ? void 0 : props.openMultistageFilling) !== null && _ref6 !== void 0 ? _ref6 : false;
|
|
168
162
|
_this.multistageFilling = [];
|
|
169
163
|
if (Array.isArray(props === null || props === void 0 ? void 0 : props.multistageFilling)) {
|
|
170
164
|
props === null || props === void 0 ? void 0 : props.multistageFilling.map(function(item) {
|
|
@@ -172,10 +166,8 @@ var SelectMultipleProperty = /*#__PURE__*/ function(BaseControlProperty) {
|
|
|
172
166
|
(_this_multistageFilling = _this.multistageFilling) === null || _this_multistageFilling === void 0 ? void 0 : _this_multistageFilling.push(new MultistageFillingItem(item));
|
|
173
167
|
});
|
|
174
168
|
}
|
|
175
|
-
|
|
176
|
-
_this.
|
|
177
|
-
var _props_viewFormModelType;
|
|
178
|
-
_this.viewFormModelType = (_props_viewFormModelType = props === null || props === void 0 ? void 0 : props.viewFormModelType) !== null && _props_viewFormModelType !== void 0 ? _props_viewFormModelType : 'window';
|
|
169
|
+
_this.canViewForm = (_ref7 = props === null || props === void 0 ? void 0 : props.canViewForm) !== null && _ref7 !== void 0 ? _ref7 : false;
|
|
170
|
+
_this.viewFormModelType = (_ref8 = props === null || props === void 0 ? void 0 : props.viewFormModelType) !== null && _ref8 !== void 0 ? _ref8 : 'window';
|
|
179
171
|
_this.formBind = new FormBind(props === null || props === void 0 ? void 0 : props.formBind);
|
|
180
172
|
return _this;
|
|
181
173
|
}
|
|
@@ -128,6 +128,7 @@ var SelectRelationControlPropertyRules = /*#__PURE__*/ function(OptionAndDataSou
|
|
|
128
128
|
function SelectRelationProperty(props) {
|
|
129
129
|
_class_call_check(this, SelectRelationProperty);
|
|
130
130
|
var _this;
|
|
131
|
+
var _ref, _ref1, _ref2, _ref3, _ref4, _ref5, _ref6, _ref7, _ref8;
|
|
131
132
|
_this = _call_super(this, SelectRelationProperty, [
|
|
132
133
|
props
|
|
133
134
|
]), /**
|
|
@@ -174,22 +175,15 @@ var SelectRelationControlPropertyRules = /*#__PURE__*/ function(OptionAndDataSou
|
|
|
174
175
|
), // 展示已选明细
|
|
175
176
|
_define_property(_this, "showSelectedDetail", void 0), // 展示已选内容配置字段
|
|
176
177
|
_define_property(_this, "selectedContentConfig", void 0);
|
|
177
|
-
|
|
178
|
-
_this.
|
|
179
|
-
var _props_optionConfig;
|
|
180
|
-
_this.optionConfig = (_props_optionConfig = props === null || props === void 0 ? void 0 : props.optionConfig) !== null && _props_optionConfig !== void 0 ? _props_optionConfig : 'datasource';
|
|
178
|
+
_this.options = initOptions((_ref = props === null || props === void 0 ? void 0 : props.options) !== null && _ref !== void 0 ? _ref : []);
|
|
179
|
+
_this.optionConfig = (_ref1 = props === null || props === void 0 ? void 0 : props.optionConfig) !== null && _ref1 !== void 0 ? _ref1 : 'datasource';
|
|
181
180
|
_this.listPageBind = new ListBind(props === null || props === void 0 ? void 0 : props.listPageBind);
|
|
182
181
|
_this.datasourceBind = new DataSourceBind(props === null || props === void 0 ? void 0 : props.datasourceBind);
|
|
183
|
-
|
|
184
|
-
_this.
|
|
185
|
-
|
|
186
|
-
_this.
|
|
187
|
-
|
|
188
|
-
_this.defaultValue = (_props_defaultValue = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _props_defaultValue !== void 0 ? _props_defaultValue : '';
|
|
189
|
-
var _props_openMultistageFilling;
|
|
190
|
-
_this.openMultistageFilling = (_props_openMultistageFilling = props === null || props === void 0 ? void 0 : props.openMultistageFilling) !== null && _props_openMultistageFilling !== void 0 ? _props_openMultistageFilling : false;
|
|
191
|
-
var _props_showSelectedDetail;
|
|
192
|
-
_this.showSelectedDetail = (_props_showSelectedDetail = props === null || props === void 0 ? void 0 : props.showSelectedDetail) !== null && _props_showSelectedDetail !== void 0 ? _props_showSelectedDetail : false;
|
|
182
|
+
_this.caption = (_ref2 = props === null || props === void 0 ? void 0 : props.caption) !== null && _ref2 !== void 0 ? _ref2 : SelectRelationControl.controlName;
|
|
183
|
+
_this.placeholder = (_ref3 = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _ref3 !== void 0 ? _ref3 : '请选择';
|
|
184
|
+
_this.defaultValue = (_ref4 = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _ref4 !== void 0 ? _ref4 : '';
|
|
185
|
+
_this.openMultistageFilling = (_ref5 = props === null || props === void 0 ? void 0 : props.openMultistageFilling) !== null && _ref5 !== void 0 ? _ref5 : false;
|
|
186
|
+
_this.showSelectedDetail = (_ref6 = props === null || props === void 0 ? void 0 : props.showSelectedDetail) !== null && _ref6 !== void 0 ? _ref6 : false;
|
|
193
187
|
_this.selectedContentConfig = new SelectedContentConfig(props === null || props === void 0 ? void 0 : props.selectedContentConfig);
|
|
194
188
|
_this.multistageFilling = [];
|
|
195
189
|
if (Array.isArray(props === null || props === void 0 ? void 0 : props.multistageFilling)) {
|
|
@@ -198,10 +192,8 @@ var SelectRelationControlPropertyRules = /*#__PURE__*/ function(OptionAndDataSou
|
|
|
198
192
|
(_this_multistageFilling = _this.multistageFilling) === null || _this_multistageFilling === void 0 ? void 0 : _this_multistageFilling.push(new MultistageFillingItem(item));
|
|
199
193
|
});
|
|
200
194
|
}
|
|
201
|
-
|
|
202
|
-
_this.
|
|
203
|
-
var _props_viewFormModelType;
|
|
204
|
-
_this.viewFormModelType = (_props_viewFormModelType = props === null || props === void 0 ? void 0 : props.viewFormModelType) !== null && _props_viewFormModelType !== void 0 ? _props_viewFormModelType : 'window';
|
|
195
|
+
_this.canViewForm = (_ref7 = props === null || props === void 0 ? void 0 : props.canViewForm) !== null && _ref7 !== void 0 ? _ref7 : false;
|
|
196
|
+
_this.viewFormModelType = (_ref8 = props === null || props === void 0 ? void 0 : props.viewFormModelType) !== null && _ref8 !== void 0 ? _ref8 : 'window';
|
|
205
197
|
_this.formBind = new FormBind(props === null || props === void 0 ? void 0 : props.formBind);
|
|
206
198
|
return _this;
|
|
207
199
|
}
|
|
@@ -155,6 +155,7 @@ var SensitivenInformationControlPropertyRuntimeRules = /*#__PURE__*/ function(Ba
|
|
|
155
155
|
function SensitivenInformationProperty(props) {
|
|
156
156
|
_class_call_check(this, SensitivenInformationProperty);
|
|
157
157
|
var _this;
|
|
158
|
+
var _ref, _ref1, _ref2, _ref3, _ref4, _ref5, _ref6;
|
|
158
159
|
_this = _call_super(this, SensitivenInformationProperty, [
|
|
159
160
|
props
|
|
160
161
|
]), /**
|
|
@@ -181,21 +182,14 @@ var SensitivenInformationControlPropertyRuntimeRules = /*#__PURE__*/ function(Ba
|
|
|
181
182
|
* @defaultValue ''
|
|
182
183
|
* @public
|
|
183
184
|
*/ _define_property(_this, "encryptedMode", void 0);
|
|
184
|
-
|
|
185
|
-
_this.
|
|
186
|
-
var _props_minLength;
|
|
187
|
-
_this.minLength = (_props_minLength = props === null || props === void 0 ? void 0 : props.minLength) !== null && _props_minLength !== void 0 ? _props_minLength : 0;
|
|
185
|
+
_this.maxLength = (_ref = props === null || props === void 0 ? void 0 : props.maxLength) !== null && _ref !== void 0 ? _ref : 200;
|
|
186
|
+
_this.minLength = (_ref1 = props === null || props === void 0 ? void 0 : props.minLength) !== null && _ref1 !== void 0 ? _ref1 : 0;
|
|
188
187
|
_this.regularRules = new RegularRules(props === null || props === void 0 ? void 0 : props.regularRules);
|
|
189
|
-
|
|
190
|
-
_this.
|
|
191
|
-
|
|
192
|
-
_this.
|
|
193
|
-
|
|
194
|
-
_this.placeholder = (_props_placeholder = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _props_placeholder !== void 0 ? _props_placeholder : '请输入';
|
|
195
|
-
var _props_encrypted;
|
|
196
|
-
_this.encrypted = (_props_encrypted = props === null || props === void 0 ? void 0 : props.encrypted) !== null && _props_encrypted !== void 0 ? _props_encrypted : false;
|
|
197
|
-
var _props_encryptedMode;
|
|
198
|
-
_this.encryptedMode = (_props_encryptedMode = props === null || props === void 0 ? void 0 : props.encryptedMode) !== null && _props_encryptedMode !== void 0 ? _props_encryptedMode : '';
|
|
188
|
+
_this.defaultValue = (_ref2 = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _ref2 !== void 0 ? _ref2 : '';
|
|
189
|
+
_this.caption = (_ref3 = props === null || props === void 0 ? void 0 : props.caption) !== null && _ref3 !== void 0 ? _ref3 : SensitivenInformationControl.controlName;
|
|
190
|
+
_this.placeholder = (_ref4 = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _ref4 !== void 0 ? _ref4 : '请输入';
|
|
191
|
+
_this.encrypted = (_ref5 = props === null || props === void 0 ? void 0 : props.encrypted) !== null && _ref5 !== void 0 ? _ref5 : false;
|
|
192
|
+
_this.encryptedMode = (_ref6 = props === null || props === void 0 ? void 0 : props.encryptedMode) !== null && _ref6 !== void 0 ? _ref6 : '';
|
|
199
193
|
return _this;
|
|
200
194
|
}
|
|
201
195
|
return SensitivenInformationProperty;
|
|
@@ -138,6 +138,7 @@ var TextareaControlPropertyRuntimeRules = /*#__PURE__*/ function(BaseControlProp
|
|
|
138
138
|
function TextareaProperty(props) {
|
|
139
139
|
_class_call_check(this, TextareaProperty);
|
|
140
140
|
var _this;
|
|
141
|
+
var _ref, _ref1, _ref2, _ref3, _ref4, _ref5, _ref6;
|
|
141
142
|
_this = _call_super(this, TextareaProperty, [
|
|
142
143
|
props
|
|
143
144
|
]), /**
|
|
@@ -165,20 +166,13 @@ var TextareaControlPropertyRuntimeRules = /*#__PURE__*/ function(BaseControlProp
|
|
|
165
166
|
* @defaultValue 无默认值
|
|
166
167
|
* @public
|
|
167
168
|
*/ _define_property(_this, "maxRows", void 0);
|
|
168
|
-
|
|
169
|
-
_this.
|
|
170
|
-
|
|
171
|
-
_this.
|
|
172
|
-
|
|
173
|
-
_this.
|
|
174
|
-
|
|
175
|
-
_this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : TextareaControl.controlName;
|
|
176
|
-
var _props_placeholder;
|
|
177
|
-
_this.placeholder = (_props_placeholder = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _props_placeholder !== void 0 ? _props_placeholder : '请输入';
|
|
178
|
-
var _props_lineEllipsis;
|
|
179
|
-
_this.lineEllipsis = (_props_lineEllipsis = props === null || props === void 0 ? void 0 : props.lineEllipsis) !== null && _props_lineEllipsis !== void 0 ? _props_lineEllipsis : 4;
|
|
180
|
-
var _props_autoSize;
|
|
181
|
-
_this.autoSize = (_props_autoSize = props === null || props === void 0 ? void 0 : props.autoSize) !== null && _props_autoSize !== void 0 ? _props_autoSize : false;
|
|
169
|
+
_this.maxLength = (_ref = props === null || props === void 0 ? void 0 : props.maxLength) !== null && _ref !== void 0 ? _ref : 50000;
|
|
170
|
+
_this.minLength = (_ref1 = props === null || props === void 0 ? void 0 : props.minLength) !== null && _ref1 !== void 0 ? _ref1 : 0;
|
|
171
|
+
_this.defaultValue = (_ref2 = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _ref2 !== void 0 ? _ref2 : '';
|
|
172
|
+
_this.caption = (_ref3 = props === null || props === void 0 ? void 0 : props.caption) !== null && _ref3 !== void 0 ? _ref3 : TextareaControl.controlName;
|
|
173
|
+
_this.placeholder = (_ref4 = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _ref4 !== void 0 ? _ref4 : '请输入';
|
|
174
|
+
_this.lineEllipsis = (_ref5 = props === null || props === void 0 ? void 0 : props.lineEllipsis) !== null && _ref5 !== void 0 ? _ref5 : 4;
|
|
175
|
+
_this.autoSize = (_ref6 = props === null || props === void 0 ? void 0 : props.autoSize) !== null && _ref6 !== void 0 ? _ref6 : false;
|
|
182
176
|
_this.maxRows = props === null || props === void 0 ? void 0 : props.maxRows;
|
|
183
177
|
return _this;
|
|
184
178
|
}
|
|
@@ -144,6 +144,7 @@ var TreeProperty = /*#__PURE__*/ function(BaseControlProperty) {
|
|
|
144
144
|
function TreeProperty(props) {
|
|
145
145
|
_class_call_check(this, TreeProperty);
|
|
146
146
|
var _this;
|
|
147
|
+
var _ref, _ref1, _ref2, _ref3, _ref4, _ref5, _ref6, _ref7, _ref8, _ref9, _ref10, _ref11, _ref12, _ref13, _ref14, _ref15, _ref16, _ref17;
|
|
147
148
|
var _props_multistageFilling;
|
|
148
149
|
_this = _call_super(this, TreeProperty, [
|
|
149
150
|
props
|
|
@@ -154,48 +155,30 @@ var TreeProperty = /*#__PURE__*/ function(BaseControlProperty) {
|
|
|
154
155
|
), _define_property(_this, "defaultCollapse", void 0), _define_property(_this, "defaultCollapseLevel", void 0), _define_property(_this, "optionConfig", 'datasource' // 选项配置 datasource
|
|
155
156
|
), _define_property(_this, "datasourceBind", void 0), _define_property(_this, "filterItemDatasourceBind", void 0), _define_property(_this, "multistageFilling", void 0), _define_property(_this, "defaultValue", void 0), _define_property(_this, "openMultistageFilling", void 0 //是否开启填充
|
|
156
157
|
);
|
|
157
|
-
|
|
158
|
-
_this.
|
|
159
|
-
|
|
160
|
-
_this.
|
|
161
|
-
|
|
162
|
-
_this.
|
|
163
|
-
|
|
164
|
-
_this.
|
|
165
|
-
|
|
166
|
-
_this.
|
|
167
|
-
|
|
168
|
-
_this.
|
|
169
|
-
|
|
170
|
-
_this.containsSubNode = (_props_containsSubNode = props === null || props === void 0 ? void 0 : props.containsSubNode) !== null && _props_containsSubNode !== void 0 ? _props_containsSubNode : false;
|
|
171
|
-
var _props_isShowFilterItem;
|
|
172
|
-
_this.isShowFilterItem = (_props_isShowFilterItem = props === null || props === void 0 ? void 0 : props.isShowFilterItem) !== null && _props_isShowFilterItem !== void 0 ? _props_isShowFilterItem : false;
|
|
173
|
-
var _props_isShowIncludeSub;
|
|
174
|
-
_this.isShowIncludeSub = (_props_isShowIncludeSub = props === null || props === void 0 ? void 0 : props.isShowIncludeSub) !== null && _props_isShowIncludeSub !== void 0 ? _props_isShowIncludeSub : false;
|
|
175
|
-
var _props_isDefaultCheckSub;
|
|
176
|
-
_this.isDefaultCheckSub = (_props_isDefaultCheckSub = props === null || props === void 0 ? void 0 : props.isDefaultCheckSub) !== null && _props_isDefaultCheckSub !== void 0 ? _props_isDefaultCheckSub : false;
|
|
177
|
-
var _props_defaultCollapse;
|
|
178
|
-
_this.defaultCollapse = (_props_defaultCollapse = props === null || props === void 0 ? void 0 : props.defaultCollapse) !== null && _props_defaultCollapse !== void 0 ? _props_defaultCollapse : 'all';
|
|
179
|
-
var _props_defaultCollapseLevel;
|
|
180
|
-
_this.defaultCollapseLevel = (_props_defaultCollapseLevel = props === null || props === void 0 ? void 0 : props.defaultCollapseLevel) !== null && _props_defaultCollapseLevel !== void 0 ? _props_defaultCollapseLevel : 1;
|
|
181
|
-
var _props_datasourceBind;
|
|
182
|
-
_this.datasourceBind = new TreeDataSourceBind((_props_datasourceBind = props === null || props === void 0 ? void 0 : props.datasourceBind) !== null && _props_datasourceBind !== void 0 ? _props_datasourceBind : {
|
|
158
|
+
_this.caption = (_ref = props === null || props === void 0 ? void 0 : props.caption) !== null && _ref !== void 0 ? _ref : TreeControl.controlName;
|
|
159
|
+
_this.placeholder = (_ref1 = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _ref1 !== void 0 ? _ref1 : '请选择';
|
|
160
|
+
_this.multiple = (_ref2 = props === null || props === void 0 ? void 0 : props.multiple) !== null && _ref2 !== void 0 ? _ref2 : false;
|
|
161
|
+
_this.canSearch = (_ref3 = props === null || props === void 0 ? void 0 : props.canSearch) !== null && _ref3 !== void 0 ? _ref3 : true;
|
|
162
|
+
_this.levelType = (_ref4 = props === null || props === void 0 ? void 0 : props.levelType) !== null && _ref4 !== void 0 ? _ref4 : 'all';
|
|
163
|
+
_this.optionalLevel = (_ref5 = props === null || props === void 0 ? void 0 : props.optionalLevel) !== null && _ref5 !== void 0 ? _ref5 : 1;
|
|
164
|
+
_this.containsSubNode = (_ref6 = props === null || props === void 0 ? void 0 : props.containsSubNode) !== null && _ref6 !== void 0 ? _ref6 : false;
|
|
165
|
+
_this.isShowFilterItem = (_ref7 = props === null || props === void 0 ? void 0 : props.isShowFilterItem) !== null && _ref7 !== void 0 ? _ref7 : false;
|
|
166
|
+
_this.isShowIncludeSub = (_ref8 = props === null || props === void 0 ? void 0 : props.isShowIncludeSub) !== null && _ref8 !== void 0 ? _ref8 : false;
|
|
167
|
+
_this.isDefaultCheckSub = (_ref9 = props === null || props === void 0 ? void 0 : props.isDefaultCheckSub) !== null && _ref9 !== void 0 ? _ref9 : false;
|
|
168
|
+
_this.defaultCollapse = (_ref10 = props === null || props === void 0 ? void 0 : props.defaultCollapse) !== null && _ref10 !== void 0 ? _ref10 : 'all';
|
|
169
|
+
_this.defaultCollapseLevel = (_ref11 = props === null || props === void 0 ? void 0 : props.defaultCollapseLevel) !== null && _ref11 !== void 0 ? _ref11 : 1;
|
|
170
|
+
_this.datasourceBind = new TreeDataSourceBind((_ref12 = props === null || props === void 0 ? void 0 : props.datasourceBind) !== null && _ref12 !== void 0 ? _ref12 : {
|
|
183
171
|
attributes: TreeControl.controlCustomAttributes
|
|
184
172
|
});
|
|
185
|
-
|
|
186
|
-
_this.filterItemDatasourceBind = new TreeDataSourceBind((_props_filterItemDatasourceBind = props === null || props === void 0 ? void 0 : props.filterItemDatasourceBind) !== null && _props_filterItemDatasourceBind !== void 0 ? _props_filterItemDatasourceBind : {
|
|
173
|
+
_this.filterItemDatasourceBind = new TreeDataSourceBind((_ref13 = props === null || props === void 0 ? void 0 : props.filterItemDatasourceBind) !== null && _ref13 !== void 0 ? _ref13 : {
|
|
187
174
|
attributes: TreeControl.controlCustomAttributes
|
|
188
175
|
});
|
|
189
|
-
|
|
190
|
-
_this.
|
|
191
|
-
|
|
192
|
-
_this.defaultDisplay = (_props_defaultDisplay = props === null || props === void 0 ? void 0 : props.defaultDisplay) !== null && _props_defaultDisplay !== void 0 ? _props_defaultDisplay : false;
|
|
193
|
-
var _props_multistageFilling_map;
|
|
194
|
-
_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) {
|
|
176
|
+
_this.openMultistageFilling = (_ref14 = props === null || props === void 0 ? void 0 : props.openMultistageFilling) !== null && _ref14 !== void 0 ? _ref14 : false;
|
|
177
|
+
_this.defaultDisplay = (_ref15 = props === null || props === void 0 ? void 0 : props.defaultDisplay) !== null && _ref15 !== void 0 ? _ref15 : false;
|
|
178
|
+
_this.multistageFilling = (_ref16 = props === null || props === void 0 ? void 0 : (_props_multistageFilling = props.multistageFilling) === null || _props_multistageFilling === void 0 ? void 0 : _props_multistageFilling.map(function(item) {
|
|
195
179
|
return new MultistageFillingItem(item);
|
|
196
|
-
})) !== null &&
|
|
197
|
-
|
|
198
|
-
_this.defaultValue = (_props_defaultValue = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _props_defaultValue !== void 0 ? _props_defaultValue : [];
|
|
180
|
+
})) !== null && _ref16 !== void 0 ? _ref16 : [];
|
|
181
|
+
_this.defaultValue = (_ref17 = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _ref17 !== void 0 ? _ref17 : [];
|
|
199
182
|
return _this;
|
|
200
183
|
}
|
|
201
184
|
return TreeProperty;
|
|
@@ -110,19 +110,15 @@ var VueFormItemProperty = /*#__PURE__*/ function(BaseControlProperty) {
|
|
|
110
110
|
function VueFormItemProperty(props) {
|
|
111
111
|
_class_call_check(this, VueFormItemProperty);
|
|
112
112
|
var _this;
|
|
113
|
+
var _ref, _ref1, _ref2, _ref3, _ref4;
|
|
113
114
|
_this = _call_super(this, VueFormItemProperty, [
|
|
114
115
|
props
|
|
115
116
|
]), _define_property(_this, "controlExportName", void 0), _define_property(_this, "permissions", void 0), _define_property(_this, "defaultValue", void 0), _define_property(_this, "isInlineEdit", void 0);
|
|
116
|
-
|
|
117
|
-
_this.
|
|
118
|
-
|
|
119
|
-
_this.
|
|
120
|
-
|
|
121
|
-
_this.controlExportName = (_props_controlExportName = props === null || props === void 0 ? void 0 : props.controlExportName) !== null && _props_controlExportName !== void 0 ? _props_controlExportName : '';
|
|
122
|
-
var _props_permissions;
|
|
123
|
-
_this.permissions = (_props_permissions = props === null || props === void 0 ? void 0 : props.permissions) !== null && _props_permissions !== void 0 ? _props_permissions : [];
|
|
124
|
-
var _props_isInlineEdit;
|
|
125
|
-
_this.isInlineEdit = (_props_isInlineEdit = props === null || props === void 0 ? void 0 : props.isInlineEdit) !== null && _props_isInlineEdit !== void 0 ? _props_isInlineEdit : false;
|
|
117
|
+
_this.caption = (_ref = props === null || props === void 0 ? void 0 : props.caption) !== null && _ref !== void 0 ? _ref : VueFormItemControl.controlName;
|
|
118
|
+
_this.defaultValue = (_ref1 = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _ref1 !== void 0 ? _ref1 : undefined;
|
|
119
|
+
_this.controlExportName = (_ref2 = props === null || props === void 0 ? void 0 : props.controlExportName) !== null && _ref2 !== void 0 ? _ref2 : '';
|
|
120
|
+
_this.permissions = (_ref3 = props === null || props === void 0 ? void 0 : props.permissions) !== null && _ref3 !== void 0 ? _ref3 : [];
|
|
121
|
+
_this.isInlineEdit = (_ref4 = props === null || props === void 0 ? void 0 : props.isInlineEdit) !== null && _ref4 !== void 0 ? _ref4 : false;
|
|
126
122
|
return _this;
|
|
127
123
|
}
|
|
128
124
|
return VueFormItemProperty;
|
|
@@ -1,11 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
* @Author: Elvis shuaiqy@hotmail.com
|
|
3
|
-
* @Date: 2022-07-07 00:12:37
|
|
4
|
-
* @LastEditors: Elvis shuaiqy@hotmail.com
|
|
5
|
-
* @LastEditTime: 2022-07-25 17:51:51
|
|
6
|
-
* @FilePath: /model-driven/packages/controls/src/formControls/WPS/designer.ts
|
|
7
|
-
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
|
|
8
|
-
*/ function _assert_this_initialized(self) {
|
|
1
|
+
function _assert_this_initialized(self) {
|
|
9
2
|
if (self === void 0) {
|
|
10
3
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
11
4
|
}
|
|
@@ -91,7 +84,14 @@ function _is_native_reflect_construct() {
|
|
|
91
84
|
return !!result;
|
|
92
85
|
})();
|
|
93
86
|
}
|
|
94
|
-
|
|
87
|
+
/*
|
|
88
|
+
* @Author: Elvis shuaiqy@hotmail.com
|
|
89
|
+
* @Date: 2022-07-07 00:12:37
|
|
90
|
+
* @LastEditors: Elvis shuaiqy@hotmail.com
|
|
91
|
+
* @LastEditTime: 2022-07-25 17:51:51
|
|
92
|
+
* @FilePath: /model-driven/packages/controls/src/formControls/WPS/designer.ts
|
|
93
|
+
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
|
|
94
|
+
*/ import { DesignerFormControl, COMMON_SETTING_TYPE } from '@byteluck-fe/model-driven-core';
|
|
95
95
|
import { FieldTypes } from '@byteluck-fe/model-driven-shared';
|
|
96
96
|
import WPSProperty from './property';
|
|
97
97
|
var WPSControl = /*#__PURE__*/ function(DesignerFormControl) {
|
|
@@ -148,34 +148,23 @@ var WPSProperty = /*#__PURE__*/ function(BaseControlProperty) {
|
|
|
148
148
|
function WPSProperty(props) {
|
|
149
149
|
_class_call_check(this, WPSProperty);
|
|
150
150
|
var _this;
|
|
151
|
+
var _ref, _ref1, _ref2, _ref3, _ref4, _ref5, _ref6, _ref7, _ref8, _ref9, _ref10, _ref11;
|
|
151
152
|
_this = _call_super(this, WPSProperty, [
|
|
152
153
|
props
|
|
153
154
|
]), _define_property(_this, "content", void 0), _define_property(_this, "canAdd", void 0), _define_property(_this, "addLocal", void 0), _define_property(_this, "addOnline", void 0), _define_property(_this, "canDownload", void 0), _define_property(_this, "canEdit", void 0), _define_property(_this, "canExport", void 0), _define_property(_this, "canDelete", void 0), _define_property(_this, "wpsSetting", void 0), _define_property(_this, "maxSize", void 0), _define_property(_this, "defaultValue", void 0), _define_property(_this, "revisionsMode", void 0);
|
|
154
|
-
|
|
155
|
-
_this.
|
|
156
|
-
|
|
157
|
-
_this.
|
|
158
|
-
|
|
159
|
-
_this.
|
|
160
|
-
|
|
161
|
-
_this.
|
|
162
|
-
|
|
163
|
-
_this.
|
|
164
|
-
|
|
165
|
-
_this.canEdit = (_props_canEdit = props === null || props === void 0 ? void 0 : props.canEdit) !== null && _props_canEdit !== void 0 ? _props_canEdit : true;
|
|
166
|
-
var _props_canDownload;
|
|
167
|
-
_this.canDownload = (_props_canDownload = props === null || props === void 0 ? void 0 : props.canDownload) !== null && _props_canDownload !== void 0 ? _props_canDownload : true;
|
|
168
|
-
var _props_canExport;
|
|
169
|
-
_this.canExport = (_props_canExport = props === null || props === void 0 ? void 0 : props.canExport) !== null && _props_canExport !== void 0 ? _props_canExport : true;
|
|
170
|
-
var _props_canDelete;
|
|
171
|
-
_this.canDelete = (_props_canDelete = props === null || props === void 0 ? void 0 : props.canDelete) !== null && _props_canDelete !== void 0 ? _props_canDelete : false;
|
|
172
|
-
var _props_maxSize;
|
|
173
|
-
_this.maxSize = (_props_maxSize = props === null || props === void 0 ? void 0 : props.maxSize) !== null && _props_maxSize !== void 0 ? _props_maxSize : MB10;
|
|
174
|
-
var _props_defaultValue;
|
|
175
|
-
_this.defaultValue = (_props_defaultValue = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _props_defaultValue !== void 0 ? _props_defaultValue : [];
|
|
155
|
+
_this.caption = (_ref = props === null || props === void 0 ? void 0 : props.caption) !== null && _ref !== void 0 ? _ref : WPSControl.controlName;
|
|
156
|
+
_this.content = (_ref1 = props === null || props === void 0 ? void 0 : props.content) !== null && _ref1 !== void 0 ? _ref1 : '新建文档';
|
|
157
|
+
_this.canAdd = (_ref2 = props === null || props === void 0 ? void 0 : props.canAdd) !== null && _ref2 !== void 0 ? _ref2 : true;
|
|
158
|
+
_this.addLocal = (_ref3 = props === null || props === void 0 ? void 0 : props.addLocal) !== null && _ref3 !== void 0 ? _ref3 : true;
|
|
159
|
+
_this.addOnline = (_ref4 = props === null || props === void 0 ? void 0 : props.addOnline) !== null && _ref4 !== void 0 ? _ref4 : true;
|
|
160
|
+
_this.canEdit = (_ref5 = props === null || props === void 0 ? void 0 : props.canEdit) !== null && _ref5 !== void 0 ? _ref5 : true;
|
|
161
|
+
_this.canDownload = (_ref6 = props === null || props === void 0 ? void 0 : props.canDownload) !== null && _ref6 !== void 0 ? _ref6 : true;
|
|
162
|
+
_this.canExport = (_ref7 = props === null || props === void 0 ? void 0 : props.canExport) !== null && _ref7 !== void 0 ? _ref7 : true;
|
|
163
|
+
_this.canDelete = (_ref8 = props === null || props === void 0 ? void 0 : props.canDelete) !== null && _ref8 !== void 0 ? _ref8 : false;
|
|
164
|
+
_this.maxSize = (_ref9 = props === null || props === void 0 ? void 0 : props.maxSize) !== null && _ref9 !== void 0 ? _ref9 : MB10;
|
|
165
|
+
_this.defaultValue = (_ref10 = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _ref10 !== void 0 ? _ref10 : [];
|
|
176
166
|
_this.wpsSetting = new WPSSetting(props === null || props === void 0 ? void 0 : props.wpsSetting);
|
|
177
|
-
|
|
178
|
-
_this.revisionsMode = (_props_revisionsMode = props === null || props === void 0 ? void 0 : props.revisionsMode) !== null && _props_revisionsMode !== void 0 ? _props_revisionsMode : false;
|
|
167
|
+
_this.revisionsMode = (_ref11 = props === null || props === void 0 ? void 0 : props.revisionsMode) !== null && _ref11 !== void 0 ? _ref11 : false;
|
|
179
168
|
return _this;
|
|
180
169
|
}
|
|
181
170
|
return WPSProperty;
|