Skip to content

Commit e22cc42

Browse files
authored
Merge branch 'main' into feat/en-anchor
2 parents 517a8b4 + 21eb384 commit e22cc42

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

src/guide/essentials/computed.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ See also: [Typing Computed](/guide/typescript/composition-api.html#typing-comput
138138

139139
</div>
140140

141-
## Computed Caching vs Methods {#computed-caching-vs-methods}
141+
## Computed Caching vs. Methods {#computed-caching-vs-methods}
142142

143143
You may have noticed we can achieve the same result by invoking a method in the expression:
144144

src/guide/essentials/conditional.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ The difference is that an element with `v-show` will always be rendered and rema
9898

9999
`v-show` doesn't support the `<template>` element, nor does it work with `v-else`.
100100

101-
## `v-if` vs `v-show` {#v-if-vs-v-show}
101+
## `v-if` vs. `v-show` {#v-if-vs-v-show}
102102

103103
`v-if` is "real" conditional rendering because it ensures that event listeners and child components inside the conditional block are properly destroyed and re-created during toggles.
104104

src/guide/extras/render-function.md

+6
Original file line numberDiff line numberDiff line change
@@ -687,4 +687,10 @@ MyComponent.emits = ['click']
687687

688688
If the `props` option is not specified, then the `props` object passed to the function will contain all attributes, the same as `attrs`. The prop names will not be normalized to camelCase unless the `props` option is specified.
689689

690+
For functional components with explicit `props`, [attribute fallthrough](/guide/components/attrs.html) works much the same as with normal components. However, for functional components that don't explicitly specify their `props`, only the `class`, `style`, and `onXxx` event listeners will be inherited from the `attrs` by default. In either case, `inheritAttrs` can be set to `false` to disable attribute inheritance:
691+
692+
```js
693+
MyComponent.inheritAttrs = false
694+
```
695+
690696
Functional components can be registered and consumed just like normal components. If you pass a function as the first argument to `h()`, it will be treated as a functional component.

0 commit comments

Comments
 (0)