@byteluck-fe/model-driven-controls 5.6.0-1-beta.1 → 5.6.0-1-beta3

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.
@@ -203,7 +203,8 @@ _define_property(Department2Control, "setting", [
203
203
  COMMON_SETTING_TYPE.IS_HIDE,
204
204
  COMMON_SETTING_TYPE.IS_HIDE_CAPTION,
205
205
  COMMON_SETTING_TYPE.MULTIPLE,
206
- COMMON_SETTING_TYPE.IS_SHOW_CAPTION_TIP
206
+ COMMON_SETTING_TYPE.IS_SHOW_CAPTION_TIP,
207
+ COMMON_SETTING_TYPE.DEFAULT_SHOW_OPTIONS
207
208
  ]
208
209
  },
209
210
  {
@@ -152,6 +152,7 @@ var Department2Property = /*#__PURE__*/ function(BaseControlProperty) {
152
152
  ), _define_property(_this, "businessType", void 0 //业务部门类型 'all' | 'assign'
153
153
  ), _define_property(_this, "businessScope", void 0 //业务部门范围
154
154
  ), _define_property(_this, "openMultistageFilling", void 0 //是否开启填充
155
+ ), _define_property(_this, "defaultShowOptions", void 0 //默认展开选项
155
156
  );
156
157
  var _props_showType;
157
158
  _this.showType = (_props_showType = props === null || props === void 0 ? void 0 : props.showType) !== null && _props_showType !== void 0 ? _props_showType : 'default';
@@ -192,6 +193,8 @@ var Department2Property = /*#__PURE__*/ function(BaseControlProperty) {
192
193
  (_this_multistageFilling = _this.multistageFilling) === null || _this_multistageFilling === void 0 ? void 0 : _this_multistageFilling.push(new MultistageFillingItem(item));
193
194
  });
194
195
  }
196
+ var _props_defaultShowOptions;
197
+ _this.defaultShowOptions = (_props_defaultShowOptions = props === null || props === void 0 ? void 0 : props.defaultShowOptions) !== null && _props_defaultShowOptions !== void 0 ? _props_defaultShowOptions : false;
195
198
  return _this;
196
199
  }
197
200
  return Department2Property;
