Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "devtools-base"

Index

Variables

Const isArray

isArray: isArray = Array.isArray

Const window

window: object

Type declaration

  • $zreact: IVDom
  • Optional __REACT_DEVTOOLS_GLOBAL_HOOK__?: any

Functions

getInitDevTools

  • Parameters

    • opt: object
      • Optional afterMount?: undefined | function

        dom挂载后钩子比componentDidMount更先执行

      • Optional afterUpdate?: undefined | function

        render更新后钩子比componentDidUpdate更后面执行

      • Optional beforeUnmount?: undefined | function

        dom卸载载前钩子比componentWillUnmount更先执行

      • Optional debounceRendering?: undefined | function

        自定义异步调度方法,会异步执行传入的方法

      • Optional event?: undefined | function

        事件钩子,可以对event过滤返回的会代替event参数

      • Optional eventBind?: undefined | false | true

        是否自动对事件方法绑定this为组件,默认为true(preact没有)

      • Optional ref?: function | boolean

        ref 默认为vdom.base,

      • Optional syncComponentUpdates?: undefined | false | true

        setComponentProps时强制为同步render

      • Optional vnode?: undefined | function

        vnode实例创建时的钩子

    • findDOMNode: findDOMNode
    • findVDom: findVDom

    Returns initDevTools

Generated using TypeDoc