@byteluck-fe/model-driven-controls 2.22.0-beta.4 → 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.
|
@@ -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() {
|