@byteluck-fe/model-driven-controls 6.2.0-beta.13 → 6.2.0-beta.15
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 +18 -10
- package/dist/esm/baseControls/BatchPrintListButton/property.js +9 -6
- package/dist/esm/baseControls/BatchPrintRecordListButton/property.js +4 -3
- package/dist/esm/baseControls/BatchSubmissionListButton/property.js +12 -7
- package/dist/esm/baseControls/Button/property.js +18 -10
- package/dist/esm/baseControls/Comment/property.js +2 -2
- package/dist/esm/baseControls/CreateFormListButton/property.js +8 -5
- package/dist/esm/baseControls/Dashboard/property.js +16 -9
- package/dist/esm/baseControls/Divider/property.js +5 -4
- package/dist/esm/baseControls/ExportListButton/property.js +9 -6
- package/dist/esm/baseControls/ExportRecordListButton/property.js +4 -3
- package/dist/esm/baseControls/FormSelectButton/property.js +6 -4
- package/dist/esm/baseControls/ImportRecordListButton/property.js +9 -6
- package/dist/esm/baseControls/InvoiceCheckButton/property.js +19 -11
- package/dist/esm/baseControls/Link/property.js +6 -4
- package/dist/esm/baseControls/ListSelectButton/property.js +10 -6
- package/dist/esm/baseControls/ListViewSelect/property.js +5 -4
- package/dist/esm/baseControls/OperationButton/property.js +12 -7
- package/dist/esm/baseControls/ReferenceList/property.js +12 -7
- package/dist/esm/baseControls/SubmissionRecordListButton/property.js +4 -3
- package/dist/esm/baseControls/Text/property.js +12 -7
- package/dist/esm/baseControls/TextOcrButton/property.js +19 -11
- package/dist/esm/baseControls/Title/property.js +6 -4
- package/dist/esm/columnControls/ApprovalStatusColumn/property.js +6 -4
- package/dist/esm/columnControls/ArrayColumn/property.js +8 -5
- package/dist/esm/columnControls/AutoNumberColumn/property.js +4 -3
- package/dist/esm/columnControls/CustomColumn/property.js +6 -4
- package/dist/esm/columnControls/DecimalColumn/property.js +14 -8
- package/dist/esm/columnControls/DepartmentColumn/property.js +4 -3
- package/dist/esm/columnControls/EmployeeColumn/property.js +4 -3
- package/dist/esm/columnControls/FileColumn/property.js +4 -3
- package/dist/esm/columnControls/GroupColumn/property.js +2 -2
- package/dist/esm/columnControls/ImageColumn/property.js +2 -2
- package/dist/esm/columnControls/LocationColumn/property.js +4 -3
- package/dist/esm/columnControls/OperationColumn/designer.js +4 -12
- package/dist/esm/columnControls/OperationColumn/property.js +10 -6
- package/dist/esm/columnControls/OrderColumn/property.js +12 -7
- package/dist/esm/columnControls/PeopleColumn/property.js +2 -2
- package/dist/esm/columnControls/TextColumn/property.js +8 -5
- package/dist/esm/columnControls/TimescopeColumn/property.js +8 -5
- package/dist/esm/columnControls/TimestampColumn/property.js +8 -5
- package/dist/esm/columnControls/VarcharColumn/property.js +12 -7
- package/dist/esm/formControls/Address/property.js +10 -6
- package/dist/esm/formControls/Amount/property.js +24 -13
- package/dist/esm/formControls/Attachment/property.js +40 -25
- package/dist/esm/formControls/AutoNumber/property.js +6 -4
- package/dist/esm/formControls/Calc/property.js +18 -10
- package/dist/esm/formControls/Checkbox/property.js +29 -16
- package/dist/esm/formControls/DatePicker/property.js +27 -15
- package/dist/esm/formControls/DateRange/property.js +23 -13
- package/dist/esm/formControls/Department/property.js +22 -12
- package/dist/esm/formControls/Department2/designer.js +1 -1
- package/dist/esm/formControls/Department2/property.js +38 -22
- package/dist/esm/formControls/ElectronicSignature/property.js +12 -7
- package/dist/esm/formControls/Employee/property.js +18 -10
- package/dist/esm/formControls/Employee2/property.js +32 -17
- package/dist/esm/formControls/Image/designer.js +8 -8
- package/dist/esm/formControls/Image/property.js +12 -7
- package/dist/esm/formControls/Input/property.js +20 -11
- package/dist/esm/formControls/Number/property.js +26 -14
- package/dist/esm/formControls/OrganizationSelection/property.js +36 -19
- package/dist/esm/formControls/Radio/property.js +24 -13
- package/dist/esm/formControls/RichText/property.js +20 -11
- package/dist/esm/formControls/Score/property.js +13 -8
- package/dist/esm/formControls/SearchDateRange/property.js +25 -14
- package/dist/esm/formControls/SearchNumberRange/property.js +12 -7
- package/dist/esm/formControls/Select/property.js +22 -12
- package/dist/esm/formControls/SelectMultiple/property.js +20 -11
- package/dist/esm/formControls/SelectRelation/property.js +26 -14
- package/dist/esm/formControls/Textarea/property.js +20 -11
- package/dist/esm/formControls/Tree/property.js +61 -21
- package/dist/esm/formControls/VueFormItem/property.js +10 -6
- package/dist/esm/formControls/VuePage/property.js +10 -6
- package/dist/esm/formControls/WPS/designer.js +9 -9
- package/dist/esm/formControls/WPS/property.js +24 -13
- package/dist/esm/framework.js +113 -69
- package/dist/esm/layoutControls/ActionBar/designer.js +2 -2
- package/dist/esm/layoutControls/ActionBar/property.js +6 -4
- package/dist/esm/layoutControls/ActionBar/runtime.js +2 -2
- package/dist/esm/layoutControls/CardGroup/property.js +6 -4
- package/dist/esm/layoutControls/Col/property.js +8 -5
- package/dist/esm/layoutControls/DataView/property.js +14 -8
- package/dist/esm/layoutControls/GridLayoutContainer/property.js +4 -3
- package/dist/esm/layoutControls/GridTableColumn/property.js +20 -11
- package/dist/esm/layoutControls/ListView/property.js +28 -15
- package/dist/esm/layoutControls/Page/property.js +2 -2
- package/dist/esm/layoutControls/Position/property.js +8 -5
- package/dist/esm/layoutControls/Row/property.js +4 -3
- package/dist/esm/layoutControls/Step/designer.js +2 -2
- package/dist/esm/layoutControls/Step/property.js +10 -6
- package/dist/esm/layoutControls/StepPane/property.js +16 -9
- package/dist/esm/layoutControls/SubTableColumn/property.js +10 -6
- 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/layoutControls/TableLayout/property.js +30 -16
- package/dist/esm/layoutControls/TableLayoutCol/property.js +20 -11
- package/dist/esm/layoutControls/TableLayoutRow/property.js +4 -3
- package/dist/esm/layoutControls/TableLayoutWrapper/property.js +6 -4
- package/dist/esm/listControls/GridTable/designer.js +4 -12
- package/dist/esm/listControls/GridTable/property.js +19 -15
- package/dist/esm/listControls/SubTable/property.js +68 -35
- package/dist/esm/searchControls/SimpleSearch/property.js +24 -13
- 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/formControls/Department2/property.d.ts +2 -2
- package/dist/types/formControls/Tree/property.d.ts +31 -0
- package/package.json +2 -2
|
@@ -95,7 +95,6 @@ var VarcharColumnControlPropertyRules = /*#__PURE__*/ function(ColumnOptionAndDa
|
|
|
95
95
|
function VarcharColumnControlProperty(props) {
|
|
96
96
|
_class_call_check(this, VarcharColumnControlProperty);
|
|
97
97
|
var _this;
|
|
98
|
-
var _ref, _ref1, _ref2, _ref3, _ref4, _ref5;
|
|
99
98
|
_this = _call_super(this, VarcharColumnControlProperty, [
|
|
100
99
|
props
|
|
101
100
|
]), /**
|
|
@@ -120,16 +119,22 @@ var VarcharColumnControlPropertyRules = /*#__PURE__*/ function(ColumnOptionAndDa
|
|
|
120
119
|
* */ _define_property(_this, "lineEllipsis", void 0), /**
|
|
121
120
|
* tag配置
|
|
122
121
|
* */ _define_property(_this, "dictionaryTagConfig", void 0);
|
|
123
|
-
|
|
124
|
-
_this.
|
|
122
|
+
var _props_caption;
|
|
123
|
+
_this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : DesignerVarcharColumnControl.controlName;
|
|
124
|
+
var _props_optionConfig;
|
|
125
|
+
_this.optionConfig = (_props_optionConfig = props === null || props === void 0 ? void 0 : props.optionConfig) !== null && _props_optionConfig !== void 0 ? _props_optionConfig : 'none';
|
|
125
126
|
_this.datasourceBind = new DataSourceBind(props === null || props === void 0 ? void 0 : props.datasourceBind);
|
|
126
|
-
|
|
127
|
+
var _props_options;
|
|
128
|
+
_this.options = initOptions((_props_options = props === null || props === void 0 ? void 0 : props.options) !== null && _props_options !== void 0 ? _props_options : [
|
|
127
129
|
{}
|
|
128
130
|
]);
|
|
129
|
-
|
|
131
|
+
var _props_showLinkOperation;
|
|
132
|
+
_this.showLinkOperation = (_props_showLinkOperation = props === null || props === void 0 ? void 0 : props.showLinkOperation) !== null && _props_showLinkOperation !== void 0 ? _props_showLinkOperation : false;
|
|
130
133
|
_this.linkOperationOption = new LinkOperationOption(props === null || props === void 0 ? void 0 : props.linkOperationOption);
|
|
131
|
-
|
|
132
|
-
_this.
|
|
134
|
+
var _props_lineEllipsis;
|
|
135
|
+
_this.lineEllipsis = (_props_lineEllipsis = props === null || props === void 0 ? void 0 : props.lineEllipsis) !== null && _props_lineEllipsis !== void 0 ? _props_lineEllipsis : 1;
|
|
136
|
+
var _props_dictionaryTagConfig;
|
|
137
|
+
_this.dictionaryTagConfig = (_props_dictionaryTagConfig = props === null || props === void 0 ? void 0 : props.dictionaryTagConfig) !== null && _props_dictionaryTagConfig !== void 0 ? _props_dictionaryTagConfig : {
|
|
133
138
|
isTag: false
|
|
134
139
|
};
|
|
135
140
|
return _this;
|
|
@@ -125,7 +125,6 @@ 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;
|
|
129
128
|
_this = _call_super(this, AddressProperty, [
|
|
130
129
|
props
|
|
131
130
|
]), /**
|
|
@@ -137,15 +136,20 @@ var AddressControlPropertyRuntimeRules = /*#__PURE__*/ function(BaseControlPrope
|
|
|
137
136
|
* 地址类型
|
|
138
137
|
* @defaultValue ['province', 'city', 'district']
|
|
139
138
|
*/ _define_property(_this, "addressType", void 0);
|
|
140
|
-
|
|
141
|
-
_this.
|
|
142
|
-
|
|
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 : [
|
|
143
145
|
'province',
|
|
144
146
|
'city',
|
|
145
147
|
'district'
|
|
146
148
|
];
|
|
147
|
-
|
|
148
|
-
_this.
|
|
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 : getLocaleText('CMD.pleaseChooseAddress', null, '请选择地址');
|
|
149
153
|
return _this;
|
|
150
154
|
}
|
|
151
155
|
return AddressProperty;
|
|
@@ -202,7 +202,6 @@ 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, _ref11;
|
|
206
205
|
_this = _call_super(this, AmountProperty, [
|
|
207
206
|
props
|
|
208
207
|
]), /**
|
|
@@ -238,29 +237,41 @@ var AmountPropertyRuntimeRules = /*#__PURE__*/ function(BaseControlPropertyRunti
|
|
|
238
237
|
* */ _define_property(_this, "defaultValue", void 0), /**
|
|
239
238
|
* 币种的默认选项
|
|
240
239
|
* */ _define_property(_this, "options", void 0);
|
|
241
|
-
|
|
242
|
-
_this.
|
|
243
|
-
|
|
244
|
-
_this.
|
|
245
|
-
|
|
240
|
+
var _props_rangeMin;
|
|
241
|
+
_this.rangeMin = (_props_rangeMin = props === null || props === void 0 ? void 0 : props.rangeMin) !== null && _props_rangeMin !== void 0 ? _props_rangeMin : '';
|
|
242
|
+
var _props_rangeMax;
|
|
243
|
+
_this.rangeMax = (_props_rangeMax = props === null || props === void 0 ? void 0 : props.rangeMax) !== null && _props_rangeMax !== void 0 ? _props_rangeMax : '';
|
|
244
|
+
var _props_optionConfig;
|
|
245
|
+
_this.optionConfig = (_props_optionConfig = props === null || props === void 0 ? void 0 : props.optionConfig) !== null && _props_optionConfig !== void 0 ? _props_optionConfig : 'datasource';
|
|
246
|
+
var _props_micrometer;
|
|
247
|
+
_this.micrometer = (_props_micrometer = props === null || props === void 0 ? void 0 : props.micrometer) !== null && _props_micrometer !== void 0 ? _props_micrometer : false;
|
|
248
|
+
var _props_precision;
|
|
249
|
+
_this.precision = (_props_precision = props === null || props === void 0 ? void 0 : props.precision) !== null && _props_precision !== void 0 ? _props_precision : 2;
|
|
246
250
|
_this.dataBind = new AmountDataBind(props === null || props === void 0 ? void 0 : props.dataBind);
|
|
247
|
-
|
|
251
|
+
var _props_datasourceBind;
|
|
252
|
+
_this.datasourceBind = new DataSourceBind((_props_datasourceBind = props === null || props === void 0 ? void 0 : props.datasourceBind) !== null && _props_datasourceBind !== void 0 ? _props_datasourceBind : {
|
|
248
253
|
displayBoList: [
|
|
249
254
|
new DisplayBoListItem({
|
|
250
255
|
value: 'name'
|
|
251
256
|
})
|
|
252
257
|
]
|
|
253
258
|
});
|
|
254
|
-
|
|
259
|
+
var _props_defaultValue;
|
|
260
|
+
_this.defaultValue = new AmountValue((_props_defaultValue = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _props_defaultValue !== void 0 ? _props_defaultValue : {
|
|
255
261
|
amount: '',
|
|
256
262
|
currency: AMOUNT_TYPE.CNY
|
|
257
263
|
});
|
|
258
|
-
|
|
264
|
+
var _props_unitPosition;
|
|
265
|
+
_this.unitPosition = (_props_unitPosition = props === null || props === void 0 ? void 0 : props.unitPosition) !== null && _props_unitPosition !== void 0 ? _props_unitPosition : 'right';
|
|
259
266
|
_this.options = initOptions(props === null || props === void 0 ? void 0 : props.options);
|
|
260
|
-
|
|
261
|
-
_this.
|
|
262
|
-
|
|
263
|
-
_this.
|
|
267
|
+
var _props_caption;
|
|
268
|
+
_this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : AmountControl.controlName;
|
|
269
|
+
var _props_placeholder;
|
|
270
|
+
_this.placeholder = (_props_placeholder = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _props_placeholder !== void 0 ? _props_placeholder : getLocaleText('CMD.pleaseEnter', null, '请输入');
|
|
271
|
+
var _props_submitSelectCurrency;
|
|
272
|
+
_this.submitSelectCurrency = (_props_submitSelectCurrency = props === null || props === void 0 ? void 0 : props.submitSelectCurrency) !== null && _props_submitSelectCurrency !== void 0 ? _props_submitSelectCurrency : false;
|
|
273
|
+
var _props_showUpperCase;
|
|
274
|
+
_this.showUpperCase = (_props_showUpperCase = props === null || props === void 0 ? void 0 : props.showUpperCase) !== null && _props_showUpperCase !== void 0 ? _props_showUpperCase : false;
|
|
264
275
|
return _this;
|
|
265
276
|
}
|
|
266
277
|
return AmountProperty;
|
|
@@ -1,4 +1,10 @@
|
|
|
1
|
-
|
|
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) {
|
|
2
8
|
if (self === void 0) {
|
|
3
9
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
4
10
|
}
|
|
@@ -70,13 +76,7 @@ function _is_native_reflect_construct() {
|
|
|
70
76
|
return !!result;
|
|
71
77
|
})();
|
|
72
78
|
}
|
|
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 { getLocaleText } from '@byteluck-fe/locale-message';
|
|
79
|
+
import { getLocaleText } from '@byteluck-fe/locale-message';
|
|
80
80
|
import AttachmentControl from './designer';
|
|
81
81
|
import { BaseControlProperty, BaseControlPropertyRules, BaseControlPropertyRuntimeRules } from '@byteluck-fe/model-driven-core';
|
|
82
82
|
var MB10 = 10485760;
|
|
@@ -131,7 +131,6 @@ 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, _ref14, _ref15;
|
|
135
134
|
_this = _call_super(this, AttachmentProperty, [
|
|
136
135
|
props
|
|
137
136
|
]), _define_property(_this, "storageType", void 0), _define_property(_this, "defaultValue", void 0), // 默认格式和列表格式,原应用内是title和table
|
|
@@ -142,26 +141,42 @@ var AttachmentProperty = /*#__PURE__*/ function(BaseControlProperty) {
|
|
|
142
141
|
_define_property(_this, "operation", void 0), // 附件ai解释
|
|
143
142
|
_define_property(_this, "aiExplanation", void 0), // 附件ai解释长度
|
|
144
143
|
_define_property(_this, "aiExplanationLength", void 0), _define_property(_this, "customOperation", void 0);
|
|
145
|
-
|
|
146
|
-
_this.
|
|
147
|
-
|
|
148
|
-
_this.
|
|
149
|
-
|
|
150
|
-
_this.
|
|
151
|
-
|
|
152
|
-
_this.
|
|
153
|
-
|
|
154
|
-
_this.
|
|
155
|
-
|
|
156
|
-
_this.
|
|
144
|
+
var _props_defaultValue;
|
|
145
|
+
_this.defaultValue = (_props_defaultValue = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _props_defaultValue !== void 0 ? _props_defaultValue : [];
|
|
146
|
+
var _props_showType;
|
|
147
|
+
_this.showType = (_props_showType = props === null || props === void 0 ? void 0 : props.showType) !== null && _props_showType !== void 0 ? _props_showType : 'default';
|
|
148
|
+
var _props_resultShowType;
|
|
149
|
+
_this.resultShowType = (_props_resultShowType = props === null || props === void 0 ? void 0 : props.resultShowType) !== null && _props_resultShowType !== void 0 ? _props_resultShowType : 'simple';
|
|
150
|
+
var _props_attachmentAccept;
|
|
151
|
+
_this.attachmentAccept = (_props_attachmentAccept = props === null || props === void 0 ? void 0 : props.attachmentAccept) !== null && _props_attachmentAccept !== void 0 ? _props_attachmentAccept : [];
|
|
152
|
+
var _props_maxLimit;
|
|
153
|
+
_this.maxLimit = (_props_maxLimit = props === null || props === void 0 ? void 0 : props.maxLimit) !== null && _props_maxLimit !== void 0 ? _props_maxLimit : 10;
|
|
154
|
+
var _props_minLimit;
|
|
155
|
+
_this.minLimit = (_props_minLimit = props === null || props === void 0 ? void 0 : props.minLimit) !== null && _props_minLimit !== void 0 ? _props_minLimit : 0;
|
|
156
|
+
var _props_maxSize;
|
|
157
|
+
_this.maxSize = (_props_maxSize = props === null || props === void 0 ? void 0 : props.maxSize) !== null && _props_maxSize !== void 0 ? _props_maxSize : MB100;
|
|
158
|
+
var _props_caption;
|
|
159
|
+
_this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : AttachmentControl.controlName;
|
|
160
|
+
var _props_placeholder;
|
|
161
|
+
_this.placeholder = (_props_placeholder = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _props_placeholder !== void 0 ? _props_placeholder : getLocaleText('CMD.uploadFile', null, '上传附件');
|
|
162
|
+
var _props_isShowWatermark;
|
|
163
|
+
_this.isShowWatermark = (_props_isShowWatermark = props === null || props === void 0 ? void 0 : props.isShowWatermark) !== null && _props_isShowWatermark !== void 0 ? _props_isShowWatermark : false;
|
|
164
|
+
var _props_watermarkFx;
|
|
165
|
+
_this.watermarkFx = (_props_watermarkFx = props === null || props === void 0 ? void 0 : props.watermarkFx) !== null && _props_watermarkFx !== void 0 ? _props_watermarkFx : {};
|
|
166
|
+
var _props_operation;
|
|
167
|
+
_this.operation = (_props_operation = props === null || props === void 0 ? void 0 : props.operation) !== null && _props_operation !== void 0 ? _props_operation : [
|
|
157
168
|
'info',
|
|
158
169
|
'preview',
|
|
159
170
|
'download'
|
|
160
171
|
];
|
|
161
|
-
|
|
162
|
-
_this.
|
|
163
|
-
|
|
164
|
-
_this.
|
|
172
|
+
var _props_aiExplanation;
|
|
173
|
+
_this.aiExplanation = (_props_aiExplanation = props === null || props === void 0 ? void 0 : props.aiExplanation) !== null && _props_aiExplanation !== void 0 ? _props_aiExplanation : false;
|
|
174
|
+
var _props_aiExplanationLength;
|
|
175
|
+
_this.aiExplanationLength = (_props_aiExplanationLength = props === null || props === void 0 ? void 0 : props.aiExplanationLength) !== null && _props_aiExplanationLength !== void 0 ? _props_aiExplanationLength : 500;
|
|
176
|
+
var _props_storageType;
|
|
177
|
+
_this.storageType = (_props_storageType = props === null || props === void 0 ? void 0 : props.storageType) !== null && _props_storageType !== void 0 ? _props_storageType : 'local';
|
|
178
|
+
var _props_customOperation;
|
|
179
|
+
_this.customOperation = (_props_customOperation = props === null || props === void 0 ? void 0 : props.customOperation) !== null && _props_customOperation !== void 0 ? _props_customOperation : [];
|
|
165
180
|
return _this;
|
|
166
181
|
}
|
|
167
182
|
return AttachmentProperty;
|
|
@@ -79,13 +79,15 @@ var AutoNumberProperty = /*#__PURE__*/ function(BaseControlProperty) {
|
|
|
79
79
|
function AutoNumberProperty(props) {
|
|
80
80
|
_class_call_check(this, AutoNumberProperty);
|
|
81
81
|
var _this;
|
|
82
|
-
var _ref, _ref1, _ref2;
|
|
83
82
|
_this = _call_super(this, AutoNumberProperty, [
|
|
84
83
|
props
|
|
85
84
|
]), _define_property(_this, "defaultValue", void 0);
|
|
86
|
-
|
|
87
|
-
_this.
|
|
88
|
-
|
|
85
|
+
var _props_defaultValue;
|
|
86
|
+
_this.defaultValue = (_props_defaultValue = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _props_defaultValue !== void 0 ? _props_defaultValue : '';
|
|
87
|
+
var _props_caption;
|
|
88
|
+
_this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : AutoNumberControl.controlName;
|
|
89
|
+
var _props_placeholder;
|
|
90
|
+
_this.placeholder = (_props_placeholder = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _props_placeholder !== void 0 ? _props_placeholder : getLocaleText('CMD.pleaseEnterAutonumber', null, '请输入自动编号');
|
|
89
91
|
return _this;
|
|
90
92
|
}
|
|
91
93
|
return AutoNumberProperty;
|
|
@@ -130,7 +130,6 @@ 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, _ref8;
|
|
134
133
|
_this = _call_super(this, CalcProperty, [
|
|
135
134
|
props
|
|
136
135
|
]), /**
|
|
@@ -159,17 +158,26 @@ var CalcProperty = /*#__PURE__*/ function(BaseControlProperty) {
|
|
|
159
158
|
* */ _define_property(_this, "unitPosition", void 0), /**
|
|
160
159
|
* 页面加载时计算
|
|
161
160
|
* */ _define_property(_this, "calcOnMounted", void 0);
|
|
162
|
-
|
|
163
|
-
_this.
|
|
164
|
-
|
|
161
|
+
var _props_precision;
|
|
162
|
+
_this.precision = (_props_precision = props === null || props === void 0 ? void 0 : props.precision) !== null && _props_precision !== void 0 ? _props_precision : 0;
|
|
163
|
+
var _props_micrometer;
|
|
164
|
+
_this.micrometer = (_props_micrometer = props === null || props === void 0 ? void 0 : props.micrometer) !== null && _props_micrometer !== void 0 ? _props_micrometer : false;
|
|
165
|
+
var _props_showUpperCase;
|
|
166
|
+
_this.showUpperCase = (_props_showUpperCase = props === null || props === void 0 ? void 0 : props.showUpperCase) !== null && _props_showUpperCase !== void 0 ? _props_showUpperCase : false;
|
|
165
167
|
_this.dataBind = new CalcDataBind(props === null || props === void 0 ? void 0 : props.dataBind);
|
|
166
168
|
_this.defaultValue = new CalcValue(props === null || props === void 0 ? void 0 : props.defaultValue);
|
|
167
|
-
|
|
168
|
-
_this.
|
|
169
|
-
|
|
170
|
-
_this.
|
|
171
|
-
|
|
172
|
-
_this.
|
|
169
|
+
var _props_caption;
|
|
170
|
+
_this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : AmountControl.controlName;
|
|
171
|
+
var _props_unitPosition;
|
|
172
|
+
_this.unitPosition = (_props_unitPosition = props === null || props === void 0 ? void 0 : props.unitPosition) !== null && _props_unitPosition !== void 0 ? _props_unitPosition : 'right';
|
|
173
|
+
var _props_placeholder;
|
|
174
|
+
_this.placeholder = (_props_placeholder = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _props_placeholder !== void 0 ? _props_placeholder : getLocaleText('CMD.pleaseEnter', null, '请输入');
|
|
175
|
+
var _props_scriptEcho;
|
|
176
|
+
_this.scriptEcho = (_props_scriptEcho = props === null || props === void 0 ? void 0 : props.scriptEcho) !== null && _props_scriptEcho !== void 0 ? _props_scriptEcho : [];
|
|
177
|
+
var _props_scriptSrc;
|
|
178
|
+
_this.scriptSrc = (_props_scriptSrc = props === null || props === void 0 ? void 0 : props.scriptSrc) !== null && _props_scriptSrc !== void 0 ? _props_scriptSrc : '';
|
|
179
|
+
var _props_calcOnMounted;
|
|
180
|
+
_this.calcOnMounted = (_props_calcOnMounted = props === null || props === void 0 ? void 0 : props.calcOnMounted) !== null && _props_calcOnMounted !== void 0 ? _props_calcOnMounted : false;
|
|
173
181
|
return _this;
|
|
174
182
|
}
|
|
175
183
|
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
|
|
93
|
+
var isUnlimited = function(value) {
|
|
94
94
|
return value === 'unlimited' ? undefined : value;
|
|
95
95
|
};
|
|
96
96
|
_this.limitMax.min = isUnlimited(props.limitMin);
|
|
@@ -125,7 +125,6 @@ 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, _ref13;
|
|
129
128
|
_this = _call_super(this, CheckboxProperty, [
|
|
130
129
|
props
|
|
131
130
|
]), _define_property(_this, "checkboxMode", void 0 // 选项排列方式 horizontal默认
|
|
@@ -142,7 +141,8 @@ var CheckboxProperty = /*#__PURE__*/ function(BaseControlProperty) {
|
|
|
142
141
|
* @defaultValue false
|
|
143
142
|
* @public
|
|
144
143
|
*/ _define_property(_this, "aiContentSearch", void 0);
|
|
145
|
-
|
|
144
|
+
var _props_options;
|
|
145
|
+
_this.options = initOptions((_props_options = props === null || props === void 0 ? void 0 : props.options) !== null && _props_options !== void 0 ? _props_options : [
|
|
146
146
|
{
|
|
147
147
|
label: getLocaleText('CMD.optionOne', null, '选项一'),
|
|
148
148
|
value: getLocaleText('CMD.optionOne', null, '选项一')
|
|
@@ -156,19 +156,31 @@ var CheckboxProperty = /*#__PURE__*/ function(BaseControlProperty) {
|
|
|
156
156
|
value: getLocaleText('CMD.optionThird', null, '选项三')
|
|
157
157
|
}
|
|
158
158
|
]);
|
|
159
|
-
|
|
160
|
-
_this.
|
|
161
|
-
|
|
162
|
-
_this.
|
|
163
|
-
|
|
164
|
-
_this.
|
|
159
|
+
var _props_checkboxMode;
|
|
160
|
+
_this.checkboxMode = (_props_checkboxMode = props === null || props === void 0 ? void 0 : props.checkboxMode) !== null && _props_checkboxMode !== void 0 ? _props_checkboxMode : 'horizontal';
|
|
161
|
+
var _props_optionConfig;
|
|
162
|
+
_this.optionConfig = (_props_optionConfig = props === null || props === void 0 ? void 0 : props.optionConfig) !== null && _props_optionConfig !== void 0 ? _props_optionConfig : 'custom';
|
|
163
|
+
var _props_optionsOrder;
|
|
164
|
+
_this.optionsOrder = (_props_optionsOrder = props === null || props === void 0 ? void 0 : props.optionsOrder) !== null && _props_optionsOrder !== void 0 ? _props_optionsOrder : false;
|
|
165
|
+
var _props_otherOption;
|
|
166
|
+
_this.otherOption = (_props_otherOption = props === null || props === void 0 ? void 0 : props.otherOption) !== null && _props_otherOption !== void 0 ? _props_otherOption : false;
|
|
167
|
+
var _props_limitMin;
|
|
168
|
+
_this.limitMin = (_props_limitMin = props === null || props === void 0 ? void 0 : props.limitMin) !== null && _props_limitMin !== void 0 ? _props_limitMin : 'unlimited';
|
|
169
|
+
var _props_limitMax;
|
|
170
|
+
_this.limitMax = (_props_limitMax = props === null || props === void 0 ? void 0 : props.limitMax) !== null && _props_limitMax !== void 0 ? _props_limitMax : 'unlimited';
|
|
165
171
|
_this.datasourceBind = new DataSourceBind(props === null || props === void 0 ? void 0 : props.datasourceBind);
|
|
166
|
-
|
|
167
|
-
_this.
|
|
168
|
-
|
|
169
|
-
_this.
|
|
170
|
-
|
|
171
|
-
_this.
|
|
172
|
+
var _props_interreaction;
|
|
173
|
+
_this.interreaction = (_props_interreaction = props === null || props === void 0 ? void 0 : props.interreaction) !== null && _props_interreaction !== void 0 ? _props_interreaction : [];
|
|
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 : CheckboxControl.controlName;
|
|
176
|
+
var _props_defaultValue;
|
|
177
|
+
_this.defaultValue = (_props_defaultValue = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _props_defaultValue !== void 0 ? _props_defaultValue : [];
|
|
178
|
+
var _props_optionsFormat;
|
|
179
|
+
_this.optionsFormat = (_props_optionsFormat = props === null || props === void 0 ? void 0 : props.optionsFormat) !== null && _props_optionsFormat !== void 0 ? _props_optionsFormat : 'horizontal';
|
|
180
|
+
var _props_defaultShowOptions;
|
|
181
|
+
_this.defaultShowOptions = (_props_defaultShowOptions = props === null || props === void 0 ? void 0 : props.defaultShowOptions) !== null && _props_defaultShowOptions !== void 0 ? _props_defaultShowOptions : true;
|
|
182
|
+
var _props_openMultistageFilling;
|
|
183
|
+
_this.openMultistageFilling = (_props_openMultistageFilling = props === null || props === void 0 ? void 0 : props.openMultistageFilling) !== null && _props_openMultistageFilling !== void 0 ? _props_openMultistageFilling : false;
|
|
172
184
|
_this.multistageFilling = [];
|
|
173
185
|
if (Array.isArray(props === null || props === void 0 ? void 0 : props.multistageFilling)) {
|
|
174
186
|
props === null || props === void 0 ? void 0 : props.multistageFilling.map(function(item) {
|
|
@@ -176,7 +188,8 @@ var CheckboxProperty = /*#__PURE__*/ function(BaseControlProperty) {
|
|
|
176
188
|
(_this_multistageFilling = _this.multistageFilling) === null || _this_multistageFilling === void 0 ? void 0 : _this_multistageFilling.push(new MultistageFillingItem(item));
|
|
177
189
|
});
|
|
178
190
|
}
|
|
179
|
-
|
|
191
|
+
var _props_aiContentSearch;
|
|
192
|
+
_this.aiContentSearch = (_props_aiContentSearch = props === null || props === void 0 ? void 0 : props.aiContentSearch) !== null && _props_aiContentSearch !== void 0 ? _props_aiContentSearch : false;
|
|
180
193
|
return _this;
|
|
181
194
|
}
|
|
182
195
|
return CheckboxProperty;
|
|
@@ -81,7 +81,6 @@ var DatePickerProperty = /*#__PURE__*/ function(BaseControlProperty) {
|
|
|
81
81
|
function DatePickerProperty(props) {
|
|
82
82
|
_class_call_check(this, DatePickerProperty);
|
|
83
83
|
var _this;
|
|
84
|
-
var _ref, _ref1, _ref2, _ref3, _ref4, _ref5, _ref6, _ref7, _ref8, _ref9, _ref10, _ref11, _ref12;
|
|
85
84
|
var _props_limitDateList;
|
|
86
85
|
_this = _call_super(this, DatePickerProperty, [
|
|
87
86
|
props
|
|
@@ -97,25 +96,38 @@ var DatePickerProperty = /*#__PURE__*/ function(BaseControlProperty) {
|
|
|
97
96
|
), _define_property(_this, "isShowCustomDateFormat", void 0 //是否使用自定义格式化显示时间
|
|
98
97
|
), _define_property(_this, "customDateFormat", void 0 //自定义格式化显示时间
|
|
99
98
|
);
|
|
100
|
-
|
|
101
|
-
_this.
|
|
102
|
-
|
|
103
|
-
_this.
|
|
104
|
-
|
|
105
|
-
_this.
|
|
106
|
-
|
|
107
|
-
_this.
|
|
99
|
+
var _props_dateType;
|
|
100
|
+
_this.dateType = (_props_dateType = props === null || props === void 0 ? void 0 : props.dateType) !== null && _props_dateType !== void 0 ? _props_dateType : DateType.DATE;
|
|
101
|
+
var _props_dateFormat;
|
|
102
|
+
_this.dateFormat = (_props_dateFormat = props === null || props === void 0 ? void 0 : props.dateFormat) !== null && _props_dateFormat !== void 0 ? _props_dateFormat : '';
|
|
103
|
+
var _props_commonTimeSetting;
|
|
104
|
+
_this.commonTimeSetting = (_props_commonTimeSetting = props === null || props === void 0 ? void 0 : props.commonTimeSetting) !== null && _props_commonTimeSetting !== void 0 ? _props_commonTimeSetting : [];
|
|
105
|
+
var _props_setValueType;
|
|
106
|
+
_this.setValueType = (_props_setValueType = props === null || props === void 0 ? void 0 : props.setValueType) !== null && _props_setValueType !== void 0 ? _props_setValueType : 'custom';
|
|
107
|
+
var _props_caption;
|
|
108
|
+
_this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : DatePickerControl.controlName;
|
|
109
|
+
var _props_placeholder;
|
|
110
|
+
_this.placeholder = (_props_placeholder = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _props_placeholder !== void 0 ? _props_placeholder : getLocaleText('CMD.pleaseEnterDate', null, '请输入日期');
|
|
111
|
+
var _props_defaultValue;
|
|
112
|
+
_this.defaultValue = (_props_defaultValue = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _props_defaultValue !== void 0 ? _props_defaultValue : '';
|
|
113
|
+
var _props_limitDateList_map;
|
|
114
|
+
_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) {
|
|
108
115
|
return new LimitDate(item);
|
|
109
|
-
})) !== null &&
|
|
116
|
+
})) !== null && _props_limitDateList_map !== void 0 ? _props_limitDateList_map : [];
|
|
117
|
+
var _props_allowDateRange;
|
|
110
118
|
// this.multiple = props?.multiple ?? false
|
|
111
|
-
_this.allowDateRange = (
|
|
119
|
+
_this.allowDateRange = (_props_allowDateRange = props === null || props === void 0 ? void 0 : props.allowDateRange) !== null && _props_allowDateRange !== void 0 ? _props_allowDateRange : [
|
|
112
120
|
'',
|
|
113
121
|
''
|
|
114
122
|
];
|
|
115
|
-
|
|
116
|
-
_this.
|
|
117
|
-
|
|
118
|
-
_this.
|
|
123
|
+
var _props_filterWeekend;
|
|
124
|
+
_this.filterWeekend = (_props_filterWeekend = props === null || props === void 0 ? void 0 : props.filterWeekend) !== null && _props_filterWeekend !== void 0 ? _props_filterWeekend : false;
|
|
125
|
+
var _props_isInternational;
|
|
126
|
+
_this.isInternational = (_props_isInternational = props === null || props === void 0 ? void 0 : props.isInternational) !== null && _props_isInternational !== void 0 ? _props_isInternational : false;
|
|
127
|
+
var _props_isShowCustomDateFormat;
|
|
128
|
+
_this.isShowCustomDateFormat = (_props_isShowCustomDateFormat = props === null || props === void 0 ? void 0 : props.isShowCustomDateFormat) !== null && _props_isShowCustomDateFormat !== void 0 ? _props_isShowCustomDateFormat : false;
|
|
129
|
+
var _props_customDateFormat;
|
|
130
|
+
_this.customDateFormat = (_props_customDateFormat = props === null || props === void 0 ? void 0 : props.customDateFormat) !== null && _props_customDateFormat !== void 0 ? _props_customDateFormat : '';
|
|
119
131
|
return _this;
|
|
120
132
|
}
|
|
121
133
|
return DatePickerProperty;
|
|
@@ -117,7 +117,6 @@ var DateRangePropertyRuntimeRules = /*#__PURE__*/ function(BaseControlPropertyRu
|
|
|
117
117
|
function DateRangeProperty(props) {
|
|
118
118
|
_class_call_check(this, DateRangeProperty);
|
|
119
119
|
var _this;
|
|
120
|
-
var _ref, _ref1, _ref2, _ref3, _ref4, _ref5, _ref6, _ref7, _ref8, _ref9, _ref10;
|
|
121
120
|
var _props_limitDateList;
|
|
122
121
|
_this = _call_super(this, DateRangeProperty, [
|
|
123
122
|
props
|
|
@@ -167,19 +166,30 @@ var DateRangePropertyRuntimeRules = /*#__PURE__*/ function(BaseControlPropertyRu
|
|
|
167
166
|
);
|
|
168
167
|
_this.dataBind = new RangeDataBind(props === null || props === void 0 ? void 0 : props.dataBind);
|
|
169
168
|
_this.defaultValue = new RangeDateValue(props === null || props === void 0 ? void 0 : props.defaultValue);
|
|
170
|
-
|
|
171
|
-
_this.
|
|
172
|
-
|
|
173
|
-
_this.
|
|
174
|
-
|
|
175
|
-
_this.
|
|
176
|
-
|
|
177
|
-
_this.
|
|
178
|
-
|
|
179
|
-
_this.
|
|
169
|
+
var _props_dateType;
|
|
170
|
+
_this.dateType = (_props_dateType = props === null || props === void 0 ? void 0 : props.dateType) !== null && _props_dateType !== void 0 ? _props_dateType : DateType.DATE;
|
|
171
|
+
var _props_dateFormat;
|
|
172
|
+
_this.dateFormat = (_props_dateFormat = props === null || props === void 0 ? void 0 : props.dateFormat) !== null && _props_dateFormat !== void 0 ? _props_dateFormat : '';
|
|
173
|
+
var _props_commonTimeSetting;
|
|
174
|
+
_this.commonTimeSetting = (_props_commonTimeSetting = props === null || props === void 0 ? void 0 : props.commonTimeSetting) !== null && _props_commonTimeSetting !== void 0 ? _props_commonTimeSetting : [];
|
|
175
|
+
var _props_setValueType;
|
|
176
|
+
_this.setValueType = (_props_setValueType = props === null || props === void 0 ? void 0 : props.setValueType) !== null && _props_setValueType !== void 0 ? _props_setValueType : 'custom';
|
|
177
|
+
var _props_rangeMin;
|
|
178
|
+
_this.rangeMin = (_props_rangeMin = props === null || props === void 0 ? void 0 : props.rangeMin) !== null && _props_rangeMin !== void 0 ? _props_rangeMin : '';
|
|
179
|
+
var _props_rangeMax;
|
|
180
|
+
_this.rangeMax = (_props_rangeMax = props === null || props === void 0 ? void 0 : props.rangeMax) !== null && _props_rangeMax !== void 0 ? _props_rangeMax : '';
|
|
181
|
+
var _props_placeholderStart;
|
|
182
|
+
_this.placeholderStart = (_props_placeholderStart = props === null || props === void 0 ? void 0 : props.placeholderStart) !== null && _props_placeholderStart !== void 0 ? _props_placeholderStart : getLocaleText('CMD.pleaseSelectStartDate', null, '请选择开始日期');
|
|
183
|
+
var _props_placeholderEnd;
|
|
184
|
+
_this.placeholderEnd = (_props_placeholderEnd = props === null || props === void 0 ? void 0 : props.placeholderEnd) !== null && _props_placeholderEnd !== void 0 ? _props_placeholderEnd : getLocaleText('CMD.pleaseSelectEndDate', null, '请选择结束日期');
|
|
185
|
+
var _props_caption;
|
|
186
|
+
_this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : DateRangeControl.controlName;
|
|
187
|
+
var _props_limitDateList_map;
|
|
188
|
+
_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) {
|
|
180
189
|
return new LimitDate(item);
|
|
181
|
-
})) !== null &&
|
|
182
|
-
|
|
190
|
+
})) !== null && _props_limitDateList_map !== void 0 ? _props_limitDateList_map : [];
|
|
191
|
+
var _props_isInternational;
|
|
192
|
+
_this.isInternational = (_props_isInternational = props === null || props === void 0 ? void 0 : props.isInternational) !== null && _props_isInternational !== void 0 ? _props_isInternational : false;
|
|
183
193
|
return _this;
|
|
184
194
|
}
|
|
185
195
|
return DateRangeProperty;
|
|
@@ -95,7 +95,6 @@ var DepartmentProperty = /*#__PURE__*/ function(BaseControlProperty) {
|
|
|
95
95
|
function DepartmentProperty(props) {
|
|
96
96
|
_class_call_check(this, DepartmentProperty);
|
|
97
97
|
var _this;
|
|
98
|
-
var _ref, _ref1, _ref2, _ref3, _ref4, _ref5, _ref6, _ref7, _ref8, _ref9, _ref10;
|
|
99
98
|
_this = _call_super(this, DepartmentProperty, [
|
|
100
99
|
props
|
|
101
100
|
]), /**
|
|
@@ -118,17 +117,28 @@ var DepartmentProperty = /*#__PURE__*/ function(BaseControlProperty) {
|
|
|
118
117
|
* 多级填充
|
|
119
118
|
* */ _define_property(_this, "multistageFilling", void 0), _define_property(_this, "openMultistageFilling", void 0 //是否开启填充
|
|
120
119
|
);
|
|
121
|
-
|
|
122
|
-
_this.
|
|
123
|
-
|
|
124
|
-
_this.
|
|
125
|
-
|
|
126
|
-
_this.
|
|
127
|
-
|
|
128
|
-
_this.
|
|
129
|
-
|
|
130
|
-
_this.
|
|
131
|
-
|
|
120
|
+
var _props_showType;
|
|
121
|
+
_this.showType = (_props_showType = props === null || props === void 0 ? void 0 : props.showType) !== null && _props_showType !== void 0 ? _props_showType : 'default';
|
|
122
|
+
var _props_multiple;
|
|
123
|
+
_this.multiple = (_props_multiple = props === null || props === void 0 ? void 0 : props.multiple) !== null && _props_multiple !== void 0 ? _props_multiple : false;
|
|
124
|
+
var _props_range;
|
|
125
|
+
_this.range = (_props_range = props === null || props === void 0 ? void 0 : props.range) !== null && _props_range !== void 0 ? _props_range : 'all';
|
|
126
|
+
var _props_defaultValueType;
|
|
127
|
+
_this.defaultValueType = (_props_defaultValueType = props === null || props === void 0 ? void 0 : props.defaultValueType) !== null && _props_defaultValueType !== void 0 ? _props_defaultValueType : 'none';
|
|
128
|
+
var _props_rangeOptions;
|
|
129
|
+
_this.rangeOptions = (_props_rangeOptions = props === null || props === void 0 ? void 0 : props.rangeOptions) !== null && _props_rangeOptions !== void 0 ? _props_rangeOptions : [];
|
|
130
|
+
var _props_defaultValue;
|
|
131
|
+
_this.defaultValue = (_props_defaultValue = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _props_defaultValue !== void 0 ? _props_defaultValue : [];
|
|
132
|
+
var _props_displayLevel;
|
|
133
|
+
_this.displayLevel = (_props_displayLevel = props === null || props === void 0 ? void 0 : props.displayLevel) !== null && _props_displayLevel !== void 0 ? _props_displayLevel : 1;
|
|
134
|
+
var _props_showSubDept;
|
|
135
|
+
_this.showSubDept = (_props_showSubDept = props === null || props === void 0 ? void 0 : props.showSubDept) !== null && _props_showSubDept !== void 0 ? _props_showSubDept : true;
|
|
136
|
+
var _props_caption;
|
|
137
|
+
_this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : DepartmentControl.controlName;
|
|
138
|
+
var _props_placeholder;
|
|
139
|
+
_this.placeholder = (_props_placeholder = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _props_placeholder !== void 0 ? _props_placeholder : getLocaleText('CMD.pleaseSelectDept', null, '请选择部门');
|
|
140
|
+
var _props_openMultistageFilling;
|
|
141
|
+
_this.openMultistageFilling = (_props_openMultistageFilling = props === null || props === void 0 ? void 0 : props.openMultistageFilling) !== null && _props_openMultistageFilling !== void 0 ? _props_openMultistageFilling : false;
|
|
132
142
|
_this.multistageFilling = [];
|
|
133
143
|
if (Array.isArray(props === null || props === void 0 ? void 0 : props.multistageFilling)) {
|
|
134
144
|
props === null || props === void 0 ? void 0 : props.multistageFilling.map(function(item) {
|