@byteluck-fe/model-driven-controls 4.53.0-lx2 → 4.54.0-lx2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/esm/baseControls/BatchDeleteButton/property.js +10 -18
- package/dist/esm/baseControls/BatchPrintListButton/property.js +6 -9
- package/dist/esm/baseControls/BatchPrintRecordListButton/property.js +3 -4
- package/dist/esm/baseControls/BatchSubmissionListButton/property.js +7 -12
- package/dist/esm/baseControls/Button/property.js +10 -18
- package/dist/esm/baseControls/CreateFormListButton/property.js +5 -8
- package/dist/esm/baseControls/Dashboard/property.js +7 -12
- package/dist/esm/baseControls/Divider/property.js +4 -5
- package/dist/esm/baseControls/ExportListButton/property.js +6 -9
- package/dist/esm/baseControls/ExportRecordListButton/property.js +3 -4
- package/dist/esm/baseControls/FormSelectButton/property.js +5 -8
- package/dist/esm/baseControls/ImportRecordListButton/designer.js +4 -0
- package/dist/esm/baseControls/ImportRecordListButton/property.js +10 -10
- package/dist/esm/baseControls/InvoiceCheckButton/property.js +11 -19
- package/dist/esm/baseControls/ListSelectButton/property.js +5 -8
- package/dist/esm/baseControls/ListViewSelect/property.js +4 -5
- package/dist/esm/baseControls/OperationButton/property.js +6 -10
- package/dist/esm/baseControls/SubmissionRecordListButton/property.js +3 -4
- package/dist/esm/baseControls/Text/property.js +7 -12
- package/dist/esm/baseControls/TextOcrButton/property.js +11 -19
- package/dist/esm/baseControls/Title/property.js +7 -12
- package/dist/esm/columnControls/ApprovalStatusColumn/property.js +4 -6
- package/dist/esm/columnControls/ArrayColumn/property.js +5 -8
- package/dist/esm/columnControls/AutoNumberColumn/property.js +3 -4
- package/dist/esm/columnControls/CustomColumn/designer.js +1 -0
- package/dist/esm/columnControls/CustomColumn/property.js +4 -6
- package/dist/esm/columnControls/DecimalColumn/property.js +8 -14
- package/dist/esm/columnControls/DepartmentColumn/property.js +3 -4
- package/dist/esm/columnControls/EmployeeColumn/property.js +3 -4
- package/dist/esm/columnControls/FileColumn/designer.js +8 -8
- package/dist/esm/columnControls/FileColumn/property.js +2 -2
- package/dist/esm/columnControls/ImageColumn/property.js +2 -2
- package/dist/esm/columnControls/LocationColumn/property.js +3 -4
- package/dist/esm/columnControls/OperationColumn/designer.js +12 -4
- package/dist/esm/columnControls/OperationColumn/property.js +6 -10
- package/dist/esm/columnControls/OrderColumn/property.js +7 -12
- package/dist/esm/columnControls/PeopleColumn/property.js +2 -2
- package/dist/esm/columnControls/TextColumn/property.js +5 -8
- package/dist/esm/columnControls/TimescopeColumn/property.js +4 -6
- package/dist/esm/columnControls/TimestampColumn/property.js +4 -6
- package/dist/esm/columnControls/VarcharColumn/property.js +7 -12
- package/dist/esm/formControls/Address/property.js +6 -10
- package/dist/esm/formControls/Amount/property.js +12 -22
- package/dist/esm/formControls/Attachment/property.js +23 -36
- package/dist/esm/formControls/AutoNumber/property.js +4 -6
- package/dist/esm/formControls/Calc/property.js +9 -16
- package/dist/esm/formControls/Checkbox/property.js +15 -27
- package/dist/esm/formControls/DatePicker/property.js +12 -21
- package/dist/esm/formControls/DateRange/property.js +12 -21
- package/dist/esm/formControls/Department/property.js +12 -22
- package/dist/esm/formControls/Department2/property.js +17 -32
- package/dist/esm/formControls/ElectronicSignature/property.js +7 -12
- package/dist/esm/formControls/Employee/property.js +10 -18
- package/dist/esm/formControls/Employee2/property.js +15 -28
- package/dist/esm/formControls/Image/designer.js +11 -12
- package/dist/esm/formControls/Image/property.js +10 -10
- package/dist/esm/formControls/Image/runtime.js +4 -6
- package/dist/esm/formControls/Input/property.js +8 -14
- package/dist/esm/formControls/Link/property.js +4 -6
- package/dist/esm/formControls/Number/property.js +14 -26
- package/dist/esm/formControls/OrganizationSelection/property.js +19 -36
- package/dist/esm/formControls/Radio/property.js +12 -22
- package/dist/esm/formControls/RichText/property.js +6 -10
- package/dist/esm/formControls/Score/property.js +8 -13
- package/dist/esm/formControls/SearchDateRange/property.js +13 -23
- package/dist/esm/formControls/SearchNumberRange/property.js +7 -12
- package/dist/esm/formControls/Select/property.js +11 -20
- package/dist/esm/formControls/SelectMultiple/property.js +10 -18
- package/dist/esm/formControls/SelectRelation/property.js +10 -18
- package/dist/esm/formControls/SensitivenInformation/property.js +8 -14
- package/dist/esm/formControls/Textarea/property.js +8 -14
- package/dist/esm/formControls/Tree/property.js +20 -37
- package/dist/esm/formControls/VueFormItem/property.js +6 -10
- package/dist/esm/formControls/WPS/designer.js +9 -9
- package/dist/esm/formControls/WPS/property.js +13 -24
- package/dist/esm/framework.js +41 -67
- package/dist/esm/layoutControls/ActionBar/designer.js +2 -2
- package/dist/esm/layoutControls/ActionBar/property.js +4 -6
- package/dist/esm/layoutControls/ActionBar/runtime.js +2 -2
- package/dist/esm/layoutControls/CardGroup/property.js +3 -4
- package/dist/esm/layoutControls/Col/property.js +3 -4
- package/dist/esm/layoutControls/DataView/property.js +7 -12
- package/dist/esm/layoutControls/GridLayoutContainer/property.js +3 -4
- package/dist/esm/layoutControls/GridTableColumn/property.js +11 -20
- package/dist/esm/layoutControls/ListView/property.js +19 -34
- package/dist/esm/layoutControls/Page/property.js +2 -2
- package/dist/esm/layoutControls/Position/property.js +5 -8
- package/dist/esm/layoutControls/Row/property.js +3 -4
- package/dist/esm/layoutControls/SubTableColumn/property.js +6 -10
- package/dist/esm/layoutControls/Tab/designer.js +2 -2
- package/dist/esm/layoutControls/Tab/property.js +2 -2
- package/dist/esm/layoutControls/TabPane/property.js +2 -2
- package/dist/esm/listControls/GridTable/designer.js +12 -4
- package/dist/esm/listControls/GridTable/property.js +15 -19
- package/dist/esm/listControls/SubTable/designer.js +2 -1
- package/dist/esm/listControls/SubTable/property.js +33 -64
- package/dist/esm/searchControls/SimpleSearch/property.js +11 -20
- package/dist/esm/searchControls/SimpleSearch/runtime.js +2 -2
- package/dist/esm/wrapControls/GridLayoutWrap/designer.js +8 -8
- package/dist/esm/wrapControls/GridLayoutWrap/property.js +2 -2
- package/dist/esm/wrapControls/GridLayoutWrap/runtime.js +8 -8
- package/dist/index.umd.js +1 -1
- package/dist/types/baseControls/ImportRecordListButton/property.d.ts +2 -0
- package/package.json +5 -5
|
@@ -94,6 +94,7 @@ var EmployeeProperty = /*#__PURE__*/ function(BaseControlProperty) {
|
|
|
94
94
|
function EmployeeProperty(props) {
|
|
95
95
|
_class_call_check(this, EmployeeProperty);
|
|
96
96
|
var _this;
|
|
97
|
+
var _ref, _ref1, _ref2, _ref3, _ref4, _ref5, _ref6, _ref7, _ref8;
|
|
97
98
|
_this = _call_super(this, EmployeeProperty, [
|
|
98
99
|
props
|
|
99
100
|
]), /**
|
|
@@ -104,24 +105,15 @@ var EmployeeProperty = /*#__PURE__*/ function(BaseControlProperty) {
|
|
|
104
105
|
), _define_property(_this, "defaultValueType", void 0 // 默认值: null / 表单发起人 / 指定人员
|
|
105
106
|
), _define_property(_this, "defaultValue", void 0), _define_property(_this, "multistageFilling", void 0), _define_property(_this, "openMultistageFilling", void 0 //是否开启填充
|
|
106
107
|
);
|
|
107
|
-
|
|
108
|
-
_this.
|
|
109
|
-
|
|
110
|
-
_this.
|
|
111
|
-
|
|
112
|
-
_this.
|
|
113
|
-
|
|
114
|
-
_this.
|
|
115
|
-
|
|
116
|
-
_this.defaultValueType = (_props_defaultValueType = props === null || props === void 0 ? void 0 : props.defaultValueType) !== null && _props_defaultValueType !== void 0 ? _props_defaultValueType : 'none';
|
|
117
|
-
var _props_defaultValue;
|
|
118
|
-
_this.defaultValue = (_props_defaultValue = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _props_defaultValue !== void 0 ? _props_defaultValue : [];
|
|
119
|
-
var _props_caption;
|
|
120
|
-
_this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : EmployeeControl.controlName;
|
|
121
|
-
var _props_placeholder;
|
|
122
|
-
_this.placeholder = (_props_placeholder = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _props_placeholder !== void 0 ? _props_placeholder : '请输入人员姓名或邮箱';
|
|
123
|
-
var _props_openMultistageFilling;
|
|
124
|
-
_this.openMultistageFilling = (_props_openMultistageFilling = props === null || props === void 0 ? void 0 : props.openMultistageFilling) !== null && _props_openMultistageFilling !== void 0 ? _props_openMultistageFilling : false;
|
|
108
|
+
_this.showType = (_ref = props === null || props === void 0 ? void 0 : props.showType) !== null && _ref !== void 0 ? _ref : 'default';
|
|
109
|
+
_this.range = (_ref1 = props === null || props === void 0 ? void 0 : props.range) !== null && _ref1 !== void 0 ? _ref1 : 'all';
|
|
110
|
+
_this.rangeOptions = (_ref2 = props === null || props === void 0 ? void 0 : props.rangeOptions) !== null && _ref2 !== void 0 ? _ref2 : [];
|
|
111
|
+
_this.multiple = (_ref3 = props === null || props === void 0 ? void 0 : props.multiple) !== null && _ref3 !== void 0 ? _ref3 : false;
|
|
112
|
+
_this.defaultValueType = (_ref4 = props === null || props === void 0 ? void 0 : props.defaultValueType) !== null && _ref4 !== void 0 ? _ref4 : 'none';
|
|
113
|
+
_this.defaultValue = (_ref5 = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _ref5 !== void 0 ? _ref5 : [];
|
|
114
|
+
_this.caption = (_ref6 = props === null || props === void 0 ? void 0 : props.caption) !== null && _ref6 !== void 0 ? _ref6 : EmployeeControl.controlName;
|
|
115
|
+
_this.placeholder = (_ref7 = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _ref7 !== void 0 ? _ref7 : '请输入人员姓名或邮箱';
|
|
116
|
+
_this.openMultistageFilling = (_ref8 = props === null || props === void 0 ? void 0 : props.openMultistageFilling) !== null && _ref8 !== void 0 ? _ref8 : false;
|
|
125
117
|
_this.multistageFilling = [];
|
|
126
118
|
if (Array.isArray(props === null || props === void 0 ? void 0 : props.multistageFilling)) {
|
|
127
119
|
props === null || props === void 0 ? void 0 : props.multistageFilling.map(function(item) {
|
|
@@ -124,6 +124,7 @@ var Employee2Property = /*#__PURE__*/ function(BaseControlProperty) {
|
|
|
124
124
|
function Employee2Property(props) {
|
|
125
125
|
_class_call_check(this, Employee2Property);
|
|
126
126
|
var _this;
|
|
127
|
+
var _ref, _ref1, _ref2, _ref3, _ref4, _ref5, _ref6, _ref7, _ref8, _ref9, _ref10, _ref11, _ref12, _ref13;
|
|
127
128
|
_this = _call_super(this, Employee2Property, [
|
|
128
129
|
props
|
|
129
130
|
]), /**
|
|
@@ -138,36 +139,22 @@ var Employee2Property = /*#__PURE__*/ function(BaseControlProperty) {
|
|
|
138
139
|
), _define_property(_this, "externalScope", void 0 //指定外部组织
|
|
139
140
|
), _define_property(_this, "openMultistageFilling", void 0 //是否开启填充
|
|
140
141
|
);
|
|
141
|
-
|
|
142
|
-
_this.
|
|
143
|
-
|
|
144
|
-
_this.
|
|
145
|
-
|
|
146
|
-
_this.
|
|
147
|
-
|
|
148
|
-
_this.
|
|
149
|
-
|
|
150
|
-
_this.defaultValueType = (_props_defaultValueType = props === null || props === void 0 ? void 0 : props.defaultValueType) !== null && _props_defaultValueType !== void 0 ? _props_defaultValueType : 'none';
|
|
151
|
-
var _props_defaultValue;
|
|
152
|
-
_this.defaultValue = (_props_defaultValue = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _props_defaultValue !== void 0 ? _props_defaultValue : [];
|
|
153
|
-
var _props_caption;
|
|
154
|
-
_this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : Employee2Control.controlName;
|
|
155
|
-
var _props_placeholder;
|
|
156
|
-
_this.placeholder = (_props_placeholder = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _props_placeholder !== void 0 ? _props_placeholder : '请输入人员姓名或邮箱';
|
|
157
|
-
var _props_datasourceBind;
|
|
158
|
-
_this.datasourceBind = new SuperDataSourceBind((_props_datasourceBind = props === null || props === void 0 ? void 0 : props.datasourceBind) !== null && _props_datasourceBind !== void 0 ? _props_datasourceBind : {
|
|
142
|
+
_this.showType = (_ref = props === null || props === void 0 ? void 0 : props.showType) !== null && _ref !== void 0 ? _ref : 'default';
|
|
143
|
+
_this.range = (_ref1 = props === null || props === void 0 ? void 0 : props.range) !== null && _ref1 !== void 0 ? _ref1 : 'all';
|
|
144
|
+
_this.rangeOptions = (_ref2 = props === null || props === void 0 ? void 0 : props.rangeOptions) !== null && _ref2 !== void 0 ? _ref2 : [];
|
|
145
|
+
_this.multiple = (_ref3 = props === null || props === void 0 ? void 0 : props.multiple) !== null && _ref3 !== void 0 ? _ref3 : false;
|
|
146
|
+
_this.defaultValueType = (_ref4 = props === null || props === void 0 ? void 0 : props.defaultValueType) !== null && _ref4 !== void 0 ? _ref4 : 'none';
|
|
147
|
+
_this.defaultValue = (_ref5 = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _ref5 !== void 0 ? _ref5 : [];
|
|
148
|
+
_this.caption = (_ref6 = props === null || props === void 0 ? void 0 : props.caption) !== null && _ref6 !== void 0 ? _ref6 : Employee2Control.controlName;
|
|
149
|
+
_this.placeholder = (_ref7 = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _ref7 !== void 0 ? _ref7 : '请输入人员姓名或邮箱';
|
|
150
|
+
_this.datasourceBind = new SuperDataSourceBind((_ref8 = props === null || props === void 0 ? void 0 : props.datasourceBind) !== null && _ref8 !== void 0 ? _ref8 : {
|
|
159
151
|
attributes: Employee2Control.controlCustomAttributes
|
|
160
152
|
});
|
|
161
|
-
|
|
162
|
-
_this.
|
|
163
|
-
|
|
164
|
-
_this.
|
|
165
|
-
|
|
166
|
-
_this.externalType = (_props_externalType = props === null || props === void 0 ? void 0 : props.externalType) !== null && _props_externalType !== void 0 ? _props_externalType : AssignType.ALL;
|
|
167
|
-
var _props_externalScope;
|
|
168
|
-
_this.externalScope = (_props_externalScope = props === null || props === void 0 ? void 0 : props.externalScope) !== null && _props_externalScope !== void 0 ? _props_externalScope : [];
|
|
169
|
-
var _props_openMultistageFilling;
|
|
170
|
-
_this.openMultistageFilling = (_props_openMultistageFilling = props === null || props === void 0 ? void 0 : props.openMultistageFilling) !== null && _props_openMultistageFilling !== void 0 ? _props_openMultistageFilling : false;
|
|
153
|
+
_this.datasourceType = (_ref9 = props === null || props === void 0 ? void 0 : props.datasourceType) !== null && _ref9 !== void 0 ? _ref9 : OrganizeType.INTERNAL; //默认内部组织 EXTERNAL 外部组织
|
|
154
|
+
_this.insideType = (_ref10 = props === null || props === void 0 ? void 0 : props.insideType) !== null && _ref10 !== void 0 ? _ref10 : InternalType.ADMIN;
|
|
155
|
+
_this.externalType = (_ref11 = props === null || props === void 0 ? void 0 : props.externalType) !== null && _ref11 !== void 0 ? _ref11 : AssignType.ALL;
|
|
156
|
+
_this.externalScope = (_ref12 = props === null || props === void 0 ? void 0 : props.externalScope) !== null && _ref12 !== void 0 ? _ref12 : [];
|
|
157
|
+
_this.openMultistageFilling = (_ref13 = props === null || props === void 0 ? void 0 : props.openMultistageFilling) !== null && _ref13 !== void 0 ? _ref13 : false;
|
|
171
158
|
_this.multistageFilling = [];
|
|
172
159
|
if (Array.isArray(props === null || props === void 0 ? void 0 : props.multistageFilling)) {
|
|
173
160
|
props === null || props === void 0 ? void 0 : props.multistageFilling.map(function(item) {
|
|
@@ -1,10 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
* @Author: zhaoxiaoyang zhaoxiaoyang@byteluck.com
|
|
3
|
-
* @Date: 2022-12-01 14:40:30
|
|
4
|
-
* @LastEditors: zhaoxiaoyang zhaoxiaoyang@byteluck.com
|
|
5
|
-
* @LastEditTime: 2023-09-19 15:50:38
|
|
6
|
-
* @FilePath: /model-driven/packages/controls/src/formControls/Image/designer.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
|
}
|
|
@@ -90,7 +84,13 @@ function _is_native_reflect_construct() {
|
|
|
90
84
|
return !!result;
|
|
91
85
|
})();
|
|
92
86
|
}
|
|
93
|
-
|
|
87
|
+
/*
|
|
88
|
+
* @Author: zhaoxiaoyang zhaoxiaoyang@byteluck.com
|
|
89
|
+
* @Date: 2022-12-01 14:40:30
|
|
90
|
+
* @LastEditors: zhaoxiaoyang zhaoxiaoyang@byteluck.com
|
|
91
|
+
* @LastEditTime: 2023-09-19 15:50:38
|
|
92
|
+
* @FilePath: /model-driven/packages/controls/src/formControls/Image/designer.ts
|
|
93
|
+
*/ import { DesignerAttachmentControl } from '../Attachment';
|
|
94
94
|
import { COMMON_SETTING_TYPE } from '@byteluck-fe/model-driven-core';
|
|
95
95
|
import { FieldTypes } from '@byteluck-fe/model-driven-shared';
|
|
96
96
|
import ImageProperty from './property';
|
|
@@ -100,16 +100,15 @@ var ImageControl = /*#__PURE__*/ function(DesignerAttachmentControl) {
|
|
|
100
100
|
function ImageControl(props) {
|
|
101
101
|
_class_call_check(this, ImageControl);
|
|
102
102
|
var _this;
|
|
103
|
+
var _ref, _ref1;
|
|
103
104
|
var _props_props, _props_props1;
|
|
104
105
|
_this = _call_super(this, ImageControl, [
|
|
105
106
|
props
|
|
106
107
|
]), _define_property(_this, "props", void 0);
|
|
107
108
|
_this.props = new ImageProperty(props === null || props === void 0 ? void 0 : props.props);
|
|
108
109
|
_this.props.showType = 'image';
|
|
109
|
-
|
|
110
|
-
_this.props.
|
|
111
|
-
var _props_props_placeholder;
|
|
112
|
-
_this.props.placeholder = (_props_props_placeholder = props === null || props === void 0 ? void 0 : (_props_props1 = props.props) === null || _props_props1 === void 0 ? void 0 : _props_props1.placeholder) !== null && _props_props_placeholder !== void 0 ? _props_props_placeholder : '上传图片';
|
|
110
|
+
_this.props.caption = (_ref = props === null || props === void 0 ? void 0 : (_props_props = props.props) === null || _props_props === void 0 ? void 0 : _props_props.caption) !== null && _ref !== void 0 ? _ref : ImageControl.controlName;
|
|
111
|
+
_this.props.placeholder = (_ref1 = props === null || props === void 0 ? void 0 : (_props_props1 = props.props) === null || _props_props1 === void 0 ? void 0 : _props_props1.placeholder) !== null && _ref1 !== void 0 ? _ref1 : '上传图片';
|
|
113
112
|
return _this;
|
|
114
113
|
}
|
|
115
114
|
_create_class(ImageControl, null, [
|
|
@@ -1,10 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
* @Author: zhaoxiaoyang zhaoxiaoyang@byteluck.com
|
|
3
|
-
* @Date: 2022-12-01 14:40:30
|
|
4
|
-
* @LastEditors: zhaoxiaoyang zhaoxiaoyang@byteluck.com
|
|
5
|
-
* @LastEditTime: 2023-09-19 14:56:27
|
|
6
|
-
* @FilePath: /model-driven/packages/controls/src/formControls/Image/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,21 +70,27 @@ function _is_native_reflect_construct() {
|
|
|
76
70
|
return !!result;
|
|
77
71
|
})();
|
|
78
72
|
}
|
|
79
|
-
|
|
73
|
+
/*
|
|
74
|
+
* @Author: zhaoxiaoyang zhaoxiaoyang@byteluck.com
|
|
75
|
+
* @Date: 2022-12-01 14:40:30
|
|
76
|
+
* @LastEditors: zhaoxiaoyang zhaoxiaoyang@byteluck.com
|
|
77
|
+
* @LastEditTime: 2023-09-19 14:56:27
|
|
78
|
+
* @FilePath: /model-driven/packages/controls/src/formControls/Image/property.ts
|
|
79
|
+
*/ import { AttachmentProperty } from '../Attachment';
|
|
80
80
|
var ImageProperty = /*#__PURE__*/ function(AttachmentProperty) {
|
|
81
81
|
"use strict";
|
|
82
82
|
_inherits(ImageProperty, AttachmentProperty);
|
|
83
83
|
function ImageProperty(props) {
|
|
84
84
|
_class_call_check(this, ImageProperty);
|
|
85
85
|
var _this;
|
|
86
|
+
var _ref;
|
|
86
87
|
_this = _call_super(this, ImageProperty, [
|
|
87
88
|
props
|
|
88
89
|
]), /**
|
|
89
90
|
* 仅允许拍照上传,pc端无效
|
|
90
91
|
* default false
|
|
91
92
|
*/ _define_property(_this, "onlyAllowTakePhoto", void 0);
|
|
92
|
-
|
|
93
|
-
_this.onlyAllowTakePhoto = (_props_onlyAllowTakePhoto = props === null || props === void 0 ? void 0 : props.onlyAllowTakePhoto) !== null && _props_onlyAllowTakePhoto !== void 0 ? _props_onlyAllowTakePhoto : false;
|
|
93
|
+
_this.onlyAllowTakePhoto = (_ref = props === null || props === void 0 ? void 0 : props.onlyAllowTakePhoto) !== null && _ref !== void 0 ? _ref : false;
|
|
94
94
|
return _this;
|
|
95
95
|
}
|
|
96
96
|
return ImageProperty;
|
|
@@ -78,17 +78,15 @@ var ImageControl = /*#__PURE__*/ function(RuntimeAttachmentControl) {
|
|
|
78
78
|
function ImageControl(props) {
|
|
79
79
|
_class_call_check(this, ImageControl);
|
|
80
80
|
var _this;
|
|
81
|
+
var _ref, _ref1, _ref2;
|
|
81
82
|
var _props_props, _props_props1, _props_props2;
|
|
82
83
|
_this = _call_super(this, ImageControl, [
|
|
83
84
|
props
|
|
84
85
|
]);
|
|
85
86
|
_this.props.showType = 'image';
|
|
86
|
-
|
|
87
|
-
_this.props.
|
|
88
|
-
|
|
89
|
-
_this.props.caption = (_props_props_caption = props === null || props === void 0 ? void 0 : (_props_props1 = props.props) === null || _props_props1 === void 0 ? void 0 : _props_props1.caption) !== null && _props_props_caption !== void 0 ? _props_props_caption : '图片';
|
|
90
|
-
var _props_props_placeholder;
|
|
91
|
-
_this.props.placeholder = (_props_props_placeholder = props === null || props === void 0 ? void 0 : (_props_props2 = props.props) === null || _props_props2 === void 0 ? void 0 : _props_props2.placeholder) !== null && _props_props_placeholder !== void 0 ? _props_props_placeholder : '上传图片';
|
|
87
|
+
_this.props.maxLimit = (_ref = props === null || props === void 0 ? void 0 : (_props_props = props.props) === null || _props_props === void 0 ? void 0 : _props_props.maxLimit) !== null && _ref !== void 0 ? _ref : 9;
|
|
88
|
+
_this.props.caption = (_ref1 = props === null || props === void 0 ? void 0 : (_props_props1 = props.props) === null || _props_props1 === void 0 ? void 0 : _props_props1.caption) !== null && _ref1 !== void 0 ? _ref1 : '图片';
|
|
89
|
+
_this.props.placeholder = (_ref2 = props === null || props === void 0 ? void 0 : (_props_props2 = props.props) === null || _props_props2 === void 0 ? void 0 : _props_props2.placeholder) !== null && _ref2 !== void 0 ? _ref2 : '上传图片';
|
|
92
90
|
return _this;
|
|
93
91
|
}
|
|
94
92
|
_create_class(ImageControl, null, [
|
|
@@ -155,6 +155,7 @@ var InputControlPropertyRuntimeRules = /*#__PURE__*/ function(BaseControlPropert
|
|
|
155
155
|
function InputProperty(props) {
|
|
156
156
|
_class_call_check(this, InputProperty);
|
|
157
157
|
var _this;
|
|
158
|
+
var _ref, _ref1, _ref2, _ref3, _ref4, _ref5, _ref6;
|
|
158
159
|
_this = _call_super(this, InputProperty, [
|
|
159
160
|
props
|
|
160
161
|
]), /**
|
|
@@ -181,21 +182,14 @@ var InputControlPropertyRuntimeRules = /*#__PURE__*/ function(BaseControlPropert
|
|
|
181
182
|
* @defaultValue ''
|
|
182
183
|
* @public
|
|
183
184
|
*/ _define_property(_this, "encryptedMode", void 0);
|
|
184
|
-
|
|
185
|
-
_this.
|
|
186
|
-
var _props_minLength;
|
|
187
|
-
_this.minLength = (_props_minLength = props === null || props === void 0 ? void 0 : props.minLength) !== null && _props_minLength !== void 0 ? _props_minLength : 0;
|
|
185
|
+
_this.maxLength = (_ref = props === null || props === void 0 ? void 0 : props.maxLength) !== null && _ref !== void 0 ? _ref : 200;
|
|
186
|
+
_this.minLength = (_ref1 = props === null || props === void 0 ? void 0 : props.minLength) !== null && _ref1 !== void 0 ? _ref1 : 0;
|
|
188
187
|
_this.regularRules = new RegularRules(props === null || props === void 0 ? void 0 : props.regularRules);
|
|
189
|
-
|
|
190
|
-
_this.
|
|
191
|
-
|
|
192
|
-
_this.
|
|
193
|
-
|
|
194
|
-
_this.placeholder = (_props_placeholder = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _props_placeholder !== void 0 ? _props_placeholder : '请输入';
|
|
195
|
-
var _props_encrypted;
|
|
196
|
-
_this.encrypted = (_props_encrypted = props === null || props === void 0 ? void 0 : props.encrypted) !== null && _props_encrypted !== void 0 ? _props_encrypted : false;
|
|
197
|
-
var _props_encryptedMode;
|
|
198
|
-
_this.encryptedMode = (_props_encryptedMode = props === null || props === void 0 ? void 0 : props.encryptedMode) !== null && _props_encryptedMode !== void 0 ? _props_encryptedMode : '';
|
|
188
|
+
_this.defaultValue = (_ref2 = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _ref2 !== void 0 ? _ref2 : '';
|
|
189
|
+
_this.caption = (_ref3 = props === null || props === void 0 ? void 0 : props.caption) !== null && _ref3 !== void 0 ? _ref3 : InputControl.controlName;
|
|
190
|
+
_this.placeholder = (_ref4 = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _ref4 !== void 0 ? _ref4 : '请输入';
|
|
191
|
+
_this.encrypted = (_ref5 = props === null || props === void 0 ? void 0 : props.encrypted) !== null && _ref5 !== void 0 ? _ref5 : false;
|
|
192
|
+
_this.encryptedMode = (_ref6 = props === null || props === void 0 ? void 0 : props.encryptedMode) !== null && _ref6 !== void 0 ? _ref6 : '';
|
|
199
193
|
return _this;
|
|
200
194
|
}
|
|
201
195
|
return InputProperty;
|
|
@@ -77,15 +77,13 @@ var LinkProperty = /*#__PURE__*/ function(BaseControlProperty) {
|
|
|
77
77
|
function LinkProperty(props) {
|
|
78
78
|
_class_call_check(this, LinkProperty);
|
|
79
79
|
var _this;
|
|
80
|
+
var _ref, _ref1, _ref2;
|
|
80
81
|
_this = _call_super(this, LinkProperty, [
|
|
81
82
|
props
|
|
82
83
|
]), _define_property(_this, "content", void 0), _define_property(_this, "url", void 0), _define_property(_this, "openMode", void 0);
|
|
83
|
-
|
|
84
|
-
_this.
|
|
85
|
-
|
|
86
|
-
_this.url = (_props_url = props === null || props === void 0 ? void 0 : props.url) !== null && _props_url !== void 0 ? _props_url : '';
|
|
87
|
-
var _props_openMode;
|
|
88
|
-
_this.openMode = (_props_openMode = props === null || props === void 0 ? void 0 : props.openMode) !== null && _props_openMode !== void 0 ? _props_openMode : 'new';
|
|
84
|
+
_this.content = (_ref = props === null || props === void 0 ? void 0 : props.content) !== null && _ref !== void 0 ? _ref : '我是一个链接';
|
|
85
|
+
_this.url = (_ref1 = props === null || props === void 0 ? void 0 : props.url) !== null && _ref1 !== void 0 ? _ref1 : '';
|
|
86
|
+
_this.openMode = (_ref2 = props === null || props === void 0 ? void 0 : props.openMode) !== null && _ref2 !== void 0 ? _ref2 : 'new';
|
|
89
87
|
return _this;
|
|
90
88
|
}
|
|
91
89
|
return LinkProperty;
|
|
@@ -159,6 +159,7 @@ var NumberControlPropertyRuntimeRules = /*#__PURE__*/ function(BaseControlProper
|
|
|
159
159
|
function NumberProperty(props) {
|
|
160
160
|
_class_call_check(this, NumberProperty);
|
|
161
161
|
var _this;
|
|
162
|
+
var _ref, _ref1, _ref2, _ref3, _ref4, _ref5, _ref6, _ref7, _ref8, _ref9, _ref10, _ref11, _ref12;
|
|
162
163
|
_this = _call_super(this, NumberProperty, [
|
|
163
164
|
props
|
|
164
165
|
]), /**
|
|
@@ -209,32 +210,19 @@ var NumberControlPropertyRuntimeRules = /*#__PURE__*/ function(BaseControlProper
|
|
|
209
210
|
* 正则校验
|
|
210
211
|
* @public
|
|
211
212
|
* */ _define_property(_this, "regularRules", void 0);
|
|
212
|
-
|
|
213
|
-
_this.
|
|
214
|
-
|
|
215
|
-
_this.
|
|
216
|
-
|
|
217
|
-
_this.
|
|
218
|
-
|
|
219
|
-
_this.
|
|
220
|
-
|
|
221
|
-
_this.
|
|
222
|
-
|
|
223
|
-
_this.
|
|
224
|
-
|
|
225
|
-
_this.showUpperCase = (_props_showUpperCase = props === null || props === void 0 ? void 0 : props.showUpperCase) !== null && _props_showUpperCase !== void 0 ? _props_showUpperCase : false;
|
|
226
|
-
var _props_isShowUnit;
|
|
227
|
-
_this.isShowUnit = (_props_isShowUnit = props === null || props === void 0 ? void 0 : props.isShowUnit) !== null && _props_isShowUnit !== void 0 ? _props_isShowUnit : false;
|
|
228
|
-
var _props_unitPosition;
|
|
229
|
-
_this.unitPosition = (_props_unitPosition = props === null || props === void 0 ? void 0 : props.unitPosition) !== null && _props_unitPosition !== void 0 ? _props_unitPosition : 'right';
|
|
230
|
-
var _props_unit;
|
|
231
|
-
_this.unit = (_props_unit = props === null || props === void 0 ? void 0 : props.unit) !== null && _props_unit !== void 0 ? _props_unit : '';
|
|
232
|
-
var _props_caption;
|
|
233
|
-
_this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : NumberControl.controlName;
|
|
234
|
-
var _props_placeholder;
|
|
235
|
-
_this.placeholder = (_props_placeholder = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _props_placeholder !== void 0 ? _props_placeholder : '请输入';
|
|
236
|
-
var _props_defaultValue;
|
|
237
|
-
_this.defaultValue = (_props_defaultValue = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _props_defaultValue !== void 0 ? _props_defaultValue : '';
|
|
213
|
+
_this.rangeMin = (_ref = props === null || props === void 0 ? void 0 : props.rangeMin) !== null && _ref !== void 0 ? _ref : '';
|
|
214
|
+
_this.rangeMax = (_ref1 = props === null || props === void 0 ? void 0 : props.rangeMax) !== null && _ref1 !== void 0 ? _ref1 : '';
|
|
215
|
+
_this.numberType = (_ref2 = props === null || props === void 0 ? void 0 : props.numberType) !== null && _ref2 !== void 0 ? _ref2 : 'number';
|
|
216
|
+
_this.percentageFormat = (_ref3 = props === null || props === void 0 ? void 0 : props.percentageFormat) !== null && _ref3 !== void 0 ? _ref3 : false;
|
|
217
|
+
_this.micrometer = (_ref4 = props === null || props === void 0 ? void 0 : props.micrometer) !== null && _ref4 !== void 0 ? _ref4 : false;
|
|
218
|
+
_this.precision = (_ref5 = props === null || props === void 0 ? void 0 : props.precision) !== null && _ref5 !== void 0 ? _ref5 : 0;
|
|
219
|
+
_this.showUpperCase = (_ref6 = props === null || props === void 0 ? void 0 : props.showUpperCase) !== null && _ref6 !== void 0 ? _ref6 : false;
|
|
220
|
+
_this.isShowUnit = (_ref7 = props === null || props === void 0 ? void 0 : props.isShowUnit) !== null && _ref7 !== void 0 ? _ref7 : false;
|
|
221
|
+
_this.unitPosition = (_ref8 = props === null || props === void 0 ? void 0 : props.unitPosition) !== null && _ref8 !== void 0 ? _ref8 : 'right';
|
|
222
|
+
_this.unit = (_ref9 = props === null || props === void 0 ? void 0 : props.unit) !== null && _ref9 !== void 0 ? _ref9 : '';
|
|
223
|
+
_this.caption = (_ref10 = props === null || props === void 0 ? void 0 : props.caption) !== null && _ref10 !== void 0 ? _ref10 : NumberControl.controlName;
|
|
224
|
+
_this.placeholder = (_ref11 = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _ref11 !== void 0 ? _ref11 : '请输入';
|
|
225
|
+
_this.defaultValue = (_ref12 = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _ref12 !== void 0 ? _ref12 : '';
|
|
238
226
|
_this.regularRules = new RegularRules(props === null || props === void 0 ? void 0 : props.regularRules);
|
|
239
227
|
return _this;
|
|
240
228
|
}
|
|
@@ -124,6 +124,7 @@ var OrganizationSelectionProperty = /*#__PURE__*/ function(BaseControlProperty)
|
|
|
124
124
|
function OrganizationSelectionProperty(props) {
|
|
125
125
|
_class_call_check(this, OrganizationSelectionProperty);
|
|
126
126
|
var _this;
|
|
127
|
+
var _ref, _ref1, _ref2, _ref3, _ref4, _ref5, _ref6, _ref7, _ref8, _ref9, _ref10, _ref11, _ref12, _ref13, _ref14, _ref15, _ref16, _ref17;
|
|
127
128
|
_this = _call_super(this, OrganizationSelectionProperty, [
|
|
128
129
|
props
|
|
129
130
|
]), /**
|
|
@@ -160,46 +161,28 @@ var OrganizationSelectionProperty = /*#__PURE__*/ function(BaseControlProperty)
|
|
|
160
161
|
), // 展示已选明细
|
|
161
162
|
_define_property(_this, "showSelectedDetail", void 0), // 展示已选内容配置字段
|
|
162
163
|
_define_property(_this, "selectedContentConfig", void 0);
|
|
163
|
-
|
|
164
|
-
_this.
|
|
165
|
-
|
|
166
|
-
_this.multiple = (_props_multiple = props === null || props === void 0 ? void 0 : props.multiple) !== null && _props_multiple !== void 0 ? _props_multiple : false;
|
|
167
|
-
var _props_range;
|
|
168
|
-
_this.range = (_props_range = props === null || props === void 0 ? void 0 : props.range) !== null && _props_range !== void 0 ? _props_range : 'all';
|
|
164
|
+
_this.showType = (_ref = props === null || props === void 0 ? void 0 : props.showType) !== null && _ref !== void 0 ? _ref : 'default';
|
|
165
|
+
_this.multiple = (_ref1 = props === null || props === void 0 ? void 0 : props.multiple) !== null && _ref1 !== void 0 ? _ref1 : false;
|
|
166
|
+
_this.range = (_ref2 = props === null || props === void 0 ? void 0 : props.range) !== null && _ref2 !== void 0 ? _ref2 : 'all';
|
|
169
167
|
_this.listPageBind = new ListBind(props === null || props === void 0 ? void 0 : props.listPageBind);
|
|
170
|
-
|
|
171
|
-
_this.
|
|
172
|
-
|
|
173
|
-
_this.
|
|
174
|
-
|
|
175
|
-
_this.
|
|
176
|
-
|
|
177
|
-
_this.
|
|
178
|
-
var _props_showSubDept;
|
|
179
|
-
_this.showSubDept = (_props_showSubDept = props === null || props === void 0 ? void 0 : props.showSubDept) !== null && _props_showSubDept !== void 0 ? _props_showSubDept : true;
|
|
180
|
-
var _props_caption;
|
|
181
|
-
_this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : OrganizationSelectionControl.controlName;
|
|
182
|
-
var _props_placeholder;
|
|
183
|
-
_this.placeholder = (_props_placeholder = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _props_placeholder !== void 0 ? _props_placeholder : '请选择组织';
|
|
184
|
-
var _props_datasourceBind;
|
|
185
|
-
_this.datasourceBind = new OrganizationDataSourceBind((_props_datasourceBind = props === null || props === void 0 ? void 0 : props.datasourceBind) !== null && _props_datasourceBind !== void 0 ? _props_datasourceBind : {
|
|
168
|
+
_this.defaultValueType = (_ref3 = props === null || props === void 0 ? void 0 : props.defaultValueType) !== null && _ref3 !== void 0 ? _ref3 : 'none';
|
|
169
|
+
_this.rangeOptions = (_ref4 = props === null || props === void 0 ? void 0 : props.rangeOptions) !== null && _ref4 !== void 0 ? _ref4 : [];
|
|
170
|
+
_this.defaultValue = (_ref5 = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _ref5 !== void 0 ? _ref5 : [];
|
|
171
|
+
_this.displayLevel = (_ref6 = props === null || props === void 0 ? void 0 : props.displayLevel) !== null && _ref6 !== void 0 ? _ref6 : 1;
|
|
172
|
+
_this.showSubDept = (_ref7 = props === null || props === void 0 ? void 0 : props.showSubDept) !== null && _ref7 !== void 0 ? _ref7 : true;
|
|
173
|
+
_this.caption = (_ref8 = props === null || props === void 0 ? void 0 : props.caption) !== null && _ref8 !== void 0 ? _ref8 : OrganizationSelectionControl.controlName;
|
|
174
|
+
_this.placeholder = (_ref9 = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _ref9 !== void 0 ? _ref9 : '请选择组织';
|
|
175
|
+
_this.datasourceBind = new OrganizationDataSourceBind((_ref10 = props === null || props === void 0 ? void 0 : props.datasourceBind) !== null && _ref10 !== void 0 ? _ref10 : {
|
|
186
176
|
attributes: OrganizationSelectionControl.controlCustomAttributes
|
|
187
177
|
});
|
|
188
|
-
|
|
189
|
-
_this.
|
|
190
|
-
|
|
191
|
-
_this.
|
|
192
|
-
|
|
193
|
-
_this.
|
|
194
|
-
var _props_organizingFunction;
|
|
195
|
-
_this.organizingFunction = (_props_organizingFunction = props === null || props === void 0 ? void 0 : props.organizingFunction) !== null && _props_organizingFunction !== void 0 ? _props_organizingFunction : undefined;
|
|
196
|
-
var _props_organizationView;
|
|
197
|
-
_this.organizationView = (_props_organizationView = props === null || props === void 0 ? void 0 : props.organizationView) !== null && _props_organizationView !== void 0 ? _props_organizationView : undefined;
|
|
198
|
-
var _props_showSelectedDetail;
|
|
199
|
-
_this.showSelectedDetail = (_props_showSelectedDetail = props === null || props === void 0 ? void 0 : props.showSelectedDetail) !== null && _props_showSelectedDetail !== void 0 ? _props_showSelectedDetail : false;
|
|
178
|
+
_this.datasourceType = (_ref11 = props === null || props === void 0 ? void 0 : props.datasourceType) !== null && _ref11 !== void 0 ? _ref11 : DepartmentType.INTERNAL;
|
|
179
|
+
_this.businessScope = (_ref12 = props === null || props === void 0 ? void 0 : props.businessScope) !== null && _ref12 !== void 0 ? _ref12 : [];
|
|
180
|
+
_this.businessType = (_ref13 = props === null || props === void 0 ? void 0 : props.businessType) !== null && _ref13 !== void 0 ? _ref13 : AssignType.ALL;
|
|
181
|
+
_this.organizingFunction = (_ref14 = props === null || props === void 0 ? void 0 : props.organizingFunction) !== null && _ref14 !== void 0 ? _ref14 : undefined;
|
|
182
|
+
_this.organizationView = (_ref15 = props === null || props === void 0 ? void 0 : props.organizationView) !== null && _ref15 !== void 0 ? _ref15 : undefined;
|
|
183
|
+
_this.showSelectedDetail = (_ref16 = props === null || props === void 0 ? void 0 : props.showSelectedDetail) !== null && _ref16 !== void 0 ? _ref16 : false;
|
|
200
184
|
_this.selectedContentConfig = new SelectedContentConfig(props === null || props === void 0 ? void 0 : props.selectedContentConfig);
|
|
201
|
-
|
|
202
|
-
_this.openMultistageFilling = (_props_openMultistageFilling = props === null || props === void 0 ? void 0 : props.openMultistageFilling) !== null && _props_openMultistageFilling !== void 0 ? _props_openMultistageFilling : false;
|
|
185
|
+
_this.openMultistageFilling = (_ref17 = props === null || props === void 0 ? void 0 : props.openMultistageFilling) !== null && _ref17 !== void 0 ? _ref17 : false;
|
|
203
186
|
_this.multistageFilling = [];
|
|
204
187
|
if (Array.isArray(props === null || props === void 0 ? void 0 : props.multistageFilling)) {
|
|
205
188
|
props === null || props === void 0 ? void 0 : props.multistageFilling.map(function(item) {
|
|
@@ -89,6 +89,7 @@ var RadioProperty = /*#__PURE__*/ function(BaseControlProperty) {
|
|
|
89
89
|
function RadioProperty(props) {
|
|
90
90
|
_class_call_check(this, RadioProperty);
|
|
91
91
|
var _this;
|
|
92
|
+
var _ref, _ref1, _ref2, _ref3, _ref4, _ref5, _ref6, _ref7, _ref8, _ref9, _ref10;
|
|
92
93
|
_this = _call_super(this, RadioProperty, [
|
|
93
94
|
props
|
|
94
95
|
]), _define_property(_this, "radioMode", void 0 // 选项排列方式 horizontal默认
|
|
@@ -99,8 +100,7 @@ var RadioProperty = /*#__PURE__*/ function(BaseControlProperty) {
|
|
|
99
100
|
), _define_property(_this, "datasourceBind", void 0), _define_property(_this, "multistageFilling", void 0), _define_property(_this, "interreaction", void 0 // 数据联动
|
|
100
101
|
), _define_property(_this, "defaultValue", void 0), _define_property(_this, "openMultistageFilling", void 0 //是否开启填充
|
|
101
102
|
);
|
|
102
|
-
|
|
103
|
-
_this.options = initOptions((_props_options = props === null || props === void 0 ? void 0 : props.options) !== null && _props_options !== void 0 ? _props_options : [
|
|
103
|
+
_this.options = initOptions((_ref = props === null || props === void 0 ? void 0 : props.options) !== null && _ref !== void 0 ? _ref : [
|
|
104
104
|
{
|
|
105
105
|
label: '选项一',
|
|
106
106
|
value: '选项一'
|
|
@@ -114,27 +114,17 @@ var RadioProperty = /*#__PURE__*/ function(BaseControlProperty) {
|
|
|
114
114
|
value: '选项三'
|
|
115
115
|
}
|
|
116
116
|
]);
|
|
117
|
-
|
|
118
|
-
_this.
|
|
119
|
-
|
|
120
|
-
_this.
|
|
121
|
-
|
|
122
|
-
_this.
|
|
123
|
-
var _props_optionsOrder;
|
|
124
|
-
_this.optionsOrder = (_props_optionsOrder = props === null || props === void 0 ? void 0 : props.optionsOrder) !== null && _props_optionsOrder !== void 0 ? _props_optionsOrder : false;
|
|
125
|
-
var _props_defaultShowOptions;
|
|
126
|
-
_this.defaultShowOptions = (_props_defaultShowOptions = props === null || props === void 0 ? void 0 : props.defaultShowOptions) !== null && _props_defaultShowOptions !== void 0 ? _props_defaultShowOptions : true;
|
|
127
|
-
var _props_optionsFormat;
|
|
128
|
-
_this.optionsFormat = (_props_optionsFormat = props === null || props === void 0 ? void 0 : props.optionsFormat) !== null && _props_optionsFormat !== void 0 ? _props_optionsFormat : 'horizontal';
|
|
117
|
+
_this.radioMode = (_ref1 = props === null || props === void 0 ? void 0 : props.radioMode) !== null && _ref1 !== void 0 ? _ref1 : 'horizontal';
|
|
118
|
+
_this.optionConfig = (_ref2 = props === null || props === void 0 ? void 0 : props.optionConfig) !== null && _ref2 !== void 0 ? _ref2 : 'custom';
|
|
119
|
+
_this.otherOption = (_ref3 = props === null || props === void 0 ? void 0 : props.otherOption) !== null && _ref3 !== void 0 ? _ref3 : false;
|
|
120
|
+
_this.optionsOrder = (_ref4 = props === null || props === void 0 ? void 0 : props.optionsOrder) !== null && _ref4 !== void 0 ? _ref4 : false;
|
|
121
|
+
_this.defaultShowOptions = (_ref5 = props === null || props === void 0 ? void 0 : props.defaultShowOptions) !== null && _ref5 !== void 0 ? _ref5 : true;
|
|
122
|
+
_this.optionsFormat = (_ref6 = props === null || props === void 0 ? void 0 : props.optionsFormat) !== null && _ref6 !== void 0 ? _ref6 : 'horizontal';
|
|
129
123
|
_this.datasourceBind = new DataSourceBind(props === null || props === void 0 ? void 0 : props.datasourceBind);
|
|
130
|
-
|
|
131
|
-
_this.
|
|
132
|
-
|
|
133
|
-
_this.
|
|
134
|
-
var _props_defaultValue;
|
|
135
|
-
_this.defaultValue = (_props_defaultValue = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _props_defaultValue !== void 0 ? _props_defaultValue : '';
|
|
136
|
-
var _props_openMultistageFilling;
|
|
137
|
-
_this.openMultistageFilling = (_props_openMultistageFilling = props === null || props === void 0 ? void 0 : props.openMultistageFilling) !== null && _props_openMultistageFilling !== void 0 ? _props_openMultistageFilling : false;
|
|
124
|
+
_this.interreaction = (_ref7 = props === null || props === void 0 ? void 0 : props.interreaction) !== null && _ref7 !== void 0 ? _ref7 : [];
|
|
125
|
+
_this.caption = (_ref8 = props === null || props === void 0 ? void 0 : props.caption) !== null && _ref8 !== void 0 ? _ref8 : RadioControl.controlName;
|
|
126
|
+
_this.defaultValue = (_ref9 = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _ref9 !== void 0 ? _ref9 : '';
|
|
127
|
+
_this.openMultistageFilling = (_ref10 = props === null || props === void 0 ? void 0 : props.openMultistageFilling) !== null && _ref10 !== void 0 ? _ref10 : false;
|
|
138
128
|
_this.multistageFilling = [];
|
|
139
129
|
if (Array.isArray(props === null || props === void 0 ? void 0 : props.multistageFilling)) {
|
|
140
130
|
props === null || props === void 0 ? void 0 : props.multistageFilling.map(function(item) {
|
|
@@ -135,19 +135,15 @@ var RichTextProperty = /*#__PURE__*/ function(BaseControlProperty) {
|
|
|
135
135
|
function RichTextProperty(props) {
|
|
136
136
|
_class_call_check(this, RichTextProperty);
|
|
137
137
|
var _this;
|
|
138
|
+
var _ref, _ref1, _ref2, _ref3, _ref4;
|
|
138
139
|
_this = _call_super(this, RichTextProperty, [
|
|
139
140
|
props
|
|
140
141
|
]), _define_property(_this, "maxLength", void 0), _define_property(_this, "minLength", void 0), _define_property(_this, "defaultValue", void 0);
|
|
141
|
-
|
|
142
|
-
_this.
|
|
143
|
-
|
|
144
|
-
_this.
|
|
145
|
-
|
|
146
|
-
_this.defaultValue = (_props_defaultValue = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _props_defaultValue !== void 0 ? _props_defaultValue : '';
|
|
147
|
-
var _props_caption;
|
|
148
|
-
_this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : RichTextControl.controlName;
|
|
149
|
-
var _props_placeholder;
|
|
150
|
-
_this.placeholder = (_props_placeholder = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _props_placeholder !== void 0 ? _props_placeholder : '请输入';
|
|
142
|
+
_this.maxLength = (_ref = props === null || props === void 0 ? void 0 : props.maxLength) !== null && _ref !== void 0 ? _ref : 50000;
|
|
143
|
+
_this.minLength = (_ref1 = props === null || props === void 0 ? void 0 : props.minLength) !== null && _ref1 !== void 0 ? _ref1 : 0;
|
|
144
|
+
_this.defaultValue = (_ref2 = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _ref2 !== void 0 ? _ref2 : '';
|
|
145
|
+
_this.caption = (_ref3 = props === null || props === void 0 ? void 0 : props.caption) !== null && _ref3 !== void 0 ? _ref3 : RichTextControl.controlName;
|
|
146
|
+
_this.placeholder = (_ref4 = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _ref4 !== void 0 ? _ref4 : '请输入';
|
|
151
147
|
return _this;
|
|
152
148
|
}
|
|
153
149
|
return RichTextProperty;
|
|
@@ -141,26 +141,21 @@ var ScoreProperty = /*#__PURE__*/ function(BaseControlProperty) {
|
|
|
141
141
|
function ScoreProperty(props) {
|
|
142
142
|
_class_call_check(this, ScoreProperty);
|
|
143
143
|
var _this;
|
|
144
|
+
var _ref, _ref1, _ref2, _ref3, _ref4, _ref5;
|
|
144
145
|
var _props_explain;
|
|
145
146
|
_this = _call_super(this, ScoreProperty, [
|
|
146
147
|
props
|
|
147
148
|
]), _define_property(_this, "totalScore", void 0), _define_property(_this, "scoreType", void 0), _define_property(_this, "isShowExplain", void 0), _define_property(_this, "explain", void 0), _define_property(_this, "defaultValue", void 0);
|
|
148
|
-
|
|
149
|
-
_this.
|
|
150
|
-
|
|
151
|
-
_this.
|
|
152
|
-
var _props_isShowExplain;
|
|
153
|
-
_this.isShowExplain = (_props_isShowExplain = props === null || props === void 0 ? void 0 : props.isShowExplain) !== null && _props_isShowExplain !== void 0 ? _props_isShowExplain : true;
|
|
154
|
-
var _props_explain_map;
|
|
155
|
-
_this.explain = (_props_explain_map = props === null || props === void 0 ? void 0 : (_props_explain = props.explain) === null || _props_explain === void 0 ? void 0 : _props_explain.map(function(item) {
|
|
149
|
+
_this.totalScore = (_ref = props === null || props === void 0 ? void 0 : props.totalScore) !== null && _ref !== void 0 ? _ref : 5;
|
|
150
|
+
_this.scoreType = (_ref1 = props === null || props === void 0 ? void 0 : props.scoreType) !== null && _ref1 !== void 0 ? _ref1 : SCORE_TYPE.STAR;
|
|
151
|
+
_this.isShowExplain = (_ref2 = props === null || props === void 0 ? void 0 : props.isShowExplain) !== null && _ref2 !== void 0 ? _ref2 : true;
|
|
152
|
+
_this.explain = (_ref3 = props === null || props === void 0 ? void 0 : (_props_explain = props.explain) === null || _props_explain === void 0 ? void 0 : _props_explain.map(function(item) {
|
|
156
153
|
return new Explain(item);
|
|
157
|
-
})) !== null &&
|
|
154
|
+
})) !== null && _ref3 !== void 0 ? _ref3 : Array(_this.totalScore).fill(undefined).map(function() {
|
|
158
155
|
return new Explain();
|
|
159
156
|
});
|
|
160
|
-
|
|
161
|
-
_this.
|
|
162
|
-
var _props_caption;
|
|
163
|
-
_this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : ScoreControl.controlName;
|
|
157
|
+
_this.defaultValue = (_ref4 = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _ref4 !== void 0 ? _ref4 : 0;
|
|
158
|
+
_this.caption = (_ref5 = props === null || props === void 0 ? void 0 : props.caption) !== null && _ref5 !== void 0 ? _ref5 : ScoreControl.controlName;
|
|
164
159
|
return _this;
|
|
165
160
|
}
|
|
166
161
|
return ScoreProperty;
|