Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/wunci/euv

写一个较为强大的Vue,支持虚拟DOM、diff更新以及基本的API。'vue'.split('').sort().join('') === 'euv'
https://github.com/wunci/euv

diff euv simple-vue vnode vue

Last synced: about 1 month ago
JSON representation

写一个较为强大的Vue,支持虚拟DOM、diff更新以及基本的API。'vue'.split('').sort().join('') === 'euv'

Awesome Lists containing this project

README

        

# euv

why euv? because:
```js
'vue'.split('').sort().join('') // euv
```
source:
```js
'node'.split('').sort().join('') // deno
```

# Quick Start

> 目前还有 `case` 没有测试

安装
```
npm install
```
运行
```
npm run dev
```

# 目前支持功能

- [x] `虚拟DOM`
- [x] `Diff更新`
- [x] `{{ data }}` or `{{ data + 'test' }}` or `{{ fn(data) }}`
- [x] `v-for` // `v-for="(item, index) in list"` or `v-for="(item, index) in 10"` or `v-for="(item, index) in 'string'"`
- [x] `v-if` `v-else-if` `v-else`
- [x] `v-show`
- [x] `v-html`
- [x] `v-model`
- [x] `@click` `v-on:click` 事件(支持绑定其他事件) `@click="fn('a',$event)"` `@click="fn"` `@click="show = false"` `@click="function(){console.log(1)}"`
- [x] `methods` 方法
- [x] `computed` 计算属性
- [x] `watch` 监听
- [x] `beforeCreate`、`created`、`beforeMount`、`mounted`、`beforeUpdate`、`updated`
- [x] `:class`
- [x] `:style`
- [x] `$nextTick`