fix: props example for Vue2 (#253)

This commit is contained in:
jiaxiang
2024-10-04 23:17:53 +08:00
committed by GitHub
parent b47c37e00e
commit f859395fc9

View File

@@ -27,9 +27,9 @@ export default {
<template>
<div>
<p>My name is {{ props.name }}!</p>
<p>My age is {{ props.age }}!</p>
<p>My favorite colors are {{ props.favoriteColors.join(", ") }}!</p>
<p>I am {{ props.isAvailable ? "available" : "not available" }}</p>
<p>My name is {{ name }}!</p>
<p>My age is {{ age }}!</p>
<p>My favorite colors are {{ favoriteColors.join(", ") }}!</p>
<p>I am {{ isAvailable ? "available" : "not available" }}</p>
</div>
</template>