Skip to content

Commit 9540e78

Browse files
authored
Merge branch 'master' into migration-build-flags
2 parents 5bd2a63 + 9657a47 commit 9540e78

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+389
-150
lines changed

src/.vuepress/components/guide/contributing/translations-data.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,6 @@ export const repos = [
1717
{ lang: 'ja', owner: 'vuejs-jp', repo: 'ja.vuejs.org', branch: 'lang-ja', url: 'https://v3.ja.vuejs.org/' },
1818
{ lang: 'ko', owner: 'vuejs-kr', repo: 'docs-next', branch: 'rootKoKr', url: 'https://v3.ko.vuejs.org/' },
1919
{ lang: 'pt-br', owner: 'vuejs-br', repo: 'docs-next', branch: 'master', url: 'https://vuejsbr-docs-next.netlify.app/' },
20-
{ lang: 'ru', owner: 'translation-gang', repo: 'docs-next', branch: 'master' },
20+
{ lang: 'ru', owner: 'translation-gang', repo: 'docs-next', branch: 'master', url: 'https://v3.ru.vuejs.org/' },
2121
{ lang: 'zh-cn', owner: 'vuejs', repo: 'docs-next-zh-cn', branch: 'master', url: 'https://v3.cn.vuejs.org/' }
2222
]

src/.vuepress/config.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ const sidebar = {
66
children: [
77
'/cookbook/',
88
'/cookbook/editable-svg-icons',
9-
'/cookbook/debugging-in-vscode'
9+
'/cookbook/debugging-in-vscode',
10+
'/cookbook/automatic-global-registration-of-base-components'
1011
]
1112
}
1213
],
@@ -202,6 +203,7 @@ const sidebar = {
202203
'/guide/migration/slots-unification',
203204
'/guide/migration/suspense',
204205
'/guide/migration/transition',
206+
'/guide/migration/transition-as-root',
205207
'/guide/migration/transition-group',
206208
'/guide/migration/v-on-native-modifier-removed',
207209
'/guide/migration/v-model',
@@ -435,6 +437,10 @@ module.exports = {
435437
text: '日本語',
436438
link: 'https://v3.ja.vuejs.org/'
437439
},
440+
{
441+
text: 'Русский',
442+
link: 'https://v3.ru.vuejs.org/'
443+
},
438444
{
439445
text: 'More Translations',
440446
link: '/guide/contributing/translations#community-translations'

src/.vuepress/theme/styles/index.styl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ ul, ol
115115
padding-left 1.2em
116116

117117
strong
118-
font-weight 500
118+
font-weight 600
119119

120120
h1, h2, h3, h4, h5, h6
121121
font-weight 500

src/api/application-api.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -329,14 +329,14 @@ setTimeout(() => app.unmount(), 5000)
329329
export default {
330330
install(app) {
331331
const version = Number(app.version.split('.')[0])
332-
332+
333333
if (version < 3) {
334334
console.warn('This plugin requires Vue 3')
335335
}
336-
336+
337337
// ...
338338
}
339339
}
340340
```
341-
341+
342342
- **See also**: [Global API - version](/api/global-api.html#version)

src/api/built-in-components.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ const { KeepAlive, Teleport, Transition, TransitionGroup } = Vue
1414
import { KeepAlive, Teleport, Transition, TransitionGroup } from 'vue'
1515
```
1616

17-
`<component>` and `<slot>` are component-like features of template syntax. They are not true components and they can't be imported like the components shown above.
17+
`<component>` and `<slot>` are component-like features of template syntax. They are not true components and they can't be imported like the components shown above.
1818

1919
## component
2020

@@ -45,13 +45,13 @@ import { KeepAlive, Teleport, Transition, TransitionGroup } from 'vue'
4545

4646
```js
4747
const { Transition, TransitionGroup } = Vue
48-
48+
4949
const Component = {
5050
components: {
5151
Transition,
5252
TransitionGroup
5353
},
54-
54+
5555
template: `
5656
<component :is="isGroup ? 'TransitionGroup' : 'Transition'">
5757
...
@@ -60,7 +60,7 @@ import { KeepAlive, Teleport, Transition, TransitionGroup } from 'vue'
6060
}
6161
```
6262

63-
Registration is not required if you pass the component itself to `is` rather than its name.
63+
Registration is not required if you pass the component itself to `is` rather than its name.
6464

6565
- **See also:** [Dynamic Components](../guide/component-dynamic-async.html)
6666

@@ -180,7 +180,7 @@ import { KeepAlive, Teleport, Transition, TransitionGroup } from 'vue'
180180

181181
When wrapped around a dynamic component, `<keep-alive>` caches the inactive component instances without destroying them. Similar to `<transition>`, `<keep-alive>` is an abstract component: it doesn't render a DOM element itself, and doesn't show up in the component parent chain.
182182

183-
When a component is toggled inside `<keep-alive>`, its `activated` and `deactivated` lifecycle hooks will be invoked accordingly.
183+
When a component is toggled inside `<keep-alive>`, its `activated` and `deactivated` lifecycle hooks will be invoked accordingly, providing an alternative to `mounted` and `unmounted`, which are not called. (This applies to the direct child of `<keep-alive>` as well as to all of its descendants.)
184184

185185
Primarily used to preserve component state or avoid re-rendering.
186186

src/api/composition-api.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,9 @@ The component instance context is also set during the synchronous execution of l
117117
- `errorCaptured` -> `onErrorCaptured`
118118
- `renderTracked` -> `onRenderTracked`
119119
- `renderTriggered` -> `onRenderTriggered`
120+
- `activated` -> `onActivated`
121+
- `deactivated` -> `onDeactivated`
122+
120123

121124
- **See also**: [Composition API lifecycle hooks](../guide/composition-api-lifecycle-hooks.html)
122125

src/api/global-api.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ Accepts three arguments: `type`, `props` and `children`
9696
9797
- **Details:**
9898
99-
An HTML tag name, a component or an async component. Using function returning null would render a comment. This parameter is required
99+
An HTML tag name, a component, an async component, or a functional component. Using function returning null would render a comment. This parameter is required
100100
101101
#### props
102102

src/api/instance-methods.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@
122122
- **Option: deep**
123123

124124
To also detect nested value changes inside Objects, you need to pass in `deep: true` in the options argument. This option also can be used to watch array mutations.
125-
125+
126126
> Note: when mutating (rather than replacing) an Object or an Array and watch with deep option, the old value will be the same as new value because they reference the same Object/Array. Vue doesn't keep a copy of the pre-mutate value.
127127
128128
```js

src/api/options-assets.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
A hash of directives to be made available to the component instance.
1010

1111
- **Usage:**
12+
1213
```js
1314
const app = createApp({})
1415

@@ -35,6 +36,7 @@
3536
A hash of components to be made available to the component instance.
3637

3738
- **Usage:**
39+
3840
```js
3941
const Foo = {
4042
template: `<div>Foo</div>`

src/api/refs-api.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ isReactive(foo.value) // false
217217

218218
## `triggerRef`
219219

220-
Execute any effects tied to a [`shallowRef`](#shallowref) manually.
220+
Execute any effects tied to a [`shallowRef`](#shallowref) manually.
221221

222222
```js
223223
const shallow = shallowRef({

0 commit comments

Comments
 (0)