mirror of
https://github.com/lainbo/component-party.git
synced 2026-04-05 04:59:02 +08:00
fix: props example for Vue2 (#253)
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user