@byteluck-fe/model-driven-controls 2.2.0 → 2.2.1-test.2

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.
@@ -86,13 +86,6 @@ function _inherits(subClass, superClass) {
86
86
  });
87
87
  if (superClass) _setPrototypeOf(subClass, superClass);
88
88
  }
89
- function _instanceof(left, right) {
90
- if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) {
91
- return !!right[Symbol.hasInstance](left);
92
- } else {
93
- return left instanceof right;
94
- }
95
- }
96
89
  function _objectSpread(target) {
97
90
  for(var i = 1; i < arguments.length; i++){
98
91
  var source = arguments[i] != null ? arguments[i] : {};
@@ -295,8 +288,9 @@ var OperationColumnControl = /*#__PURE__*/ function(DesignerColumnControl) {
295
288
  _proto.toDataBindModel = function toDataBindModel() {
296
289
  var dataBindModel = _get(_getPrototypeOf(OperationColumnControl.prototype), "toDataBindModel", this).call(this);
297
290
  this.children.map(function(item) {
298
- if (_instanceof(item, DesignerOperationButtonControl)) {
299
- dataBindModel.props[item.props.command] = item.props;
291
+ if (item.type === DesignerOperationButtonControl.controlType) {
292
+ var inst = item;
293
+ dataBindModel.props[inst.props.command] = inst.props;
300
294
  }
301
295
  });
302
296
  // dataBindModel.props.check = this.props.check