Euv
写一个较为强大的Vue,支持虚拟DOM、diff更新以及基本的API。'vue'.split('').sort().join('') === 'euv'
Install / Use
/learn @wunci/EuvREADME
euv
why euv? because:
'vue'.split('').sort().join('') // euv
source:
'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"orv-for="(item, index) in 10"orv-for="(item, index) in 'string'" - [x]
v-ifv-else-ifv-else - [x]
v-show - [x]
v-html - [x]
v-model - [x]
@clickv-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
