Skip to content

Commit 5cefc12

Browse files
committed
trying add antd setup
1 parent af82699 commit 5cefc12

File tree

2 files changed

+18
-18
lines changed

2 files changed

+18
-18
lines changed

src/content/create-tour-card.md

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ framework: vue
1111

1212
In this post we will make a tour card that will allow us to display all our listings.
1313

14-
Create a cards directory and create TourCard.vue file:
14+
Create a `cards` directory and create `TourCard.vue` file:
1515

1616
```javascript
1717
<template>
@@ -50,10 +50,26 @@ export default {
5050

5151
```
5252

53-
🔇 Here we have a div that is styled accordingly to look like a card, which will accept props.
53+
🔇 Here we have a `div` that is styled accordingly to look like a card, which will accept props.
5454

5555
🔇 It also uses Ant Design's `<Rate/>` component so we can display the rating of the listing.
5656

57+
Next off we need to add Ant Design because we will use it's tabs component to create the checkout screen.
58+
59+
```
60+
$ yarn add ant-design-vue
61+
```
62+
63+
Then next head over to the `main.js` file to register it globally:
64+
65+
```
66+
import { Tabs} from "ant-design-vue";
67+
import "ant-design-vue/dist/antd.css";
68+
69+
Vue.use(Tabs);
70+
71+
```
72+
5773
Once you're done, it will look like this:
5874

5975
![tour-card](/uploads/tourcard.png)

src/content/setup-mutation-workflow.md

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -47,22 +47,6 @@ mutation MAKE_A_BOOKING(
4747

4848
```
4949

50-
Next off we need to add Ant Design because we will use it's tabs component to create the checkout screen.
51-
52-
```
53-
$ yarn add ant-design-vue
54-
```
55-
56-
Then next head over to the `main.js` file to register it globally:
57-
58-
```
59-
import { Tabs} from "ant-design-vue";
60-
import "ant-design-vue/dist/antd.css";
61-
62-
Vue.use(Tabs);
63-
64-
```
65-
6650
Lastly, lets add a route for the Booking page in the `router.js` file:
6751

6852
```

0 commit comments

Comments
 (0)