Skip to content

Commit

Permalink
Update REAME.md
Browse files Browse the repository at this point in the history
  • Loading branch information
under_moon committed Sep 18, 2023
1 parent 3f587c6 commit f80db9d
Show file tree
Hide file tree
Showing 5 changed files with 34 additions and 34 deletions.
34 changes: 17 additions & 17 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,24 +26,24 @@ console.log(shakedTarget) // { a: { b: { c: 1 } }, f: 4 }

#### - `Vue3`

```html
```vue
<script setup>
import { ref, onMounted } from 'vue'
import { reactiveShake } from '@object-shake/vue'
const target = ref({
a: {
b: { c: 1, d: 2 },
e: 3
},
f: 4
})
const [proxyTarget, shakedTarget] = shake(target)
onMounted(() => {
console.log(shakedTarget) // { a: { b: { c: 1 } }, f: 4 }
})
import { ref, onMounted } from 'vue'
import { reactiveShake } from '@object-shake/vue'
const target = ref({
a: {
b: { c: 1, d: 2 },
e: 3
},
f: 4
})
const [proxyTarget, shakedTarget] = reactiveShake(target)
onMounted(() => {
console.log(shakedTarget) // { a: { b: { c: 1 } }, f: 4 }
})
</script>
<template>
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "1.0.0",
"version": "1.0.1",
"type": "module",
"scripts": {
"prepare": "husky install",
Expand Down
2 changes: 1 addition & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@object-shake/core",
"version": "1.0.0",
"version": "1.0.1",
"main": "src/index.ts",
"type": "module",
"repository": {
Expand Down
28 changes: 14 additions & 14 deletions packages/vue/README.md
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
```html
```vue
<script setup>
import { ref, onMounted } from 'vue'
import { reactiveShake } from '@object-shake/vue'
import { ref, onMounted } from 'vue'
import { reactiveShake } from '@object-shake/vue'
const target = ref({
a: {
b: { c: 1, d: 2 },
e: 3
},
f: 4
})
const target = ref({
a: {
b: { c: 1, d: 2 },
e: 3
},
f: 4
})
const [proxyTarget, shakedTarget] = shake(target)
const [proxyTarget, shakedTarget] = reactiveShake(target)
onMounted(() => {
console.log(shakedTarget) // { a: { b: { c: 1 } }, f: 4 }
})
onMounted(() => {
console.log(shakedTarget) // { a: { b: { c: 1 } }, f: 4 }
})
</script>
<template>
Expand Down
2 changes: 1 addition & 1 deletion packages/vue/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@object-shake/vue",
"version": "1.0.0",
"version": "1.0.1",
"main": "src/index.ts",
"type": "module",
"repository": {
Expand Down

0 comments on commit f80db9d

Please sign in to comment.