@byteluck-fe/model-driven-controls 2.6.0-alpha.9a → 2.7.0-alpha.0

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.
Files changed (33) hide show
  1. package/dist/esm/formControls/Address/property.js +4 -1
  2. package/dist/esm/formControls/Amount/property.js +3 -1
  3. package/dist/esm/formControls/DateRange/property.js +4 -1
  4. package/dist/esm/formControls/Department/designer.js +2 -4
  5. package/dist/esm/formControls/Select/designer.js +2 -0
  6. package/dist/esm/formControls/Select/property.js +8 -3
  7. package/dist/esm/formControls/SelectMultiple/designer.js +2 -0
  8. package/dist/esm/formControls/SelectMultiple/property.js +8 -3
  9. package/dist/esm/formControls/SelectRelation/property.js +2 -1
  10. package/dist/esm/formControls/Tree/property.js +16 -13
  11. package/dist/esm/layoutControls/ListView/designer.js +8 -0
  12. package/dist/esm/layoutControls/ListView/property.js +12 -5
  13. package/dist/esm/layoutControls/Tab/designer.js +5 -1
  14. package/dist/esm/layoutControls/Tab/property.js +5 -1
  15. package/dist/esm/listControls/GridTable/property.js +1 -1
  16. package/dist/esm/listControls/SubTable/designer.js +0 -1
  17. package/dist/esm/listControls/SubTable/property.js +32 -15
  18. package/dist/esm/searchControls/SimpleSearch/property.js +12 -10
  19. package/dist/index.umd.js +1 -1
  20. package/dist/types/formControls/Address/property.d.ts +15 -0
  21. package/dist/types/formControls/Amount/property.d.ts +9 -0
  22. package/dist/types/formControls/Calc/property.d.ts +5 -0
  23. package/dist/types/formControls/DateRange/property.d.ts +58 -1
  24. package/dist/types/formControls/Select/property.d.ts +19 -1
  25. package/dist/types/formControls/SelectMultiple/property.d.ts +19 -1
  26. package/dist/types/formControls/SelectRelation/property.d.ts +7 -1
  27. package/dist/types/formControls/Tree/property.d.ts +1 -0
  28. package/dist/types/layoutControls/ListView/property.d.ts +22 -1
  29. package/dist/types/layoutControls/Tab/property.d.ts +1 -0
  30. package/dist/types/listControls/GridTable/property.d.ts +1 -1
  31. package/dist/types/listControls/SubTable/property.d.ts +25 -0
  32. package/dist/types/searchControls/SimpleSearch/property.d.ts +6 -0
  33. package/package.json +5 -5
@@ -112,7 +112,10 @@ var AddressControlPropertyRuntimeRules = /*#__PURE__*/ function(BaseControlPrope
112
112
  }
113
113
  return AddressControlPropertyRuntimeRules;
114
114
  }(BaseControlPropertyRuntimeRules);
