From 9d759d995e43fb07ba1982a2093e6ce82fe761bf Mon Sep 17 00:00:00 2001 From: Evan You Date: Mon, 9 Aug 2021 15:54:34 -0400 Subject: [PATCH] 3.2 updates (#1157) --- src/.vuepress/config.js | 51 +++- src/api/computed-watch-api.md | 35 ++- src/api/directives.md | 84 +++++-- src/api/effect-scope.md | 59 +++++ src/api/global-api.md | 64 ++++- src/api/reactivity-api.md | 1 + src/api/sfc-script-setup.md | 292 ++++++++++++++++++++++ src/api/sfc-spec.md | 139 ++++++++++ src/api/sfc-style.md | 205 +++++++++++++++ src/api/sfc-tooling.md | 94 +++++++ src/guide/introduction.md | 12 +- src/guide/reactivity-computed-watchers.md | 49 ++-- src/guide/single-file-component.md | 198 ++++----------- src/guide/typescript-support.md | 2 +- src/guide/web-components.md | 243 ++++++++++++++++++ 15 files changed, 1328 insertions(+), 200 deletions(-) create mode 100644 src/api/effect-scope.md create mode 100644 src/api/sfc-script-setup.md create mode 100644 src/api/sfc-spec.md create mode 100644 src/api/sfc-style.md create mode 100644 src/api/sfc-tooling.md create mode 100644 src/guide/web-components.md diff --git a/src/.vuepress/config.js b/src/.vuepress/config.js index 4a6a89978c..a0c5d4c339 100644 --- a/src/.vuepress/config.js +++ b/src/.vuepress/config.js @@ -80,6 +80,7 @@ const sidebar = { title: 'Advanced Guides', collapsable: false, children: [ + '/guide/web-components', { title: 'Reactivity', children: [ @@ -106,7 +107,12 @@ const sidebar = { { title: 'Scaling Up', collapsable: false, - children: ['/guide/routing', '/guide/state-management', '/guide/ssr', '/guide/security'] + children: [ + '/guide/routing', + '/guide/state-management', + '/guide/ssr', + '/guide/security' + ] }, { title: 'Accessibility', @@ -148,10 +154,33 @@ const sidebar = { children: [ '/api/basic-reactivity', '/api/refs-api', - '/api/computed-watch-api' + '/api/computed-watch-api', + '/api/effect-scope', ] }, - '/api/composition-api' + '/api/composition-api', + { + title: 'Single File Components', + collapsable: false, + children: [ + { + title: 'Spec', + path: '/api/sfc-spec' + }, + { + title: 'Tooling', + path: '/api/sfc-tooling' + }, + { + title: ' @@ -521,7 +567,7 @@ export default { ``` -For more information about using CSS modules, see [Vue Loader - CSS Modules](https://vue-loader.vuejs.org/guide/css-modules.html). +For more information about using CSS modules, see [SFC Style Features: ` + + + This could be e.g. documentation for the component. + +``` + +## Language Blocks + +### `