@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.
Files changed (104) hide show
  1. package/dist/esm/baseControls/BatchDeleteButton/property.js +10 -18
  2. package/dist/esm/baseControls/BatchPrintListButton/property.js +6 -9
  3. package/dist/esm/baseControls/BatchPrintRecordListButton/property.js +3 -4
  4. package/dist/esm/baseControls/BatchSubmissionListButton/property.js +7 -12
  5. package/dist/esm/baseControls/Button/property.js +10 -18
  6. package/dist/esm/baseControls/CreateFormListButton/property.js +5 -8
  7. package/dist/esm/baseControls/Dashboard/property.js +7 -12
  8. package/dist/esm/baseControls/Divider/property.js +4 -5
  9. package/dist/esm/baseControls/ExportListButton/property.js +6 -9
  10. package/dist/esm/baseControls/ExportRecordListButton/property.js +3 -4
  11. package/dist/esm/baseControls/FormSelectButton/property.js +5 -8
  12. package/dist/esm/baseControls/ImportRecordListButton/designer.js +4 -0
  13. package/dist/esm/baseControls/ImportRecordListButton/property.js +10 -10
  14. package/dist/esm/baseControls/InvoiceCheckButton/property.js +11 -19
  15. package/dist/esm/baseControls/ListSelectButton/property.js +5 -8
  16. package/dist/esm/baseControls/ListViewSelect/property.js +4 -5
  17. package/dist/esm/baseControls/OperationButton/property.js +6 -10
  18. package/dist/esm/baseControls/SubmissionRecordListButton/property.js +3 -4
  19. package/dist/esm/baseControls/Text/property.js +7 -12
  20. package/dist/esm/baseControls/TextOcrButton/property.js +11 -19
  21. package/dist/esm/baseControls/Title/property.js +7 -12
  22. package/dist/esm/columnControls/ApprovalStatusColumn/property.js +4 -6
  23. package/dist/esm/columnControls/ArrayColumn/property.js +5 -8
  24. package/dist/esm/columnControls/AutoNumberColumn/property.js +3 -4
  25. package/dist/esm/columnControls/CustomColumn/designer.js +1 -0
  26. package/dist/esm/columnControls/CustomColumn/property.js +4 -6
  27. package/dist/esm/columnControls/DecimalColumn/property.js +8 -14
  28. package/dist/esm/columnControls/DepartmentColumn/property.js +3 -4
  29. package/dist/esm/columnControls/EmployeeColumn/property.js +3 -4
  30. package/dist/esm/columnControls/FileColumn/designer.js +8 -8
  31. package/dist/esm/columnControls/FileColumn/property.js +2 -2
  32. package/dist/esm/columnControls/ImageColumn/property.js +2 -2
  33. package/dist/esm/columnControls/LocationColumn/property.js +3 -4
  34. package/dist/esm/columnControls/OperationColumn/designer.js +12 -4
  35. package/dist/esm/columnControls/OperationColumn/property.js +6 -10
  36. package/dist/esm/columnControls/OrderColumn/property.js +7 -12
  37. package/dist/esm/columnControls/PeopleColumn/property.js +2 -2
  38. package/dist/esm/columnControls/TextColumn/property.js +5 -8
  39. package/dist/esm/columnControls/TimescopeColumn/property.js +4 -6
  40. package/dist/esm/columnControls/TimestampColumn/property.js +4 -6
  41. package/dist/esm/columnControls/VarcharColumn/property.js +7 -12
  42. package/dist/esm/formControls/Address/property.js +6 -10
  43. package/dist/esm/formControls/Amount/property.js +12 -22
  44. package/dist/esm/formControls/Attachment/property.js +23 -36
  45. package/dist/esm/formControls/AutoNumber/property.js +4 -6
  46. package/dist/esm/formControls/Calc/property.js +9 -16
  47. package/dist/esm/formControls/Checkbox/property.js +15 -27
  48. package/dist/esm/formControls/DatePicker/property.js +12 -21
  49. package/dist/esm/formControls/DateRange/property.js +12 -21
  50. package/dist/esm/formControls/Department/property.js +12 -22
  51. package/dist/esm/formControls/Department2/property.js +17 -32
  52. package/dist/esm/formControls/ElectronicSignature/property.js +7 -12
  53. package/dist/esm/formControls/Employee/property.js +10 -18
  54. package/dist/esm/formControls/Employee2/property.js +15 -28
  55. package/dist/esm/formControls/Image/designer.js +11 -12
  56. package/dist/esm/formControls/Image/property.js +10 -10
  57. package/dist/esm/formControls/Image/runtime.js +4 -6
  58. package/dist/esm/formControls/Input/property.js +8 -14
  59. package/dist/esm/formControls/Link/property.js +4 -6
  60. package/dist/esm/formControls/Number/property.js +14 -26
  61. package/dist/esm/formControls/OrganizationSelection/property.js +19 -36
  62. package/dist/esm/formControls/Radio/property.js +12 -22
  63. package/dist/esm/formControls/RichText/property.js +6 -10
  64. package/dist/esm/formControls/Score/property.js +8 -13
  65. package/dist/esm/formControls/SearchDateRange/property.js +13 -23
  66. package/dist/esm/formControls/SearchNumberRange/property.js +7 -12
  67. package/dist/esm/formControls/Select/property.js +11 -20
  68. package/dist/esm/formControls/SelectMultiple/property.js +10 -18
  69. package/dist/esm/formControls/SelectRelation/property.js +10 -18
  70. package/dist/esm/formControls/SensitivenInformation/property.js +8 -14
  71. package/dist/esm/formControls/Textarea/property.js +8 -14
  72. package/dist/esm/formControls/Tree/property.js +20 -37
  73. package/dist/esm/formControls/VueFormItem/property.js +6 -10
  74. package/dist/esm/formControls/WPS/designer.js +9 -9
  75. package/dist/esm/formControls/WPS/property.js +13 -24
  76. package/dist/esm/framework.js +41 -67
  77. package/dist/esm/layoutControls/ActionBar/designer.js +2 -2
  78. package/dist/esm/layoutControls/ActionBar/property.js +4 -6
  79. package/dist/esm/layoutControls/ActionBar/runtime.js +2 -2
  80. package/dist/esm/layoutControls/CardGroup/property.js +3 -4
  81. package/dist/esm/layoutControls/Col/property.js +3 -4
  82. package/dist/esm/layoutControls/DataView/property.js +7 -12
  83. package/dist/esm/layoutControls/GridLayoutContainer/property.js +3 -4
  84. package/dist/esm/layoutControls/GridTableColumn/property.js +11 -20
  85. package/dist/esm/layoutControls/ListView/property.js +19 -34
  86. package/dist/esm/layoutControls/Page/property.js +2 -2
  87. package/dist/esm/layoutControls/Position/property.js +5 -8
  88. package/dist/esm/layoutControls/Row/property.js +3 -4
  89. package/dist/esm/layoutControls/SubTableColumn/property.js +6 -10
  90. package/dist/esm/layoutControls/Tab/designer.js +2 -2
  91. package/dist/esm/layoutControls/Tab/property.js +2 -2
  92. package/dist/esm/layoutControls/TabPane/property.js +2 -2
  93. package/dist/esm/listControls/GridTable/designer.js +12 -4
  94. package/dist/esm/listControls/GridTable/property.js +15 -19
  95. package/dist/esm/listControls/SubTable/designer.js +2 -1
  96. package/dist/esm/listControls/SubTable/property.js +33 -64
  97. package/dist/esm/searchControls/SimpleSearch/property.js +11 -20
  98. package/dist/esm/searchControls/SimpleSearch/runtime.js +2 -2
  99. package/dist/esm/wrapControls/GridLayoutWrap/designer.js +8 -8
  100. package/dist/esm/wrapControls/GridLayoutWrap/property.js +2 -2
  101. package/dist/esm/wrapControls/GridLayoutWrap/runtime.js +8 -8
  102. package/dist/index.umd.js +1 -1
  103. package/dist/types/baseControls/ImportRecordListButton/property.d.ts +2 -0
  104. 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
