Blame view

apps/components/widgets/widget-fav.vue 485 Bytes
陈峰 authored
1
<template>
yyq authored
2
  <WidgetIconBtn ref="iconBtn" type="fav" :share="share" :text="num" :article-id="articleId" :comment-id="commentId" :option="option" :pos-id="posId"></WidgetIconBtn>
陈峰 authored
3 4 5 6
</template>

<script>
export default {
yyq authored
7 8
  name: 'WidgetFav',
  props: {
陈峰 authored
9
    num: [String, Number],
yyq authored
10
    articleId: Number,
TaoHuang authored
11
    posId: Number,
yyq authored
12
    commentId: Number,
陈峰 authored
13 14
    option: Object,
    share: Boolean
yyq authored
15 16 17 18 19
  },
  methods: {
    click(animate) {
      this.$refs.iconBtn.onClick(animate);
    }
yyq authored
20
  }
陈峰 authored
21 22
};
</script>