@@ -126,8 +126,8 @@ var Employee2Property = /*#__PURE__*/ function(BaseControlProperty) {
126
126
  var _this;
127
127
  _this = _call_super(this, Employee2Property, [
128
128
  props
129
- ]), /**
130
- * 展示类型: 默认形式 / 树状人员
129
+ ]), /**
130
+ * 展示类型: 默认形式 / 树状人员
131
131
  * */ _define_property(_this, "showType", void 0), _define_property(_this, "range", void 0 // 人员范围: 公司全员 / 指定人员
132
132
  ), // 选择指定人员时的范围
133
133
  _define_property(_this, "rangeOptions", void 0), _define_property(_this, "multiple", void 0 // 是否多选
@@ -194,7 +194,8 @@ _define_property(SelectRelationControl, "setting", [
194
194
  COMMON_SETTING_TYPE.REQUIRED,
195
195
  COMMON_SETTING_TYPE.IS_HIDE,
196
196
  COMMON_SETTING_TYPE.IS_SHOW_CAPTION_TIP,
197
- COMMON_SETTING_TYPE.CAN_SEARCH
197
+ COMMON_SETTING_TYPE.CAN_SEARCH,
198
+ COMMON_SETTING_TYPE.DEFAULT_SHOW_OPTIONS
198
199
  ]
199
200
  },
200
201
  {
@@ -120,9 +120,9 @@ var SelectRelationControlPropertyRules = /*#__PURE__*/ function(OptionAndDataSou
120
120
  }
121
121
  return SelectRelationControlPropertyRules;
122
122
  }(OptionAndDataSourcePropertyRules);
123
- /**
124
- * SelectRelation 关联单选
125
- * @public
123
+ /**
124
+ * SelectRelation 关联单选
125
+ * @public
126
126
  */ var SelectRelationProperty = /*#__PURE__*/ function(BaseControlProperty) {
127
127
  "use strict";
128
128
  _inherits(SelectRelationProperty, BaseControlProperty);
@@ -131,50 +131,51 @@ var SelectRelationControlPropertyRules = /*#__PURE__*/ function(OptionAndDataSou
131
131
  var _this;
132
132
  _this = _call_super(this, SelectRelationProperty, [
133
133
  props
134
- ]), /**
135
- * 自定义选项
136
- * @defaultValue []
137
- * @public
138
- */ _define_property(_this, "options", void 0), /**
139
- * 选项配置
140
- * @defaultValue 'datasource'
141
- * @public
134
+ ]), /**
135
+ * 自定义选项
136
+ * @defaultValue []
137
+ * @public
138
+ */ _define_property(_this, "options", void 0), /**
139
+ * 选项配置
140
+ * @defaultValue 'datasource'
141
+ * @public
142
142
  * */ _define_property(_this, "optionConfig", void 0 // 选项配置 custom datasource
143
- ), /**
144
- * 默认值
145
- * @defaultValue ''
146
- * @public
147
- */ _define_property(_this, "defaultValue", void 0), /**
148
- * 绑定列表页
149
- * @public
150
- */ _define_property(_this, "listPageBind", void 0), /**
151
- * 关联数据源
152
- * @public
153
- */ _define_property(_this, "datasourceBind", void 0), /**
154
- * 数据填充
155
- * @defaultValue []
156
- * @public
157
- */ _define_property(_this, "multistageFilling", void 0), /**
158
- * 表单打开方式
159
- * @defaultValue []
160
- * @public
161
- */ _define_property(_this, "viewFormModelType", void 0), /**
162
- * 查看详情
163
- * @defaultValue false
164
- * @public
143
+ ), /**
144
+ * 默认值
145
+ * @defaultValue ''
146
+ * @public
147
+ */ _define_property(_this, "defaultValue", void 0), /**
148
+ * 绑定列表页
149
+ * @public
150
+ */ _define_property(_this, "listPageBind", void 0), /**
151
+ * 关联数据源
152
+ * @public
153
+ */ _define_property(_this, "datasourceBind", void 0), /**
154
+ * 数据填充
155
+ * @defaultValue []
156
+ * @public
157
+ */ _define_property(_this, "multistageFilling", void 0), /**
158
+ * 表单打开方式
159
+ * @defaultValue []
160
+ * @public
161
+ */ _define_property(_this, "viewFormModelType", void 0), /**
162
+ * 查看详情
163
+ * @defaultValue false
164
+ * @public
165
165
  */ _define_property(_this, "canViewForm", void 0 //https://www.tapd.cn/49877295/prong/stories/view/1149877295001003559
166
- ), /**
167
- * 选择表单
168
- * @defaultValue 空
169
- * @public
170
- */ _define_property(_this, "formBind", void 0), /**
171
- * 数据填充-查看/编辑页面生效
172
- * @defaultValue false
173
- * @public
166
+ ), /**
167
+ * 选择表单
168
+ * @defaultValue 空
169
+ * @public
170
+ */ _define_property(_this, "formBind", void 0), /**
171
+ * 数据填充-查看/编辑页面生效
172
+ * @defaultValue false
173
+ * @public
174
174
  */ _define_property(_this, "openMultistageFilling", void 0 //是否开启填充
175
175
  ), // 展示已选明细
176
176
  _define_property(_this, "showSelectedDetail", void 0), // 展示已选内容配置字段
177
- _define_property(_this, "selectedContentConfig", void 0), _define_property(_this, "optionDisplayConfig", void 0), _define_property(_this, "canSearch", void 0);
177
+ _define_property(_this, "selectedContentConfig", void 0), _define_property(_this, "optionDisplayConfig", void 0), _define_property(_this, "canSearch", void 0), _define_property(_this, "defaultShowOptions", void 0 //默认展开选项
178
+ );
178
179
  var _props_options;
179
180
  _this.options = initOptions((_props_options = props === null || props === void 0 ? void 0 : props.options) !== null && _props_options !== void 0 ? _props_options : []);
180
181
  var _props_optionConfig;
@@ -208,6 +209,8 @@ var SelectRelationControlPropertyRules = /*#__PURE__*/ function(OptionAndDataSou
208
209
  _this.optionDisplayConfig = (_props_optionDisplayConfig = props === null || props === void 0 ? void 0 : props.optionDisplayConfig) !== null && _props_optionDisplayConfig !== void 0 ? _props_optionDisplayConfig : [];
209
210
  var _props_canSearch;
210
211
  _this.canSearch = (_props_canSearch = props === null || props === void 0 ? void 0 : props.canSearch) !== null && _props_canSearch !== void 0 ? _props_canSearch : false;
212
+ var _props_defaultShowOptions;
213
+ _this.defaultShowOptions = (_props_defaultShowOptions = props === null || props === void 0 ? void 0 : props.defaultShowOptions) !== null && _props_defaultShowOptions !== void 0 ? _props_defaultShowOptions : false;
211
214
  return _this;
212
215
  }
213
216
  return SelectRelationProperty;