Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
wxsms committed Apr 26, 2024
1 parent f8384e4 commit 6031908
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/guide/built-ins/transition-demos/ListMove.vue
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ function shuffle(array) {
<div class="demo">
<button @click="add">Add</button>
<button @click="remove">Remove</button>
<button @click="shuffle(items)">Sort</button>
<button @click="shuffle(items)">Shuffle</button>
<TransitionGroup name="list2" tag="ul" style="margin-top: 20px">
<li class="list-item" v-for="item in items" :key="item">
{{ item }}
Expand Down
4 changes: 2 additions & 2 deletions src/guide/extras/composition-api-faq.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,12 @@ function increment() {
// 生命周期钩子
onMounted(() => {
console.log(`Count init: ${count.value}`)
console.log(`The initial count is ${count.value}.`)
})
</script>
<template>
<button @click="increment">Count: {{ count }}</button>
<button @click="increment">Count is: {{ count }}</button>
</template>
```

Expand Down

0 comments on commit 6031908

Please sign in to comment.