Skip to content

Commit

Permalink
added ant d rating
Browse files Browse the repository at this point in the history
  • Loading branch information
AmoDinho committed Aug 4, 2020
1 parent 494da39 commit 62406c4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
7 changes: 1 addition & 6 deletions src/components/cards/ListingCard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,7 @@
</div>

<p class="font-display text-lg mt-8">${{ price }}</p>
<star-rating
:rating="rating"
read-only
:show-rating="false"
:star-size="20"
></star-rating>
<a-rate :default-value="rating" disabled />
</div>
</div>
</template>
Expand Down
3 changes: 2 additions & 1 deletion src/main.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import Vue from "vue";
import App from "./App.vue";
import router from "./router";
import { Tabs } from "ant-design-vue";
import { Tabs, Rate } from "ant-design-vue";
import StarRating from "vue-star-rating";
import { createProvider } from "./vue-apollo";

Expand All @@ -10,6 +10,7 @@ import "ant-design-vue/dist/antd.css";

Vue.config.productionTip = false;
Vue.use(Tabs);
Vue.use(Rate);

Vue.component("star-rating", StarRating);
new Vue({
Expand Down

0 comments on commit 62406c4

Please sign in to comment.