组件规范

Usage

LifeCycle

  • created / componentWillMount

  • mounted / componentDidMount

  • shouldComponentUpdate

  • updated / componentDidUpdate

  • unmounted / componentWillUnMount

beforeCreate — called after the instance has been initialized but before watchers/events have been setup

created — called after the instance has been initialized, the computed props, data watchers and events have been setup but the component has not been mounted to the el dom element

beforeMount — called right before mounting process begins

mounted — called after the instance has been mounted and the el in the DOM is replaced with your component.

beforeUpdate — called after the data changes but before the virtual DOM has been updated

updated — called after the DOM was updated

beforeDestroy — called before an instance is about to be destroyed but full functionality of the instance is still available

destroy — called after the instance has been destroyed

上一页
下一页