docs(card): fix usage example for vue (#23535)

This commit is contained in:
Liam DeBeasi
2021-06-29 15:03:01 -04:00
committed by GitHub
parent d5980354fa
commit 0b5c470b98
2 changed files with 4 additions and 4 deletions

View File

@ -250,12 +250,12 @@ export class CardExample {
</template> </template>
<script> <script>
import { IonCard, IonCardContent, IonCardSubtitle, IonCardTitle, IonIcon, IonItem, IonLabel } from '@ionic/vue'; import { IonCard, IonCardContent, IonCardHeader, IonCardSubtitle, IonCardTitle, IonIcon, IonItem, IonLabel } from '@ionic/vue';
import { pin, walk, warning, wifi, wine } from 'ionicons/icons'; import { pin, walk, warning, wifi, wine } from 'ionicons/icons';
import { defineComponent } from 'vue'; import { defineComponent } from 'vue';
export default defineComponent({ export default defineComponent({
components: { IonCard, IonCardContent, IonCardSubtitle, IonCardTitle, IonIcon, IonItem, IonLabel } components: { IonCard, IonCardContent, IonCardHeader, IonCardSubtitle, IonCardTitle, IonIcon, IonItem, IonLabel }
setup() { setup() {
return { warning }; return { warning };
} }

View File

@ -49,12 +49,12 @@
</template> </template>
<script> <script>
import { IonCard, IonCardContent, IonCardSubtitle, IonCardTitle, IonIcon, IonItem, IonLabel } from '@ionic/vue'; import { IonCard, IonCardContent, IonCardHeader, IonCardSubtitle, IonCardTitle, IonIcon, IonItem, IonLabel } from '@ionic/vue';
import { pin, walk, warning, wifi, wine } from 'ionicons/icons'; import { pin, walk, warning, wifi, wine } from 'ionicons/icons';
import { defineComponent } from 'vue'; import { defineComponent } from 'vue';
export default defineComponent({ export default defineComponent({
components: { IonCard, IonCardContent, IonCardSubtitle, IonCardTitle, IonIcon, IonItem, IonLabel } components: { IonCard, IonCardContent, IonCardHeader, IonCardSubtitle, IonCardTitle, IonIcon, IonItem, IonLabel }
setup() { setup() {
return { warning }; return { warning };
} }