Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Sep 2, 2021. It is now read-only.

AngusFu/vue-function-api

Repository files navigation

Vue Function-based API Implementation

Demo

Live

Source

Notice

  1. Value Unwraping is is available yet. So you have to use somethingReactive.value @click="somethingReactive.value++" in your render function (or template).
  • value/computed: not supported
  • inject: not supported
  • state: partial support (not deep nested)
  1. Functional Components are not supported yet.

Usage

Just replace every import Vue from 'vue' in your files with import Vue from 'vue-functional-api'.

Since import Vue from 'vue' also occurs in the es module bundle of this package, a webpack alias may not work.

API

Take a look at src/index.js.

About

Use vue v3's API with vue 2

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

AltStyle によって変換されたページ (->オリジナル) /