Skip to content

Commit

Permalink
docs($plugin-pwa): fixed example for the custom component (#1977)
Browse files Browse the repository at this point in the history
  • Loading branch information
xr0master authored and ulivz committed Nov 29, 2019
1 parent 6f9e478 commit 21836fb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions packages/docs/docs/plugin/official/plugin-pwa.md
Original file line number Diff line number Diff line change
Expand Up @@ -214,9 +214,9 @@ First, you need to create a global component (e.g. `MySWUpdatePopup`) at `.vuepr

```vue
<template>
<SWUpdatePopup>
<SWUpdatePopup v-slot="{ enabled, reload, message, buttonText }">
<div
v-slot="{ enabled, reload, message, buttonText }"
v-if="enabled"
class="my-sw-update-popup">
{{ message }}<br>
<button @click="reload">{{ buttonText }}</button>
Expand Down
4 changes: 2 additions & 2 deletions packages/docs/docs/zh/plugin/official/plugin-pwa.md
Original file line number Diff line number Diff line change
Expand Up @@ -214,9 +214,9 @@ module.exports = {

```vue
<template>
<SWUpdatePopup>
<SWUpdatePopup v-slot="{ enabled, reload, message, buttonText }">
<div
v-slot="{ enabled, reload, message, buttonText }"
v-if="enabled"
class="my-sw-update-popup">
{{ message }}<br>
<button @click="reload">{{ buttonText }}</button>
Expand Down

0 comments on commit 21836fb

Please sign in to comment.