# vue-utils **Repository Path**: bingchuan1/vue-utils ## Basic Information - **Project Name**: vue-utils - **Description**: 仿照vue的底层源码为构建常用的工具进行使用,及包含自己常用的工具类 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 25 - **Created**: 2023-03-06 - **Last Updated**: 2023-03-06 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## 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] `v-click` `@click` 点击事件 - [x] `computed` 计算属性 - [x] `watch` 监听 - [x] `beforeCreate`、`created`、`beforeMount`、`mounted`、`beforeUpdate`、`updated` - [x] `:class` - [x] `:style` - [x] `$nextTick` # 补充 `虚拟dom` 不懂的可以看看我之前发的文章(相关代码相比现在有部分改动):http://www.wclimb.site/2020/03/19/simple-virtual-dom/