Skip to content

Commit a551f85

Browse files
committed
docs: add readme
1 parent b3e934c commit a551f85

File tree

2 files changed

+25
-3
lines changed

2 files changed

+25
-3
lines changed

README.md

+25-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,27 @@
1-
# Vue 3 + TypeScript + Vite
1+
# vue-change-marker
2+
When a vue component changes, vue-change-marker can highlight the changed component
23

3-
This template should help get you started developing with Vue 3 and TypeScript in Vite. The template uses Vue 3 `<script setup>` SFCs, check out the [script setup docs](https://v3.vuejs.org/api/sfc-script-setup.html#sfc-script-setup) to learn more.
4+
[demo](https://linzhe141.github.io/vue-change-marker/)
45

5-
Learn more about the recommended Project Setup and IDE Support in the [Vue Docs TypeScript Guide](https://vuejs.org/guide/typescript/overview.html#project-setup).
6+
![vue-change-marker demo](./demo.gif)
7+
8+
> [!IMPORTANT]
9+
> Only works in the dev environment
10+
11+
## Install
12+
13+
```bash
14+
npm i vue-change-marker
15+
```
16+
17+
18+
19+
```ts
20+
import { VueChangeMarker } from 'vue-change-marker'
21+
import { createApp } from 'vue'
22+
import App from './App.vue'
23+
// Before createApp
24+
VueChangeMarker()
25+
26+
createApp(App).mount('#app')
27+
```

demo.gif

1.07 MB
Loading

0 commit comments

Comments
 (0)