Vue Component API
June 26, 2017 ยท View on GitHub
Vue component actually runs in the React runtime. It means, you can not access VNode, you can not use Render. Conversely, if your previous Vue component does not involve both things, it would most likely run directly in React.
- web: react-vue-loader (demo)
- native: react-vue-native-scripts (demo)
Supported API
Global Config
Use the react-vue-loader options:
vue
-
ignoredElements (web only)
-
keyCodes (web only)
Global API
Use the react-vue-loader options:
vue
-
Vue.directive (web only)
Options / Data
Options / Lifecycle Hooks
Options / Assets
-
directives (web only)
- Hook-Functions
- bind
- update
- unbind
- Directive-Hook-Arguments
- el
- binding
- vnode (only one property
context)
- Hook-Functions
Options / Composition
Options / Misc
Instance Properties
Instance Methods / Data
Instance Methods / Events
Instance Methods / Lifecycle
Directives
-
v-text (web only)
-
v-html (web only)
-
v-on (web only)
-
v-model (web only)
Unsupported features: value bindings checkbox & value bindings select options
Special Attributes
Built-In Components
-
transition (web only)
The <transition> would render an extra DOM element, you can configure
tagattribute to custom the extra DOM elementUnsupported features: transition modes
Server-Side Rendering (web only)
Use React Server Rendering