@byteluck-fe/model-driven-controls 2.22.0-beta.4 → 2.22.0-beta.6

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.
@@ -172,6 +172,8 @@ var ListSelectButtonPropertyRules = /*#__PURE__*/ function(PropertyRules) {
172
172
  */ _define_property(_assert_this_initialized(_this), "fillBack", void 0);
173
173
  // 展示已选明细
174
174
  _define_property(_assert_this_initialized(_this), "showSelectedDetail", void 0);
175
+ // 是否使用选中行填充
176
+ _define_property(_assert_this_initialized(_this), "isSelectedRowFill", void 0);
175
177
  // 展示已选内容配置字段
176
178
  _define_property(_assert_this_initialized(_this), "selectedContentConfig", void 0);
177
179
  var _props_content;
@@ -184,6 +186,8 @@ var ListSelectButtonPropertyRules = /*#__PURE__*/ function(PropertyRules) {
184
186
  var _props_showSelectedDetail;
185
187
  _this.showSelectedDetail = (_props_showSelectedDetail = props === null || props === void 0 ? void 0 : props.showSelectedDetail) !== null && _props_showSelectedDetail !== void 0 ? _props_showSelectedDetail : false;
186
188
  _this.selectedContentConfig = new SelectedContentConfig(props === null || props === void 0 ? void 0 : props.selectedContentConfig);
189
+ var _props_isSelectedRowFill;
190
+ _this.isSelectedRowFill = (_props_isSelectedRowFill = props === null || props === void 0 ? void 0 : props.isSelectedRowFill) !== null && _props_isSelectedRowFill !== void 0 ? _props_isSelectedRowFill : false;
187
191
  var _props_disableFilling;
188
192
  _this.disableFilling = (_props_disableFilling = props === null || props === void 0 ? void 0 : props.disableFilling) !== null && _props_disableFilling !== void 0 ? _props_disableFilling : true;
189
193
  return _this;
@@ -36,6 +36,22 @@ function _define_property(obj, key, value) {
36
36
  }
37
37
  return obj;
38
38
  }
39
+ function _get(target, property, receiver) {
40
+ if (typeof Reflect !== "undefined" && Reflect.get) {
41
+ _get = Reflect.get;
42
+ } else {
43
+ _get = function get(target, property, receiver) {
44
+ var base = _super_prop_base(target, property);
45
+ if (!base) return;
46
+ var desc = Object.getOwnPropertyDescriptor(base, property);
47
+ if (desc.get) {
48
+ return desc.get.call(receiver || target);
49
+ }
50
+ return desc.value;
51
+ };
52
+ }
53
+ return _get(target, property, receiver || target);
54
+ }
39
55
  function _get_prototype_of(o) {
40
56
  _get_prototype_of = Object.setPrototypeOf ? Object.getPrototypeOf : function getPrototypeOf(o) {
41
57
  return o.__proto__ || Object.getPrototypeOf(o);
@@ -68,6 +84,13 @@ function _set_prototype_of(o, p) {
68
84
  };
69
85
  return _set_prototype_of(o, p);
70
86
  }
87
+ function _super_prop_base(object, property) {
88
+ while(!Object.prototype.hasOwnProperty.call(object, property)){
89
+ object = _get_prototype_of(object);
90
+ if (object === null) break;
91
+ }
92
+ return object;
93
+ }
71
94
  function _type_of(obj) {
72
95
  "@swc/helpers - typeof";
73
96
  return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
@@ -111,7 +134,19 @@ var SelectRelationControl = /*#__PURE__*/ function(DesignerFormControl) {
111
134
  _this.props = new SelectRelationProperty(props === null || props === void 0 ? void 0 : props.props);
112
135
  return _this;
113
136
  }
114
- _create_class(SelectRelationControl, null, [
137
+ _create_class(SelectRelationControl, [
138
+ {
139
+ key: "toDataBindModel",
140
+ value: function toDataBindModel(parentId) {
141
+ var dataBindModel = _get(_get_prototype_of(SelectRelationControl.prototype), "toDataBindModel", this).call(this, parentId);
142
+ if (dataBindModel && !Array.isArray(dataBindModel)) {
143
+ var optionDisplayConfig = this.props.optionDisplayConfig;
144
+ dataBindModel.props.optionDisplayConfig = optionDisplayConfig;
145
+ }
146
+ return dataBindModel;
147
+ }
148
+ }
149
+ ], [
115
150
  {
116
151
  key: "controlName",
117
152
  get: function get() {