1.2.2 • Published 1 year ago
xue-mini-vue v1.2.2
euv
why euv? because:
'vue'.split('').sort().join('') // euv
source:
'node'.split('').sort().join('') // deno
Quick Start
目前还有
case
没有测试
安装
npm install
运行
npm run dev
目前支持功能
虚拟DOM
Diff更新
{{ data }}
or{{ data + 'test' }}
or{{ fn(data) }}
v-for
//v-for="(item, index) in list"
orv-for="(item, index) in 10"
orv-for="(item, index) in 'string'"
v-if
v-else-if
v-else
v-show
v-html
v-model
-
@click
v-on:click
事件(支持绑定其他事件)@click="fn('a',$event)"
@click="fn"
@click="show = false"
@click="function(){console.log(1)}"
methods
方法computed
计算属性watch
监听beforeCreate
、created
、beforeMount
、mounted
、beforeUpdate
、updated
:class
:style
$nextTick
comment: <> (# 补充)
comment: <> (虚拟dom
不懂的可以看看我之前发的文章(相关代码相比现在有部分改动):http://www.wclimb.site/2020/03/19/simple-virtual-dom/)