Skip to content

Commit

Permalink
docs: update docs/vue/modifier.md
Browse files Browse the repository at this point in the history
  • Loading branch information
qiufeihong2018 committed Apr 15, 2024
1 parent 0855738 commit f2328f2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions docs/vue/keepalive.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
</keep-alive>
```

使用`includes``exclude`
使用`include``exclude`

```go
<keep-alive include="a,b">
Expand Down Expand Up @@ -51,7 +51,7 @@

## 二、使用场景

使用原则:当我们在某些场景下不需要让页面重新加载时我们可以使用`keepalive`
使用原则:当我们在某些场景下不需要让页面重新加载时我们可以使用`keep-alive`

举个栗子:

Expand Down
6 changes: 3 additions & 3 deletions docs/vue/modifier.md
Original file line number Diff line number Diff line change
Expand Up @@ -185,11 +185,11 @@ Vue.config.keyCodes.f2 = 113

v-bind修饰符主要是为属性进行操作,用来分别有如下:

- async
- sync
- prop
- camel

#### async
#### sync

能对`props`进行一个双向绑定

Expand All @@ -214,7 +214,7 @@ func2(){
}
```

使用`async`需要注意以下两点:
使用`sync`需要注意以下两点:

- 使用`sync`的时候,子组件传递的事件名格式必须为`update:value`,其中`value`必须与子组件中`props`中声明的名称完全一致

Expand Down

0 comments on commit f2328f2

Please sign in to comment.