@byteluck-fe/model-driven-controls 2.22.0-beta.3 → 2.22.0-beta.5
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/formControls/SelectRelation/designer.js +36 -1
- package/dist/esm/formControls/SelectRelation/property.js +3 -3
- package/dist/index.umd.js +1 -1
- package/dist/types/formControls/SelectRelation/designer.d.ts +1 -0
- package/dist/types/formControls/SelectRelation/property.d.ts +2 -2
- package/package.json +4 -4
|
@@ -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,
|
|
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() {
|
|
@@ -198,7 +198,7 @@ var SelectRelationControlPropertyRules = /*#__PURE__*/ function(OptionAndDataSou
|
|
|
198
198
|
_define_property(_assert_this_initialized(_this), "showSelectedDetail", void 0);
|
|
199
199
|
// 展示已选内容配置字段
|
|
200
200
|
_define_property(_assert_this_initialized(_this), "selectedContentConfig", void 0);
|
|
201
|
-
_define_property(_assert_this_initialized(_this), "
|
|
201
|
+
_define_property(_assert_this_initialized(_this), "optionDisplayConfig", void 0);
|
|
202
202
|
_define_property(_assert_this_initialized(_this), "canSearch", void 0);
|
|
203
203
|
var _props_options;
|
|
204
204
|
_this.options = initOptions((_props_options = props === null || props === void 0 ? void 0 : props.options) !== null && _props_options !== void 0 ? _props_options : []);
|
|
@@ -229,8 +229,8 @@ var SelectRelationControlPropertyRules = /*#__PURE__*/ function(OptionAndDataSou
|
|
|
229
229
|
var _props_viewFormModelType;
|
|
230
230
|
_this.viewFormModelType = (_props_viewFormModelType = props === null || props === void 0 ? void 0 : props.viewFormModelType) !== null && _props_viewFormModelType !== void 0 ? _props_viewFormModelType : "window";
|
|
231
231
|
_this.formBind = new FormBind(props === null || props === void 0 ? void 0 : props.formBind);
|
|
232
|
-
var
|
|
233
|
-
_this.
|
|
232
|
+
var _props_optionDisplayConfig;
|
|
233
|
+
_this.optionDisplayConfig = (_props_optionDisplayConfig = props === null || props === void 0 ? void 0 : props.optionDisplayConfig) !== null && _props_optionDisplayConfig !== void 0 ? _props_optionDisplayConfig : [];
|
|
234
234
|
var _props_canSearch;
|
|
235
235
|
_this.canSearch = (_props_canSearch = props === null || props === void 0 ? void 0 : props.canSearch) !== null && _props_canSearch !== void 0 ? _props_canSearch : false;
|
|
236
236
|
return _this;
|