115
- var AddressProperty = /*#__PURE__*/ function(BaseControlProperty1) {
115
+ var AddressProperty = /**
116
+ * Address 地址
117
+ * @public
118
+ */ /*#__PURE__*/ function(BaseControlProperty1) {
116
119
  "use strict";
117
120
  _inherits(AddressProperty, BaseControlProperty1);
118
121
  var _super = _createSuper(AddressProperty);
@@ -180,7 +180,9 @@ var AmountPropertyRuntimeRules = /*#__PURE__*/ function(BaseControlPropertyRunti
180
180
  }
181
181
  return AmountPropertyRuntimeRules;
182
182
  }(BaseControlPropertyRuntimeRules);
183
- var AmountProperty = /*#__PURE__*/ function(BaseControlProperty1) {
183
+ var AmountProperty = /**
184
+ * 金额控件属性
185
+ */ /*#__PURE__*/ function(BaseControlProperty1) {
184
186
  "use strict";
185
187
  _inherits(AmountProperty, BaseControlProperty1);
186
188
  var _super = _createSuper(AmountProperty);
@@ -103,7 +103,10 @@ var DateRangePropertyRuntimeRules = /*#__PURE__*/ function(BaseControlPropertyRu
103
103
  }
104
104
  return DateRangePropertyRuntimeRules;
105
105
  }(BaseControlPropertyRuntimeRules);
106
- var DateRangeProperty = /*#__PURE__*/ function(BaseControlProperty1) {
106
+ var DateRangeProperty = /**
107
+ * DateRange 日期区间
108
+ * @public
109
+ */ /*#__PURE__*/ function(BaseControlProperty1) {
107
110
  "use strict";
108
111
  _inherits(DateRangeProperty, BaseControlProperty1);
109
112
  var _super = _createSuper(DateRangeProperty);
@@ -156,10 +156,8 @@ DepartmentControl.setting = [
156
156
  key: 'data-bind',
157
157
  visible: true
158
158
  },
159
- {
160
- key: 'field-type',
161
- visible: true
162
- },
159
+ // 老部门组件不需要支持组件类型切换
160
+ // { key: 'field-type', visible: true },
163
161
  {
164
162
  key: 'caption',
165
163
  showItems: [
@@ -157,6 +157,8 @@ SelectControl.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.CAN_VIEW_FORM,
161
+ COMMON_SETTING_TYPE.VIEW_FORM_MODEL_TYPE,
160
162
  COMMON_SETTING_TYPE.IS_SHOW_CAPTION_TIP,
161
163
  COMMON_SETTING_TYPE.ALLOW_COPY_OPTIONS,
162
164
  ]
@@ -69,7 +69,7 @@ function _createSuper(Derived) {
69
69
  return _possibleConstructorReturn(this, result);
70
70
  };
71
71
  }
72
- import { BaseControlProperty, OptionAndDataSourcePropertyRules, DataSourceBind, MultistageFillingItem, initOptions } from '@byteluck-fe/model-driven-core';
72
+ import { BaseControlProperty, OptionAndDataSourcePropertyRules, DataSourceBind, MultistageFillingItem, initOptions, FormBind } from '@byteluck-fe/model-driven-core';
73
73
  import SelectControl from './designer';
74
74
  var SelectControlPropertyRules = /*#__PURE__*/ function(OptionAndDataSourcePropertyRules1) {
75
75
  "use strict";
@@ -89,8 +89,8 @@ var SelectProperty = /*#__PURE__*/ function(BaseControlProperty1) {
89
89
  _classCallCheck(this, SelectProperty);
90
90
  var _this;
91
91
  _this = _super.call(this, props);
92
- var ref8;
93
- _this.options = initOptions((ref8 = props === null || props === void 0 ? void 0 : props.options) !== null && ref8 !== void 0 ? ref8 : [
92
+ var ref10;
93
+ _this.options = initOptions((ref10 = props === null || props === void 0 ? void 0 : props.options) !== null && ref10 !== void 0 ? ref10 : [
94
94
  {
95
95
  label: '选项一',
96
96
  value: '选项一'
@@ -126,6 +126,11 @@ var SelectProperty = /*#__PURE__*/ function(BaseControlProperty1) {
126
126
  (ref = _this.multistageFilling) === null || ref === void 0 ? void 0 : ref.push(new MultistageFillingItem(item));
127
127
  });
128
128
  }
129
+ var ref8;
130
+ _this.canViewForm = (ref8 = props === null || props === void 0 ? void 0 : props.canViewForm) !== null && ref8 !== void 0 ? ref8 : false;
131
+ var ref9;
132
+ _this.viewFormModelType = (ref9 = props === null || props === void 0 ? void 0 : props.viewFormModelType) !== null && ref9 !== void 0 ? ref9 : 'window';
133
+ _this.formBind = new FormBind(props === null || props === void 0 ? void 0 : props.formBind);
129
134
  return _this;
130
135
  }
131
136
  return SelectProperty;
@@ -157,6 +157,8 @@ 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.CAN_VIEW_FORM,
161
+ COMMON_SETTING_TYPE.VIEW_FORM_MODEL_TYPE,
160
162
  COMMON_SETTING_TYPE.IS_SHOW_CAPTION_TIP,
161
163
  ]
162
164
  },
@@ -69,7 +69,7 @@ function _createSuper(Derived) {
69
69
  return _possibleConstructorReturn(this, result);
70
70
  };
71
71
  }
72
- import { BaseControlProperty, BaseControlPropertyRuntimeRules, OptionAndDataSourcePropertyRules, DataSourceBind, MultistageFillingItem, initOptions } from '@byteluck-fe/model-driven-core';
72
+ import { BaseControlProperty, BaseControlPropertyRuntimeRules, OptionAndDataSourcePropertyRules, DataSourceBind, MultistageFillingItem, initOptions, FormBind } from '@byteluck-fe/model-driven-core';
73
73
  import SelectMultipleControl from './designer';
74
74
  var SelectMultipleControlPropertyRules = /*#__PURE__*/ function(OptionAndDataSourcePropertyRules1) {
75
75
  "use strict";
@@ -102,8 +102,8 @@ var SelectMultipleProperty = /*#__PURE__*/ function(BaseControlProperty1) {
102
102
  _classCallCheck(this, SelectMultipleProperty);
103
103
  var _this;
104
104
  _this = _super.call(this, props);
105
- var ref7;
106
- _this.options = initOptions((ref7 = props === null || props === void 0 ? void 0 : props.options) !== null && ref7 !== void 0 ? ref7 : [
105
+ var ref9;
106
+ _this.options = initOptions((ref9 = props === null || props === void 0 ? void 0 : props.options) !== null && ref9 !== void 0 ? ref9 : [
107
107
  {
108
108
  label: '选项一',
109
109
  value: '选项一'
@@ -137,6 +137,11 @@ var SelectMultipleProperty = /*#__PURE__*/ function(BaseControlProperty1) {
137
137
  (ref = _this.multistageFilling) === null || ref === void 0 ? void 0 : ref.push(new MultistageFillingItem(item));
138
138
  });
139
139
  }
140
+ var ref7;
141
+ _this.canViewForm = (ref7 = props === null || props === void 0 ? void 0 : props.canViewForm) !== null && ref7 !== void 0 ? ref7 : false;
142
+ var ref8;
143
+ _this.viewFormModelType = (ref8 = props === null || props === void 0 ? void 0 : props.viewFormModelType) !== null && ref8 !== void 0 ? ref8 : 'window';
144
+ _this.formBind = new FormBind(props === null || props === void 0 ? void 0 : props.formBind);
140
145
  return _this;
141
146
  }
142
147
  return SelectMultipleProperty;
@@ -69,7 +69,7 @@ function _createSuper(Derived) {
69
69
  return _possibleConstructorReturn(this, result);
70
70
  };
71
71
  }
72
- import { BaseControlProperty, OptionAndDataSourcePropertyRules, DataSourceBind, MultistageFillingItem, SelectedContentConfig, initOptions, ListBind } from '@byteluck-fe/model-driven-core';
72
+ import { BaseControlProperty, OptionAndDataSourcePropertyRules, DataSourceBind, MultistageFillingItem, SelectedContentConfig, initOptions, ListBind, FormBind } from '@byteluck-fe/model-driven-core';
73
73
  import SelectRelationControl from './designer';
74
74
  import { RulesMessage } from '@byteluck-fe/model-driven-shared';
75
75
  var SelectRelationControlPropertyRules = /*#__PURE__*/ function(OptionAndDataSourcePropertyRules1) {
@@ -146,6 +146,7 @@ var SelectRelationProperty = /**
146
146
  _this.canViewForm = (ref7 = props === null || props === void 0 ? void 0 : props.canViewForm) !== null && ref7 !== void 0 ? ref7 : false;
147
147
  var ref8;
148
148
  _this.viewFormModelType = (ref8 = props === null || props === void 0 ? void 0 : props.viewFormModelType) !== null && ref8 !== void 0 ? ref8 : 'window';
149
+ _this.formBind = new FormBind(props === null || props === void 0 ? void 0 : props.formBind);
149
150
  return _this;
150
151
  }
151
152
  return SelectRelationProperty;
@@ -102,7 +102,8 @@ var TreePropertyRules = /*#__PURE__*/ function(BaseControlPropertyRules1) {
102
102
  enum: [
103
103
  'form',
104
104
  'system',
105
- 'custom'
105
+ 'custom',
106
+ 'gv'
106
107
  ],
107
108
  required: true
108
109
  },
@@ -163,27 +164,29 @@ var TreeProperty = /*#__PURE__*/ function(BaseControlProperty1) {
163
164
  var ref9;
164
165
  _this.isShowIncludeSub = (ref9 = props === null || props === void 0 ? void 0 : props.isShowIncludeSub) !== null && ref9 !== void 0 ? ref9 : false;
165
166
  var ref10;
166
- _this.defaultCollapse = (ref10 = props === null || props === void 0 ? void 0 : props.defaultCollapse) !== null && ref10 !== void 0 ? ref10 : 'all';
167
+ _this.isDefaultCheckSub = (ref10 = props === null || props === void 0 ? void 0 : props.isDefaultCheckSub) !== null && ref10 !== void 0 ? ref10 : false;
167
168
  var ref11;
168
- _this.defaultCollapseLevel = (ref11 = props === null || props === void 0 ? void 0 : props.defaultCollapseLevel) !== null && ref11 !== void 0 ? ref11 : 1;
169
+ _this.defaultCollapse = (ref11 = props === null || props === void 0 ? void 0 : props.defaultCollapse) !== null && ref11 !== void 0 ? ref11 : 'all';
169
170
  var ref12;
170
- _this.datasourceBind = new TreeDataSourceBind((ref12 = props === null || props === void 0 ? void 0 : props.datasourceBind) !== null && ref12 !== void 0 ? ref12 : {
171
- attributes: TreeControl.controlCustomAttributes
172
- });
171
+ _this.defaultCollapseLevel = (ref12 = props === null || props === void 0 ? void 0 : props.defaultCollapseLevel) !== null && ref12 !== void 0 ? ref12 : 1;
173
172
  var ref13;
174
- _this.filterItemDatasourceBind = new TreeDataSourceBind((ref13 = props === null || props === void 0 ? void 0 : props.filterItemDatasourceBind) !== null && ref13 !== void 0 ? ref13 : {
173
+ _this.datasourceBind = new TreeDataSourceBind((ref13 = props === null || props === void 0 ? void 0 : props.datasourceBind) !== null && ref13 !== void 0 ? ref13 : {
175
174
  attributes: TreeControl.controlCustomAttributes
176
175
  });
177
176
  var ref14;
178
- _this.openMultistageFilling = (ref14 = props === null || props === void 0 ? void 0 : props.openMultistageFilling) !== null && ref14 !== void 0 ? ref14 : false;
177
+ _this.filterItemDatasourceBind = new TreeDataSourceBind((ref14 = props === null || props === void 0 ? void 0 : props.filterItemDatasourceBind) !== null && ref14 !== void 0 ? ref14 : {
178
+ attributes: TreeControl.controlCustomAttributes
179
+ });
179
180
  var ref15;
180
- _this.defaultDisplay = (ref15 = props === null || props === void 0 ? void 0 : props.defaultDisplay) !== null && ref15 !== void 0 ? ref15 : false;
181
+ _this.openMultistageFilling = (ref15 = props === null || props === void 0 ? void 0 : props.openMultistageFilling) !== null && ref15 !== void 0 ? ref15 : false;
181
182
  var ref16;
182
- _this.multistageFilling = (ref16 = props === null || props === void 0 ? void 0 : (ref = props.multistageFilling) === null || ref === void 0 ? void 0 : ref.map(function(item) {
183
- return new MultistageFillingItem(item);
184
- })) !== null && ref16 !== void 0 ? ref16 : [];
183
+ _this.defaultDisplay = (ref16 = props === null || props === void 0 ? void 0 : props.defaultDisplay) !== null && ref16 !== void 0 ? ref16 : false;
185
184
  var ref17;
186
- _this.defaultValue = (ref17 = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && ref17 !== void 0 ? ref17 : [];
185
+ _this.multistageFilling = (ref17 = props === null || props === void 0 ? void 0 : (ref = props.multistageFilling) === null || ref === void 0 ? void 0 : ref.map(function(item) {
186
+ return new MultistageFillingItem(item);
187
+ })) !== null && ref17 !== void 0 ? ref17 : [];
188
+ var ref18;
189
+ _this.defaultValue = (ref18 = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && ref18 !== void 0 ? ref18 : [];
187
190
  return _this;
188
191
  }
189
192
  return TreeProperty;
@@ -136,6 +136,10 @@ ListViewControl.setting = [
136
136
  key: 'list-datasource-bind',
137
137
  visible: true
138
138
  },
139
+ {
140
+ key: 'list-join-relation',
141
+ visible: true
142
+ },
139
143
  {
140
144
  key: 'list-fixed-header',
141
145
  visible: true
@@ -144,6 +148,10 @@ ListViewControl.setting = [
144
148
  key: 'list-default-state',
145
149
  visible: true
146
150
  },
151
+ {
152
+ key: 'list-selection-state',
153
+ visible: true
154
+ },
147
155
  {
148
156
  key: 'super-setting',
149
157
  visible: true
@@ -69,7 +69,7 @@ function _createSuper(Derived) {
69
69
  return _possibleConstructorReturn(this, result);
70
70
  };
71
71
  }
72
- import { LayoutControlProperty, PropertyRules, PropertyRuntimeRules, DataSourceBind, SubListPageConfig } from '@byteluck-fe/model-driven-core';
72
+ import { LayoutControlProperty, PropertyRules, PropertyRuntimeRules, DataSourceBind, SubListPageConfig, JoinRelation } from '@byteluck-fe/model-driven-core';
73
73
  import { RulesMessage } from '@byteluck-fe/model-driven-shared';
74
74
  import { initOptionAndDataSourceRules } from '@byteluck-fe/model-driven-core';
75
75
  export var TriggerType;
@@ -158,13 +158,20 @@ var ListViewControlProperty = /**
158
158
  _this.triggerFieldCode = (ref3 = props === null || props === void 0 ? void 0 : props.triggerFieldCode) !== null && ref3 !== void 0 ? ref3 : '';
159
159
  _this.sublistPage = new SubListPageConfig(props === null || props === void 0 ? void 0 : props.sublistPage);
160
160
  var ref4;
161
- _this.showType = (ref4 = props === null || props === void 0 ? void 0 : props.showType) !== null && ref4 !== void 0 ? ref4 : 'stretch';
161
+ _this.isShowJoinRelation = (ref4 = props === null || props === void 0 ? void 0 : props.isShowJoinRelation) !== null && ref4 !== void 0 ? ref4 : false;
162
+ _this.joinRelation = new JoinRelation(props === null || props === void 0 ? void 0 : props.joinRelation);
162
163
  var ref5;
163
- _this.showFullScreen = (ref5 = props === null || props === void 0 ? void 0 : props.showFullScreen) !== null && ref5 !== void 0 ? ref5 : false;
164
+ _this.showType = (ref5 = props === null || props === void 0 ? void 0 : props.showType) !== null && ref5 !== void 0 ? ref5 : 'stretch';
164
165
  var ref6;
165
- _this.isFixedHeader = (ref6 = props === null || props === void 0 ? void 0 : props.isFixedHeader) !== null && ref6 !== void 0 ? ref6 : false;
166
+ _this.showFullScreen = (ref6 = props === null || props === void 0 ? void 0 : props.showFullScreen) !== null && ref6 !== void 0 ? ref6 : false;
166
167
  var ref7;
167
- _this.isAllLoaded = (ref7 = props === null || props === void 0 ? void 0 : props.isAllLoaded) !== null && ref7 !== void 0 ? ref7 : true;
168
+ _this.selectionType = (ref7 = props === null || props === void 0 ? void 0 : props.selectionType) !== null && ref7 !== void 0 ? ref7 : 'multiple';
169
+ var ref8;
170
+ _this.isFixedHeader = (ref8 = props === null || props === void 0 ? void 0 : props.isFixedHeader) !== null && ref8 !== void 0 ? ref8 : false;
171
+ var ref9;
172
+ _this.isShowSelection = (ref9 = props === null || props === void 0 ? void 0 : props.isShowSelection) !== null && ref9 !== void 0 ? ref9 : false;
173
+ var ref10;
174
+ _this.isAllLoaded = (ref10 = props === null || props === void 0 ? void 0 : props.isAllLoaded) !== null && ref10 !== void 0 ? ref10 : true;
168
175
  _this.countType = props === null || props === void 0 ? void 0 : props.countType;
169
176
  return _this;
170
177
  }
@@ -132,10 +132,14 @@ TabControl.controlEventKeys = [
132
132
  'on_change_tab'
133
133
  ];
134
134
  TabControl.setting = [
135
+ {
136
+ key: 'tab-mobile-show-type',
137
+ visible: true
138
+ },
135
139
  {
136
140
  key: 'super-setting',
137
141
  visible: true
138
- }
142
+ },
139
143
  ];
140
144
  export default TabControl;
141
145
  export { TabControl as DesignerTabControl };
@@ -76,7 +76,11 @@ var TabControlProperty = /*#__PURE__*/ function(LayoutControlProperty1) {
76
76
  var _super = _createSuper(TabControlProperty);
77
77
  function TabControlProperty(props) {
78
78
  _classCallCheck(this, TabControlProperty);
79
- return _super.call(this, props);
79
+ var _this;
80
+ _this = _super.call(this, props);
81
+ var ref;
82
+ _this.mobileShowType = (ref = props === null || props === void 0 ? void 0 : props.mobileShowType) !== null && ref !== void 0 ? ref : 'vertical';
83
+ return _this;
80
84
  }
81
85
  return TabControlProperty;
82
86
  }(LayoutControlProperty);
@@ -73,7 +73,7 @@ function _createSuper(Derived) {
73
73
  * @Author: Elvis shuaiqy@hotmail.com
74
74
  * @Date: 2022-01-11 22:20:55
75
75
  * @LastEditors: changjiaqi hypocrite_chang@163.com
76
- * @LastEditTime: 2023-05-11 15:10:49
76
+ * @LastEditTime: 2023-05-31 10:33:27
77
77
  * @FilePath: /model-driven/packages/controls/src/listControls/GridTable/property.ts
78
78
  * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
79
79
  */ import { ListControlProperty } from '@byteluck-fe/model-driven-core';
@@ -172,7 +172,6 @@ SubTableControl.setting = [
172
172
  visible: true,
173
173
  showItems: [
174
174
  COMMON_SETTING_TYPE.IS_HIDE,
175
- // COMMON_SETTING_TYPE.SERVER_PAGINATION,
176
175
  COMMON_SETTING_TYPE.IS_SHOW_CAPTION_TIP,
177
176
  ]
178
177
  },
@@ -113,12 +113,21 @@ var SubTableControlPropertyRules = /*#__PURE__*/ function(PropertyRules1) {
113
113
  required: false,
114
114
  message: RulesMessage.getMessage('pleaseEnterCaptionTip')
115
115
  };
116
+ // 行标题必填
117
+ _this.mobileRowCaption = {
118
+ type: 'string',
119
+ required: false,
120
+ message: RulesMessage.getMessage('pleaseEnterRowCaption')
121
+ };
116
122
  if (props.openType === 'modal') {
117
123
  _this.formKey.required = true;
118
124
  }
119
125
  if (props.isShowCaptionTip) {
120
126
  _this.captionTip.required = true;
121
127
  }
128
+ if (props.mobileShowType === 'tile') {
129
+ _this.mobileRowCaption.required = true;
130
+ }
122
131
  return _this;
123
132
  }
124
133
  return SubTableControlPropertyRules;
@@ -189,34 +198,42 @@ var SubTableControlProperty = /**
189
198
  var ref9;
190
199
  _this.limitRows = (ref9 = props === null || props === void 0 ? void 0 : props.limitRows) !== null && ref9 !== void 0 ? ref9 : 1;
191
200
  var ref10;
192
- _this.defaultRows = (ref10 = props === null || props === void 0 ? void 0 : props.defaultRows) !== null && ref10 !== void 0 ? ref10 : 1;
193
- _this.datasourceBind = new DataSourceBind(props === null || props === void 0 ? void 0 : props.datasourceBind);
201
+ _this.maxRows = (ref10 = props === null || props === void 0 ? void 0 : props.maxRows) !== null && ref10 !== void 0 ? ref10 : null;
194
202
  var ref11;
195
- _this.canAdd = (ref11 = props === null || props === void 0 ? void 0 : props.canAdd) !== null && ref11 !== void 0 ? ref11 : true;
203
+ _this.defaultRows = (ref11 = props === null || props === void 0 ? void 0 : props.defaultRows) !== null && ref11 !== void 0 ? ref11 : 1;
204
+ _this.datasourceBind = new DataSourceBind(props === null || props === void 0 ? void 0 : props.datasourceBind);
196
205
  var ref12;
197
- _this.canDelete = (ref12 = props === null || props === void 0 ? void 0 : props.canDelete) !== null && ref12 !== void 0 ? ref12 : true;
206
+ _this.canAdd = (ref12 = props === null || props === void 0 ? void 0 : props.canAdd) !== null && ref12 !== void 0 ? ref12 : true;
198
207
  var ref13;
199
- _this.canCheck = (ref13 = props === null || props === void 0 ? void 0 : props.canCheck) !== null && ref13 !== void 0 ? ref13 : false;
208
+ _this.canDelete = (ref13 = props === null || props === void 0 ? void 0 : props.canDelete) !== null && ref13 !== void 0 ? ref13 : true;
200
209
  var ref14;
201
- _this.canEdit = (ref14 = props === null || props === void 0 ? void 0 : props.canEdit) !== null && ref14 !== void 0 ? ref14 : false;
210
+ _this.canCheck = (ref14 = props === null || props === void 0 ? void 0 : props.canCheck) !== null && ref14 !== void 0 ? ref14 : false;
202
211
  var ref15;
203
- _this.canImport = (ref15 = props === null || props === void 0 ? void 0 : props.canImport) !== null && ref15 !== void 0 ? ref15 : false;
212
+ _this.canEdit = (ref15 = props === null || props === void 0 ? void 0 : props.canEdit) !== null && ref15 !== void 0 ? ref15 : false;
204
213
  var ref16;
205
- _this.canExport = (ref16 = props === null || props === void 0 ? void 0 : props.canExport) !== null && ref16 !== void 0 ? ref16 : false;
214
+ _this.canImport = (ref16 = props === null || props === void 0 ? void 0 : props.canImport) !== null && ref16 !== void 0 ? ref16 : false;
206
215
  var ref17;
207
- _this.canClear = (ref17 = props === null || props === void 0 ? void 0 : props.canClear) !== null && ref17 !== void 0 ? ref17 : true;
216
+ _this.canExport = (ref17 = props === null || props === void 0 ? void 0 : props.canExport) !== null && ref17 !== void 0 ? ref17 : false;
208
217
  var ref18;
209
- _this.serverPagination = (ref18 = props === null || props === void 0 ? void 0 : props.serverPagination) !== null && ref18 !== void 0 ? ref18 : false;
218
+ _this.canClear = (ref18 = props === null || props === void 0 ? void 0 : props.canClear) !== null && ref18 !== void 0 ? ref18 : true;
210
219
  var ref19;
211
- _this.isShowCaptionTip = (ref19 = props === null || props === void 0 ? void 0 : props.isShowCaptionTip) !== null && ref19 !== void 0 ? ref19 : false;
220
+ _this.serverPagination = (ref19 = props === null || props === void 0 ? void 0 : props.serverPagination) !== null && ref19 !== void 0 ? ref19 : false;
212
221
  var ref20;
213
- _this.captionTip = (ref20 = props === null || props === void 0 ? void 0 : props.captionTip) !== null && ref20 !== void 0 ? ref20 : '';
222
+ _this.isShowCaptionTip = (ref20 = props === null || props === void 0 ? void 0 : props.isShowCaptionTip) !== null && ref20 !== void 0 ? ref20 : false;
214
223
  var ref21;
215
- _this.mobileShowType = (ref21 = props === null || props === void 0 ? void 0 : props.mobileShowType) !== null && ref21 !== void 0 ? ref21 : 'list';
224
+ _this.captionTip = (ref21 = props === null || props === void 0 ? void 0 : props.captionTip) !== null && ref21 !== void 0 ? ref21 : '';
216
225
  var ref22;
217
- _this.dataStorageDoc = (ref22 = props === null || props === void 0 ? void 0 : props.dataStorageDoc) !== null && ref22 !== void 0 ? ref22 : new DataStorageDoc();
226
+ _this.mobileShowType = (ref22 = props === null || props === void 0 ? void 0 : props.mobileShowType) !== null && ref22 !== void 0 ? ref22 : 'list';
218
227
  var ref23;
219
- _this.fixedColumn = (ref23 = props === null || props === void 0 ? void 0 : props.fixedColumn) !== null && ref23 !== void 0 ? ref23 : [];
228
+ _this.mobileDefaultNum = (ref23 = props === null || props === void 0 ? void 0 : props.mobileDefaultNum) !== null && ref23 !== void 0 ? ref23 : 10;
229
+ var ref24;
230
+ _this.dataStorageDoc = (ref24 = props === null || props === void 0 ? void 0 : props.dataStorageDoc) !== null && ref24 !== void 0 ? ref24 : new DataStorageDoc();
231
+ var ref25;
232
+ _this.fixedColumn = (ref25 = props === null || props === void 0 ? void 0 : props.fixedColumn) !== null && ref25 !== void 0 ? ref25 : [];
233
+ var ref26;
234
+ _this.mobileRowCaption = (ref26 = props === null || props === void 0 ? void 0 : props.mobileRowCaption) !== null && ref26 !== void 0 ? ref26 : '明细';
235
+ var ref27;
236
+ _this.mobileIsTile = (ref27 = props === null || props === void 0 ? void 0 : props.mobileIsTile) !== null && ref27 !== void 0 ? ref27 : false;
220
237
  return _this;
221
238
  }
222
239
  return SubTableControlProperty;
@@ -98,27 +98,29 @@ var SimpleSearchControlProperty = /**
98
98
  var _this;
99
99
  _this = _super.call(this, props);
100
100
  var ref;
101
- _this.labelPosition = (ref = props === null || props === void 0 ? void 0 : props.labelPosition) !== null && ref !== void 0 ? ref : 'top';
101
+ _this.searchType = (ref = props === null || props === void 0 ? void 0 : props.searchType) !== null && ref !== void 0 ? ref : 'model';
102
102
  var ref1;
103
- _this.viewType = (ref1 = props === null || props === void 0 ? void 0 : props.viewType) !== null && ref1 !== void 0 ? ref1 : 'mini';
103
+ _this.labelPosition = (ref1 = props === null || props === void 0 ? void 0 : props.labelPosition) !== null && ref1 !== void 0 ? ref1 : 'top';
104
104
  var ref2;
105
- _this.search = new OperationItem((ref2 = props === null || props === void 0 ? void 0 : props.search) !== null && ref2 !== void 0 ? ref2 : {
105
+ _this.viewType = (ref2 = props === null || props === void 0 ? void 0 : props.viewType) !== null && ref2 !== void 0 ? ref2 : 'mini';
106
+ var ref3;
107
+ _this.search = new OperationItem((ref3 = props === null || props === void 0 ? void 0 : props.search) !== null && ref3 !== void 0 ? ref3 : {
106
108
  content: '查询',
107
109
  isShow: true
108
110
  });
109
- var ref3;
110
- _this.cancel = new OperationItem((ref3 = props === null || props === void 0 ? void 0 : props.cancel) !== null && ref3 !== void 0 ? ref3 : {
111
+ var ref4;
112
+ _this.cancel = new OperationItem((ref4 = props === null || props === void 0 ? void 0 : props.cancel) !== null && ref4 !== void 0 ? ref4 : {
111
113
  content: '重置',
112
114
  isShow: true
113
115
  });
114
- var ref4;
115
- _this.isLoading = (ref4 = props === null || props === void 0 ? void 0 : props.isLoading) !== null && ref4 !== void 0 ? ref4 : false;
116
116
  var ref5;
117
- _this.custom = ((ref5 = props === null || props === void 0 ? void 0 : props.custom) !== null && ref5 !== void 0 ? ref5 : []).map(function(item) {
117
+ _this.isLoading = (ref5 = props === null || props === void 0 ? void 0 : props.isLoading) !== null && ref5 !== void 0 ? ref5 : false;
118
+ var ref6;
119
+ _this.custom = ((ref6 = props === null || props === void 0 ? void 0 : props.custom) !== null && ref6 !== void 0 ? ref6 : []).map(function(item) {
118
120
  return new OperationItem(item);
119
121
  });
120
- var ref6;
121
- _this.queryTypeMap = (ref6 = props === null || props === void 0 ? void 0 : props.queryTypeMap) !== null && ref6 !== void 0 ? ref6 : [];
122
+ var ref7;
123
+ _this.queryTypeMap = (ref7 = props === null || props === void 0 ? void 0 : props.queryTypeMap) !== null && ref7 !== void 0 ? ref7 : [];
122
124
  return _this;
123
125
  }
124
126
  return SimpleSearchControlProperty;