- var _props_caption;
140
- _this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : AddressControl.controlName;
141
- var _props_defaultValueType;
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
- var _props_defaultValue;
150
- _this.defaultValue = new AddressValue((_props_defaultValue = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _props_defaultValue !== void 0 ? _props_defaultValue : {});
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
- var _props_rangeMin;
237
- _this.rangeMin = (_props_rangeMin = props === null || props === void 0 ? void 0 : props.rangeMin) !== null && _props_rangeMin !== void 0 ? _props_rangeMin : '';
238
- var _props_rangeMax;
239
- _this.rangeMax = (_props_rangeMax = props === null || props === void 0 ? void 0 : props.rangeMax) !== null && _props_rangeMax !== void 0 ? _props_rangeMax : '';
240
- var _props_optionConfig;
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
- var _props_datasourceBind;
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
- var _props_defaultValue;
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
- var _props_caption;
262
- _this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : AmountControl.controlName;
263
- var _props_placeholder;
264
- _this.placeholder = (_props_placeholder = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _props_placeholder !== void 0 ? _props_placeholder : '请输入';
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
- import AttachmentControl from './designer';
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
- var _props_defaultValue;
149
- _this.defaultValue = (_props_defaultValue = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _props_defaultValue !== void 0 ? _props_defaultValue : [];
150
- var _props_showType;
151
- _this.showType = (_props_showType = props === null || props === void 0 ? void 0 : props.showType) !== null && _props_showType !== void 0 ? _props_showType : 'default';
152
- var _props_resultShowType;
153
- _this.resultShowType = (_props_resultShowType = props === null || props === void 0 ? void 0 : props.resultShowType) !== null && _props_resultShowType !== void 0 ? _props_resultShowType : 'simple';
154
- var _props_attachmentAccept;
155
- _this.attachmentAccept = (_props_attachmentAccept = props === null || props === void 0 ? void 0 : props.attachmentAccept) !== null && _props_attachmentAccept !== void 0 ? _props_attachmentAccept : [];
156
- var _props_maxLimit;
157
- _this.maxLimit = (_props_maxLimit = props === null || props === void 0 ? void 0 : props.maxLimit) !== null && _props_maxLimit !== void 0 ? _props_maxLimit : 10;
158
- var _props_minLimit;
159
- _this.minLimit = (_props_minLimit = props === null || props === void 0 ? void 0 : props.minLimit) !== null && _props_minLimit !== void 0 ? _props_minLimit : 0;
160
- var _props_maxSize;
161
- _this.maxSize = (_props_maxSize = props === null || props === void 0 ? void 0 : props.maxSize) !== null && _props_maxSize !== void 0 ? _props_maxSize : MB100;
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
- var _props_defaultValue;
85
- _this.defaultValue = (_props_defaultValue = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _props_defaultValue !== void 0 ? _props_defaultValue : '';
86
- var _props_caption;
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
- var _props_precision;
158
- _this.precision = (_props_precision = props === null || props === void 0 ? void 0 : props.precision) !== null && _props_precision !== void 0 ? _props_precision : 0;
159
- var _props_micrometer;
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
- var _props_caption;
166
- _this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : AmountControl.controlName;
167
- var _props_placeholder;
168
- _this.placeholder = (_props_placeholder = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _props_placeholder !== void 0 ? _props_placeholder : '请输入';
169
- var _props_scriptEcho;
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
- var _props_options;
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
- var _props_checkboxMode;
156
- _this.checkboxMode = (_props_checkboxMode = props === null || props === void 0 ? void 0 : props.checkboxMode) !== null && _props_checkboxMode !== void 0 ? _props_checkboxMode : 'horizontal';
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';
159
- var _props_optionsOrder;
160
- _this.optionsOrder = (_props_optionsOrder = props === null || props === void 0 ? void 0 : props.optionsOrder) !== null && _props_optionsOrder !== void 0 ? _props_optionsOrder : false;
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
- var _props_interreaction;
169
- _this.interreaction = (_props_interreaction = props === null || props === void 0 ? void 0 : props.interreaction) !== null && _props_interreaction !== void 0 ? _props_interreaction : [];
170
- var _props_caption;
171
- _this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : CheckboxControl.controlName;
172
- var _props_defaultValue;
173
- _this.defaultValue = (_props_defaultValue = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _props_defaultValue !== void 0 ? _props_defaultValue : [];
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
- var _props_dateType;
96
- _this.dateType = (_props_dateType = props === null || props === void 0 ? void 0 : props.dateType) !== null && _props_dateType !== void 0 ? _props_dateType : DateType.DATE;
97
- var _props_dateFormat;
98
- _this.dateFormat = (_props_dateFormat = props === null || props === void 0 ? void 0 : props.dateFormat) !== null && _props_dateFormat !== void 0 ? _props_dateFormat : '';
99
- var _props_commonTimeSetting;
100
- _this.commonTimeSetting = (_props_commonTimeSetting = props === null || props === void 0 ? void 0 : props.commonTimeSetting) !== null && _props_commonTimeSetting !== void 0 ? _props_commonTimeSetting : [];
101
- var _props_setValueType;
102
- _this.setValueType = (_props_setValueType = props === null || props === void 0 ? void 0 : props.setValueType) !== null && _props_setValueType !== void 0 ? _props_setValueType : 'custom';
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 && _props_limitDateList_map !== void 0 ? _props_limitDateList_map : [];
113
- var _props_allowDateRange;
105
+ })) !== null && _ref7 !== void 0 ? _ref7 : [];
114
106
  // this.multiple = props?.multiple ?? false
115
- _this.allowDateRange = (_props_allowDateRange = props === null || props === void 0 ? void 0 : props.allowDateRange) !== null && _props_allowDateRange !== void 0 ? _props_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
- var _props_filterWeekend;
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
- var _props_dateType;
168
- _this.dateType = (_props_dateType = props === null || props === void 0 ? void 0 : props.dateType) !== null && _props_dateType !== void 0 ? _props_dateType : DateType.DATE;
169
- var _props_dateFormat;
170
- _this.dateFormat = (_props_dateFormat = props === null || props === void 0 ? void 0 : props.dateFormat) !== null && _props_dateFormat !== void 0 ? _props_dateFormat : '';
171
- var _props_commonTimeSetting;
172
- _this.commonTimeSetting = (_props_commonTimeSetting = props === null || props === void 0 ? void 0 : props.commonTimeSetting) !== null && _props_commonTimeSetting !== void 0 ? _props_commonTimeSetting : [];
173
- var _props_setValueType;
174
- _this.setValueType = (_props_setValueType = props === null || props === void 0 ? void 0 : props.setValueType) !== null && _props_setValueType !== void 0 ? _props_setValueType : 'custom';
175
- var _props_rangeMin;
176
- _this.rangeMin = (_props_rangeMin = props === null || props === void 0 ? void 0 : props.rangeMin) !== null && _props_rangeMin !== void 0 ? _props_rangeMin : '';
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 && _props_limitDateList_map !== void 0 ? _props_limitDateList_map : [];
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
- var _props_showType;
120
- _this.showType = (_props_showType = props === null || props === void 0 ? void 0 : props.showType) !== null && _props_showType !== void 0 ? _props_showType : 'default';
121
- var _props_multiple;
122
- _this.multiple = (_props_multiple = props === null || props === void 0 ? void 0 : props.multiple) !== null && _props_multiple !== void 0 ? _props_multiple : false;
123
- var _props_range;
124
- _this.range = (_props_range = props === null || props === void 0 ? void 0 : props.range) !== null && _props_range !== void 0 ? _props_range : 'all';
125
- var _props_defaultValueType;
126
- _this.defaultValueType = (_props_defaultValueType = props === null || props === void 0 ? void 0 : props.defaultValueType) !== null && _props_defaultValueType !== void 0 ? _props_defaultValueType : 'none';
127
- var _props_rangeOptions;
128
- _this.rangeOptions = (_props_rangeOptions = props === null || props === void 0 ? void 0 : props.rangeOptions) !== null && _props_rangeOptions !== void 0 ? _props_rangeOptions : [];
129
- var _props_defaultValue;
130
- _this.defaultValue = (_props_defaultValue = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _props_defaultValue !== void 0 ? _props_defaultValue : [];
131
- 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
- var _props_showType;
159
- _this.showType = (_props_showType = props === null || props === void 0 ? void 0 : props.showType) !== null && _props_showType !== void 0 ? _props_showType : 'default';
160
- var _props_multiple;
161
- _this.multiple = (_props_multiple = props === null || props === void 0 ? void 0 : props.multiple) !== null && _props_multiple !== void 0 ? _props_multiple : false;
162
- var _props_range;
163
- _this.range = (_props_range = props === null || props === void 0 ? void 0 : props.range) !== null && _props_range !== void 0 ? _props_range : 'all';
164
- var _props_defaultValueType;
165
- _this.defaultValueType = (_props_defaultValueType = props === null || props === void 0 ? void 0 : props.defaultValueType) !== null && _props_defaultValueType !== void 0 ? _props_defaultValueType : 'none';
166
- var _props_rangeOptions;
167
- _this.rangeOptions = (_props_rangeOptions = props === null || props === void 0 ? void 0 : props.rangeOptions) !== null && _props_rangeOptions !== void 0 ? _props_rangeOptions : [];
168
- var _props_defaultValue;
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
- var _props_datasourceType;
183
- _this.datasourceType = (_props_datasourceType = props === null || props === void 0 ? void 0 : props.datasourceType) !== null && _props_datasourceType !== void 0 ? _props_datasourceType : DepartmentType.INTERNAL;
184
- var _props_businessScope;
185
- _this.businessScope = (_props_businessScope = props === null || props === void 0 ? void 0 : props.businessScope) !== null && _props_businessScope !== void 0 ? _props_businessScope : [];
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
- var _props_limitLevel;
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
- var _props_caption;
177
- _this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : ElectronicSignatureControl.controlName;
178
- var _props_content;
179
- _this.content = (_props_content = props === null || props === void 0 ? void 0 : props.content) !== null && _props_content !== void 0 ? _props_content : '发起签署';
180
- var _props_buttonType;
181
- _this.buttonType = (_props_buttonType = props === null || props === void 0 ? void 0 : props.buttonType) !== null && _props_buttonType !== void 0 ? _props_buttonType : 'primary';
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
  }