@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,12 +94,12 @@ var TabControl = /*#__PURE__*/ function(DesignerLayoutControl) {
|
|
|
94
94
|
function TabControl(props) {
|
|
95
95
|
_class_call_check(this, TabControl);
|
|
96
96
|
var _this;
|
|
97
|
+
var _ref;
|
|
97
98
|
_this = _call_super(this, TabControl, [
|
|
98
99
|
props
|
|
99
100
|
]), _define_property(_this, "props", void 0);
|
|
100
101
|
_this.props = new TabControlProperty(props === null || props === void 0 ? void 0 : props.props);
|
|
101
|
-
|
|
102
|
-
_this.children = (_props_children = props === null || props === void 0 ? void 0 : props.children) !== null && _props_children !== void 0 ? _props_children : [
|
|
102
|
+
_this.children = (_ref = props === null || props === void 0 ? void 0 : props.children) !== null && _ref !== void 0 ? _ref : [
|
|
103
103
|
new DesignerTabPaneControl(),
|
|
104
104
|
new DesignerTabPaneControl()
|
|
105
105
|
];
|
|
@@ -77,11 +77,11 @@ var TabControlProperty = /*#__PURE__*/ function(LayoutControlProperty) {
|
|
|
77
77
|
function TabControlProperty(props) {
|
|
78
78
|
_class_call_check(this, TabControlProperty);
|
|
79
79
|
var _this;
|
|
80
|
+
var _ref;
|
|
80
81
|
_this = _call_super(this, TabControlProperty, [
|
|
81
82
|
props
|
|
82
83
|
]), _define_property(_this, "mobileShowType", void 0);
|
|
83
|
-
|
|
84
|
-
_this.mobileShowType = (_props_mobileShowType = props === null || props === void 0 ? void 0 : props.mobileShowType) !== null && _props_mobileShowType !== void 0 ? _props_mobileShowType : 'vertical';
|
|
84
|
+
_this.mobileShowType = (_ref = props === null || props === void 0 ? void 0 : props.mobileShowType) !== null && _ref !== void 0 ? _ref : 'vertical';
|
|
85
85
|
return _this;
|
|
86
86
|
}
|
|
87
87
|
return TabControlProperty;
|
|
@@ -96,11 +96,11 @@ var TabPaneControlProperty = /*#__PURE__*/ function(LayoutControlProperty) {
|
|
|
96
96
|
function TabPaneControlProperty(props) {
|
|
97
97
|
_class_call_check(this, TabPaneControlProperty);
|
|
98
98
|
var _this;
|
|
99
|
+
var _ref;
|
|
99
100
|
_this = _call_super(this, TabPaneControlProperty, [
|
|
100
101
|
props
|
|
101
102
|
]), _define_property(_this, "caption", void 0);
|
|
102
|
-
|
|
103
|
-
_this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : DesignerTabControl.controlName;
|
|
103
|
+
_this.caption = (_ref = props === null || props === void 0 ? void 0 : props.caption) !== null && _ref !== void 0 ? _ref : DesignerTabControl.controlName;
|
|
104
104
|
return _this;
|
|
105
105
|
}
|
|
106
106
|
return TabPaneControlProperty;
|
|
@@ -184,9 +184,17 @@ function _ts_generator(thisArg, body) {
|
|
|
184
184
|
},
|
|
185
185
|
trys: [],
|
|
186
186
|
ops: []
|
|
187
|
-
}, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
|
|
188
|
-
return
|
|
189
|
-
|
|
187
|
+
}, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype), d = Object.defineProperty;
|
|
188
|
+
return d(g, "next", {
|
|
189
|
+
value: verb(0)
|
|
190
|
+
}), d(g, "throw", {
|
|
191
|
+
value: verb(1)
|
|
192
|
+
}), d(g, "return", {
|
|
193
|
+
value: verb(2)
|
|
194
|
+
}), typeof Symbol === "function" && d(g, Symbol.iterator, {
|
|
195
|
+
value: function() {
|
|
196
|
+
return this;
|
|
197
|
+
}
|
|
190
198
|
}), g;
|
|
191
199
|
function verb(n) {
|
|
192
200
|
return function(v) {
|
|
@@ -310,7 +318,7 @@ var GridTableControl = /*#__PURE__*/ function(DesignerListControl) {
|
|
|
310
318
|
key: "validate",
|
|
311
319
|
value: function validate(messages, ignore) {
|
|
312
320
|
var _this = this;
|
|
313
|
-
var _this1 = this, _superprop_get_validate = function() {
|
|
321
|
+
var _this1 = this, _superprop_get_validate = function _superprop_get_validate() {
|
|
314
322
|
return _get(_get_prototype_of(GridTableControl.prototype), "validate", _this);
|
|
315
323
|
};
|
|
316
324
|
return _async_to_generator(function() {
|
|
@@ -1,11 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
* @Author: Elvis shuaiqy@hotmail.com
|
|
3
|
-
* @Date: 2022-01-11 22:20:55
|
|
4
|
-
* @LastEditors: changjiaqi hypocrite_chang@163.com
|
|
5
|
-
* @LastEditTime: 2023-05-31 10:33:27
|
|
6
|
-
* @FilePath: /model-driven/packages/controls/src/listControls/GridTable/property.ts
|
|
7
|
-
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
|
|
8
|
-
*/ function _assert_this_initialized(self) {
|
|
1
|
+
function _assert_this_initialized(self) {
|
|
9
2
|
if (self === void 0) {
|
|
10
3
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
11
4
|
}
|
|
@@ -77,7 +70,14 @@ function _is_native_reflect_construct() {
|
|
|
77
70
|
return !!result;
|
|
78
71
|
})();
|
|
79
72
|
}
|
|
80
|
-
|
|
73
|
+
/*
|
|
74
|
+
* @Author: Elvis shuaiqy@hotmail.com
|
|
75
|
+
* @Date: 2022-01-11 22:20:55
|
|
76
|
+
* @LastEditors: changjiaqi hypocrite_chang@163.com
|
|
77
|
+
* @LastEditTime: 2023-05-31 10:33:27
|
|
78
|
+
* @FilePath: /model-driven/packages/controls/src/listControls/GridTable/property.ts
|
|
79
|
+
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
|
|
80
|
+
*/ import { ListControlProperty } from '@byteluck-fe/model-driven-core';
|
|
81
81
|
/**
|
|
82
82
|
* GridTable 表格组件
|
|
83
83
|
* @public
|
|
@@ -87,6 +87,7 @@ import { ListControlProperty } from '@byteluck-fe/model-driven-core';
|
|
|
87
87
|
function GridTableControlProperty(parent, props) {
|
|
88
88
|
_class_call_check(this, GridTableControlProperty);
|
|
89
89
|
var _this;
|
|
90
|
+
var _ref, _ref1, _ref2, _ref3, _ref4;
|
|
90
91
|
_this = _call_super(this, GridTableControlProperty, [
|
|
91
92
|
parent,
|
|
92
93
|
props
|
|
@@ -110,17 +111,12 @@ import { ListControlProperty } from '@byteluck-fe/model-driven-core';
|
|
|
110
111
|
* @defaultValue true
|
|
111
112
|
* @public
|
|
112
113
|
*/ _define_property(_this, "isShowCustomColumns", void 0);
|
|
113
|
-
|
|
114
|
-
_this.isFixedHeader = (_props_isFixedHeader = props === null || props === void 0 ? void 0 : props.isFixedHeader) !== null && _props_isFixedHeader !== void 0 ? _props_isFixedHeader : false;
|
|
114
|
+
_this.isFixedHeader = (_ref = props === null || props === void 0 ? void 0 : props.isFixedHeader) !== null && _ref !== void 0 ? _ref : false;
|
|
115
115
|
_this.selectionType = props === null || props === void 0 ? void 0 : props.selectionType;
|
|
116
|
-
|
|
117
|
-
_this.
|
|
118
|
-
|
|
119
|
-
_this.
|
|
120
|
-
var _props_isShowCustomColumns;
|
|
121
|
-
_this.isShowCustomColumns = (_props_isShowCustomColumns = props === null || props === void 0 ? void 0 : props.isShowCustomColumns) !== null && _props_isShowCustomColumns !== void 0 ? _props_isShowCustomColumns : true;
|
|
122
|
-
var _props_pageSizeOptions;
|
|
123
|
-
_this.pageSizeOptions = (_props_pageSizeOptions = props === null || props === void 0 ? void 0 : props.pageSizeOptions) !== null && _props_pageSizeOptions !== void 0 ? _props_pageSizeOptions : [
|
|
116
|
+
_this.isShowToolbar = (_ref1 = props === null || props === void 0 ? void 0 : props.isShowToolbar) !== null && _ref1 !== void 0 ? _ref1 : true;
|
|
117
|
+
_this.isShowSelection = (_ref2 = props === null || props === void 0 ? void 0 : props.isShowSelection) !== null && _ref2 !== void 0 ? _ref2 : false;
|
|
118
|
+
_this.isShowCustomColumns = (_ref3 = props === null || props === void 0 ? void 0 : props.isShowCustomColumns) !== null && _ref3 !== void 0 ? _ref3 : true;
|
|
119
|
+
_this.pageSizeOptions = (_ref4 = props === null || props === void 0 ? void 0 : props.pageSizeOptions) !== null && _ref4 !== void 0 ? _ref4 : [
|
|
124
120
|
10,
|
|
125
121
|
20,
|
|
126
122
|
50,
|
|
@@ -154,7 +154,8 @@ _define_property(SubTableControl, "controlEventKeys", [
|
|
|
154
154
|
'on_list_delete',
|
|
155
155
|
'on_list_before_insert',
|
|
156
156
|
'on_list_before_import',
|
|
157
|
-
'on_list_after_import'
|
|
157
|
+
'on_list_after_import',
|
|
158
|
+
'on_sublist_actions'
|
|
158
159
|
]);
|
|
159
160
|
_define_property(SubTableControl, "setting", [
|
|
160
161
|
{
|
|
@@ -172,6 +172,7 @@ var SubtableControlRuntimeRules = /*#__PURE__*/ function(PropertyRuntimeRules) {
|
|
|
172
172
|
function SubTableControlProperty(parent, props) {
|
|
173
173
|
_class_call_check(this, SubTableControlProperty);
|
|
174
174
|
var _this;
|
|
175
|
+
var _ref, _ref1, _ref2, _ref3, _ref4, _ref5, _ref6, _ref7, _ref8, _ref9, _ref10, _ref11, _ref12, _ref13, _ref14, _ref15, _ref16, _ref17, _ref18, _ref19, _ref20, _ref21, _ref22, _ref23, _ref24, _ref25, _ref26, _ref27, _ref28, _ref29, _ref30, _ref31;
|
|
175
176
|
_this = _call_super(this, SubTableControlProperty, [
|
|
176
177
|
parent,
|
|
177
178
|
props,
|
|
@@ -278,76 +279,44 @@ var SubtableControlRuntimeRules = /*#__PURE__*/ function(PropertyRuntimeRules) {
|
|
|
278
279
|
* @public
|
|
279
280
|
* */ _define_property(_this, "mobileIsTile", void 0), // 明细子表列头排序字段设置
|
|
280
281
|
_define_property(_this, "fieldOrders", void 0);
|
|
281
|
-
|
|
282
|
-
_this.
|
|
283
|
-
|
|
284
|
-
_this.
|
|
285
|
-
|
|
286
|
-
_this.
|
|
287
|
-
|
|
288
|
-
_this.
|
|
289
|
-
|
|
290
|
-
_this.
|
|
291
|
-
|
|
292
|
-
_this.
|
|
293
|
-
var _props_useCustomHeight;
|
|
294
|
-
_this.useCustomHeight = (_props_useCustomHeight = props === null || props === void 0 ? void 0 : props.useCustomHeight) !== null && _props_useCustomHeight !== void 0 ? _props_useCustomHeight : false;
|
|
295
|
-
var _props_maxHeight;
|
|
296
|
-
_this.maxHeight = (_props_maxHeight = props === null || props === void 0 ? void 0 : props.maxHeight) !== null && _props_maxHeight !== void 0 ? _props_maxHeight : SUBTABLE_DEFAULT_MAX_HEIGHT;
|
|
297
|
-
var _props_printMode;
|
|
298
|
-
_this.printMode = (_props_printMode = props === null || props === void 0 ? void 0 : props.printMode) !== null && _props_printMode !== void 0 ? _props_printMode : 'row';
|
|
299
|
-
var _props_limitRows;
|
|
300
|
-
_this.limitRows = (_props_limitRows = props === null || props === void 0 ? void 0 : props.limitRows) !== null && _props_limitRows !== void 0 ? _props_limitRows : 1;
|
|
301
|
-
var _props_maxRows;
|
|
302
|
-
_this.maxRows = (_props_maxRows = props === null || props === void 0 ? void 0 : props.maxRows) !== null && _props_maxRows !== void 0 ? _props_maxRows : null;
|
|
303
|
-
var _props_defaultRows;
|
|
304
|
-
_this.defaultRows = (_props_defaultRows = props === null || props === void 0 ? void 0 : props.defaultRows) !== null && _props_defaultRows !== void 0 ? _props_defaultRows : 1;
|
|
282
|
+
_this.caption = (_ref = props === null || props === void 0 ? void 0 : props.caption) !== null && _ref !== void 0 ? _ref : SubTableControl.controlName;
|
|
283
|
+
_this.isHideCaption = (_ref1 = props === null || props === void 0 ? void 0 : props.isHideCaption) !== null && _ref1 !== void 0 ? _ref1 : false;
|
|
284
|
+
_this.defaultState = (_ref2 = props === null || props === void 0 ? void 0 : props.defaultState) !== null && _ref2 !== void 0 ? _ref2 : 'default';
|
|
285
|
+
_this.labelPosition = (_ref3 = props === null || props === void 0 ? void 0 : props.labelPosition) !== null && _ref3 !== void 0 ? _ref3 : 'top';
|
|
286
|
+
_this.openType = (_ref4 = props === null || props === void 0 ? void 0 : props.openType) !== null && _ref4 !== void 0 ? _ref4 : 'default';
|
|
287
|
+
_this.formKey = (_ref5 = props === null || props === void 0 ? void 0 : props.formKey) !== null && _ref5 !== void 0 ? _ref5 : '';
|
|
288
|
+
_this.useCustomHeight = (_ref6 = props === null || props === void 0 ? void 0 : props.useCustomHeight) !== null && _ref6 !== void 0 ? _ref6 : false;
|
|
289
|
+
_this.maxHeight = (_ref7 = props === null || props === void 0 ? void 0 : props.maxHeight) !== null && _ref7 !== void 0 ? _ref7 : SUBTABLE_DEFAULT_MAX_HEIGHT;
|
|
290
|
+
_this.printMode = (_ref8 = props === null || props === void 0 ? void 0 : props.printMode) !== null && _ref8 !== void 0 ? _ref8 : 'row';
|
|
291
|
+
_this.limitRows = (_ref9 = props === null || props === void 0 ? void 0 : props.limitRows) !== null && _ref9 !== void 0 ? _ref9 : 1;
|
|
292
|
+
_this.maxRows = (_ref10 = props === null || props === void 0 ? void 0 : props.maxRows) !== null && _ref10 !== void 0 ? _ref10 : null;
|
|
293
|
+
_this.defaultRows = (_ref11 = props === null || props === void 0 ? void 0 : props.defaultRows) !== null && _ref11 !== void 0 ? _ref11 : 1;
|
|
305
294
|
_this.datasourceBind = new DataSourceBind(props === null || props === void 0 ? void 0 : props.datasourceBind);
|
|
306
|
-
|
|
307
|
-
_this.
|
|
308
|
-
|
|
309
|
-
_this.
|
|
310
|
-
|
|
311
|
-
_this.
|
|
312
|
-
|
|
313
|
-
_this.
|
|
314
|
-
|
|
315
|
-
_this.
|
|
316
|
-
|
|
317
|
-
_this.
|
|
318
|
-
|
|
319
|
-
_this.
|
|
320
|
-
|
|
321
|
-
_this.
|
|
322
|
-
|
|
323
|
-
_this.
|
|
324
|
-
|
|
325
|
-
_this.captionTip = (_props_captionTip = props === null || props === void 0 ? void 0 : props.captionTip) !== null && _props_captionTip !== void 0 ? _props_captionTip : '';
|
|
326
|
-
var _props_mobileShowType;
|
|
327
|
-
_this.mobileShowType = (_props_mobileShowType = props === null || props === void 0 ? void 0 : props.mobileShowType) !== null && _props_mobileShowType !== void 0 ? _props_mobileShowType : 'list';
|
|
328
|
-
var _props_mobileDefaultNum;
|
|
329
|
-
_this.mobileDefaultNum = (_props_mobileDefaultNum = props === null || props === void 0 ? void 0 : props.mobileDefaultNum) !== null && _props_mobileDefaultNum !== void 0 ? _props_mobileDefaultNum : 10;
|
|
330
|
-
var _props_dataStorageDoc;
|
|
331
|
-
_this.dataStorageDoc = (_props_dataStorageDoc = props === null || props === void 0 ? void 0 : props.dataStorageDoc) !== null && _props_dataStorageDoc !== void 0 ? _props_dataStorageDoc : new DataStorageDoc();
|
|
332
|
-
var _props_fixedColumn;
|
|
333
|
-
_this.fixedColumn = (_props_fixedColumn = props === null || props === void 0 ? void 0 : props.fixedColumn) !== null && _props_fixedColumn !== void 0 ? _props_fixedColumn : [];
|
|
334
|
-
var _props_mobileRowCaption;
|
|
335
|
-
_this.mobileRowCaption = (_props_mobileRowCaption = props === null || props === void 0 ? void 0 : props.mobileRowCaption) !== null && _props_mobileRowCaption !== void 0 ? _props_mobileRowCaption : '明细';
|
|
336
|
-
var _props_mobileIsTile;
|
|
337
|
-
_this.mobileIsTile = (_props_mobileIsTile = props === null || props === void 0 ? void 0 : props.mobileIsTile) !== null && _props_mobileIsTile !== void 0 ? _props_mobileIsTile : false;
|
|
338
|
-
var _props_isPaste;
|
|
339
|
-
_this.isPaste = (_props_isPaste = props === null || props === void 0 ? void 0 : props.isPaste) !== null && _props_isPaste !== void 0 ? _props_isPaste : false;
|
|
340
|
-
var _props_pageSize;
|
|
341
|
-
_this.pageSize = (_props_pageSize = props === null || props === void 0 ? void 0 : props.pageSize) !== null && _props_pageSize !== void 0 ? _props_pageSize : 10;
|
|
342
|
-
var _props_pageSizeOptions;
|
|
343
|
-
_this.pageSizeOptions = (_props_pageSizeOptions = props === null || props === void 0 ? void 0 : props.pageSizeOptions) !== null && _props_pageSizeOptions !== void 0 ? _props_pageSizeOptions : [
|
|
295
|
+
_this.canAdd = (_ref12 = props === null || props === void 0 ? void 0 : props.canAdd) !== null && _ref12 !== void 0 ? _ref12 : true;
|
|
296
|
+
_this.canDelete = (_ref13 = props === null || props === void 0 ? void 0 : props.canDelete) !== null && _ref13 !== void 0 ? _ref13 : true;
|
|
297
|
+
_this.canCheck = (_ref14 = props === null || props === void 0 ? void 0 : props.canCheck) !== null && _ref14 !== void 0 ? _ref14 : false;
|
|
298
|
+
_this.canEdit = (_ref15 = props === null || props === void 0 ? void 0 : props.canEdit) !== null && _ref15 !== void 0 ? _ref15 : false;
|
|
299
|
+
_this.canImport = (_ref16 = props === null || props === void 0 ? void 0 : props.canImport) !== null && _ref16 !== void 0 ? _ref16 : false;
|
|
300
|
+
_this.canExport = (_ref17 = props === null || props === void 0 ? void 0 : props.canExport) !== null && _ref17 !== void 0 ? _ref17 : false;
|
|
301
|
+
_this.canClear = (_ref18 = props === null || props === void 0 ? void 0 : props.canClear) !== null && _ref18 !== void 0 ? _ref18 : true;
|
|
302
|
+
_this.serverPagination = (_ref19 = props === null || props === void 0 ? void 0 : props.serverPagination) !== null && _ref19 !== void 0 ? _ref19 : false;
|
|
303
|
+
_this.isShowCaptionTip = (_ref20 = props === null || props === void 0 ? void 0 : props.isShowCaptionTip) !== null && _ref20 !== void 0 ? _ref20 : false;
|
|
304
|
+
_this.captionTip = (_ref21 = props === null || props === void 0 ? void 0 : props.captionTip) !== null && _ref21 !== void 0 ? _ref21 : '';
|
|
305
|
+
_this.mobileShowType = (_ref22 = props === null || props === void 0 ? void 0 : props.mobileShowType) !== null && _ref22 !== void 0 ? _ref22 : 'list';
|
|
306
|
+
_this.mobileDefaultNum = (_ref23 = props === null || props === void 0 ? void 0 : props.mobileDefaultNum) !== null && _ref23 !== void 0 ? _ref23 : 10;
|
|
307
|
+
_this.dataStorageDoc = (_ref24 = props === null || props === void 0 ? void 0 : props.dataStorageDoc) !== null && _ref24 !== void 0 ? _ref24 : new DataStorageDoc();
|
|
308
|
+
_this.fixedColumn = (_ref25 = props === null || props === void 0 ? void 0 : props.fixedColumn) !== null && _ref25 !== void 0 ? _ref25 : [];
|
|
309
|
+
_this.mobileRowCaption = (_ref26 = props === null || props === void 0 ? void 0 : props.mobileRowCaption) !== null && _ref26 !== void 0 ? _ref26 : '明细';
|
|
310
|
+
_this.mobileIsTile = (_ref27 = props === null || props === void 0 ? void 0 : props.mobileIsTile) !== null && _ref27 !== void 0 ? _ref27 : false;
|
|
311
|
+
_this.isPaste = (_ref28 = props === null || props === void 0 ? void 0 : props.isPaste) !== null && _ref28 !== void 0 ? _ref28 : false;
|
|
312
|
+
_this.pageSize = (_ref29 = props === null || props === void 0 ? void 0 : props.pageSize) !== null && _ref29 !== void 0 ? _ref29 : 10;
|
|
313
|
+
_this.pageSizeOptions = (_ref30 = props === null || props === void 0 ? void 0 : props.pageSizeOptions) !== null && _ref30 !== void 0 ? _ref30 : [
|
|
344
314
|
10,
|
|
345
315
|
20,
|
|
346
316
|
50,
|
|
347
317
|
100
|
|
348
318
|
];
|
|
349
|
-
|
|
350
|
-
_this.fieldOrders = (_props_fieldOrders = props === null || props === void 0 ? void 0 : props.fieldOrders) !== null && _props_fieldOrders !== void 0 ? _props_fieldOrders : [];
|
|
319
|
+
_this.fieldOrders = (_ref31 = props === null || props === void 0 ? void 0 : props.fieldOrders) !== null && _ref31 !== void 0 ? _ref31 : [];
|
|
351
320
|
return _this;
|
|
352
321
|
}
|
|
353
322
|
return SubTableControlProperty;
|
|
@@ -97,6 +97,7 @@ var SimpleSearchControlPropertyRuntimeRules = /*#__PURE__*/ function(PropertyRun
|
|
|
97
97
|
function SimpleSearchControlProperty(props) {
|
|
98
98
|
_class_call_check(this, SimpleSearchControlProperty);
|
|
99
99
|
var _this;
|
|
100
|
+
var _ref, _ref1, _ref2, _ref3, _ref4, _ref5, _ref6, _ref7, _ref8, _ref9;
|
|
100
101
|
_this = _call_super(this, SimpleSearchControlProperty, [
|
|
101
102
|
props
|
|
102
103
|
]), /**
|
|
@@ -134,34 +135,24 @@ var SimpleSearchControlPropertyRuntimeRules = /*#__PURE__*/ function(PropertyRun
|
|
|
134
135
|
* @defaultValue 24
|
|
135
136
|
* @public
|
|
136
137
|
*/ _define_property(_this, "colGap", void 0);
|
|
137
|
-
|
|
138
|
-
_this.
|
|
139
|
-
|
|
140
|
-
_this.
|
|
141
|
-
var _props_viewType;
|
|
142
|
-
_this.viewType = (_props_viewType = props === null || props === void 0 ? void 0 : props.viewType) !== null && _props_viewType !== void 0 ? _props_viewType : 'mini';
|
|
143
|
-
var _props_search;
|
|
144
|
-
_this.search = new OperationItem((_props_search = props === null || props === void 0 ? void 0 : props.search) !== null && _props_search !== void 0 ? _props_search : {
|
|
138
|
+
_this.searchType = (_ref = props === null || props === void 0 ? void 0 : props.searchType) !== null && _ref !== void 0 ? _ref : 'model';
|
|
139
|
+
_this.labelPosition = (_ref1 = props === null || props === void 0 ? void 0 : props.labelPosition) !== null && _ref1 !== void 0 ? _ref1 : 'top';
|
|
140
|
+
_this.viewType = (_ref2 = props === null || props === void 0 ? void 0 : props.viewType) !== null && _ref2 !== void 0 ? _ref2 : 'mini';
|
|
141
|
+
_this.search = new OperationItem((_ref3 = props === null || props === void 0 ? void 0 : props.search) !== null && _ref3 !== void 0 ? _ref3 : {
|
|
145
142
|
content: '查询',
|
|
146
143
|
isShow: true
|
|
147
144
|
});
|
|
148
|
-
|
|
149
|
-
_this.cancel = new OperationItem((_props_cancel = props === null || props === void 0 ? void 0 : props.cancel) !== null && _props_cancel !== void 0 ? _props_cancel : {
|
|
145
|
+
_this.cancel = new OperationItem((_ref4 = props === null || props === void 0 ? void 0 : props.cancel) !== null && _ref4 !== void 0 ? _ref4 : {
|
|
150
146
|
content: '重置',
|
|
151
147
|
isShow: true
|
|
152
148
|
});
|
|
153
|
-
|
|
154
|
-
_this.
|
|
155
|
-
var _props_custom;
|
|
156
|
-
_this.custom = ((_props_custom = props === null || props === void 0 ? void 0 : props.custom) !== null && _props_custom !== void 0 ? _props_custom : []).map(function(item) {
|
|
149
|
+
_this.isLoading = (_ref5 = props === null || props === void 0 ? void 0 : props.isLoading) !== null && _ref5 !== void 0 ? _ref5 : false;
|
|
150
|
+
_this.custom = ((_ref6 = props === null || props === void 0 ? void 0 : props.custom) !== null && _ref6 !== void 0 ? _ref6 : []).map(function(item) {
|
|
157
151
|
return new OperationItem(item);
|
|
158
152
|
});
|
|
159
|
-
|
|
160
|
-
_this.
|
|
161
|
-
|
|
162
|
-
_this.childMinWidth = (_props_childMinWidth = props === null || props === void 0 ? void 0 : props.childMinWidth) !== null && _props_childMinWidth !== void 0 ? _props_childMinWidth : 230;
|
|
163
|
-
var _props_colGap;
|
|
164
|
-
_this.colGap = (_props_colGap = props === null || props === void 0 ? void 0 : props.colGap) !== null && _props_colGap !== void 0 ? _props_colGap : 24;
|
|
153
|
+
_this.queryTypeMap = (_ref7 = props === null || props === void 0 ? void 0 : props.queryTypeMap) !== null && _ref7 !== void 0 ? _ref7 : [];
|
|
154
|
+
_this.childMinWidth = (_ref8 = props === null || props === void 0 ? void 0 : props.childMinWidth) !== null && _ref8 !== void 0 ? _ref8 : 230;
|
|
155
|
+
_this.colGap = (_ref9 = props === null || props === void 0 ? void 0 : props.colGap) !== null && _ref9 !== void 0 ? _ref9 : 24;
|
|
165
156
|
return _this;
|
|
166
157
|
}
|
|
167
158
|
return SimpleSearchControlProperty;
|
|
@@ -78,12 +78,12 @@ var SimpleSearchControl = /*#__PURE__*/ function(RuntimeSearchControl) {
|
|
|
78
78
|
function SimpleSearchControl(props) {
|
|
79
79
|
_class_call_check(this, SimpleSearchControl);
|
|
80
80
|
var _this;
|
|
81
|
+
var _ref;
|
|
81
82
|
_this = _call_super(this, SimpleSearchControl, [
|
|
82
83
|
props
|
|
83
84
|
]), _define_property(_this, "props", void 0), _define_property(_this, "children", void 0);
|
|
84
85
|
_this.props = new SimpleSearchControlProperty(props === null || props === void 0 ? void 0 : props.props);
|
|
85
|
-
|
|
86
|
-
_this.children = (_props_children = props === null || props === void 0 ? void 0 : props.children) !== null && _props_children !== void 0 ? _props_children : [];
|
|
86
|
+
_this.children = (_ref = props === null || props === void 0 ? void 0 : props.children) !== null && _ref !== void 0 ? _ref : [];
|
|
87
87
|
return _this;
|
|
88
88
|
}
|
|
89
89
|
return SimpleSearchControl;
|
|
@@ -1,10 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
* @Author: zhaoxiaoyang zhaoxiaoyang@byteluck.com
|
|
3
|
-
* @Date: 2023-08-08 11:13:49
|
|
4
|
-
* @LastEditors: zhaoxiaoyang zhaoxiaoyang@byteluck.com
|
|
5
|
-
* @LastEditTime: 2023-08-09 11:26:04
|
|
6
|
-
* @FilePath: /model-driven/packages/controls/src/wrapControls/gridLayoutWrap/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: 2023-08-08 11:13:49
|
|
90
|
+
* @LastEditors: zhaoxiaoyang zhaoxiaoyang@byteluck.com
|
|
91
|
+
* @LastEditTime: 2023-08-09 11:26:04
|
|
92
|
+
* @FilePath: /model-driven/packages/controls/src/wrapControls/gridLayoutWrap/designer.ts
|
|
93
|
+
*/ import { DesignerWrapControl } from '@byteluck-fe/model-driven-core';
|
|
94
94
|
import GridLayoutWrapProperty from './property';
|
|
95
95
|
// import Setting from './Setting'
|
|
96
96
|
var GridLayoutWrapControl = /*#__PURE__*/ function(DesignerWrapControl) {
|
|
@@ -77,11 +77,11 @@ var GridLayoutWrapProperty = /*#__PURE__*/ function(WrapControlProperty) {
|
|
|
77
77
|
function GridLayoutWrapProperty(props) {
|
|
78
78
|
_class_call_check(this, GridLayoutWrapProperty);
|
|
79
79
|
var _this;
|
|
80
|
+
var _ref;
|
|
80
81
|
_this = _call_super(this, GridLayoutWrapProperty, [
|
|
81
82
|
props
|
|
82
83
|
]), _define_property(_this, "wholeRow", void 0);
|
|
83
|
-
|
|
84
|
-
_this.wholeRow = (_props_wholeRow = props === null || props === void 0 ? void 0 : props.wholeRow) !== null && _props_wholeRow !== void 0 ? _props_wholeRow : false;
|
|
84
|
+
_this.wholeRow = (_ref = props === null || props === void 0 ? void 0 : props.wholeRow) !== null && _ref !== void 0 ? _ref : false;
|
|
85
85
|
return _this;
|
|
86
86
|
}
|
|
87
87
|
return GridLayoutWrapProperty;
|
|
@@ -1,10 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
* @Author: zhaoxiaoyang zhaoxiaoyang@byteluck.com
|
|
3
|
-
* @Date: 2023-08-08 11:13:49
|
|
4
|
-
* @LastEditors: zhaoxiaoyang zhaoxiaoyang@byteluck.com
|
|
5
|
-
* @LastEditTime: 2023-08-09 11:09:36
|
|
6
|
-
* @FilePath: /model-driven/packages/controls/src/wrapControls/gridLayoutWrap/runtime.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: 2023-08-08 11:13:49
|
|
90
|
+
* @LastEditors: zhaoxiaoyang zhaoxiaoyang@byteluck.com
|
|
91
|
+
* @LastEditTime: 2023-08-09 11:09:36
|
|
92
|
+
* @FilePath: /model-driven/packages/controls/src/wrapControls/gridLayoutWrap/runtime.ts
|
|
93
|
+
*/ import { RuntimeWrapControl } from '@byteluck-fe/model-driven-core';
|
|
94
94
|
import GridLayoutWrapProperty from './property';
|
|
95
95
|
var GridLayoutWrapControl = /*#__PURE__*/ function(RuntimeWrapControl) {
|
|
96
96
|
"use strict";
|