Coder Social home page Coder Social logo

mini-vue3's Introduction

简易版Vue3

目前实现功能

1. reactive

参数 类型 描述
object Object 要被proxy代理的对象

2. effect

参数 类型 描述
fn Function 函数内的响应式对象会被触发
options Object 选项配置,如下表
scheduler Function 响应式触发后要执行的函数,返回当前fn
onStop Function 函数外调用stop方法传入一个effect后,执行该onStop回调

3. readonly

参数 类型 描述
object Function 接受一个响应式对象,将对象转换为只读

4. isReadOnly

参数 类型 描述
object Function 接受一个响应式对象,判断是否是只读

5. isReactive

参数 类型 描述
object Function 接受一个响应式对象,判断是否是响应式对象

mini-vue3's People

Contributors

mingcoldmoon avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.