Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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'
- Host: GitHub
- URL: https://github.com/wunci/euv
- Owner: wunci
- Created: 2020-05-20T09:45:14.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2023-01-28T08:41:48.000Z (almost 2 years ago)
- Last Synced: 2023-11-27T15:46:28.018Z (about 1 year ago)
- Topics: diff, euv, simple-vue, vnode, vue
- Language: JavaScript
- Homepage: http://www.wclimb.site/euv
- Size: 97.7 KB
- Stars: 19
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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`