@byteluck-fe/model-driven-core-all 2.5.0-beta.1 → 2.5.0-beta.15

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.
@@ -23,6 +23,19 @@ function _createClass(Constructor, protoProps, staticProps) {
23
23
  if (staticProps) _defineProperties(Constructor, staticProps);
24
24
  return Constructor;
25
25
  }
26
+ function _defineProperty(obj, key, value) {
27
+ if (key in obj) {
28
+ Object.defineProperty(obj, key, {
29
+ value: value,
30
+ enumerable: true,
31
+ configurable: true,
32
+ writable: true
33
+ });
34
+ } else {
35
+ obj[key] = value;
36
+ }
37
+ return obj;
38
+ }
26
39
  function _getPrototypeOf(o) {
27
40
  _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {
28
41
  return o.__proto__ || Object.getPrototypeOf(o);
@@ -88,7 +101,7 @@ import { DesignerControl } from "@byteluck-fe/model-driven-core";
88
101
  import { Property } from "@byteluck-fe/model-driven-core";
89
102
  export function getHackerControl(comid, type, tipMessage) {
90
103
  var HackerControlClass;
91
- //伪造一个组件
104
+ // 伪造一个组件
92
105
  if (type === "runtime") {
93
106
  HackerControlClass = /*#__PURE__*/ function(RuntimeControl) {
94
107
  "use strict";
@@ -98,7 +111,7 @@ export function getHackerControl(comid, type, tipMessage) {
98
111
  _classCallCheck(this, HackerControl);
99
112
  var _this;
100
113
  _this = _super.call(this, props);
101
- _this.props = {};
114
+ _defineProperty(_assertThisInitialized(_this), "props", {});
102
115
  return _this;
103
116
  }
104
117
  _createClass(HackerControl, null, [
@@ -120,7 +133,7 @@ export function getHackerControl(comid, type, tipMessage) {
120
133
  _classCallCheck(this, HackerControl);
121
134
  var _this;
122
135
  _this = _super.call(this, props);
123
- _this.props = {};
136
+ _defineProperty(_assertThisInitialized(_this), "props", {});
124
137
  return _this;
125
138
  }
126
139
  _createClass(HackerControl, null, [