@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
|
@@ -125,6 +125,7 @@ var AddressControlPropertyRuntimeRules = /*#__PURE__*/ function(BaseControlPrope
|
|
|
125
125
|
function AddressProperty(props) {
|
|
126
126
|
_class_call_check(this, AddressProperty);
|
|
127
127
|
var _this;
|
|
128
|
+
var _ref, _ref1, _ref2, _ref3, _ref4;
|
|
128
129
|
_this = _call_super(this, AddressProperty, [
|
|
129
130
|
props
|
|
130
131
|
]), /**
|
|
@@ -136,20 +137,15 @@ var AddressControlPropertyRuntimeRules = /*#__PURE__*/ function(BaseControlPrope
|
|
|
136
137
|
* 地址类型
|
|
137
138
|
* @defaultValue ['province', 'city', 'district']
|
|
138
139
|
*/ _define_property(_this, "addressType", void 0);
|
|
139
|
-
|
|
140
|
-
_this.
|
|
141
|
-
|
|
142
|
-
_this.defaultValueType = (_props_defaultValueType = props === null || props === void 0 ? void 0 : props.defaultValueType) !== null && _props_defaultValueType !== void 0 ? _props_defaultValueType : 'default';
|
|
143
|
-
var _props_addressType;
|
|
144
|
-
_this.addressType = (_props_addressType = props === null || props === void 0 ? void 0 : props.addressType) !== null && _props_addressType !== void 0 ? _props_addressType : [
|
|
140
|
+
_this.caption = (_ref = props === null || props === void 0 ? void 0 : props.caption) !== null && _ref !== void 0 ? _ref : AddressControl.controlName;
|
|
141
|
+
_this.defaultValueType = (_ref1 = props === null || props === void 0 ? void 0 : props.defaultValueType) !== null && _ref1 !== void 0 ? _ref1 : 'default';
|
|
142
|
+
_this.addressType = (_ref2 = props === null || props === void 0 ? void 0 : props.addressType) !== null && _ref2 !== void 0 ? _ref2 : [
|
|
145
143
|
'province',
|
|
146
144
|
'city',
|
|
147
145
|
'district'
|
|
148
146
|
];
|
|
149
|
-
|
|
150
|
-
_this.
|
|
151
|
-
var _props_placeholder;
|
|
152
|
-
_this.placeholder = (_props_placeholder = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _props_placeholder !== void 0 ? _props_placeholder : '请选择地址';
|
|
147
|
+
_this.defaultValue = new AddressValue((_ref3 = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _ref3 !== void 0 ? _ref3 : {});
|
|
148
|
+
_this.placeholder = (_ref4 = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _ref4 !== void 0 ? _ref4 : '请选择地址';
|
|
153
149
|
return _this;
|
|
154
150
|
}
|
|
155
151
|
return AddressProperty;
|
|
@@ -202,6 +202,7 @@ var AmountPropertyRuntimeRules = /*#__PURE__*/ function(BaseControlPropertyRunti
|
|
|
202
202
|
function AmountProperty(props) {
|
|
203
203
|
_class_call_check(this, AmountProperty);
|
|
204
204
|
var _this;
|
|
205
|
+
var _ref, _ref1, _ref2, _ref3, _ref4, _ref5, _ref6, _ref7, _ref8, _ref9, _ref10;
|
|
205
206
|
_this = _call_super(this, AmountProperty, [
|
|
206
207
|
props
|
|
207
208
|
]), /**
|
|
@@ -233,39 +234,28 @@ var AmountPropertyRuntimeRules = /*#__PURE__*/ function(BaseControlPropertyRunti
|
|
|
233
234
|
* */ _define_property(_this, "defaultValue", void 0), /**
|
|
234
235
|
* 币种的默认选项
|
|
235
236
|
* */ _define_property(_this, "options", void 0);
|
|
236
|
-
|
|
237
|
-
_this.
|
|
238
|
-
|
|
239
|
-
_this.
|
|
240
|
-
|
|
241
|
-
_this.optionConfig = (_props_optionConfig = props === null || props === void 0 ? void 0 : props.optionConfig) !== null && _props_optionConfig !== void 0 ? _props_optionConfig : 'datasource';
|
|
242
|
-
var _props_micrometer;
|
|
243
|
-
_this.micrometer = (_props_micrometer = props === null || props === void 0 ? void 0 : props.micrometer) !== null && _props_micrometer !== void 0 ? _props_micrometer : false;
|
|
244
|
-
var _props_precision;
|
|
245
|
-
_this.precision = (_props_precision = props === null || props === void 0 ? void 0 : props.precision) !== null && _props_precision !== void 0 ? _props_precision : 2;
|
|
237
|
+
_this.rangeMin = (_ref = props === null || props === void 0 ? void 0 : props.rangeMin) !== null && _ref !== void 0 ? _ref : '';
|
|
238
|
+
_this.rangeMax = (_ref1 = props === null || props === void 0 ? void 0 : props.rangeMax) !== null && _ref1 !== void 0 ? _ref1 : '';
|
|
239
|
+
_this.optionConfig = (_ref2 = props === null || props === void 0 ? void 0 : props.optionConfig) !== null && _ref2 !== void 0 ? _ref2 : 'datasource';
|
|
240
|
+
_this.micrometer = (_ref3 = props === null || props === void 0 ? void 0 : props.micrometer) !== null && _ref3 !== void 0 ? _ref3 : false;
|
|
241
|
+
_this.precision = (_ref4 = props === null || props === void 0 ? void 0 : props.precision) !== null && _ref4 !== void 0 ? _ref4 : 2;
|
|
246
242
|
_this.dataBind = new AmountDataBind(props === null || props === void 0 ? void 0 : props.dataBind);
|
|
247
|
-
|
|
248
|
-
_this.datasourceBind = new DataSourceBind((_props_datasourceBind = props === null || props === void 0 ? void 0 : props.datasourceBind) !== null && _props_datasourceBind !== void 0 ? _props_datasourceBind : {
|
|
243
|
+
_this.datasourceBind = new DataSourceBind((_ref5 = props === null || props === void 0 ? void 0 : props.datasourceBind) !== null && _ref5 !== void 0 ? _ref5 : {
|
|
249
244
|
displayBoList: [
|
|
250
245
|
new DisplayBoListItem({
|
|
251
246
|
value: 'name'
|
|
252
247
|
})
|
|
253
248
|
]
|
|
254
249
|
});
|
|
255
|
-
|
|
256
|
-
_this.defaultValue = new AmountValue((_props_defaultValue = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _props_defaultValue !== void 0 ? _props_defaultValue : {
|
|
250
|
+
_this.defaultValue = new AmountValue((_ref6 = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _ref6 !== void 0 ? _ref6 : {
|
|
257
251
|
amount: '',
|
|
258
252
|
currency: AMOUNT_TYPE.CNY
|
|
259
253
|
});
|
|
260
254
|
_this.options = initOptions(props === null || props === void 0 ? void 0 : props.options);
|
|
261
|
-
|
|
262
|
-
_this.
|
|
263
|
-
|
|
264
|
-
_this.
|
|
265
|
-
var _props_submitSelectCurrency;
|
|
266
|
-
_this.submitSelectCurrency = (_props_submitSelectCurrency = props === null || props === void 0 ? void 0 : props.submitSelectCurrency) !== null && _props_submitSelectCurrency !== void 0 ? _props_submitSelectCurrency : false;
|
|
267
|
-
var _props_showUpperCase;
|
|
268
|
-
_this.showUpperCase = (_props_showUpperCase = props === null || props === void 0 ? void 0 : props.showUpperCase) !== null && _props_showUpperCase !== void 0 ? _props_showUpperCase : false;
|
|
255
|
+
_this.caption = (_ref7 = props === null || props === void 0 ? void 0 : props.caption) !== null && _ref7 !== void 0 ? _ref7 : AmountControl.controlName;
|
|
256
|
+
_this.placeholder = (_ref8 = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _ref8 !== void 0 ? _ref8 : '请输入';
|
|
257
|
+
_this.submitSelectCurrency = (_ref9 = props === null || props === void 0 ? void 0 : props.submitSelectCurrency) !== null && _ref9 !== void 0 ? _ref9 : false;
|
|
258
|
+
_this.showUpperCase = (_ref10 = props === null || props === void 0 ? void 0 : props.showUpperCase) !== null && _ref10 !== void 0 ? _ref10 : false;
|
|
269
259
|
return _this;
|
|
270
260
|
}
|
|
271
261
|
return AmountProperty;
|
|
@@ -1,10 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
* @Author: zhaoxiaoyang zhaoxiaoyang@byteluck.com
|
|
3
|
-
* @Date: 2023-09-14 18:31:51
|
|
4
|
-
* @LastEditors: zhaoxiaoyang zhaoxiaoyang@byteluck.com
|
|
5
|
-
* @LastEditTime: 2023-09-19 15:49:31
|
|
6
|
-
* @FilePath: /model-driven/packages/controls/src/formControls/Attachment/property.ts
|
|
7
|
-
*/ function _assert_this_initialized(self) {
|
|
1
|
+
function _assert_this_initialized(self) {
|
|
8
2
|
if (self === void 0) {
|
|
9
3
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
10
4
|
}
|
|
@@ -76,7 +70,13 @@ function _is_native_reflect_construct() {
|
|
|
76
70
|
return !!result;
|
|
77
71
|
})();
|
|
78
72
|
}
|
|
79
|
-
|
|
73
|
+
/*
|
|
74
|
+
* @Author: zhaoxiaoyang zhaoxiaoyang@byteluck.com
|
|
75
|
+
* @Date: 2023-09-14 18:31:51
|
|
76
|
+
* @LastEditors: zhaoxiaoyang zhaoxiaoyang@byteluck.com
|
|
77
|
+
* @LastEditTime: 2023-09-19 15:49:31
|
|
78
|
+
* @FilePath: /model-driven/packages/controls/src/formControls/Attachment/property.ts
|
|
79
|
+
*/ import AttachmentControl from './designer';
|
|
80
80
|
import { BaseControlProperty, BaseControlPropertyRules, BaseControlPropertyRuntimeRules } from '@byteluck-fe/model-driven-core';
|
|
81
81
|
import { RulesMessage } from '@byteluck-fe/model-driven-shared';
|
|
82
82
|
var MB10 = 10485760;
|
|
@@ -131,6 +131,7 @@ var AttachmentProperty = /*#__PURE__*/ function(BaseControlProperty) {
|
|
|
131
131
|
function AttachmentProperty(props) {
|
|
132
132
|
_class_call_check(this, AttachmentProperty);
|
|
133
133
|
var _this;
|
|
134
|
+
var _ref, _ref1, _ref2, _ref3, _ref4, _ref5, _ref6, _ref7, _ref8, _ref9, _ref10, _ref11, _ref12, _ref13;
|
|
134
135
|
_this = _call_super(this, AttachmentProperty, [
|
|
135
136
|
props
|
|
136
137
|
]), _define_property(_this, "defaultValue", void 0), // 默认格式和列表格式,原应用内是title和table
|
|
@@ -145,34 +146,20 @@ var AttachmentProperty = /*#__PURE__*/ function(BaseControlProperty) {
|
|
|
145
146
|
* default false
|
|
146
147
|
*/ _define_property(_this, "accessControl", void 0), _define_property(_this, "notRepeatFileName", void 0 // 是否禁止上传重复文件名的附件
|
|
147
148
|
);
|
|
148
|
-
|
|
149
|
-
_this.
|
|
150
|
-
|
|
151
|
-
_this.
|
|
152
|
-
|
|
153
|
-
_this.
|
|
154
|
-
|
|
155
|
-
_this.
|
|
156
|
-
|
|
157
|
-
_this.
|
|
158
|
-
|
|
159
|
-
_this.
|
|
160
|
-
|
|
161
|
-
_this.
|
|
162
|
-
var _props_caption;
|
|
163
|
-
_this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : AttachmentControl.controlName;
|
|
164
|
-
var _props_placeholder;
|
|
165
|
-
_this.placeholder = (_props_placeholder = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _props_placeholder !== void 0 ? _props_placeholder : '上传附件';
|
|
166
|
-
var _props_isShowWatermark;
|
|
167
|
-
_this.isShowWatermark = (_props_isShowWatermark = props === null || props === void 0 ? void 0 : props.isShowWatermark) !== null && _props_isShowWatermark !== void 0 ? _props_isShowWatermark : false;
|
|
168
|
-
var _props_watermarkFx;
|
|
169
|
-
_this.watermarkFx = (_props_watermarkFx = props === null || props === void 0 ? void 0 : props.watermarkFx) !== null && _props_watermarkFx !== void 0 ? _props_watermarkFx : {};
|
|
170
|
-
var _props_forbidDownload;
|
|
171
|
-
_this.forbidDownload = (_props_forbidDownload = props === null || props === void 0 ? void 0 : props.forbidDownload) !== null && _props_forbidDownload !== void 0 ? _props_forbidDownload : false;
|
|
172
|
-
var _props_accessControl;
|
|
173
|
-
_this.accessControl = (_props_accessControl = props === null || props === void 0 ? void 0 : props.accessControl) !== null && _props_accessControl !== void 0 ? _props_accessControl : false;
|
|
174
|
-
var _props_notRepeatFileName;
|
|
175
|
-
_this.notRepeatFileName = (_props_notRepeatFileName = props === null || props === void 0 ? void 0 : props.notRepeatFileName) !== null && _props_notRepeatFileName !== void 0 ? _props_notRepeatFileName : false;
|
|
149
|
+
_this.defaultValue = (_ref = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _ref !== void 0 ? _ref : [];
|
|
150
|
+
_this.showType = (_ref1 = props === null || props === void 0 ? void 0 : props.showType) !== null && _ref1 !== void 0 ? _ref1 : 'default';
|
|
151
|
+
_this.resultShowType = (_ref2 = props === null || props === void 0 ? void 0 : props.resultShowType) !== null && _ref2 !== void 0 ? _ref2 : 'simple';
|
|
152
|
+
_this.attachmentAccept = (_ref3 = props === null || props === void 0 ? void 0 : props.attachmentAccept) !== null && _ref3 !== void 0 ? _ref3 : [];
|
|
153
|
+
_this.maxLimit = (_ref4 = props === null || props === void 0 ? void 0 : props.maxLimit) !== null && _ref4 !== void 0 ? _ref4 : 10;
|
|
154
|
+
_this.minLimit = (_ref5 = props === null || props === void 0 ? void 0 : props.minLimit) !== null && _ref5 !== void 0 ? _ref5 : 0;
|
|
155
|
+
_this.maxSize = (_ref6 = props === null || props === void 0 ? void 0 : props.maxSize) !== null && _ref6 !== void 0 ? _ref6 : MB100;
|
|
156
|
+
_this.caption = (_ref7 = props === null || props === void 0 ? void 0 : props.caption) !== null && _ref7 !== void 0 ? _ref7 : AttachmentControl.controlName;
|
|
157
|
+
_this.placeholder = (_ref8 = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _ref8 !== void 0 ? _ref8 : '上传附件';
|
|
158
|
+
_this.isShowWatermark = (_ref9 = props === null || props === void 0 ? void 0 : props.isShowWatermark) !== null && _ref9 !== void 0 ? _ref9 : false;
|
|
159
|
+
_this.watermarkFx = (_ref10 = props === null || props === void 0 ? void 0 : props.watermarkFx) !== null && _ref10 !== void 0 ? _ref10 : {};
|
|
160
|
+
_this.forbidDownload = (_ref11 = props === null || props === void 0 ? void 0 : props.forbidDownload) !== null && _ref11 !== void 0 ? _ref11 : false;
|
|
161
|
+
_this.accessControl = (_ref12 = props === null || props === void 0 ? void 0 : props.accessControl) !== null && _ref12 !== void 0 ? _ref12 : false;
|
|
162
|
+
_this.notRepeatFileName = (_ref13 = props === null || props === void 0 ? void 0 : props.notRepeatFileName) !== null && _ref13 !== void 0 ? _ref13 : false;
|
|
176
163
|
return _this;
|
|
177
164
|
}
|
|
178
165
|
return AttachmentProperty;
|
|
@@ -78,15 +78,13 @@ var AutoNumberProperty = /*#__PURE__*/ function(BaseControlProperty) {
|
|
|
78
78
|
function AutoNumberProperty(props) {
|
|
79
79
|
_class_call_check(this, AutoNumberProperty);
|
|
80
80
|
var _this;
|
|
81
|
+
var _ref, _ref1, _ref2;
|
|
81
82
|
_this = _call_super(this, AutoNumberProperty, [
|
|
82
83
|
props
|
|
83
84
|
]), _define_property(_this, "defaultValue", void 0);
|
|
84
|
-
|
|
85
|
-
_this.
|
|
86
|
-
|
|
87
|
-
_this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : AutoNumberControl.controlName;
|
|
88
|
-
var _props_placeholder;
|
|
89
|
-
_this.placeholder = (_props_placeholder = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _props_placeholder !== void 0 ? _props_placeholder : '请输入自动编号';
|
|
85
|
+
_this.defaultValue = (_ref = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _ref !== void 0 ? _ref : '';
|
|
86
|
+
_this.caption = (_ref1 = props === null || props === void 0 ? void 0 : props.caption) !== null && _ref1 !== void 0 ? _ref1 : AutoNumberControl.controlName;
|
|
87
|
+
_this.placeholder = (_ref2 = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _ref2 !== void 0 ? _ref2 : '请输入自动编号';
|
|
90
88
|
return _this;
|
|
91
89
|
}
|
|
92
90
|
return AutoNumberProperty;
|
|
@@ -130,6 +130,7 @@ var CalcProperty = /*#__PURE__*/ function(BaseControlProperty) {
|
|
|
130
130
|
function CalcProperty(props) {
|
|
131
131
|
_class_call_check(this, CalcProperty);
|
|
132
132
|
var _this;
|
|
133
|
+
var _ref, _ref1, _ref2, _ref3, _ref4, _ref5, _ref6, _ref7;
|
|
133
134
|
_this = _call_super(this, CalcProperty, [
|
|
134
135
|
props
|
|
135
136
|
]), /**
|
|
@@ -154,24 +155,16 @@ var CalcProperty = /*#__PURE__*/ function(BaseControlProperty) {
|
|
|
154
155
|
* */ _define_property(_this, "defaultValue", void 0), /**
|
|
155
156
|
* 页面加载时计算
|
|
156
157
|
* */ _define_property(_this, "calcOnMounted", void 0);
|
|
157
|
-
|
|
158
|
-
_this.
|
|
159
|
-
|
|
160
|
-
_this.micrometer = (_props_micrometer = props === null || props === void 0 ? void 0 : props.micrometer) !== null && _props_micrometer !== void 0 ? _props_micrometer : false;
|
|
161
|
-
var _props_showUpperCase;
|
|
162
|
-
_this.showUpperCase = (_props_showUpperCase = props === null || props === void 0 ? void 0 : props.showUpperCase) !== null && _props_showUpperCase !== void 0 ? _props_showUpperCase : false;
|
|
158
|
+
_this.precision = (_ref = props === null || props === void 0 ? void 0 : props.precision) !== null && _ref !== void 0 ? _ref : 0;
|
|
159
|
+
_this.micrometer = (_ref1 = props === null || props === void 0 ? void 0 : props.micrometer) !== null && _ref1 !== void 0 ? _ref1 : false;
|
|
160
|
+
_this.showUpperCase = (_ref2 = props === null || props === void 0 ? void 0 : props.showUpperCase) !== null && _ref2 !== void 0 ? _ref2 : false;
|
|
163
161
|
_this.dataBind = new CalcDataBind(props === null || props === void 0 ? void 0 : props.dataBind);
|
|
164
162
|
_this.defaultValue = new CalcValue(props === null || props === void 0 ? void 0 : props.defaultValue);
|
|
165
|
-
|
|
166
|
-
_this.
|
|
167
|
-
|
|
168
|
-
_this.
|
|
169
|
-
|
|
170
|
-
_this.scriptEcho = (_props_scriptEcho = props === null || props === void 0 ? void 0 : props.scriptEcho) !== null && _props_scriptEcho !== void 0 ? _props_scriptEcho : [];
|
|
171
|
-
var _props_scriptSrc;
|
|
172
|
-
_this.scriptSrc = (_props_scriptSrc = props === null || props === void 0 ? void 0 : props.scriptSrc) !== null && _props_scriptSrc !== void 0 ? _props_scriptSrc : '';
|
|
173
|
-
var _props_calcOnMounted;
|
|
174
|
-
_this.calcOnMounted = (_props_calcOnMounted = props === null || props === void 0 ? void 0 : props.calcOnMounted) !== null && _props_calcOnMounted !== void 0 ? _props_calcOnMounted : false;
|
|
163
|
+
_this.caption = (_ref3 = props === null || props === void 0 ? void 0 : props.caption) !== null && _ref3 !== void 0 ? _ref3 : AmountControl.controlName;
|
|
164
|
+
_this.placeholder = (_ref4 = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _ref4 !== void 0 ? _ref4 : '请输入';
|
|
165
|
+
_this.scriptEcho = (_ref5 = props === null || props === void 0 ? void 0 : props.scriptEcho) !== null && _ref5 !== void 0 ? _ref5 : [];
|
|
166
|
+
_this.scriptSrc = (_ref6 = props === null || props === void 0 ? void 0 : props.scriptSrc) !== null && _ref6 !== void 0 ? _ref6 : '';
|
|
167
|
+
_this.calcOnMounted = (_ref7 = props === null || props === void 0 ? void 0 : props.calcOnMounted) !== null && _ref7 !== void 0 ? _ref7 : false;
|
|
175
168
|
return _this;
|
|
176
169
|
}
|
|
177
170
|
return CalcProperty;
|
|
@@ -90,7 +90,7 @@ var CheckboxPropertyRules = /*#__PURE__*/ function(OptionAndDataSourcePropertyRu
|
|
|
90
90
|
if (unlimitedMax) {
|
|
91
91
|
_this.limitMax.type = 'string';
|
|
92
92
|
}
|
|
93
|
-
var isUnlimited = function(value) {
|
|
93
|
+
var isUnlimited = function isUnlimited(value) {
|
|
94
94
|
return value === 'unlimited' ? undefined : value;
|
|
95
95
|
};
|
|
96
96
|
_this.limitMax.min = isUnlimited(props.limitMin);
|
|
@@ -125,6 +125,7 @@ var CheckboxProperty = /*#__PURE__*/ function(BaseControlProperty) {
|
|
|
125
125
|
function CheckboxProperty(props) {
|
|
126
126
|
_class_call_check(this, CheckboxProperty);
|
|
127
127
|
var _this;
|
|
128
|
+
var _ref, _ref1, _ref2, _ref3, _ref4, _ref5, _ref6, _ref7, _ref8, _ref9, _ref10, _ref11, _ref12;
|
|
128
129
|
_this = _call_super(this, CheckboxProperty, [
|
|
129
130
|
props
|
|
130
131
|
]), _define_property(_this, "checkboxMode", void 0 // 选项排列方式 horizontal默认
|
|
@@ -137,8 +138,7 @@ var CheckboxProperty = /*#__PURE__*/ function(BaseControlProperty) {
|
|
|
137
138
|
), _define_property(_this, "defaultShowOptions", void 0), _define_property(_this, "datasourceBind", void 0), _define_property(_this, "multistageFilling", void 0), _define_property(_this, "interreaction", void 0 // 数据联动
|
|
138
139
|
), _define_property(_this, "defaultValue", void 0), _define_property(_this, "openMultistageFilling", void 0 //是否开启填充
|
|
139
140
|
);
|
|
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,31 +152,19 @@ var CheckboxProperty = /*#__PURE__*/ function(BaseControlProperty) {
|
|
|
152
152
|
value: '选项三'
|
|
153
153
|
}
|
|
154
154
|
]);
|
|
155
|
-
|
|
156
|
-
_this.
|
|
157
|
-
|
|
158
|
-
_this.
|
|
159
|
-
|
|
160
|
-
_this.
|
|
161
|
-
var _props_otherOption;
|
|
162
|
-
_this.otherOption = (_props_otherOption = props === null || props === void 0 ? void 0 : props.otherOption) !== null && _props_otherOption !== void 0 ? _props_otherOption : false;
|
|
163
|
-
var _props_limitMin;
|
|
164
|
-
_this.limitMin = (_props_limitMin = props === null || props === void 0 ? void 0 : props.limitMin) !== null && _props_limitMin !== void 0 ? _props_limitMin : 'unlimited';
|
|
165
|
-
var _props_limitMax;
|
|
166
|
-
_this.limitMax = (_props_limitMax = props === null || props === void 0 ? void 0 : props.limitMax) !== null && _props_limitMax !== void 0 ? _props_limitMax : 'unlimited';
|
|
155
|
+
_this.checkboxMode = (_ref1 = props === null || props === void 0 ? void 0 : props.checkboxMode) !== null && _ref1 !== void 0 ? _ref1 : 'horizontal';
|
|
156
|
+
_this.optionConfig = (_ref2 = props === null || props === void 0 ? void 0 : props.optionConfig) !== null && _ref2 !== void 0 ? _ref2 : 'custom';
|
|
157
|
+
_this.optionsOrder = (_ref3 = props === null || props === void 0 ? void 0 : props.optionsOrder) !== null && _ref3 !== void 0 ? _ref3 : false;
|
|
158
|
+
_this.otherOption = (_ref4 = props === null || props === void 0 ? void 0 : props.otherOption) !== null && _ref4 !== void 0 ? _ref4 : false;
|
|
159
|
+
_this.limitMin = (_ref5 = props === null || props === void 0 ? void 0 : props.limitMin) !== null && _ref5 !== void 0 ? _ref5 : 'unlimited';
|
|
160
|
+
_this.limitMax = (_ref6 = props === null || props === void 0 ? void 0 : props.limitMax) !== null && _ref6 !== void 0 ? _ref6 : 'unlimited';
|
|
167
161
|
_this.datasourceBind = new DataSourceBind(props === null || props === void 0 ? void 0 : props.datasourceBind);
|
|
168
|
-
|
|
169
|
-
_this.
|
|
170
|
-
|
|
171
|
-
_this.
|
|
172
|
-
|
|
173
|
-
_this.
|
|
174
|
-
var _props_optionsFormat;
|
|
175
|
-
_this.optionsFormat = (_props_optionsFormat = props === null || props === void 0 ? void 0 : props.optionsFormat) !== null && _props_optionsFormat !== void 0 ? _props_optionsFormat : 'horizontal';
|
|
176
|
-
var _props_defaultShowOptions;
|
|
177
|
-
_this.defaultShowOptions = (_props_defaultShowOptions = props === null || props === void 0 ? void 0 : props.defaultShowOptions) !== null && _props_defaultShowOptions !== void 0 ? _props_defaultShowOptions : true;
|
|
178
|
-
var _props_openMultistageFilling;
|
|
179
|
-
_this.openMultistageFilling = (_props_openMultistageFilling = props === null || props === void 0 ? void 0 : props.openMultistageFilling) !== null && _props_openMultistageFilling !== void 0 ? _props_openMultistageFilling : false;
|
|
162
|
+
_this.interreaction = (_ref7 = props === null || props === void 0 ? void 0 : props.interreaction) !== null && _ref7 !== void 0 ? _ref7 : [];
|
|
163
|
+
_this.caption = (_ref8 = props === null || props === void 0 ? void 0 : props.caption) !== null && _ref8 !== void 0 ? _ref8 : CheckboxControl.controlName;
|
|
164
|
+
_this.defaultValue = (_ref9 = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _ref9 !== void 0 ? _ref9 : [];
|
|
165
|
+
_this.optionsFormat = (_ref10 = props === null || props === void 0 ? void 0 : props.optionsFormat) !== null && _ref10 !== void 0 ? _ref10 : 'horizontal';
|
|
166
|
+
_this.defaultShowOptions = (_ref11 = props === null || props === void 0 ? void 0 : props.defaultShowOptions) !== null && _ref11 !== void 0 ? _ref11 : true;
|
|
167
|
+
_this.openMultistageFilling = (_ref12 = props === null || props === void 0 ? void 0 : props.openMultistageFilling) !== null && _ref12 !== void 0 ? _ref12 : false;
|
|
180
168
|
_this.multistageFilling = [];
|
|
181
169
|
if (Array.isArray(props === null || props === void 0 ? void 0 : props.multistageFilling)) {
|
|
182
170
|
props === null || props === void 0 ? void 0 : props.multistageFilling.map(function(item) {
|
|
@@ -80,6 +80,7 @@ var DatePickerProperty = /*#__PURE__*/ function(BaseControlProperty) {
|
|
|
80
80
|
function DatePickerProperty(props) {
|
|
81
81
|
_class_call_check(this, DatePickerProperty);
|
|
82
82
|
var _this;
|
|
83
|
+
var _ref, _ref1, _ref2, _ref3, _ref4, _ref5, _ref6, _ref7, _ref8, _ref9;
|
|
83
84
|
var _props_limitDateList;
|
|
84
85
|
_this = _call_super(this, DatePickerProperty, [
|
|
85
86
|
props
|
|
@@ -92,32 +93,22 @@ var DatePickerProperty = /*#__PURE__*/ function(BaseControlProperty) {
|
|
|
92
93
|
_define_property(_this, "allowDateRange", void 0 // 允许选中多个日期范围
|
|
93
94
|
), _define_property(_this, "filterWeekend", void 0 // 是否过滤周末
|
|
94
95
|
);
|
|
95
|
-
|
|
96
|
-
_this.
|
|
97
|
-
|
|
98
|
-
_this.
|
|
99
|
-
|
|
100
|
-
_this.
|
|
101
|
-
|
|
102
|
-
_this.
|
|
103
|
-
var _props_caption;
|
|
104
|
-
_this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : DatePickerControl.controlName;
|
|
105
|
-
var _props_placeholder;
|
|
106
|
-
_this.placeholder = (_props_placeholder = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _props_placeholder !== void 0 ? _props_placeholder : '请输入日期';
|
|
107
|
-
var _props_defaultValue;
|
|
108
|
-
_this.defaultValue = (_props_defaultValue = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _props_defaultValue !== void 0 ? _props_defaultValue : '';
|
|
109
|
-
var _props_limitDateList_map;
|
|
110
|
-
_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) {
|
|
96
|
+
_this.dateType = (_ref = props === null || props === void 0 ? void 0 : props.dateType) !== null && _ref !== void 0 ? _ref : DateType.DATE;
|
|
97
|
+
_this.dateFormat = (_ref1 = props === null || props === void 0 ? void 0 : props.dateFormat) !== null && _ref1 !== void 0 ? _ref1 : '';
|
|
98
|
+
_this.commonTimeSetting = (_ref2 = props === null || props === void 0 ? void 0 : props.commonTimeSetting) !== null && _ref2 !== void 0 ? _ref2 : [];
|
|
99
|
+
_this.setValueType = (_ref3 = props === null || props === void 0 ? void 0 : props.setValueType) !== null && _ref3 !== void 0 ? _ref3 : 'custom';
|
|
100
|
+
_this.caption = (_ref4 = props === null || props === void 0 ? void 0 : props.caption) !== null && _ref4 !== void 0 ? _ref4 : DatePickerControl.controlName;
|
|
101
|
+
_this.placeholder = (_ref5 = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _ref5 !== void 0 ? _ref5 : '请输入日期';
|
|
102
|
+
_this.defaultValue = (_ref6 = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _ref6 !== void 0 ? _ref6 : '';
|
|
103
|
+
_this.limitDateList = (_ref7 = props === null || props === void 0 ? void 0 : (_props_limitDateList = props.limitDateList) === null || _props_limitDateList === void 0 ? void 0 : _props_limitDateList.map(function(item) {
|
|
111
104
|
return new LimitDate(item);
|
|
112
|
-
})) !== null &&
|
|
113
|
-
var _props_allowDateRange;
|
|
105
|
+
})) !== null && _ref7 !== void 0 ? _ref7 : [];
|
|
114
106
|
// this.multiple = props?.multiple ?? false
|
|
115
|
-
_this.allowDateRange = (
|
|
107
|
+
_this.allowDateRange = (_ref8 = props === null || props === void 0 ? void 0 : props.allowDateRange) !== null && _ref8 !== void 0 ? _ref8 : [
|
|
116
108
|
'',
|
|
117
109
|
''
|
|
118
110
|
];
|
|
119
|
-
|
|
120
|
-
_this.filterWeekend = (_props_filterWeekend = props === null || props === void 0 ? void 0 : props.filterWeekend) !== null && _props_filterWeekend !== void 0 ? _props_filterWeekend : false;
|
|
111
|
+
_this.filterWeekend = (_ref9 = props === null || props === void 0 ? void 0 : props.filterWeekend) !== null && _ref9 !== void 0 ? _ref9 : false;
|
|
121
112
|
return _this;
|
|
122
113
|
}
|
|
123
114
|
return DatePickerProperty;
|
|
@@ -116,6 +116,7 @@ var DateRangePropertyRuntimeRules = /*#__PURE__*/ function(BaseControlPropertyRu
|
|
|
116
116
|
function DateRangeProperty(props) {
|
|
117
117
|
_class_call_check(this, DateRangeProperty);
|
|
118
118
|
var _this;
|
|
119
|
+
var _ref, _ref1, _ref2, _ref3, _ref4, _ref5, _ref6, _ref7, _ref8, _ref9;
|
|
119
120
|
var _props_limitDateList;
|
|
120
121
|
_this = _call_super(this, DateRangeProperty, [
|
|
121
122
|
props
|
|
@@ -164,28 +165,18 @@ var DateRangePropertyRuntimeRules = /*#__PURE__*/ function(BaseControlPropertyRu
|
|
|
164
165
|
*/ _define_property(_this, "limitDateList", void 0);
|
|
165
166
|
_this.dataBind = new RangeDataBind(props === null || props === void 0 ? void 0 : props.dataBind);
|
|
166
167
|
_this.defaultValue = new RangeDateValue(props === null || props === void 0 ? void 0 : props.defaultValue);
|
|
167
|
-
|
|
168
|
-
_this.
|
|
169
|
-
|
|
170
|
-
_this.
|
|
171
|
-
|
|
172
|
-
_this.
|
|
173
|
-
|
|
174
|
-
_this.
|
|
175
|
-
|
|
176
|
-
_this.
|
|
177
|
-
var _props_rangeMax;
|
|
178
|
-
_this.rangeMax = (_props_rangeMax = props === null || props === void 0 ? void 0 : props.rangeMax) !== null && _props_rangeMax !== void 0 ? _props_rangeMax : '';
|
|
179
|
-
var _props_placeholderStart;
|
|
180
|
-
_this.placeholderStart = (_props_placeholderStart = props === null || props === void 0 ? void 0 : props.placeholderStart) !== null && _props_placeholderStart !== void 0 ? _props_placeholderStart : '请选择开始日期';
|
|
181
|
-
var _props_placeholderEnd;
|
|
182
|
-
_this.placeholderEnd = (_props_placeholderEnd = props === null || props === void 0 ? void 0 : props.placeholderEnd) !== null && _props_placeholderEnd !== void 0 ? _props_placeholderEnd : '请选择结束日期';
|
|
183
|
-
var _props_caption;
|
|
184
|
-
_this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : DateRangeControl.controlName;
|
|
185
|
-
var _props_limitDateList_map;
|
|
186
|
-
_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) {
|
|
168
|
+
_this.dateType = (_ref = props === null || props === void 0 ? void 0 : props.dateType) !== null && _ref !== void 0 ? _ref : DateType.DATE;
|
|
169
|
+
_this.dateFormat = (_ref1 = props === null || props === void 0 ? void 0 : props.dateFormat) !== null && _ref1 !== void 0 ? _ref1 : '';
|
|
170
|
+
_this.commonTimeSetting = (_ref2 = props === null || props === void 0 ? void 0 : props.commonTimeSetting) !== null && _ref2 !== void 0 ? _ref2 : [];
|
|
171
|
+
_this.setValueType = (_ref3 = props === null || props === void 0 ? void 0 : props.setValueType) !== null && _ref3 !== void 0 ? _ref3 : 'custom';
|
|
172
|
+
_this.rangeMin = (_ref4 = props === null || props === void 0 ? void 0 : props.rangeMin) !== null && _ref4 !== void 0 ? _ref4 : '';
|
|
173
|
+
_this.rangeMax = (_ref5 = props === null || props === void 0 ? void 0 : props.rangeMax) !== null && _ref5 !== void 0 ? _ref5 : '';
|
|
174
|
+
_this.placeholderStart = (_ref6 = props === null || props === void 0 ? void 0 : props.placeholderStart) !== null && _ref6 !== void 0 ? _ref6 : '请选择开始日期';
|
|
175
|
+
_this.placeholderEnd = (_ref7 = props === null || props === void 0 ? void 0 : props.placeholderEnd) !== null && _ref7 !== void 0 ? _ref7 : '请选择结束日期';
|
|
176
|
+
_this.caption = (_ref8 = props === null || props === void 0 ? void 0 : props.caption) !== null && _ref8 !== void 0 ? _ref8 : DateRangeControl.controlName;
|
|
177
|
+
_this.limitDateList = (_ref9 = props === null || props === void 0 ? void 0 : (_props_limitDateList = props.limitDateList) === null || _props_limitDateList === void 0 ? void 0 : _props_limitDateList.map(function(item) {
|
|
187
178
|
return new LimitDate(item);
|
|
188
|
-
})) !== null &&
|
|
179
|
+
})) !== null && _ref9 !== void 0 ? _ref9 : [];
|
|
189
180
|
return _this;
|
|
190
181
|
}
|
|
191
182
|
return DateRangeProperty;
|
|
@@ -94,6 +94,7 @@ var DepartmentProperty = /*#__PURE__*/ function(BaseControlProperty) {
|
|
|
94
94
|
function DepartmentProperty(props) {
|
|
95
95
|
_class_call_check(this, DepartmentProperty);
|
|
96
96
|
var _this;
|
|
97
|
+
var _ref, _ref1, _ref2, _ref3, _ref4, _ref5, _ref6, _ref7, _ref8, _ref9, _ref10;
|
|
97
98
|
_this = _call_super(this, DepartmentProperty, [
|
|
98
99
|
props
|
|
99
100
|
]), /**
|
|
@@ -116,28 +117,17 @@ var DepartmentProperty = /*#__PURE__*/ function(BaseControlProperty) {
|
|
|
116
117
|
* 多级填充
|
|
117
118
|
* */ _define_property(_this, "multistageFilling", void 0), _define_property(_this, "openMultistageFilling", void 0 //是否开启填充
|
|
118
119
|
);
|
|
119
|
-
|
|
120
|
-
_this.
|
|
121
|
-
|
|
122
|
-
_this.
|
|
123
|
-
|
|
124
|
-
_this.
|
|
125
|
-
|
|
126
|
-
_this.
|
|
127
|
-
|
|
128
|
-
_this.
|
|
129
|
-
|
|
130
|
-
_this.defaultValue = (_props_defaultValue = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _props_defaultValue !== void 0 ? _props_defaultValue : [];
|
|
131
|
-
var _props_displayLevel;
|
|
132
|
-
_this.displayLevel = (_props_displayLevel = props === null || props === void 0 ? void 0 : props.displayLevel) !== null && _props_displayLevel !== void 0 ? _props_displayLevel : 1;
|
|
133
|
-
var _props_showSubDept;
|
|
134
|
-
_this.showSubDept = (_props_showSubDept = props === null || props === void 0 ? void 0 : props.showSubDept) !== null && _props_showSubDept !== void 0 ? _props_showSubDept : true;
|
|
135
|
-
var _props_caption;
|
|
136
|
-
_this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : DepartmentControl.controlName;
|
|
137
|
-
var _props_placeholder;
|
|
138
|
-
_this.placeholder = (_props_placeholder = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _props_placeholder !== void 0 ? _props_placeholder : '请选择部门';
|
|
139
|
-
var _props_openMultistageFilling;
|
|
140
|
-
_this.openMultistageFilling = (_props_openMultistageFilling = props === null || props === void 0 ? void 0 : props.openMultistageFilling) !== null && _props_openMultistageFilling !== void 0 ? _props_openMultistageFilling : false;
|
|
120
|
+
_this.showType = (_ref = props === null || props === void 0 ? void 0 : props.showType) !== null && _ref !== void 0 ? _ref : 'default';
|
|
121
|
+
_this.multiple = (_ref1 = props === null || props === void 0 ? void 0 : props.multiple) !== null && _ref1 !== void 0 ? _ref1 : false;
|
|
122
|
+
_this.range = (_ref2 = props === null || props === void 0 ? void 0 : props.range) !== null && _ref2 !== void 0 ? _ref2 : 'all';
|
|
123
|
+
_this.defaultValueType = (_ref3 = props === null || props === void 0 ? void 0 : props.defaultValueType) !== null && _ref3 !== void 0 ? _ref3 : 'none';
|
|
124
|
+
_this.rangeOptions = (_ref4 = props === null || props === void 0 ? void 0 : props.rangeOptions) !== null && _ref4 !== void 0 ? _ref4 : [];
|
|
125
|
+
_this.defaultValue = (_ref5 = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _ref5 !== void 0 ? _ref5 : [];
|
|
126
|
+
_this.displayLevel = (_ref6 = props === null || props === void 0 ? void 0 : props.displayLevel) !== null && _ref6 !== void 0 ? _ref6 : 1;
|
|
127
|
+
_this.showSubDept = (_ref7 = props === null || props === void 0 ? void 0 : props.showSubDept) !== null && _ref7 !== void 0 ? _ref7 : true;
|
|
128
|
+
_this.caption = (_ref8 = props === null || props === void 0 ? void 0 : props.caption) !== null && _ref8 !== void 0 ? _ref8 : DepartmentControl.controlName;
|
|
129
|
+
_this.placeholder = (_ref9 = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _ref9 !== void 0 ? _ref9 : '请选择部门';
|
|
130
|
+
_this.openMultistageFilling = (_ref10 = props === null || props === void 0 ? void 0 : props.openMultistageFilling) !== null && _ref10 !== void 0 ? _ref10 : false;
|
|
141
131
|
_this.multistageFilling = [];
|
|
142
132
|
if (Array.isArray(props === null || props === void 0 ? void 0 : props.multistageFilling)) {
|
|
143
133
|
props === null || props === void 0 ? void 0 : props.multistageFilling.map(function(item) {
|
|
@@ -124,6 +124,7 @@ var Department2Property = /*#__PURE__*/ function(BaseControlProperty) {
|
|
|
124
124
|
function Department2Property(props) {
|
|
125
125
|
_class_call_check(this, Department2Property);
|
|
126
126
|
var _this;
|
|
127
|
+
var _ref, _ref1, _ref2, _ref3, _ref4, _ref5, _ref6, _ref7, _ref8, _ref9, _ref10, _ref11, _ref12, _ref13, _ref14, _ref15;
|
|
127
128
|
_this = _call_super(this, Department2Property, [
|
|
128
129
|
props
|
|
129
130
|
]), /**
|
|
@@ -155,38 +156,23 @@ var Department2Property = /*#__PURE__*/ function(BaseControlProperty) {
|
|
|
155
156
|
), /**
|
|
156
157
|
* 可选部门层级
|
|
157
158
|
* */ _define_property(_this, "limitLevel", void 0);
|
|
158
|
-
|
|
159
|
-
_this.
|
|
160
|
-
|
|
161
|
-
_this.
|
|
162
|
-
|
|
163
|
-
_this.
|
|
164
|
-
|
|
165
|
-
_this.
|
|
166
|
-
|
|
167
|
-
_this.
|
|
168
|
-
|
|
169
|
-
_this.defaultValue = (_props_defaultValue = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _props_defaultValue !== void 0 ? _props_defaultValue : [];
|
|
170
|
-
var _props_displayLevel;
|
|
171
|
-
_this.displayLevel = (_props_displayLevel = props === null || props === void 0 ? void 0 : props.displayLevel) !== null && _props_displayLevel !== void 0 ? _props_displayLevel : 1;
|
|
172
|
-
var _props_showSubDept;
|
|
173
|
-
_this.showSubDept = (_props_showSubDept = props === null || props === void 0 ? void 0 : props.showSubDept) !== null && _props_showSubDept !== void 0 ? _props_showSubDept : true;
|
|
174
|
-
var _props_caption;
|
|
175
|
-
_this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : Department2Control.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_datasourceBind;
|
|
179
|
-
_this.datasourceBind = new SuperDataSourceBind((_props_datasourceBind = props === null || props === void 0 ? void 0 : props.datasourceBind) !== null && _props_datasourceBind !== void 0 ? _props_datasourceBind : {
|
|
159
|
+
_this.showType = (_ref = props === null || props === void 0 ? void 0 : props.showType) !== null && _ref !== void 0 ? _ref : 'default';
|
|
160
|
+
_this.multiple = (_ref1 = props === null || props === void 0 ? void 0 : props.multiple) !== null && _ref1 !== void 0 ? _ref1 : false;
|
|
161
|
+
_this.range = (_ref2 = props === null || props === void 0 ? void 0 : props.range) !== null && _ref2 !== void 0 ? _ref2 : 'all';
|
|
162
|
+
_this.defaultValueType = (_ref3 = props === null || props === void 0 ? void 0 : props.defaultValueType) !== null && _ref3 !== void 0 ? _ref3 : 'none';
|
|
163
|
+
_this.rangeOptions = (_ref4 = props === null || props === void 0 ? void 0 : props.rangeOptions) !== null && _ref4 !== void 0 ? _ref4 : [];
|
|
164
|
+
_this.defaultValue = (_ref5 = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _ref5 !== void 0 ? _ref5 : [];
|
|
165
|
+
_this.displayLevel = (_ref6 = props === null || props === void 0 ? void 0 : props.displayLevel) !== null && _ref6 !== void 0 ? _ref6 : 1;
|
|
166
|
+
_this.showSubDept = (_ref7 = props === null || props === void 0 ? void 0 : props.showSubDept) !== null && _ref7 !== void 0 ? _ref7 : true;
|
|
167
|
+
_this.caption = (_ref8 = props === null || props === void 0 ? void 0 : props.caption) !== null && _ref8 !== void 0 ? _ref8 : Department2Control.controlName;
|
|
168
|
+
_this.placeholder = (_ref9 = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _ref9 !== void 0 ? _ref9 : '请选择部门';
|
|
169
|
+
_this.datasourceBind = new SuperDataSourceBind((_ref10 = props === null || props === void 0 ? void 0 : props.datasourceBind) !== null && _ref10 !== void 0 ? _ref10 : {
|
|
180
170
|
attributes: Department2Control.controlCustomAttributes
|
|
181
171
|
});
|
|
182
|
-
|
|
183
|
-
_this.
|
|
184
|
-
|
|
185
|
-
_this.
|
|
186
|
-
var _props_businessType;
|
|
187
|
-
_this.businessType = (_props_businessType = props === null || props === void 0 ? void 0 : props.businessType) !== null && _props_businessType !== void 0 ? _props_businessType : AssignType.ALL;
|
|
188
|
-
var _props_openMultistageFilling;
|
|
189
|
-
_this.openMultistageFilling = (_props_openMultistageFilling = props === null || props === void 0 ? void 0 : props.openMultistageFilling) !== null && _props_openMultistageFilling !== void 0 ? _props_openMultistageFilling : false;
|
|
172
|
+
_this.datasourceType = (_ref11 = props === null || props === void 0 ? void 0 : props.datasourceType) !== null && _ref11 !== void 0 ? _ref11 : DepartmentType.INTERNAL;
|
|
173
|
+
_this.businessScope = (_ref12 = props === null || props === void 0 ? void 0 : props.businessScope) !== null && _ref12 !== void 0 ? _ref12 : [];
|
|
174
|
+
_this.businessType = (_ref13 = props === null || props === void 0 ? void 0 : props.businessType) !== null && _ref13 !== void 0 ? _ref13 : AssignType.ALL;
|
|
175
|
+
_this.openMultistageFilling = (_ref14 = props === null || props === void 0 ? void 0 : props.openMultistageFilling) !== null && _ref14 !== void 0 ? _ref14 : false;
|
|
190
176
|
_this.multistageFilling = [];
|
|
191
177
|
if (Array.isArray(props === null || props === void 0 ? void 0 : props.multistageFilling)) {
|
|
192
178
|
props === null || props === void 0 ? void 0 : props.multistageFilling.map(function(item) {
|
|
@@ -194,8 +180,7 @@ var Department2Property = /*#__PURE__*/ function(BaseControlProperty) {
|
|
|
194
180
|
(_this_multistageFilling = _this.multistageFilling) === null || _this_multistageFilling === void 0 ? void 0 : _this_multistageFilling.push(new MultistageFillingItem(item));
|
|
195
181
|
});
|
|
196
182
|
}
|
|
197
|
-
|
|
198
|
-
_this.limitLevel = (_props_limitLevel = props === null || props === void 0 ? void 0 : props.limitLevel) !== null && _props_limitLevel !== void 0 ? _props_limitLevel : undefined;
|
|
183
|
+
_this.limitLevel = (_ref15 = props === null || props === void 0 ? void 0 : props.limitLevel) !== null && _ref15 !== void 0 ? _ref15 : undefined;
|
|
199
184
|
return _this;
|
|
200
185
|
}
|
|
201
186
|
return Department2Property;
|
|
@@ -170,21 +170,16 @@ var ElectronicSignatureProperty = /*#__PURE__*/ function(BaseControlProperty) {
|
|
|
170
170
|
function ElectronicSignatureProperty(props) {
|
|
171
171
|
_class_call_check(this, ElectronicSignatureProperty);
|
|
172
172
|
var _this;
|
|
173
|
+
var _ref, _ref1, _ref2, _ref3, _ref4, _ref5;
|
|
173
174
|
_this = _call_super(this, ElectronicSignatureProperty, [
|
|
174
175
|
props
|
|
175
176
|
]), _define_property(_this, "buttonType", void 0), _define_property(_this, "content", void 0), _define_property(_this, "showType", void 0), _define_property(_this, "color", void 0), _define_property(_this, "icon", void 0), _define_property(_this, "command", ''), _define_property(_this, "isLoading", false), _define_property(_this, "signatureConfig", void 0);
|
|
176
|
-
|
|
177
|
-
_this.
|
|
178
|
-
|
|
179
|
-
_this.
|
|
180
|
-
|
|
181
|
-
_this.
|
|
182
|
-
var _props_showType;
|
|
183
|
-
_this.showType = (_props_showType = props === null || props === void 0 ? void 0 : props.showType) !== null && _props_showType !== void 0 ? _props_showType : 'text';
|
|
184
|
-
var _props_color;
|
|
185
|
-
_this.color = (_props_color = props === null || props === void 0 ? void 0 : props.color) !== null && _props_color !== void 0 ? _props_color : 'primary';
|
|
186
|
-
var _props_icon;
|
|
187
|
-
_this.icon = (_props_icon = props === null || props === void 0 ? void 0 : props.icon) !== null && _props_icon !== void 0 ? _props_icon : 'iconfenlei2';
|
|
177
|
+
_this.caption = (_ref = props === null || props === void 0 ? void 0 : props.caption) !== null && _ref !== void 0 ? _ref : ElectronicSignatureControl.controlName;
|
|
178
|
+
_this.content = (_ref1 = props === null || props === void 0 ? void 0 : props.content) !== null && _ref1 !== void 0 ? _ref1 : '发起签署';
|
|
179
|
+
_this.buttonType = (_ref2 = props === null || props === void 0 ? void 0 : props.buttonType) !== null && _ref2 !== void 0 ? _ref2 : 'primary';
|
|
180
|
+
_this.showType = (_ref3 = props === null || props === void 0 ? void 0 : props.showType) !== null && _ref3 !== void 0 ? _ref3 : 'text';
|
|
181
|
+
_this.color = (_ref4 = props === null || props === void 0 ? void 0 : props.color) !== null && _ref4 !== void 0 ? _ref4 : 'primary';
|
|
182
|
+
_this.icon = (_ref5 = props === null || props === void 0 ? void 0 : props.icon) !== null && _ref5 !== void 0 ? _ref5 : 'iconfenlei2';
|
|
188
183
|
_this.signatureConfig = new ElectronicSignatureConfig(props === null || props === void 0 ? void 0 : props.signatureConfig);
|
|
189
184
|
return _this;
|
|
190
185
|
}
|