Skip to content

Commit b527141

Browse files
Advanced section + Composition API (#131)
* chore: restructured sidebar * fix: fixed styles * feat: scaffilded setup guide * chore: finished setup guide and fixed setup API * fix: renamed advanced section * feat: added provide-inject guide * fix: fixed provide-inject API * fix: fixed headings * feat: finished Composition API migration * feat: added basic refs and reactive * feat: added readonly * chore: fixed TODOs * fix: fixed headings * fix: fixed CSS typo
1 parent 474742c commit b527141

14 files changed

+913
-540
lines changed

src/.vuepress/config.js

Lines changed: 23 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -31,15 +31,6 @@ const sidebar = {
3131
'/guide/component-edge-cases'
3232
]
3333
},
34-
{
35-
title: 'Internals',
36-
collapsable: false,
37-
children: [
38-
'/guide/reactivity',
39-
'/guide/optimizations',
40-
'/guide/change-detection'
41-
]
42-
},
4334
{
4435
title: 'Reusability & Composition',
4536
collapsable: false,
@@ -48,18 +39,36 @@ const sidebar = {
4839
'/guide/custom-directive',
4940
'/guide/teleport',
5041
'/guide/render-function',
51-
'/guide/plugins',
52-
'/guide/composition-api-introduction'
42+
'/guide/plugins'
5343
]
5444
},
5545
{
56-
title: 'Tooling',
46+
title: 'Advanced Guides',
5747
collapsable: false,
5848
children: [
59-
'/guide/single-file-component',
60-
'/guide/testing'
49+
{
50+
title: 'Reactivity',
51+
children: ['/guide/reactivity', '/guide/reactivity-fundamentals', '/guide/reactivity-computed-watchers']
52+
},
53+
{
54+
title: 'Composition API',
55+
children: [
56+
'/guide/composition-api-introduction',
57+
'/guide/composition-api-setup',
58+
'/guide/composition-api-lifecycle-hooks',
59+
'/guide/composition-api-provide-inject',
60+
'/guide/composition-api-template-refs'
61+
]
62+
},
63+
'/guide/optimizations',
64+
'/guide/change-detection'
6165
]
6266
},
67+
{
68+
title: 'Tooling',
69+
collapsable: false,
70+
children: ['/guide/single-file-component', '/guide/testing']
71+
},
6372
{
6473
title: 'Scaling Up',
6574
collapsable: false,

src/.vuepress/styles/index.styl

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,3 +149,10 @@
149149
vertical-align: middle;
150150
}
151151
}
152+
153+
.sidebar-group.is-sub-group > .sidebar-heading:not(.clickable) {
154+
font-size: inherit;
155+
cursor: pointer!important;
156+
font-weight: bold;
157+
opacity: 1!important;
158+
}

src/api/basic-reactivity.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ const obj = reactive({ count: 0 })
1212

1313
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.
1414

15-
### Typing
15+
**Typing:**
1616

1717
```ts
1818
function reactive<T extends object>(target: T): UnwrapNestedRefs<T>

0 commit comments

Comments
 (0)