How to use the rc-util/es/Dom/addEventListener function in rc-util

To help you get started, we’ve selected a few rc-util 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 godaner / vm-engine / vm-backend / src / main / resources / static / node_modules / antd / es / modal / Modal.js View on Github external
value: function componentDidMount() {
            if (mousePositionEventBinded) {
                return;
            }
            // 只有点击事件支持从鼠标位置动画展开
            addEventListener(document.documentElement, 'click', function (e) {
                mousePosition = {
                    x: e.pageX,
                    y: e.pageY
                };
                // 100ms 内发生过点击事件,则从点击位置动画展示
                // 否则直接 zoom 展示
                // 这样可以兼容非点击方式展开
                setTimeout(function () {
                    return mousePosition = null;
                }, 100);
            });
            mousePositionEventBinded = true;
        }
    }, {
github godaner / vm-engine / vm-backend / src / main / resources / static / node_modules / rc-table / es / Table.js View on Github external
value: function componentDidMount() {
      if (this.columnManager.isAnyColumnsFixed()) {
        this.handleWindowResize();
        this.debouncedWindowResize = debounce(this.handleWindowResize, 150);
        this.resizeEvent = addEventListener(window, 'resize', this.debouncedWindowResize);
      }
    }
  }, {
github godaner / vm-engine / vm-backend / src / main / resources / static / node_modules / rc-slider / es / common / createSlider.js View on Github external
value: function addDocumentMouseEvents() {
        this.onMouseMoveListener = addEventListener(this.document, 'mousemove', this.onMouseMove);
        this.onMouseUpListener = addEventListener(this.document, 'mouseup', this.onEnd);
      }
    }, {
github godaner / vm-engine / vm-backend / src / main / resources / static / node_modules / rc-slider / es / common / createSlider.js View on Github external
value: function addDocumentTouchEvents() {
                this.onTouchMoveListener = addEventListener(this.document, 'touchmove', this.onTouchMove);
        this.onTouchUpListener = addEventListener(this.document, 'touchend', this.onEnd);
      }
    }, {
github godaner / vm-engine / vm-backend / src / main / resources / static / node_modules / antd / es / back-top / index.js View on Github external
value: function componentDidMount() {
            var getTarget = this.props.target || getDefaultTarget;
            this.scrollEvent = addEventListener(getTarget(), 'scroll', this.handleScroll);
            this.handleScroll();
        }
    }, {
github godaner / vm-engine / vm-backend / src / main / resources / static / node_modules / rc-slider / es / common / createSlider.js View on Github external
value: function addDocumentMouseEvents() {
        this.onMouseMoveListener = addEventListener(this.document, 'mousemove', this.onMouseMove);
        this.onMouseUpListener = addEventListener(this.document, 'mouseup', this.onEnd);
      }
    }, {
github godaner / vm-engine / vm-backend / src / main / resources / static / node_modules / antd / es / anchor / Anchor.js View on Github external
value: function componentDidMount() {
            var getTarget = this.props.target || getDefaultTarget;
            this.scrollEvent = addEventListener(getTarget(), 'scroll', this.handleScroll);
            this.handleScroll();
        }
    }, {
github godaner / vm-engine / vm-backend / src / main / resources / static / node_modules / antd / es / card / index.js View on Github external
value: function componentDidMount() {
            this.updateWiderPadding();
            this.resizeEvent = addEventListener(window, 'resize', this.updateWiderPadding);
        }
    }, {
github godaner / vm-engine / vm-backend / src / main / resources / static / node_modules / rc-slider / es / common / createSlider.js View on Github external
value: function addDocumentTouchEvents() {
                this.onTouchMoveListener = addEventListener(this.document, 'touchmove', this.onTouchMove);
        this.onTouchUpListener = addEventListener(this.document, 'touchend', this.onEnd);
      }
    }, {
github sikidamjanovic / cowrite / node_modules / antd / es / back-top / index.js View on Github external
value: function componentDidMount() {
      var getTarget = this.props.target || getDefaultTarget;
      this.scrollEvent = addEventListener(getTarget(), 'scroll', this.handleScroll);
      this.handleScroll();
    }
  }, {