How to use the @babel/runtime/helpers/esm/defineProperty function in @babel/runtime

To help you get started, we’ve selected a few @babel/runtime examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github aotuzuche / auto-ui / es / time-picker / index.js View on Github external
_this.iScrollMM.scrollTo(0, -_mIndex * _this.realScrollRowHeight, 0);
              }

              _this.onChange();
            });
          } // 如果滚动的分钟,更新自身的值
          else if (type === 'MM') {
              _this.setState({
                MMIndex: row,
                MMValue: _this.state.MM[row]
              }, _this.onChange);
            }
      }
    });

    _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "onChange", function () {
      var date = _this.getTime();

      if (_this.props.onChange) {
        _this.props.onChange(date);
      }
    });

    _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "destroyScrolls", function () {
      _this.iScrollDay && _this.iScrollDay.destroy && _this.iScrollDay.destroy();
      _this.iScrollHH && _this.iScrollHH.destroy && _this.iScrollHH.destroy();
      _this.iScrollMM && _this.iScrollMM.destroy && _this.iScrollMM.destroy();
    });

    _this.state = {
      props: props,
      days: [],
github kodyl / react-flexr / index.es.js View on Github external
_defineProperty(_assertThisInitialized(_this), "state", {
      breakpoints: getInitialBreakpoints()
    });

    _defineProperty(_assertThisInitialized(_this), "handleFlexSize", function (breakpoint) {
      var _this$props = _this.props,
          grow = _this$props.grow,
          size = _this$props.size;
      return handleFlexSize({
        breakpoint: breakpoint,
        grow: grow,
        size: size
      });
    });

    _defineProperty(_assertThisInitialized(_this), "getDefinedBreakpoints", function () {
      var breakpoints = [];

      for (var i = 0, len = ERGONOMICS.length; i < len; i++) {
        if (_this.props[ERGONOMICS[i]]) breakpoints.push(ERGONOMICS[i]);
      }

      return breakpoints;
    });

    _defineProperty(_assertThisInitialized(_this), "getMatchingBreakpoint", function () {
      var definedBreakpoints = _this.getDefinedBreakpoints();

      var breakpoint = _this.state.breakpoints ? matchBreakpoints(_this.state.breakpoints.split(","), definedBreakpoints) : findMatch.apply(null, definedBreakpoints);
      return _this.props[breakpoint];
    });
github thuanmb / react-mapbox-gl-cluster / dist / components / ReactMapboxGlCluster / ClusterLayer.js View on Github external
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(source, true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(source).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
github thuanmb / react-mapbox-gl-cluster / dist / common / hoc / connectWithSpiderifierPoint.js View on Github external
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(source, true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(source).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
github thuanmb / react-mapbox-gl-cluster / dist / common / constants / GeoJSONTypes.js View on Github external
var _ListKeysByType;

var GeoJSONTypes = {
  Point: "Point",
  MultiPoint: "MultiPoint",
  LineString: "LineString",
  MultiLineString: "MultiLineString",
  Polygon: "Polygon",
  MultiPolygon: "MultiPolygon",
  GeometryCollection: "GeometryCollection",
  FeatureCollection: "FeatureCollection"
};
var NormalTypes = [GeoJSONTypes.Point, GeoJSONTypes.MultiPoint, GeoJSONTypes.LineString, GeoJSONTypes.MultiLineString, GeoJSONTypes.Polygon, GeoJSONTypes.MultiPolygon];
var CollectionTypes = [GeoJSONTypes.GeometryCollection, GeoJSONTypes.FeatureCollection];
var ListKeysByType = (_ListKeysByType = {}, _defineProperty(_ListKeysByType, GeoJSONTypes.GeometryCollection, "geometries"), _defineProperty(_ListKeysByType, GeoJSONTypes.FeatureCollection, "features"), _ListKeysByType);
export { GeoJSONTypes, NormalTypes, CollectionTypes, ListKeysByType };
github thuanmb / react-mapbox-gl-cluster / dist / common / hoc / detectLocationHasOverlappedPoints.js View on Github external
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(source, true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(source).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
github uiwjs / uiw / packages / core / lib / esm / icon / index.js View on Github external
value: function render() {
      var _this$props = this.props,
          prefixCls = _this$props.prefixCls,
          color = _this$props.color,
          type = _this$props.type,
          spin = _this$props.spin,
          verticalAlign = _this$props.verticalAlign,
          _this$props$tagName = _this$props.tagName,
          TagName = _this$props$tagName === void 0 ? 'span' : _this$props$tagName,
          others = _objectWithoutProperties(_this$props, ["prefixCls", "color", "type", "spin", "verticalAlign", "tagName"]);

      var paths = this.renderSvgPaths(type);

      var propps = _objectSpread({}, others, {
        className: classnames(prefixCls, "".concat(prefixCls, "-").concat(verticalAlign), _defineProperty({}, "".concat(prefixCls, "-spin"), spin))
      });

      return React.createElement(TagName, propps, React.createElement("svg", {
        fill: color,
        viewBox: "0 0 24 24"
      }, paths));
    }
  }]);
github aotuzuche / auto-ui / es / time-picker / index.js View on Github external
_this.iScrollMM.on('scrollStart', function () {
          _this.iScrollMMY = _this.iScrollMM.y;
          _this['needCalc' + _Key2] = true;
        });

        _this.iScrollMM.on('scrollEnd', function () {
          if (typeof _this.iScrollMMY === 'undefined' || Math.abs(_this.iScrollMMY - _this.iScrollMM.y) === 0) {
            return;
          }

          _this.scrollEndCalc(_this.iScrollMM, _Key2);
        });
      }
    });

    _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "refreshScrolls", function () {
      if (_this.iScrollDay) {
        _this.iScrollDay.refresh();

        _this.iScrollDay.scrollTo(0, -_this.realScrollRowHeight * _this.state.dayIndex, 300);
      }

      if (_this.iScrollHH) {
        _this.iScrollHH.refresh();

        _this.iScrollHH.scrollTo(0, -_this.realScrollRowHeight * _this.state.HHIndex, 300);
      }

      if (_this.iScrollMM) {
        _this.iScrollMM.refresh();

        _this.iScrollMM.scrollTo(0, -_this.realScrollRowHeight * _this.state.MMIndex, 300);