提交 21836fb2 编写于 作者: X xr0master 提交者: ULIVZ

docs($plugin-pwa): fixed example for the custom component (#1977)

上级 6f9e478e
......@@ -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>
......
......@@ -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>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册