@byteluck-fe/model-driven-controls 2.6.0-alpha.13 → 2.6.0-alpha.17

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.
@@ -157,15 +157,17 @@ 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,
162
160
  COMMON_SETTING_TYPE.IS_SHOW_CAPTION_TIP,
163
161
  COMMON_SETTING_TYPE.ALLOW_COPY_OPTIONS,
164
162
  ]
165
163
  },
166
164
  {
167
165
  key: 'options-setting',
168
- visible: true
166
+ visible: true,
167
+ showItems: [
168
+ COMMON_SETTING_TYPE.CAN_VIEW_FORM,
169
+ COMMON_SETTING_TYPE.VIEW_FORM_MODEL_TYPE,
170
+ ]
169
171
  },
170
172
  {
171
173
  key: 'super-setting',
@@ -157,14 +157,16 @@ 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,
162
160
  COMMON_SETTING_TYPE.IS_SHOW_CAPTION_TIP,
163
161
  ]
164
162
  },
165
163
  {
166
164
  key: 'options-setting',
167
- visible: true
165
+ visible: true,
166
+ showItems: [
167
+ COMMON_SETTING_TYPE.CAN_VIEW_FORM,
168
+ COMMON_SETTING_TYPE.VIEW_FORM_MODEL_TYPE,
169
+ ]
168
170
  },
169
171
  {
170
172
  key: 'super-setting',
@@ -155,14 +155,16 @@ SelectRelationControl.setting = [
155
155
  showItems: [
156
156
  COMMON_SETTING_TYPE.REQUIRED,
157
157
  COMMON_SETTING_TYPE.IS_HIDE,
158
- COMMON_SETTING_TYPE.CAN_VIEW_FORM,
159
- COMMON_SETTING_TYPE.VIEW_FORM_MODEL_TYPE,
160
158
  COMMON_SETTING_TYPE.IS_SHOW_CAPTION_TIP,
161
159
  ]
162
160
  },
163
161
  {
164
162
  key: 'relation-setting',
165
- visible: true
163
+ visible: true,
164
+ showItems: [
165
+ COMMON_SETTING_TYPE.CAN_VIEW_FORM,
166
+ COMMON_SETTING_TYPE.VIEW_FORM_MODEL_TYPE,
167
+ ]
166
168
  },
167
169
  {
168
170
  key: 'super-setting',
@@ -175,6 +175,7 @@ var GridTableControl = /*#__PURE__*/ function(DesignerListControl1) {
175
175
  function GridTableControl(props) {
176
176
  _classCallCheck(this, GridTableControl);
177
177
  var _this;
178
+ var ref;
178
179
  _this = _super.call(this, props);
179
180
  _this.props = new GridTableControlProperty(_assertThisInitialized(_this), props === null || props === void 0 ? void 0 : props.props);
180
181
  defineControlArrayToProperty(_assertThisInitialized(_this), 'children', props === null || props === void 0 ? void 0 : props.children);
@@ -184,6 +185,9 @@ var GridTableControl = /*#__PURE__*/ function(DesignerListControl1) {
184
185
  new DesignerOperationColumnControl(),
185
186
  ];
186
187
  }
188
+ if ((props === null || props === void 0 ? void 0 : (ref = props.props) === null || ref === void 0 ? void 0 : ref.footers) === undefined) {
189
+ _this.props.footers = [];
190
+ }
187
191
  return _this;
188
192
  }
189
193
  _createClass(GridTableControl, [
@@ -93,7 +93,7 @@ var SubTableControl = /*#__PURE__*/ function(DesignerListControl1) {
93
93
  function SubTableControl(props) {
94
94
  _classCallCheck(this, SubTableControl);
95
95
  var _this;
96
- var ref;
96
+ var ref, ref1;
97
97
  _this = _super.call(this, props);
98
98
  _this.props = new SubTableControlProperty(_assertThisInitialized(_this), props === null || props === void 0 ? void 0 : props.props);
99
99
  // 默认设置三个空列
@@ -104,6 +104,9 @@ var SubTableControl = /*#__PURE__*/ function(DesignerListControl1) {
104
104
  new DesignerSubTableColumnControl(),
105
105
  ];
106
106
  }
107
+ if ((props === null || props === void 0 ? void 0 : (ref1 = props.props) === null || ref1 === void 0 ? void 0 : ref1.footers) === undefined) {
108
+ _this.props.footers = [];
109
+ }
107
110
  return _this;
108
111
  }
109
112
  _createClass(SubTableControl, [