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

View File

@ -5,7 +5,7 @@
<NuxtLayout :name="layout"> <NuxtLayout :name="layout">
Default slot Default slot
<br> <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 Switch layout
</button> </button>