docs(examples): optimize writing of ` : ? ` (#7928)

This commit is contained in:
AuroraTea 2022-09-30 20:55:32 +08:00 committed by GitHub
parent bea2848246
commit bda866050d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -5,7 +5,7 @@
<NuxtLayout :name="layout">
Default slot
<br>
<button class="border p-1 rounded" @click="layout ? layout = null : layout = 'custom'">
<button class="border p-1 rounded" @click="layout = layout ? null : 'custom'">
Switch layout
</button>