Skip to content

Advanced section + Composition API #131

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 16 commits into from
Jul 12, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 23 additions & 14 deletions src/.vuepress/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,6 @@ const sidebar = {
'/guide/component-edge-cases'
]
},
{
title: 'Internals',
collapsable: false,
children: [
'/guide/reactivity',
'/guide/optimizations',
'/guide/change-detection'
]
},
{
title: 'Reusability & Composition',
collapsable: false,
Expand All @@ -48,18 +39,36 @@ const sidebar = {
'/guide/custom-directive',
'/guide/teleport',
'/guide/render-function',
'/guide/plugins',
'/guide/composition-api-introduction'
'/guide/plugins'
]
},
{
title: 'Tooling',
title: 'Advanced Guides',
collapsable: false,
children: [
'/guide/single-file-component',
'/guide/testing'
{
title: 'Reactivity',
children: ['/guide/reactivity', '/guide/reactivity-fundamentals', '/guide/reactivity-computed-watchers']
},
{
title: 'Composition API',
children: [
'/guide/composition-api-introduction',
'/guide/composition-api-setup',
'/guide/composition-api-lifecycle-hooks',
'/guide/composition-api-provide-inject',
'/guide/composition-api-template-refs'
]
},
'/guide/optimizations',
'/guide/change-detection'
]
},
{
title: 'Tooling',
collapsable: false,
children: ['/guide/single-file-component', '/guide/testing']
},
{
title: 'Scaling Up',
collapsable: false,
Expand Down
7 changes: 7 additions & 0 deletions src/.vuepress/styles/index.styl
Original file line number Diff line number Diff line change
Expand Up @@ -149,3 +149,10 @@
vertical-align: middle;
}
}

.sidebar-group.is-sub-group > .sidebar-heading:not(.clickable) {
font-size: inherit;
cursor: pointer!important;
font-weight: bold;
opacity: 1!important;
}
2 changes: 1 addition & 1 deletion src/api/basic-reactivity.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const obj = reactive({ count: 0 })

The reactive conversion is "deep"—it affects all nested properties. In the [ES2015 Proxy](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Proxy) based implementation, the returned proxy is **not** equal to the original object. It is recommended to work exclusively with the reactive proxy and avoid relying on the original object.

### Typing
**Typing:**

```ts
function reactive<T extends object>(target: T): UnwrapNestedRefs<T>
Expand Down
Loading