@byteluck-fe/model-driven-controls 2.3.1-beta.2 → 2.3.1-beta.23
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/api-doc-index.js +88 -0
- package/dist/esm/baseControls/BatchDeleteButton/designer.js +1 -1
- package/dist/esm/baseControls/BatchDeleteButton/property.js +18 -18
- package/dist/esm/baseControls/BatchPrintListButton/designer.js +1 -1
- package/dist/esm/baseControls/BatchPrintListButton/property.js +10 -10
- package/dist/esm/baseControls/BatchPrintRecordListButton/designer.js +1 -1
- package/dist/esm/baseControls/BatchPrintRecordListButton/property.js +4 -4
- package/dist/esm/baseControls/BatchSubmissionListButton/designer.js +1 -1
- package/dist/esm/baseControls/BatchSubmissionListButton/property.js +13 -13
- package/dist/esm/baseControls/Button/designer.js +1 -1
- package/dist/esm/baseControls/Button/property.js +16 -16
- package/dist/esm/baseControls/CreateFormListButton/designer.js +1 -1
- package/dist/esm/baseControls/CreateFormListButton/property.js +8 -8
- package/dist/esm/baseControls/Dashboard/designer.js +3 -3
- package/dist/esm/baseControls/Dashboard/property.js +12 -12
- package/dist/esm/baseControls/Divider/designer.js +1 -1
- package/dist/esm/baseControls/Divider/property.js +4 -4
- package/dist/esm/baseControls/ExportListButton/designer.js +1 -1
- package/dist/esm/baseControls/ExportListButton/property.js +9 -9
- package/dist/esm/baseControls/ExportRecordListButton/designer.js +1 -1
- package/dist/esm/baseControls/ExportRecordListButton/property.js +4 -4
- package/dist/esm/baseControls/FormSelectButton/designer.js +1 -1
- package/dist/esm/baseControls/FormSelectButton/property.js +6 -6
- package/dist/esm/baseControls/ImportRecordListButton/designer.js +1 -1
- package/dist/esm/baseControls/ImportRecordListButton/property.js +8 -8
- package/dist/esm/baseControls/InvoiceCheckButton/designer.js +3 -3
- package/dist/esm/baseControls/InvoiceCheckButton/property.js +20 -20
- package/dist/esm/baseControls/Link/designer.js +1 -1
- package/dist/esm/baseControls/Link/property.js +6 -6
- package/dist/esm/baseControls/ListSelectButton/designer.js +3 -2
- package/dist/esm/baseControls/ListSelectButton/property.js +8 -5
- package/dist/esm/baseControls/ListViewSelect/designer.js +1 -1
- package/dist/esm/baseControls/ListViewSelect/property.js +6 -6
- package/dist/esm/baseControls/OperationButton/designer.js +1 -1
- package/dist/esm/baseControls/OperationButton/property.js +10 -10
- package/dist/esm/baseControls/SubmissionRecordListButton/designer.js +1 -1
- package/dist/esm/baseControls/SubmissionRecordListButton/property.js +4 -4
- package/dist/esm/baseControls/Text/designer.js +1 -1
- package/dist/esm/baseControls/Text/property.js +10 -10
- package/dist/esm/baseControls/TextOcrButton/designer.js +3 -3
- package/dist/esm/baseControls/TextOcrButton/property.js +20 -20
- package/dist/esm/baseControls/Title/designer.js +1 -1
- package/dist/esm/baseControls/Title/property.js +7 -7
- package/dist/esm/columnControls/ArrayColumn/designer.js +1 -1
- package/dist/esm/columnControls/ArrayColumn/property.js +17 -9
- package/dist/esm/columnControls/AutoNumberColumn/designer.js +1 -1
- package/dist/esm/columnControls/AutoNumberColumn/property.js +6 -3
- package/dist/esm/columnControls/CustomColumn/designer.js +2 -2
- package/dist/esm/columnControls/CustomColumn/property.js +8 -5
- package/dist/esm/columnControls/DecimalColumn/designer.js +3 -3
- package/dist/esm/columnControls/DecimalColumn/property.js +16 -13
- package/dist/esm/columnControls/DepartmentColumn/designer.js +1 -1
- package/dist/esm/columnControls/DepartmentColumn/property.js +8 -5
- package/dist/esm/columnControls/EmployeeColumn/designer.js +2 -2
- package/dist/esm/columnControls/EmployeeColumn/property.js +8 -5
- package/dist/esm/columnControls/FileColumn/designer.js +1 -1
- package/dist/esm/columnControls/FileColumn/property.js +5 -3
- package/dist/esm/columnControls/ImageColumn/designer.js +1 -1
- package/dist/esm/columnControls/ImageColumn/property.js +5 -3
- package/dist/esm/columnControls/LocationColumn/designer.js +1 -1
- package/dist/esm/columnControls/LocationColumn/property.js +6 -3
- package/dist/esm/columnControls/OperationColumn/designer.js +118 -18
- package/dist/esm/columnControls/OperationColumn/property.js +15 -12
- package/dist/esm/columnControls/OrderColumn/designer.js +1 -1
- package/dist/esm/columnControls/OrderColumn/property.js +17 -14
- package/dist/esm/columnControls/PeopleColumn/designer.js +1 -1
- package/dist/esm/columnControls/PeopleColumn/property.js +5 -3
- package/dist/esm/columnControls/TextColumn/designer.js +1 -1
- package/dist/esm/columnControls/TextColumn/property.js +10 -7
- package/dist/esm/columnControls/TimescopeColumn/designer.js +1 -1
- package/dist/esm/columnControls/TimescopeColumn/property.js +8 -5
- package/dist/esm/columnControls/TimestampColumn/designer.js +1 -1
- package/dist/esm/columnControls/TimestampColumn/property.js +8 -5
- package/dist/esm/columnControls/VarcharColumn/designer.js +1 -1
- package/dist/esm/columnControls/VarcharColumn/property.js +12 -9
- package/dist/esm/formControls/Address/designer.js +3 -3
- package/dist/esm/formControls/Address/property.js +10 -10
- package/dist/esm/formControls/Amount/designer.js +5 -5
- package/dist/esm/formControls/Amount/property.js +24 -24
- package/dist/esm/formControls/Attachment/designer.js +3 -3
- package/dist/esm/formControls/Attachment/property.js +16 -16
- package/dist/esm/formControls/AutoNumber/designer.js +3 -3
- package/dist/esm/formControls/AutoNumber/property.js +6 -6
- package/dist/esm/formControls/Calc/designer.js +5 -5
- package/dist/esm/formControls/Calc/property.js +15 -15
- package/dist/esm/formControls/Checkbox/designer.js +3 -3
- package/dist/esm/formControls/Checkbox/property.js +29 -29
- package/dist/esm/formControls/DatePicker/designer.js +3 -3
- package/dist/esm/formControls/DatePicker/property.js +18 -18
- package/dist/esm/formControls/DateRange/designer.js +3 -3
- package/dist/esm/formControls/DateRange/property.js +18 -18
- package/dist/esm/formControls/Department/designer.js +4 -4
- package/dist/esm/formControls/Department/property.js +24 -24
- package/dist/esm/formControls/Department2/designer.js +5 -5
- package/dist/esm/formControls/Department2/property.js +33 -33
- package/dist/esm/formControls/ElectronicSignature/designer.js +2 -2
- package/dist/esm/formControls/ElectronicSignature/property.js +12 -12
- package/dist/esm/formControls/Employee/designer.js +3 -3
- package/dist/esm/formControls/Employee/property.js +20 -20
- package/dist/esm/formControls/Employee2/designer.js +4 -4
- package/dist/esm/formControls/Employee2/property.js +31 -31
- package/dist/esm/formControls/Image/designer.js +8 -8
- package/dist/esm/formControls/Image/runtime.js +7 -7
- package/dist/esm/formControls/Input/designer.js +3 -3
- package/dist/esm/formControls/Input/property.js +19 -16
- package/dist/esm/formControls/Number/designer.js +5 -5
- package/dist/esm/formControls/Number/property.js +31 -28
- package/dist/esm/formControls/Radio/designer.js +3 -3
- package/dist/esm/formControls/Radio/property.js +25 -25
- package/dist/esm/formControls/RichText/designer.js +3 -3
- package/dist/esm/formControls/RichText/property.js +10 -10
- package/dist/esm/formControls/Score/designer.js +5 -5
- package/dist/esm/formControls/Score/property.js +15 -15
- package/dist/esm/formControls/SearchDateRange/designer.js +3 -3
- package/dist/esm/formControls/SearchDateRange/property.js +20 -20
- package/dist/esm/formControls/SearchInput/designer.js +2 -2
- package/dist/esm/formControls/SearchNumberRange/designer.js +3 -3
- package/dist/esm/formControls/SearchNumberRange/property.js +12 -12
- package/dist/esm/formControls/Select/designer.js +3 -3
- package/dist/esm/formControls/Select/property.js +19 -19
- package/dist/esm/formControls/SelectMultiple/designer.js +3 -3
- package/dist/esm/formControls/SelectMultiple/property.js +17 -17
- package/dist/esm/formControls/SelectRelation/designer.js +9 -3
- package/dist/esm/formControls/SelectRelation/property.js +22 -19
- package/dist/esm/formControls/Textarea/designer.js +3 -3
- package/dist/esm/formControls/Textarea/property.js +16 -13
- package/dist/esm/formControls/Tree/designer.js +4 -4
- package/dist/esm/formControls/Tree/property.js +30 -30
- package/dist/esm/formControls/VueFormItem/designer.js +3 -3
- package/dist/esm/formControls/VueFormItem/property.js +10 -10
- package/dist/esm/formControls/WPS/designer.js +4 -4
- package/dist/esm/formControls/WPS/property.js +24 -24
- package/dist/esm/framework.js +70 -70
- package/dist/esm/layoutControls/AdvancedContainer/Setting.js +3 -3
- package/dist/esm/layoutControls/CardGroup/designer.js +1 -1
- package/dist/esm/layoutControls/CardGroup/property.js +6 -6
- package/dist/esm/layoutControls/Col/designer.js +1 -1
- package/dist/esm/layoutControls/Col/property.js +4 -4
- package/dist/esm/layoutControls/DataView/property.js +19 -14
- package/dist/esm/layoutControls/GridTableColumn/designer.js +2 -2
- package/dist/esm/layoutControls/GridTableColumn/property.js +20 -20
- package/dist/esm/layoutControls/ListView/designer.js +2 -2
- package/dist/esm/layoutControls/ListView/property.js +26 -19
- package/dist/esm/layoutControls/Page/Setting.js +4 -4
- package/dist/esm/layoutControls/Page/property.js +2 -2
- package/dist/esm/layoutControls/Position/property.js +8 -8
- package/dist/esm/layoutControls/PositioningContainer/Setting.js +3 -3
- package/dist/esm/layoutControls/Row/designer.js +1 -1
- package/dist/esm/layoutControls/Row/property.js +4 -4
- package/dist/esm/layoutControls/SubTableColumn/designer.js +2 -2
- package/dist/esm/layoutControls/SubTableColumn/property.js +10 -14
- package/dist/esm/layoutControls/SubTableRow/designer.js +2 -2
- package/dist/esm/layoutControls/Tab/designer.js +3 -3
- package/dist/esm/layoutControls/TabPane/designer.js +1 -1
- package/dist/esm/layoutControls/TabPane/property.js +2 -2
- package/dist/esm/layoutControls/Toolbox/designer.js +2 -2
- package/dist/esm/layoutControls/Toolbox/runtime.js +1 -1
- package/dist/esm/listControls/GridTable/designer.js +118 -18
- package/dist/esm/listControls/GridTable/property.js +12 -9
- package/dist/esm/listControls/SubTable/designer.js +8 -7
- package/dist/esm/listControls/SubTable/property.js +53 -50
- package/dist/esm/searchControls/SimpleSearch/designer.js +1 -1
- package/dist/esm/searchControls/SimpleSearch/property.js +18 -15
- package/dist/esm/searchControls/SimpleSearch/runtime.js +2 -2
- package/dist/index.umd.js +1 -1
- package/dist/types/api-doc-index.d.ts +88 -0
- package/dist/types/baseControls/ListSelectButton/property.d.ts +16 -0
- package/dist/types/columnControls/ArrayColumn/property.d.ts +22 -1
- package/dist/types/columnControls/AutoNumberColumn/property.d.ts +4 -0
- package/dist/types/columnControls/CustomColumn/property.d.ts +4 -0
- package/dist/types/columnControls/DecimalColumn/property.d.ts +23 -3
- package/dist/types/columnControls/DepartmentColumn/property.d.ts +6 -0
- package/dist/types/columnControls/EmployeeColumn/property.d.ts +8 -0
- package/dist/types/columnControls/FileColumn/property.d.ts +3 -0
- package/dist/types/columnControls/ImageColumn/property.d.ts +3 -0
- package/dist/types/columnControls/LocationColumn/property.d.ts +4 -0
- package/dist/types/columnControls/OperationColumn/property.d.ts +14 -0
- package/dist/types/columnControls/OrderColumn/property.d.ts +4 -0
- package/dist/types/columnControls/PeopleColumn/property.d.ts +3 -0
- package/dist/types/columnControls/TextColumn/property.d.ts +12 -1
- package/dist/types/columnControls/TimescopeColumn/property.d.ts +6 -0
- package/dist/types/columnControls/TimestampColumn/property.d.ts +6 -0
- package/dist/types/columnControls/VarcharColumn/property.d.ts +15 -1
- package/dist/types/formControls/Input/property.d.ts +33 -0
- package/dist/types/formControls/Number/property.d.ts +31 -1
- package/dist/types/formControls/SelectRelation/designer.d.ts +1 -0
- package/dist/types/formControls/SelectRelation/property.d.ts +40 -1
- package/dist/types/formControls/Textarea/property.d.ts +24 -0
- package/dist/types/layoutControls/DataView/property.d.ts +16 -0
- package/dist/types/layoutControls/ListView/property.d.ts +63 -0
- package/dist/types/layoutControls/SubTableColumn/property.d.ts +2 -11
- package/dist/types/listControls/GridTable/property.d.ts +28 -0
- package/dist/types/listControls/SubTable/property.d.ts +46 -11
- package/dist/types/searchControls/SimpleSearch/property.d.ts +32 -0
- package/package.json +5 -5
|
@@ -111,21 +111,21 @@ var SearchNumberRangeProperty = /*#__PURE__*/ function(BaseControlProperty) {
|
|
|
111
111
|
_classCallCheck(this, SearchNumberRangeProperty);
|
|
112
112
|
var _this;
|
|
113
113
|
_this = _super.call(this, props);
|
|
114
|
-
var
|
|
115
|
-
_this.defaultValue = (
|
|
114
|
+
var _props_defaultValue;
|
|
115
|
+
_this.defaultValue = (_props_defaultValue = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _props_defaultValue !== void 0 ? _props_defaultValue : [
|
|
116
116
|
"",
|
|
117
117
|
""
|
|
118
118
|
];
|
|
119
|
-
var
|
|
120
|
-
_this.rangeMin = (
|
|
121
|
-
var
|
|
122
|
-
_this.rangeMax = (
|
|
123
|
-
var
|
|
124
|
-
_this.placeholderStart = (
|
|
125
|
-
var
|
|
126
|
-
_this.placeholderEnd = (
|
|
127
|
-
var
|
|
128
|
-
_this.caption = (
|
|
119
|
+
var _props_rangeMin;
|
|
120
|
+
_this.rangeMin = (_props_rangeMin = props === null || props === void 0 ? void 0 : props.rangeMin) !== null && _props_rangeMin !== void 0 ? _props_rangeMin : "";
|
|
121
|
+
var _props_rangeMax;
|
|
122
|
+
_this.rangeMax = (_props_rangeMax = props === null || props === void 0 ? void 0 : props.rangeMax) !== null && _props_rangeMax !== void 0 ? _props_rangeMax : "";
|
|
123
|
+
var _props_placeholderStart;
|
|
124
|
+
_this.placeholderStart = (_props_placeholderStart = props === null || props === void 0 ? void 0 : props.placeholderStart) !== null && _props_placeholderStart !== void 0 ? _props_placeholderStart : "最小值";
|
|
125
|
+
var _props_placeholderEnd;
|
|
126
|
+
_this.placeholderEnd = (_props_placeholderEnd = props === null || props === void 0 ? void 0 : props.placeholderEnd) !== null && _props_placeholderEnd !== void 0 ? _props_placeholderEnd : "最大值";
|
|
127
|
+
var _props_caption;
|
|
128
|
+
_this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : SearchNumberRangeControl.controlName;
|
|
129
129
|
return _this;
|
|
130
130
|
}
|
|
131
131
|
return SearchNumberRangeProperty;
|
|
@@ -133,7 +133,7 @@ SelectControl.setting = [
|
|
|
133
133
|
key: "caption",
|
|
134
134
|
showItems: [
|
|
135
135
|
COMMON_SETTING_TYPE.CAPTION,
|
|
136
|
-
COMMON_SETTING_TYPE.IS_HIDE_CAPTION
|
|
136
|
+
COMMON_SETTING_TYPE.IS_HIDE_CAPTION
|
|
137
137
|
],
|
|
138
138
|
visible: true
|
|
139
139
|
},
|
|
@@ -158,7 +158,7 @@ SelectControl.setting = [
|
|
|
158
158
|
COMMON_SETTING_TYPE.IS_HIDE_CAPTION,
|
|
159
159
|
COMMON_SETTING_TYPE.DEFAULT_SHOW_OPTIONS,
|
|
160
160
|
COMMON_SETTING_TYPE.IS_SHOW_CAPTION_TIP,
|
|
161
|
-
COMMON_SETTING_TYPE.ALLOW_COPY_OPTIONS
|
|
161
|
+
COMMON_SETTING_TYPE.ALLOW_COPY_OPTIONS
|
|
162
162
|
]
|
|
163
163
|
},
|
|
164
164
|
{
|
|
@@ -168,7 +168,7 @@ SelectControl.setting = [
|
|
|
168
168
|
{
|
|
169
169
|
key: "super-setting",
|
|
170
170
|
visible: true
|
|
171
|
-
}
|
|
171
|
+
}
|
|
172
172
|
];
|
|
173
173
|
export default SelectControl;
|
|
174
174
|
export { SelectControl as DesignerSelectControl };
|
|
@@ -89,8 +89,8 @@ var SelectProperty = /*#__PURE__*/ function(BaseControlProperty) {
|
|
|
89
89
|
_classCallCheck(this, SelectProperty);
|
|
90
90
|
var _this;
|
|
91
91
|
_this = _super.call(this, props);
|
|
92
|
-
var
|
|
93
|
-
_this.options = initOptions((
|
|
92
|
+
var _props_options;
|
|
93
|
+
_this.options = initOptions((_props_options = props === null || props === void 0 ? void 0 : props.options) !== null && _props_options !== void 0 ? _props_options : [
|
|
94
94
|
{
|
|
95
95
|
label: "选项一",
|
|
96
96
|
value: "选项一"
|
|
@@ -102,28 +102,28 @@ var SelectProperty = /*#__PURE__*/ function(BaseControlProperty) {
|
|
|
102
102
|
{
|
|
103
103
|
label: "选项三",
|
|
104
104
|
value: "选项三"
|
|
105
|
-
}
|
|
105
|
+
}
|
|
106
106
|
]);
|
|
107
|
-
var
|
|
108
|
-
_this.defaultShowOptions = (
|
|
109
|
-
var
|
|
110
|
-
_this.optionConfig = (
|
|
107
|
+
var _props_defaultShowOptions;
|
|
108
|
+
_this.defaultShowOptions = (_props_defaultShowOptions = props === null || props === void 0 ? void 0 : props.defaultShowOptions) !== null && _props_defaultShowOptions !== void 0 ? _props_defaultShowOptions : true;
|
|
109
|
+
var _props_optionConfig;
|
|
110
|
+
_this.optionConfig = (_props_optionConfig = props === null || props === void 0 ? void 0 : props.optionConfig) !== null && _props_optionConfig !== void 0 ? _props_optionConfig : "custom";
|
|
111
111
|
_this.datasourceBind = new DataSourceBind(props === null || props === void 0 ? void 0 : props.datasourceBind);
|
|
112
|
-
var
|
|
113
|
-
_this.caption = (
|
|
114
|
-
var
|
|
115
|
-
_this.placeholder = (
|
|
116
|
-
var
|
|
117
|
-
_this.defaultValue = (
|
|
118
|
-
var
|
|
119
|
-
_this.allowCopyOptions = (
|
|
120
|
-
var
|
|
121
|
-
_this.openMultistageFilling = (
|
|
112
|
+
var _props_caption;
|
|
113
|
+
_this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : SelectControl.controlName;
|
|
114
|
+
var _props_placeholder;
|
|
115
|
+
_this.placeholder = (_props_placeholder = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _props_placeholder !== void 0 ? _props_placeholder : "请选择";
|
|
116
|
+
var _props_defaultValue;
|
|
117
|
+
_this.defaultValue = (_props_defaultValue = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _props_defaultValue !== void 0 ? _props_defaultValue : "";
|
|
118
|
+
var _props_allowCopyOptions;
|
|
119
|
+
_this.allowCopyOptions = (_props_allowCopyOptions = props === null || props === void 0 ? void 0 : props.allowCopyOptions) !== null && _props_allowCopyOptions !== void 0 ? _props_allowCopyOptions : false;
|
|
120
|
+
var _props_openMultistageFilling;
|
|
121
|
+
_this.openMultistageFilling = (_props_openMultistageFilling = props === null || props === void 0 ? void 0 : props.openMultistageFilling) !== null && _props_openMultistageFilling !== void 0 ? _props_openMultistageFilling : false;
|
|
122
122
|
_this.multistageFilling = [];
|
|
123
123
|
if (Array.isArray(props === null || props === void 0 ? void 0 : props.multistageFilling)) {
|
|
124
124
|
props === null || props === void 0 ? void 0 : props.multistageFilling.map(function(item) {
|
|
125
|
-
var
|
|
126
|
-
(
|
|
125
|
+
var _this_multistageFilling;
|
|
126
|
+
(_this_multistageFilling = _this.multistageFilling) === null || _this_multistageFilling === void 0 ? void 0 : _this_multistageFilling.push(new MultistageFillingItem(item));
|
|
127
127
|
});
|
|
128
128
|
}
|
|
129
129
|
return _this;
|
|
@@ -133,7 +133,7 @@ SelectMultipleControl.setting = [
|
|
|
133
133
|
key: "caption",
|
|
134
134
|
showItems: [
|
|
135
135
|
COMMON_SETTING_TYPE.CAPTION,
|
|
136
|
-
COMMON_SETTING_TYPE.IS_HIDE_CAPTION
|
|
136
|
+
COMMON_SETTING_TYPE.IS_HIDE_CAPTION
|
|
137
137
|
],
|
|
138
138
|
visible: true
|
|
139
139
|
},
|
|
@@ -157,7 +157,7 @@ SelectMultipleControl.setting = [
|
|
|
157
157
|
COMMON_SETTING_TYPE.IS_HIDE,
|
|
158
158
|
COMMON_SETTING_TYPE.IS_HIDE_CAPTION,
|
|
159
159
|
COMMON_SETTING_TYPE.DEFAULT_SHOW_OPTIONS,
|
|
160
|
-
COMMON_SETTING_TYPE.IS_SHOW_CAPTION_TIP
|
|
160
|
+
COMMON_SETTING_TYPE.IS_SHOW_CAPTION_TIP
|
|
161
161
|
]
|
|
162
162
|
},
|
|
163
163
|
{
|
|
@@ -167,7 +167,7 @@ SelectMultipleControl.setting = [
|
|
|
167
167
|
{
|
|
168
168
|
key: "super-setting",
|
|
169
169
|
visible: true
|
|
170
|
-
}
|
|
170
|
+
}
|
|
171
171
|
];
|
|
172
172
|
export default SelectMultipleControl;
|
|
173
173
|
export { SelectMultipleControl as DesignerSelectMultipleControl };
|
|
@@ -102,8 +102,8 @@ var SelectMultipleProperty = /*#__PURE__*/ function(BaseControlProperty) {
|
|
|
102
102
|
_classCallCheck(this, SelectMultipleProperty);
|
|
103
103
|
var _this;
|
|
104
104
|
_this = _super.call(this, props);
|
|
105
|
-
var
|
|
106
|
-
_this.options = initOptions((
|
|
105
|
+
var _props_options;
|
|
106
|
+
_this.options = initOptions((_props_options = props === null || props === void 0 ? void 0 : props.options) !== null && _props_options !== void 0 ? _props_options : [
|
|
107
107
|
{
|
|
108
108
|
label: "选项一",
|
|
109
109
|
value: "选项一"
|
|
@@ -115,26 +115,26 @@ var SelectMultipleProperty = /*#__PURE__*/ function(BaseControlProperty) {
|
|
|
115
115
|
{
|
|
116
116
|
label: "选项三",
|
|
117
117
|
value: "选项三"
|
|
118
|
-
}
|
|
118
|
+
}
|
|
119
119
|
]);
|
|
120
|
-
var
|
|
121
|
-
_this.defaultShowOptions = (
|
|
122
|
-
var
|
|
123
|
-
_this.optionConfig = (
|
|
120
|
+
var _props_defaultShowOptions;
|
|
121
|
+
_this.defaultShowOptions = (_props_defaultShowOptions = props === null || props === void 0 ? void 0 : props.defaultShowOptions) !== null && _props_defaultShowOptions !== void 0 ? _props_defaultShowOptions : true;
|
|
122
|
+
var _props_optionConfig;
|
|
123
|
+
_this.optionConfig = (_props_optionConfig = props === null || props === void 0 ? void 0 : props.optionConfig) !== null && _props_optionConfig !== void 0 ? _props_optionConfig : "custom";
|
|
124
124
|
_this.datasourceBind = new DataSourceBind(props === null || props === void 0 ? void 0 : props.datasourceBind);
|
|
125
|
-
var
|
|
126
|
-
_this.caption = (
|
|
127
|
-
var
|
|
128
|
-
_this.placeholder = (
|
|
129
|
-
var
|
|
130
|
-
_this.defaultValue = (
|
|
131
|
-
var
|
|
132
|
-
_this.openMultistageFilling = (
|
|
125
|
+
var _props_caption;
|
|
126
|
+
_this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : SelectMultipleControl.controlName;
|
|
127
|
+
var _props_placeholder;
|
|
128
|
+
_this.placeholder = (_props_placeholder = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _props_placeholder !== void 0 ? _props_placeholder : "请选择";
|
|
129
|
+
var _props_defaultValue;
|
|
130
|
+
_this.defaultValue = (_props_defaultValue = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _props_defaultValue !== void 0 ? _props_defaultValue : [];
|
|
131
|
+
var _props_openMultistageFilling;
|
|
132
|
+
_this.openMultistageFilling = (_props_openMultistageFilling = props === null || props === void 0 ? void 0 : props.openMultistageFilling) !== null && _props_openMultistageFilling !== void 0 ? _props_openMultistageFilling : false;
|
|
133
133
|
_this.multistageFilling = [];
|
|
134
134
|
if (Array.isArray(props === null || props === void 0 ? void 0 : props.multistageFilling)) {
|
|
135
135
|
props === null || props === void 0 ? void 0 : props.multistageFilling.map(function(item) {
|
|
136
|
-
var
|
|
137
|
-
(
|
|
136
|
+
var _this_multistageFilling;
|
|
137
|
+
(_this_multistageFilling = _this.multistageFilling) === null || _this_multistageFilling === void 0 ? void 0 : _this_multistageFilling.push(new MultistageFillingItem(item));
|
|
138
138
|
});
|
|
139
139
|
}
|
|
140
140
|
return _this;
|
|
@@ -133,7 +133,7 @@ SelectRelationControl.setting = [
|
|
|
133
133
|
key: "caption",
|
|
134
134
|
showItems: [
|
|
135
135
|
COMMON_SETTING_TYPE.CAPTION,
|
|
136
|
-
COMMON_SETTING_TYPE.IS_HIDE_CAPTION
|
|
136
|
+
COMMON_SETTING_TYPE.IS_HIDE_CAPTION
|
|
137
137
|
],
|
|
138
138
|
visible: true
|
|
139
139
|
},
|
|
@@ -156,7 +156,7 @@ SelectRelationControl.setting = [
|
|
|
156
156
|
COMMON_SETTING_TYPE.REQUIRED,
|
|
157
157
|
COMMON_SETTING_TYPE.IS_HIDE,
|
|
158
158
|
COMMON_SETTING_TYPE.CAN_VIEW_FORM,
|
|
159
|
-
COMMON_SETTING_TYPE.IS_SHOW_CAPTION_TIP
|
|
159
|
+
COMMON_SETTING_TYPE.IS_SHOW_CAPTION_TIP
|
|
160
160
|
]
|
|
161
161
|
},
|
|
162
162
|
{
|
|
@@ -166,7 +166,13 @@ SelectRelationControl.setting = [
|
|
|
166
166
|
{
|
|
167
167
|
key: "super-setting",
|
|
168
168
|
visible: true
|
|
169
|
-
}
|
|
169
|
+
}
|
|
170
|
+
];
|
|
171
|
+
SelectRelationControl.controlEventKeys = [
|
|
172
|
+
"on_change",
|
|
173
|
+
"on_focus",
|
|
174
|
+
"on_blur",
|
|
175
|
+
"on_modal_ok"
|
|
170
176
|
];
|
|
171
177
|
export default SelectRelationControl;
|
|
172
178
|
export { SelectRelationControl as DesignerSelectRelationControl };
|
|
@@ -98,16 +98,19 @@ var SelectRelationControlPropertyRules = /*#__PURE__*/ function(OptionAndDataSou
|
|
|
98
98
|
type: "string",
|
|
99
99
|
required: true,
|
|
100
100
|
message: RulesMessage.getMessage("pleaseEnterList")
|
|
101
|
-
}
|
|
101
|
+
}
|
|
102
102
|
]
|
|
103
103
|
}
|
|
104
|
-
}
|
|
104
|
+
}
|
|
105
105
|
];
|
|
106
106
|
return _this;
|
|
107
107
|
}
|
|
108
108
|
return SelectRelationControlPropertyRules;
|
|
109
109
|
}(OptionAndDataSourcePropertyRules);
|
|
110
|
-
|
|
110
|
+
/**
|
|
111
|
+
* SelectRelation 关联单选
|
|
112
|
+
* @public
|
|
113
|
+
*/ var SelectRelationProperty = /*#__PURE__*/ function(BaseControlProperty) {
|
|
111
114
|
"use strict";
|
|
112
115
|
_inherits(SelectRelationProperty, BaseControlProperty);
|
|
113
116
|
var _super = _createSuper(SelectRelationProperty);
|
|
@@ -115,29 +118,29 @@ var SelectRelationProperty = /*#__PURE__*/ function(BaseControlProperty) {
|
|
|
115
118
|
_classCallCheck(this, SelectRelationProperty);
|
|
116
119
|
var _this;
|
|
117
120
|
_this = _super.call(this, props);
|
|
118
|
-
var
|
|
119
|
-
_this.options = initOptions((
|
|
120
|
-
var
|
|
121
|
-
_this.optionConfig = (
|
|
121
|
+
var _props_options;
|
|
122
|
+
_this.options = initOptions((_props_options = props === null || props === void 0 ? void 0 : props.options) !== null && _props_options !== void 0 ? _props_options : []);
|
|
123
|
+
var _props_optionConfig;
|
|
124
|
+
_this.optionConfig = (_props_optionConfig = props === null || props === void 0 ? void 0 : props.optionConfig) !== null && _props_optionConfig !== void 0 ? _props_optionConfig : "datasource";
|
|
122
125
|
_this.listPageBind = new ListBind(props === null || props === void 0 ? void 0 : props.listPageBind);
|
|
123
126
|
_this.datasourceBind = new DataSourceBind(props === null || props === void 0 ? void 0 : props.datasourceBind);
|
|
124
|
-
var
|
|
125
|
-
_this.caption = (
|
|
126
|
-
var
|
|
127
|
-
_this.placeholder = (
|
|
128
|
-
var
|
|
129
|
-
_this.defaultValue = (
|
|
130
|
-
var
|
|
131
|
-
_this.openMultistageFilling = (
|
|
127
|
+
var _props_caption;
|
|
128
|
+
_this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : SelectRelationControl.controlName;
|
|
129
|
+
var _props_placeholder;
|
|
130
|
+
_this.placeholder = (_props_placeholder = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _props_placeholder !== void 0 ? _props_placeholder : "请选择";
|
|
131
|
+
var _props_defaultValue;
|
|
132
|
+
_this.defaultValue = (_props_defaultValue = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _props_defaultValue !== void 0 ? _props_defaultValue : "";
|
|
133
|
+
var _props_openMultistageFilling;
|
|
134
|
+
_this.openMultistageFilling = (_props_openMultistageFilling = props === null || props === void 0 ? void 0 : props.openMultistageFilling) !== null && _props_openMultistageFilling !== void 0 ? _props_openMultistageFilling : false;
|
|
132
135
|
_this.multistageFilling = [];
|
|
133
136
|
if (Array.isArray(props === null || props === void 0 ? void 0 : props.multistageFilling)) {
|
|
134
137
|
props === null || props === void 0 ? void 0 : props.multistageFilling.map(function(item) {
|
|
135
|
-
var
|
|
136
|
-
(
|
|
138
|
+
var _this_multistageFilling;
|
|
139
|
+
(_this_multistageFilling = _this.multistageFilling) === null || _this_multistageFilling === void 0 ? void 0 : _this_multistageFilling.push(new MultistageFillingItem(item));
|
|
137
140
|
});
|
|
138
141
|
}
|
|
139
|
-
var
|
|
140
|
-
_this.canViewForm = (
|
|
142
|
+
var _props_canViewForm;
|
|
143
|
+
_this.canViewForm = (_props_canViewForm = props === null || props === void 0 ? void 0 : props.canViewForm) !== null && _props_canViewForm !== void 0 ? _props_canViewForm : false;
|
|
141
144
|
return _this;
|
|
142
145
|
}
|
|
143
146
|
return SelectRelationProperty;
|
|
@@ -139,7 +139,7 @@ TextareaControl.setting = [
|
|
|
139
139
|
key: "caption",
|
|
140
140
|
showItems: [
|
|
141
141
|
COMMON_SETTING_TYPE.CAPTION,
|
|
142
|
-
COMMON_SETTING_TYPE.IS_HIDE_CAPTION
|
|
142
|
+
COMMON_SETTING_TYPE.IS_HIDE_CAPTION
|
|
143
143
|
],
|
|
144
144
|
visible: true
|
|
145
145
|
},
|
|
@@ -162,7 +162,7 @@ TextareaControl.setting = [
|
|
|
162
162
|
COMMON_SETTING_TYPE.REQUIRED,
|
|
163
163
|
COMMON_SETTING_TYPE.IS_HIDE,
|
|
164
164
|
COMMON_SETTING_TYPE.IS_HIDE_CAPTION,
|
|
165
|
-
COMMON_SETTING_TYPE.IS_SHOW_CAPTION_TIP
|
|
165
|
+
COMMON_SETTING_TYPE.IS_SHOW_CAPTION_TIP
|
|
166
166
|
]
|
|
167
167
|
},
|
|
168
168
|
{
|
|
@@ -184,7 +184,7 @@ TextareaControl.setting = [
|
|
|
184
184
|
{
|
|
185
185
|
key: "super-setting",
|
|
186
186
|
visible: true
|
|
187
|
-
}
|
|
187
|
+
}
|
|
188
188
|
];
|
|
189
189
|
export default TextareaControl;
|
|
190
190
|
export { TextareaControl as DesignerTextareaControl };
|
|
@@ -129,7 +129,10 @@ var TextareaControlPropertyRuntimeRules = /*#__PURE__*/ function(BaseControlProp
|
|
|
129
129
|
}
|
|
130
130
|
return TextareaControlPropertyRuntimeRules;
|
|
131
131
|
}(BaseControlPropertyRuntimeRules);
|
|
132
|
-
|
|
132
|
+
/**
|
|
133
|
+
* Textarea 多行文本
|
|
134
|
+
* @public
|
|
135
|
+
*/ var TextareaProperty = /*#__PURE__*/ function(BaseControlProperty) {
|
|
133
136
|
"use strict";
|
|
134
137
|
_inherits(TextareaProperty, BaseControlProperty);
|
|
135
138
|
var _super = _createSuper(TextareaProperty);
|
|
@@ -137,18 +140,18 @@ var TextareaProperty = /*#__PURE__*/ function(BaseControlProperty) {
|
|
|
137
140
|
_classCallCheck(this, TextareaProperty);
|
|
138
141
|
var _this;
|
|
139
142
|
_this = _super.call(this, props);
|
|
140
|
-
var
|
|
141
|
-
_this.maxLength = (
|
|
142
|
-
var
|
|
143
|
-
_this.minLength = (
|
|
144
|
-
var
|
|
145
|
-
_this.defaultValue = (
|
|
146
|
-
var
|
|
147
|
-
_this.caption = (
|
|
148
|
-
var
|
|
149
|
-
_this.placeholder = (
|
|
150
|
-
var
|
|
151
|
-
_this.lineEllipsis = (
|
|
143
|
+
var _props_maxLength;
|
|
144
|
+
_this.maxLength = (_props_maxLength = props === null || props === void 0 ? void 0 : props.maxLength) !== null && _props_maxLength !== void 0 ? _props_maxLength : 50000;
|
|
145
|
+
var _props_minLength;
|
|
146
|
+
_this.minLength = (_props_minLength = props === null || props === void 0 ? void 0 : props.minLength) !== null && _props_minLength !== void 0 ? _props_minLength : 0;
|
|
147
|
+
var _props_defaultValue;
|
|
148
|
+
_this.defaultValue = (_props_defaultValue = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _props_defaultValue !== void 0 ? _props_defaultValue : "";
|
|
149
|
+
var _props_caption;
|
|
150
|
+
_this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : TextareaControl.controlName;
|
|
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 : "请输入";
|
|
153
|
+
var _props_lineEllipsis;
|
|
154
|
+
_this.lineEllipsis = (_props_lineEllipsis = props === null || props === void 0 ? void 0 : props.lineEllipsis) !== null && _props_lineEllipsis !== void 0 ? _props_lineEllipsis : 4;
|
|
152
155
|
return _this;
|
|
153
156
|
}
|
|
154
157
|
return TextareaProperty;
|
|
@@ -129,7 +129,7 @@ var TreeControl = /*#__PURE__*/ function(DesignerFormControl) {
|
|
|
129
129
|
key: "parentField",
|
|
130
130
|
name: "父级字段",
|
|
131
131
|
required: true
|
|
132
|
-
}
|
|
132
|
+
}
|
|
133
133
|
];
|
|
134
134
|
}
|
|
135
135
|
}
|
|
@@ -150,7 +150,7 @@ TreeControl.setting = [
|
|
|
150
150
|
key: "caption",
|
|
151
151
|
showItems: [
|
|
152
152
|
COMMON_SETTING_TYPE.CAPTION,
|
|
153
|
-
COMMON_SETTING_TYPE.IS_HIDE_CAPTION
|
|
153
|
+
COMMON_SETTING_TYPE.IS_HIDE_CAPTION
|
|
154
154
|
],
|
|
155
155
|
visible: true
|
|
156
156
|
},
|
|
@@ -175,7 +175,7 @@ TreeControl.setting = [
|
|
|
175
175
|
COMMON_SETTING_TYPE.MULTIPLE,
|
|
176
176
|
COMMON_SETTING_TYPE.CAN_SEARCH,
|
|
177
177
|
COMMON_SETTING_TYPE.CONTAINS_SUB_NODE,
|
|
178
|
-
COMMON_SETTING_TYPE.IS_SHOW_CAPTION_TIP
|
|
178
|
+
COMMON_SETTING_TYPE.IS_SHOW_CAPTION_TIP
|
|
179
179
|
]
|
|
180
180
|
},
|
|
181
181
|
{
|
|
@@ -193,7 +193,7 @@ TreeControl.setting = [
|
|
|
193
193
|
{
|
|
194
194
|
key: "super-setting",
|
|
195
195
|
visible: true
|
|
196
|
-
}
|
|
196
|
+
}
|
|
197
197
|
];
|
|
198
198
|
export default TreeControl;
|
|
199
199
|
export { TreeControl as DesignerTreeControl };
|
|
@@ -84,7 +84,7 @@ var TreePropertyRules = /*#__PURE__*/ function(BaseControlPropertyRules) {
|
|
|
84
84
|
{
|
|
85
85
|
type: "object",
|
|
86
86
|
message: RulesMessage.getMessage("isNotObject")
|
|
87
|
-
}
|
|
87
|
+
}
|
|
88
88
|
];
|
|
89
89
|
initSuperDataSourceRules.call(_assertThisInitialized(_this), props, TreeControl.controlCustomAttributes, true);
|
|
90
90
|
if (_this.datasourceBind[1].fields) {
|
|
@@ -113,7 +113,7 @@ var TreePropertyRules = /*#__PURE__*/ function(BaseControlPropertyRules) {
|
|
|
113
113
|
message: RulesMessage.getMessage("rootNodeIsRequired")
|
|
114
114
|
}
|
|
115
115
|
}
|
|
116
|
-
}
|
|
116
|
+
}
|
|
117
117
|
];
|
|
118
118
|
}
|
|
119
119
|
return _this;
|
|
@@ -140,40 +140,40 @@ var TreeProperty = /*#__PURE__*/ function(BaseControlProperty) {
|
|
|
140
140
|
function TreeProperty(props) {
|
|
141
141
|
_classCallCheck(this, TreeProperty);
|
|
142
142
|
var _this;
|
|
143
|
-
var
|
|
143
|
+
var _props_multistageFilling;
|
|
144
144
|
_this = _super.call(this, props);
|
|
145
145
|
_this.optionConfig = "datasource" // 选项配置 datasource
|
|
146
146
|
;
|
|
147
|
-
var
|
|
148
|
-
_this.caption = (
|
|
149
|
-
var
|
|
150
|
-
_this.placeholder = (
|
|
151
|
-
var
|
|
152
|
-
_this.multiple = (
|
|
153
|
-
var
|
|
154
|
-
_this.canSearch = (
|
|
155
|
-
var
|
|
156
|
-
_this.levelType = (
|
|
157
|
-
var
|
|
158
|
-
_this.optionalLevel = (
|
|
159
|
-
var
|
|
160
|
-
_this.containsSubNode = (
|
|
161
|
-
var
|
|
162
|
-
_this.defaultCollapse = (
|
|
163
|
-
var
|
|
164
|
-
_this.defaultCollapseLevel = (
|
|
165
|
-
var
|
|
166
|
-
_this.datasourceBind = new TreeDataSourceBind((
|
|
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 : TreeControl.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 : "请选择";
|
|
151
|
+
var _props_multiple;
|
|
152
|
+
_this.multiple = (_props_multiple = props === null || props === void 0 ? void 0 : props.multiple) !== null && _props_multiple !== void 0 ? _props_multiple : false;
|
|
153
|
+
var _props_canSearch;
|
|
154
|
+
_this.canSearch = (_props_canSearch = props === null || props === void 0 ? void 0 : props.canSearch) !== null && _props_canSearch !== void 0 ? _props_canSearch : true;
|
|
155
|
+
var _props_levelType;
|
|
156
|
+
_this.levelType = (_props_levelType = props === null || props === void 0 ? void 0 : props.levelType) !== null && _props_levelType !== void 0 ? _props_levelType : "all";
|
|
157
|
+
var _props_optionalLevel;
|
|
158
|
+
_this.optionalLevel = (_props_optionalLevel = props === null || props === void 0 ? void 0 : props.optionalLevel) !== null && _props_optionalLevel !== void 0 ? _props_optionalLevel : 1;
|
|
159
|
+
var _props_containsSubNode;
|
|
160
|
+
_this.containsSubNode = (_props_containsSubNode = props === null || props === void 0 ? void 0 : props.containsSubNode) !== null && _props_containsSubNode !== void 0 ? _props_containsSubNode : false;
|
|
161
|
+
var _props_defaultCollapse;
|
|
162
|
+
_this.defaultCollapse = (_props_defaultCollapse = props === null || props === void 0 ? void 0 : props.defaultCollapse) !== null && _props_defaultCollapse !== void 0 ? _props_defaultCollapse : "all";
|
|
163
|
+
var _props_defaultCollapseLevel;
|
|
164
|
+
_this.defaultCollapseLevel = (_props_defaultCollapseLevel = props === null || props === void 0 ? void 0 : props.defaultCollapseLevel) !== null && _props_defaultCollapseLevel !== void 0 ? _props_defaultCollapseLevel : 1;
|
|
165
|
+
var _props_datasourceBind;
|
|
166
|
+
_this.datasourceBind = new TreeDataSourceBind((_props_datasourceBind = props === null || props === void 0 ? void 0 : props.datasourceBind) !== null && _props_datasourceBind !== void 0 ? _props_datasourceBind : {
|
|
167
167
|
attributes: TreeControl.controlCustomAttributes
|
|
168
168
|
});
|
|
169
|
-
var
|
|
170
|
-
_this.openMultistageFilling = (
|
|
171
|
-
var
|
|
172
|
-
_this.multistageFilling = (
|
|
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;
|
|
171
|
+
var _props_multistageFilling_map;
|
|
172
|
+
_this.multistageFilling = (_props_multistageFilling_map = props === null || props === void 0 ? void 0 : (_props_multistageFilling = props.multistageFilling) === null || _props_multistageFilling === void 0 ? void 0 : _props_multistageFilling.map(function(item) {
|
|
173
173
|
return new MultistageFillingItem(item);
|
|
174
|
-
})) !== null &&
|
|
175
|
-
var
|
|
176
|
-
_this.defaultValue = (
|
|
174
|
+
})) !== null && _props_multistageFilling_map !== void 0 ? _props_multistageFilling_map : [];
|
|
175
|
+
var _props_defaultValue;
|
|
176
|
+
_this.defaultValue = (_props_defaultValue = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _props_defaultValue !== void 0 ? _props_defaultValue : [];
|
|
177
177
|
return _this;
|
|
178
178
|
}
|
|
179
179
|
return TreeProperty;
|
|
@@ -130,7 +130,7 @@ VueFormItemControl.setting = [
|
|
|
130
130
|
key: "caption",
|
|
131
131
|
showItems: [
|
|
132
132
|
COMMON_SETTING_TYPE.CAPTION,
|
|
133
|
-
COMMON_SETTING_TYPE.IS_HIDE_CAPTION
|
|
133
|
+
COMMON_SETTING_TYPE.IS_HIDE_CAPTION
|
|
134
134
|
],
|
|
135
135
|
visible: true
|
|
136
136
|
},
|
|
@@ -146,7 +146,7 @@ VueFormItemControl.setting = [
|
|
|
146
146
|
COMMON_SETTING_TYPE.IS_HIDE_CAPTION,
|
|
147
147
|
COMMON_SETTING_TYPE.REQUIRED,
|
|
148
148
|
COMMON_SETTING_TYPE.IS_SHOW_CAPTION_TIP,
|
|
149
|
-
COMMON_SETTING_TYPE.IS_INLINE_EDIT
|
|
149
|
+
COMMON_SETTING_TYPE.IS_INLINE_EDIT
|
|
150
150
|
]
|
|
151
151
|
},
|
|
152
152
|
{
|
|
@@ -160,7 +160,7 @@ VueFormItemControl.setting = [
|
|
|
160
160
|
{
|
|
161
161
|
key: "super-setting",
|
|
162
162
|
visible: true
|
|
163
|
-
}
|
|
163
|
+
}
|
|
164
164
|
];
|
|
165
165
|
export default VueFormItemControl;
|
|
166
166
|
export { VueFormItemControl as DesignerVueFormItemControl };
|
|
@@ -107,16 +107,16 @@ var VueFormItemProperty = /*#__PURE__*/ function(BaseControlProperty) {
|
|
|
107
107
|
_classCallCheck(this, VueFormItemProperty);
|
|
108
108
|
var _this;
|
|
109
109
|
_this = _super.call(this, props);
|
|
110
|
-
var
|
|
111
|
-
_this.caption = (
|
|
112
|
-
var
|
|
113
|
-
_this.defaultValue = (
|
|
114
|
-
var
|
|
115
|
-
_this.controlExportName = (
|
|
116
|
-
var
|
|
117
|
-
_this.permissions = (
|
|
118
|
-
var
|
|
119
|
-
_this.isInlineEdit = (
|
|
110
|
+
var _props_caption;
|
|
111
|
+
_this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : VueFormItemControl.controlName;
|
|
112
|
+
var _props_defaultValue;
|
|
113
|
+
_this.defaultValue = (_props_defaultValue = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _props_defaultValue !== void 0 ? _props_defaultValue : undefined;
|
|
114
|
+
var _props_controlExportName;
|
|
115
|
+
_this.controlExportName = (_props_controlExportName = props === null || props === void 0 ? void 0 : props.controlExportName) !== null && _props_controlExportName !== void 0 ? _props_controlExportName : "";
|
|
116
|
+
var _props_permissions;
|
|
117
|
+
_this.permissions = (_props_permissions = props === null || props === void 0 ? void 0 : props.permissions) !== null && _props_permissions !== void 0 ? _props_permissions : [];
|
|
118
|
+
var _props_isInlineEdit;
|
|
119
|
+
_this.isInlineEdit = (_props_isInlineEdit = props === null || props === void 0 ? void 0 : props.isInlineEdit) !== null && _props_isInlineEdit !== void 0 ? _props_isInlineEdit : false;
|
|
120
120
|
return _this;
|
|
121
121
|
}
|
|
122
122
|
return VueFormItemProperty;
|
|
@@ -128,7 +128,7 @@ var WPSControl = /*#__PURE__*/ function(DesignerFormControl) {
|
|
|
128
128
|
}(DesignerFormControl);
|
|
129
129
|
WPSControl.controlEventKeys = [
|
|
130
130
|
"on_change",
|
|
131
|
-
"on_wps_open"
|
|
131
|
+
"on_wps_open"
|
|
132
132
|
];
|
|
133
133
|
WPSControl.controlFieldType = FieldTypes.FILE;
|
|
134
134
|
WPSControl.setting = [
|
|
@@ -140,7 +140,7 @@ WPSControl.setting = [
|
|
|
140
140
|
key: "caption",
|
|
141
141
|
showItems: [
|
|
142
142
|
COMMON_SETTING_TYPE.CAPTION,
|
|
143
|
-
COMMON_SETTING_TYPE.IS_HIDE_CAPTION
|
|
143
|
+
COMMON_SETTING_TYPE.IS_HIDE_CAPTION
|
|
144
144
|
],
|
|
145
145
|
visible: true
|
|
146
146
|
},
|
|
@@ -159,7 +159,7 @@ WPSControl.setting = [
|
|
|
159
159
|
COMMON_SETTING_TYPE.REQUIRED,
|
|
160
160
|
COMMON_SETTING_TYPE.IS_HIDE,
|
|
161
161
|
COMMON_SETTING_TYPE.IS_SHOW_CAPTION_TIP,
|
|
162
|
-
COMMON_SETTING_TYPE.REVISIONS_MODE
|
|
162
|
+
COMMON_SETTING_TYPE.REVISIONS_MODE
|
|
163
163
|
]
|
|
164
164
|
},
|
|
165
165
|
{
|
|
@@ -185,7 +185,7 @@ WPSControl.setting = [
|
|
|
185
185
|
{
|
|
186
186
|
key: "super-setting",
|
|
187
187
|
visible: true
|
|
188
|
-
}
|
|
188
|
+
}
|
|
189
189
|
];
|
|
190
190
|
export default WPSControl;
|
|
191
191
|
export { WPSControl as DesignerWPSControl };
|