@byteluck-fe/model-driven-controls 6.2.0-beta.12 → 6.2.0-beta.13
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/Comment/property.js +2 -2
- package/dist/esm/baseControls/CreateFormListButton/property.js +5 -8
- package/dist/esm/baseControls/Dashboard/property.js +9 -16
- 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 +4 -6
- package/dist/esm/baseControls/ImportRecordListButton/property.js +6 -9
- package/dist/esm/baseControls/InvoiceCheckButton/property.js +11 -19
- package/dist/esm/baseControls/Link/property.js +4 -6
- package/dist/esm/baseControls/ListSelectButton/property.js +6 -10
- package/dist/esm/baseControls/ListViewSelect/property.js +4 -5
- package/dist/esm/baseControls/OperationButton/property.js +7 -12
- package/dist/esm/baseControls/ReferenceList/property.js +7 -12
- 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 +4 -6
- 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/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/property.js +3 -4
- package/dist/esm/columnControls/GroupColumn/property.js +2 -2
- package/dist/esm/columnControls/ImageColumn/property.js +2 -2
- package/dist/esm/columnControls/LocationColumn/property.js +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 +5 -8
- package/dist/esm/columnControls/TimestampColumn/property.js +5 -8
- 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 +13 -24
- package/dist/esm/formControls/Attachment/property.js +25 -40
- package/dist/esm/formControls/AutoNumber/property.js +4 -6
- package/dist/esm/formControls/Calc/property.js +10 -18
- package/dist/esm/formControls/Checkbox/property.js +16 -29
- package/dist/esm/formControls/DatePicker/property.js +15 -27
- package/dist/esm/formControls/DateRange/property.js +13 -23
- package/dist/esm/formControls/Department/property.js +12 -22
- package/dist/esm/formControls/Department2/property.js +19 -35
- 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 +17 -32
- package/dist/esm/formControls/Image/designer.js +8 -8
- package/dist/esm/formControls/Image/property.js +7 -12
- package/dist/esm/formControls/Input/property.js +11 -20
- 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 +13 -24
- package/dist/esm/formControls/RichText/property.js +11 -20
- package/dist/esm/formControls/Score/property.js +8 -13
- package/dist/esm/formControls/SearchDateRange/property.js +14 -25
- package/dist/esm/formControls/SearchNumberRange/property.js +7 -12
- package/dist/esm/formControls/Select/property.js +12 -22
- package/dist/esm/formControls/SelectMultiple/property.js +11 -20
- package/dist/esm/formControls/SelectRelation/property.js +14 -26
- package/dist/esm/formControls/Textarea/property.js +11 -20
- package/dist/esm/formControls/Tree/designer.js +2 -1
- package/dist/esm/formControls/Tree/property.js +20 -37
- package/dist/esm/formControls/VueFormItem/property.js +6 -10
- package/dist/esm/formControls/VuePage/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 +69 -113
- 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 +4 -6
- package/dist/esm/layoutControls/Col/property.js +5 -8
- package/dist/esm/layoutControls/DataView/property.js +8 -14
- 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 +15 -28
- 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/Step/designer.js +2 -2
- package/dist/esm/layoutControls/Step/property.js +6 -10
- package/dist/esm/layoutControls/StepPane/property.js +9 -16
- 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/layoutControls/TableLayout/property.js +16 -30
- package/dist/esm/layoutControls/TableLayoutCol/property.js +11 -20
- package/dist/esm/layoutControls/TableLayoutRow/property.js +3 -4
- package/dist/esm/layoutControls/TableLayoutWrapper/property.js +4 -6
- package/dist/esm/listControls/GridTable/designer.js +12 -4
- package/dist/esm/listControls/GridTable/property.js +15 -19
- package/dist/esm/listControls/SubTable/property.js +35 -68
- package/dist/esm/searchControls/SimpleSearch/property.js +13 -24
- 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/framework.d.ts +19 -19
- package/dist/types/wrapControls/GridLayoutWrap/index.d.ts +1 -1
- package/package.json +5 -5
|
@@ -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,
|
|
@@ -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, _ref32, _ref33;
|
|
175
176
|
_this = _call_super(this, SubTableControlProperty, [
|
|
176
177
|
parent,
|
|
177
178
|
props,
|
|
@@ -288,69 +289,38 @@ var SubtableControlRuntimeRules = /*#__PURE__*/ function(PropertyRuntimeRules) {
|
|
|
288
289
|
* 排序or筛选字段
|
|
289
290
|
* */ _define_property(_this, "sortKey", void 0), // 是否展示序号
|
|
290
291
|
_define_property(_this, "showTableIndex", void 0);
|
|
291
|
-
|
|
292
|
-
_this.
|
|
293
|
-
|
|
294
|
-
_this.
|
|
295
|
-
|
|
296
|
-
_this.
|
|
297
|
-
|
|
298
|
-
_this.
|
|
299
|
-
|
|
300
|
-
_this.
|
|
301
|
-
|
|
302
|
-
_this.
|
|
303
|
-
var _props_useCustomHeight;
|
|
304
|
-
_this.useCustomHeight = (_props_useCustomHeight = props === null || props === void 0 ? void 0 : props.useCustomHeight) !== null && _props_useCustomHeight !== void 0 ? _props_useCustomHeight : false;
|
|
305
|
-
var _props_maxHeight;
|
|
306
|
-
_this.maxHeight = (_props_maxHeight = props === null || props === void 0 ? void 0 : props.maxHeight) !== null && _props_maxHeight !== void 0 ? _props_maxHeight : SUBTABLE_DEFAULT_MAX_HEIGHT;
|
|
307
|
-
var _props_printMode;
|
|
308
|
-
_this.printMode = (_props_printMode = props === null || props === void 0 ? void 0 : props.printMode) !== null && _props_printMode !== void 0 ? _props_printMode : 'row';
|
|
309
|
-
var _props_limitRows;
|
|
310
|
-
_this.limitRows = (_props_limitRows = props === null || props === void 0 ? void 0 : props.limitRows) !== null && _props_limitRows !== void 0 ? _props_limitRows : 1;
|
|
311
|
-
var _props_maxRows;
|
|
312
|
-
_this.maxRows = (_props_maxRows = props === null || props === void 0 ? void 0 : props.maxRows) !== null && _props_maxRows !== void 0 ? _props_maxRows : null;
|
|
313
|
-
var _props_defaultRows;
|
|
314
|
-
_this.defaultRows = (_props_defaultRows = props === null || props === void 0 ? void 0 : props.defaultRows) !== null && _props_defaultRows !== void 0 ? _props_defaultRows : 1;
|
|
292
|
+
_this.caption = (_ref = props === null || props === void 0 ? void 0 : props.caption) !== null && _ref !== void 0 ? _ref : SubTableControl.controlName;
|
|
293
|
+
_this.isHideCaption = (_ref1 = props === null || props === void 0 ? void 0 : props.isHideCaption) !== null && _ref1 !== void 0 ? _ref1 : false;
|
|
294
|
+
_this.defaultState = (_ref2 = props === null || props === void 0 ? void 0 : props.defaultState) !== null && _ref2 !== void 0 ? _ref2 : 'default';
|
|
295
|
+
_this.labelPosition = (_ref3 = props === null || props === void 0 ? void 0 : props.labelPosition) !== null && _ref3 !== void 0 ? _ref3 : 'top';
|
|
296
|
+
_this.openType = (_ref4 = props === null || props === void 0 ? void 0 : props.openType) !== null && _ref4 !== void 0 ? _ref4 : 'default';
|
|
297
|
+
_this.formKey = (_ref5 = props === null || props === void 0 ? void 0 : props.formKey) !== null && _ref5 !== void 0 ? _ref5 : '';
|
|
298
|
+
_this.useCustomHeight = (_ref6 = props === null || props === void 0 ? void 0 : props.useCustomHeight) !== null && _ref6 !== void 0 ? _ref6 : false;
|
|
299
|
+
_this.maxHeight = (_ref7 = props === null || props === void 0 ? void 0 : props.maxHeight) !== null && _ref7 !== void 0 ? _ref7 : SUBTABLE_DEFAULT_MAX_HEIGHT;
|
|
300
|
+
_this.printMode = (_ref8 = props === null || props === void 0 ? void 0 : props.printMode) !== null && _ref8 !== void 0 ? _ref8 : 'row';
|
|
301
|
+
_this.limitRows = (_ref9 = props === null || props === void 0 ? void 0 : props.limitRows) !== null && _ref9 !== void 0 ? _ref9 : 1;
|
|
302
|
+
_this.maxRows = (_ref10 = props === null || props === void 0 ? void 0 : props.maxRows) !== null && _ref10 !== void 0 ? _ref10 : null;
|
|
303
|
+
_this.defaultRows = (_ref11 = props === null || props === void 0 ? void 0 : props.defaultRows) !== null && _ref11 !== void 0 ? _ref11 : 1;
|
|
315
304
|
_this.datasourceBind = new DataSourceBind(props === null || props === void 0 ? void 0 : props.datasourceBind);
|
|
316
|
-
|
|
317
|
-
_this.
|
|
318
|
-
|
|
319
|
-
_this.
|
|
320
|
-
|
|
321
|
-
_this.
|
|
322
|
-
|
|
323
|
-
_this.
|
|
324
|
-
|
|
325
|
-
_this.
|
|
326
|
-
|
|
327
|
-
_this.
|
|
328
|
-
|
|
329
|
-
_this.
|
|
330
|
-
|
|
331
|
-
_this.
|
|
332
|
-
|
|
333
|
-
_this.
|
|
334
|
-
|
|
335
|
-
_this.captionTip = (_props_captionTip = props === null || props === void 0 ? void 0 : props.captionTip) !== null && _props_captionTip !== void 0 ? _props_captionTip : '';
|
|
336
|
-
var _props_mobileShowType;
|
|
337
|
-
_this.mobileShowType = (_props_mobileShowType = props === null || props === void 0 ? void 0 : props.mobileShowType) !== null && _props_mobileShowType !== void 0 ? _props_mobileShowType : 'list';
|
|
338
|
-
var _props_mobileDefaultNum;
|
|
339
|
-
_this.mobileDefaultNum = (_props_mobileDefaultNum = props === null || props === void 0 ? void 0 : props.mobileDefaultNum) !== null && _props_mobileDefaultNum !== void 0 ? _props_mobileDefaultNum : 10;
|
|
340
|
-
var _props_dataStorageDoc;
|
|
341
|
-
_this.dataStorageDoc = (_props_dataStorageDoc = props === null || props === void 0 ? void 0 : props.dataStorageDoc) !== null && _props_dataStorageDoc !== void 0 ? _props_dataStorageDoc : new DataStorageDoc();
|
|
342
|
-
var _props_fixedColumn;
|
|
343
|
-
_this.fixedColumn = (_props_fixedColumn = props === null || props === void 0 ? void 0 : props.fixedColumn) !== null && _props_fixedColumn !== void 0 ? _props_fixedColumn : [];
|
|
344
|
-
var _props_mobileRowCaption;
|
|
345
|
-
_this.mobileRowCaption = (_props_mobileRowCaption = props === null || props === void 0 ? void 0 : props.mobileRowCaption) !== null && _props_mobileRowCaption !== void 0 ? _props_mobileRowCaption : getLocaleText('CMD.detailed', null, '明细');
|
|
346
|
-
var _props_mobileIsTile;
|
|
347
|
-
_this.mobileIsTile = (_props_mobileIsTile = props === null || props === void 0 ? void 0 : props.mobileIsTile) !== null && _props_mobileIsTile !== void 0 ? _props_mobileIsTile : false;
|
|
348
|
-
var _props_isPaste;
|
|
349
|
-
_this.isPaste = (_props_isPaste = props === null || props === void 0 ? void 0 : props.isPaste) !== null && _props_isPaste !== void 0 ? _props_isPaste : false;
|
|
350
|
-
var _props_pageSize;
|
|
351
|
-
_this.pageSize = (_props_pageSize = props === null || props === void 0 ? void 0 : props.pageSize) !== null && _props_pageSize !== void 0 ? _props_pageSize : 10;
|
|
352
|
-
var _props_pageSizeOptions;
|
|
353
|
-
_this.pageSizeOptions = (_props_pageSizeOptions = props === null || props === void 0 ? void 0 : props.pageSizeOptions) !== null && _props_pageSizeOptions !== void 0 ? _props_pageSizeOptions : [
|
|
305
|
+
_this.canAdd = (_ref12 = props === null || props === void 0 ? void 0 : props.canAdd) !== null && _ref12 !== void 0 ? _ref12 : true;
|
|
306
|
+
_this.canDelete = (_ref13 = props === null || props === void 0 ? void 0 : props.canDelete) !== null && _ref13 !== void 0 ? _ref13 : true;
|
|
307
|
+
_this.canCheck = (_ref14 = props === null || props === void 0 ? void 0 : props.canCheck) !== null && _ref14 !== void 0 ? _ref14 : false;
|
|
308
|
+
_this.canEdit = (_ref15 = props === null || props === void 0 ? void 0 : props.canEdit) !== null && _ref15 !== void 0 ? _ref15 : false;
|
|
309
|
+
_this.canImport = (_ref16 = props === null || props === void 0 ? void 0 : props.canImport) !== null && _ref16 !== void 0 ? _ref16 : false;
|
|
310
|
+
_this.canExport = (_ref17 = props === null || props === void 0 ? void 0 : props.canExport) !== null && _ref17 !== void 0 ? _ref17 : false;
|
|
311
|
+
_this.canClear = (_ref18 = props === null || props === void 0 ? void 0 : props.canClear) !== null && _ref18 !== void 0 ? _ref18 : true;
|
|
312
|
+
_this.serverPagination = (_ref19 = props === null || props === void 0 ? void 0 : props.serverPagination) !== null && _ref19 !== void 0 ? _ref19 : false;
|
|
313
|
+
_this.isShowCaptionTip = (_ref20 = props === null || props === void 0 ? void 0 : props.isShowCaptionTip) !== null && _ref20 !== void 0 ? _ref20 : false;
|
|
314
|
+
_this.captionTip = (_ref21 = props === null || props === void 0 ? void 0 : props.captionTip) !== null && _ref21 !== void 0 ? _ref21 : '';
|
|
315
|
+
_this.mobileShowType = (_ref22 = props === null || props === void 0 ? void 0 : props.mobileShowType) !== null && _ref22 !== void 0 ? _ref22 : 'list';
|
|
316
|
+
_this.mobileDefaultNum = (_ref23 = props === null || props === void 0 ? void 0 : props.mobileDefaultNum) !== null && _ref23 !== void 0 ? _ref23 : 10;
|
|
317
|
+
_this.dataStorageDoc = (_ref24 = props === null || props === void 0 ? void 0 : props.dataStorageDoc) !== null && _ref24 !== void 0 ? _ref24 : new DataStorageDoc();
|
|
318
|
+
_this.fixedColumn = (_ref25 = props === null || props === void 0 ? void 0 : props.fixedColumn) !== null && _ref25 !== void 0 ? _ref25 : [];
|
|
319
|
+
_this.mobileRowCaption = (_ref26 = props === null || props === void 0 ? void 0 : props.mobileRowCaption) !== null && _ref26 !== void 0 ? _ref26 : getLocaleText('CMD.detailed', null, '明细');
|
|
320
|
+
_this.mobileIsTile = (_ref27 = props === null || props === void 0 ? void 0 : props.mobileIsTile) !== null && _ref27 !== void 0 ? _ref27 : false;
|
|
321
|
+
_this.isPaste = (_ref28 = props === null || props === void 0 ? void 0 : props.isPaste) !== null && _ref28 !== void 0 ? _ref28 : false;
|
|
322
|
+
_this.pageSize = (_ref29 = props === null || props === void 0 ? void 0 : props.pageSize) !== null && _ref29 !== void 0 ? _ref29 : 10;
|
|
323
|
+
_this.pageSizeOptions = (_ref30 = props === null || props === void 0 ? void 0 : props.pageSizeOptions) !== null && _ref30 !== void 0 ? _ref30 : [
|
|
354
324
|
10,
|
|
355
325
|
20,
|
|
356
326
|
50,
|
|
@@ -358,12 +328,9 @@ var SubtableControlRuntimeRules = /*#__PURE__*/ function(PropertyRuntimeRules) {
|
|
|
358
328
|
];
|
|
359
329
|
_this.importConfig = new ImportConfig(props === null || props === void 0 ? void 0 : props.importConfig);
|
|
360
330
|
_this.exportConfig = new ExportConfig(props === null || props === void 0 ? void 0 : props.exportConfig);
|
|
361
|
-
|
|
362
|
-
_this.
|
|
363
|
-
|
|
364
|
-
_this.sortKey = (_props_sortKey = props === null || props === void 0 ? void 0 : props.sortKey) !== null && _props_sortKey !== void 0 ? _props_sortKey : {};
|
|
365
|
-
var _props_showTableIndex;
|
|
366
|
-
_this.showTableIndex = (_props_showTableIndex = props === null || props === void 0 ? void 0 : props.showTableIndex) !== null && _props_showTableIndex !== void 0 ? _props_showTableIndex : true;
|
|
331
|
+
_this.sortable = (_ref31 = props === null || props === void 0 ? void 0 : props.sortable) !== null && _ref31 !== void 0 ? _ref31 : false;
|
|
332
|
+
_this.sortKey = (_ref32 = props === null || props === void 0 ? void 0 : props.sortKey) !== null && _ref32 !== void 0 ? _ref32 : {};
|
|
333
|
+
_this.showTableIndex = (_ref33 = props === null || props === void 0 ? void 0 : props.showTableIndex) !== null && _ref33 !== void 0 ? _ref33 : true;
|
|
367
334
|
return _this;
|
|
368
335
|
}
|
|
369
336
|
return SubTableControlProperty;
|
|
@@ -98,6 +98,7 @@ var SimpleSearchControlPropertyRuntimeRules = /*#__PURE__*/ function(PropertyRun
|
|
|
98
98
|
function SimpleSearchControlProperty(props) {
|
|
99
99
|
_class_call_check(this, SimpleSearchControlProperty);
|
|
100
100
|
var _this;
|
|
101
|
+
var _ref, _ref1, _ref2, _ref3, _ref4, _ref5, _ref6, _ref7, _ref8, _ref9, _ref10, _ref11;
|
|
101
102
|
_this = _call_super(this, SimpleSearchControlProperty, [
|
|
102
103
|
props
|
|
103
104
|
]), /**
|
|
@@ -143,38 +144,26 @@ var SimpleSearchControlPropertyRuntimeRules = /*#__PURE__*/ function(PropertyRun
|
|
|
143
144
|
* @defaultValue []
|
|
144
145
|
* @public
|
|
145
146
|
*/ _define_property(_this, "simpleConfig", void 0);
|
|
146
|
-
|
|
147
|
-
_this.
|
|
148
|
-
|
|
149
|
-
_this.
|
|
150
|
-
var _props_viewType;
|
|
151
|
-
_this.viewType = (_props_viewType = props === null || props === void 0 ? void 0 : props.viewType) !== null && _props_viewType !== void 0 ? _props_viewType : 'mini';
|
|
152
|
-
var _props_search;
|
|
153
|
-
_this.search = new OperationItem((_props_search = props === null || props === void 0 ? void 0 : props.search) !== null && _props_search !== void 0 ? _props_search : {
|
|
147
|
+
_this.searchType = (_ref = props === null || props === void 0 ? void 0 : props.searchType) !== null && _ref !== void 0 ? _ref : 'model';
|
|
148
|
+
_this.labelPosition = (_ref1 = props === null || props === void 0 ? void 0 : props.labelPosition) !== null && _ref1 !== void 0 ? _ref1 : 'top';
|
|
149
|
+
_this.viewType = (_ref2 = props === null || props === void 0 ? void 0 : props.viewType) !== null && _ref2 !== void 0 ? _ref2 : 'mini';
|
|
150
|
+
_this.search = new OperationItem((_ref3 = props === null || props === void 0 ? void 0 : props.search) !== null && _ref3 !== void 0 ? _ref3 : {
|
|
154
151
|
content: getLocaleText('CMD.query', null, '查询'),
|
|
155
152
|
isShow: true
|
|
156
153
|
});
|
|
157
|
-
|
|
158
|
-
_this.cancel = new OperationItem((_props_cancel = props === null || props === void 0 ? void 0 : props.cancel) !== null && _props_cancel !== void 0 ? _props_cancel : {
|
|
154
|
+
_this.cancel = new OperationItem((_ref4 = props === null || props === void 0 ? void 0 : props.cancel) !== null && _ref4 !== void 0 ? _ref4 : {
|
|
159
155
|
content: getLocaleText('CMD.reset', null, '重置'),
|
|
160
156
|
isShow: true
|
|
161
157
|
});
|
|
162
|
-
|
|
163
|
-
_this.
|
|
164
|
-
var _props_custom;
|
|
165
|
-
_this.custom = ((_props_custom = props === null || props === void 0 ? void 0 : props.custom) !== null && _props_custom !== void 0 ? _props_custom : []).map(function(item) {
|
|
158
|
+
_this.isLoading = (_ref5 = props === null || props === void 0 ? void 0 : props.isLoading) !== null && _ref5 !== void 0 ? _ref5 : false;
|
|
159
|
+
_this.custom = ((_ref6 = props === null || props === void 0 ? void 0 : props.custom) !== null && _ref6 !== void 0 ? _ref6 : []).map(function(item) {
|
|
166
160
|
return new OperationItem(item);
|
|
167
161
|
});
|
|
168
|
-
|
|
169
|
-
_this.
|
|
170
|
-
|
|
171
|
-
_this.
|
|
172
|
-
|
|
173
|
-
_this.colGap = (_props_colGap = props === null || props === void 0 ? void 0 : props.colGap) !== null && _props_colGap !== void 0 ? _props_colGap : 24;
|
|
174
|
-
var _props_viewConfig;
|
|
175
|
-
_this.viewConfig = (_props_viewConfig = props === null || props === void 0 ? void 0 : props.viewConfig) !== null && _props_viewConfig !== void 0 ? _props_viewConfig : [];
|
|
176
|
-
var _props_simpleConfig;
|
|
177
|
-
_this.simpleConfig = (_props_simpleConfig = props === null || props === void 0 ? void 0 : props.simpleConfig) !== null && _props_simpleConfig !== void 0 ? _props_simpleConfig : [];
|
|
162
|
+
_this.queryTypeMap = (_ref7 = props === null || props === void 0 ? void 0 : props.queryTypeMap) !== null && _ref7 !== void 0 ? _ref7 : [];
|
|
163
|
+
_this.childMinWidth = (_ref8 = props === null || props === void 0 ? void 0 : props.childMinWidth) !== null && _ref8 !== void 0 ? _ref8 : 230;
|
|
164
|
+
_this.colGap = (_ref9 = props === null || props === void 0 ? void 0 : props.colGap) !== null && _ref9 !== void 0 ? _ref9 : 24;
|
|
165
|
+
_this.viewConfig = (_ref10 = props === null || props === void 0 ? void 0 : props.viewConfig) !== null && _ref10 !== void 0 ? _ref10 : [];
|
|
166
|
+
_this.simpleConfig = (_ref11 = props === null || props === void 0 ? void 0 : props.simpleConfig) !== null && _ref11 !== void 0 ? _ref11 : [];
|
|
178
167
|
return _this;
|
|
179
168
|
}
|
|
180
169
|
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
|
import { getLocaleText } from '@byteluck-fe/locale-message';
|
|
@@ -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";
|