Skip to content

Commit c17c70e

Browse files
authored
feat($core): Upgrade vue version (#1876)
1 parent 51de6cf commit c17c70e

File tree

11 files changed

+61
-40
lines changed

11 files changed

+61
-40
lines changed

packages/@vuepress/core/lib/node/App.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ module.exports = class App {
154154
.use(require('./internal-plugins/frontmatterBlock'))
155155
.use('container', {
156156
type: 'slot',
157-
before: info => `<template slot="${info}">`,
157+
before: info => `<template #${info}>`,
158158
after: '</template>'
159159
})
160160
.use('container', {

packages/@vuepress/core/package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -54,13 +54,13 @@
5454
"postcss-safe-parser": "^4.0.1",
5555
"toml": "^3.0.0",
5656
"url-loader": "^1.0.1",
57-
"vue": "^2.5.16",
58-
"vue-loader": "^15.2.4",
59-
"vue-router": "^3.0.2",
60-
"vue-server-renderer": "^2.5.16",
61-
"vue-template-compiler": "^2.5.16",
57+
"vue": "^2.6.10",
58+
"vue-loader": "^15.7.1",
59+
"vue-router": "^3.1.3",
60+
"vue-server-renderer": "^2.6.10",
61+
"vue-template-compiler": "^2.6.10",
6262
"vuepress-html-webpack-plugin": "^3.2.0",
63-
"vuepress-plugin-container": "^2.0.0",
63+
"vuepress-plugin-container": "^2.0.2",
6464
"webpack": "^4.8.1",
6565
"webpack-chain": "^4.6.0",
6666
"webpack-dev-server": "^3.5.1",

packages/@vuepress/test-utils/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@
2929
"jest": "^24.7.1",
3030
"jest-serializer-vue": "^2.0.2",
3131
"ts-jest": "^24.0.2",
32-
"vue": "^2.5.16",
32+
"vue": "^2.6.10",
3333
"vue-jest": "^4.0.0-beta.1",
34-
"vue-template-compiler": "^2.5.16"
34+
"vue-template-compiler": "^2.6.10"
3535
},
3636
"author": "ULIVZ <chl814@foxmail.com>",
3737
"license": "MIT",

packages/@vuepress/theme-default/layouts/Layout.vue

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,11 @@
2121
>
2222
<slot
2323
name="sidebar-top"
24-
slot="top"
24+
#top
2525
/>
2626
<slot
2727
name="sidebar-bottom"
28-
slot="bottom"
28+
#bottom
2929
/>
3030
</Sidebar>
3131

@@ -37,11 +37,11 @@
3737
>
3838
<slot
3939
name="page-top"
40-
slot="top"
40+
#top
4141
/>
4242
<slot
4343
name="page-bottom"
44-
slot="bottom"
44+
#bottom
4545
/>
4646
</Page>
4747
</div>

packages/@vuepress/theme-default/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
"lodash": "^4.17.15",
3838
"stylus": "^0.54.5",
3939
"stylus-loader": "^3.0.2",
40-
"vuepress-plugin-container": "^2.0.0",
40+
"vuepress-plugin-container": "^2.0.2",
4141
"vuepress-plugin-smooth-scroll": "^0.0.3"
4242
}
4343
}

packages/@vuepress/theme-vue/layouts/Layout.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<template>
22
<ParentLayout>
3-
<CarbonAds slot="sidebar-top"/>
4-
<BuySellAds slot="page-bottom"/>
3+
<CarbonAds #sidebar-top/>
4+
<BuySellAds #page-bottom/>
55
</ParentLayout>
66
</template>
77

packages/docs/docs/plugin/official/plugin-pwa.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ First, you need to create a global component (e.g. `MySWUpdatePopup`) at `.vuepr
216216
<template>
217217
<SWUpdatePopup>
218218
<div
219-
slot-scope="{ enabled, reload, message, buttonText }"
219+
v-slot="{ enabled, reload, message, buttonText }"
220220
class="my-sw-update-popup">
221221
{{ message }}<br>
222222
<button @click="reload">{{ buttonText }}</button>

packages/docs/docs/theme/inheritance.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ You can use `@parent-theme` to access the root path of the parent theme. The fol
163163
<!-- themePath/components/Foo.vue -->
164164
<template>
165165
<ParentLayout>
166-
<Foo slot="foo"/>
166+
<Foo #foo/>
167167
</ParentLayout>
168168
</template>
169169

packages/docs/docs/zh/plugin/official/plugin-pwa.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ module.exports = {
216216
<template>
217217
<SWUpdatePopup>
218218
<div
219-
slot-scope="{ enabled, reload, message, buttonText }"
219+
v-slot="{ enabled, reload, message, buttonText }"
220220
class="my-sw-update-popup">
221221
{{ message }}<br>
222222
<button @click="reload">{{ buttonText }}</button>

packages/docs/docs/zh/theme/inheritance.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ theme
159159
<!-- themePath/components/Foo.vue -->
160160
<template>
161161
<ParentLayout>
162-
<Foo slot="foo"/>
162+
<Foo #foo/>
163163
</ParentLayout>
164164
</template>
165165

0 commit comments

Comments
 (0)