Authored by yyq

widgets

1 <template> 1 <template>
2 - <div></div> 2 + <WidgetIconBtn type="fav" :text="num" :option="option"></WidgetIconBtn>
3 </template> 3 </template>
4 4
5 <script> 5 <script>
6 export default { 6 export default {
7 - name: 'WidgetFav' 7 + name: 'WidgetFav',
  8 + props: {
  9 + num: String,
  10 + option: Object
  11 + }
8 }; 12 };
9 </script> 13 </script>
@@ -32,8 +32,8 @@ @@ -32,8 +32,8 @@
32 selectedColor: '#444', // btn选中状态字体颜色(不设置默认与非选中一致) 32 selectedColor: '#444', // btn选中状态字体颜色(不设置默认与非选中一致)
33 iconFontSize: 48, // icon字号(单位px) 33 iconFontSize: 48, // icon字号(单位px)
34 textFontSize: 20, // text字号(单位px) 34 textFontSize: 20, // text字号(单位px)
35 - textAlign: 'normal', // text位置, 默认normal(支持normal, top, bottom)  
36 - textZoom: '', // text缩放 35 + textAlign: 'top', // text位置, 默认normal(支持normal, top, bottom)
  36 + textZoom: 0.9, // text缩放
37 textAutoChange: false, // text自动增减,只支持number类型(受是否支持选中控制) 37 textAutoChange: false, // text自动增减,只支持number类型(受是否支持选中控制)
38 emitName: '' // 点击触发事件名称 38 emitName: '' // 点击触发事件名称
39 }; 39 };
1 <template> 1 <template>
2 - <div></div> 2 + <WidgetIconBtn type="star" :text="num" :option="option"></WidgetIconBtn>
3 </template> 3 </template>
4 4
5 <script> 5 <script>
6 export default { 6 export default {
7 - name: 'WidgetLike' 7 + name: 'WidgetLike',
  8 + props: {
  9 + num: String,
  10 + option: Object
  11 + }
8 }; 12 };
9 </script> 13 </script>
1 <template> 1 <template>
2 - <div></div> 2 + <WidgetIconBtn type="share" :text="num" :option="option"></WidgetIconBtn>
3 </template> 3 </template>
4 4
5 <script> 5 <script>
6 export default { 6 export default {
7 - name: 'WidgetShare' 7 + name: 'WidgetShare',
  8 + props: {
  9 + num: String,
  10 + option: Object
  11 + }
8 }; 12 };
9 </script> 13 </script>