npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

vue2-share

v1.0.4

Published

this is a vue component that can let you to share what you want to share,include sina,qzon and weChat

Downloads

26

Readme

vue2-share

项目说明

  • 组件功能

    • 一键分享组件(包括新浪微博、QQ空间、微信二维码等)
  • 注意事项

    • 本组件只包含三个第三方图标按钮,不包含外层触发组件显示的分享图标
    • 默认支持 ES6
    • 默认支持 CSS3
    • 默认 vue 版本在 2.0 以上
    • 参数说明
      • shareType: 分享类型,数组,默认 ['sina','qzon','wx']
      • shareTitle:分享标题,字符串或数字,默认为空
      • shareUrl: 分享链接,字符串,默认 https://cn.vuejs.org/
      • shareImg: 分享配图src地址,字符串,默认为空
      • shareDirection:组件展示形式(横向transverse或竖向vertical),字符串,默认横向(transverse)
      • shareCodeInterface:微信二维码生成接口,字符串,默认 http://qr.liantu.com/api.php (第三方联图网)
  • 使用示例

    - demo.vue
      
    <template>
        <span class="shareIcon"  v-on:mouseenter="shareState(true)"  v-on:mouseleave="shareState(false)">
            <share v-if="state" :shareType="shareType" :shareDirection="shareDirection"></share>
        </span>
    </template>
    <script>
        import share from 'vue2-share';
        export default {
            components: {
                share
            },
            data(){
                return {
                    state:false,
                    shareType:['sina','qzon','wx'],
                    shareDirection:'transverse', 
                }
            },
            methods:{
                shareState(bl){
                    this.state = bl;
                }
            }
        }
    </script>
    <style type="text/css">
        .shareIcon{
            display:inline-block;
            min-width:16px;
            min-height:13px;
            position:absolute;
            top:100px;
            left:100px;
            background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAANCAMAAACXZR4WAAAAUVBMVEUAAAD39/f4+Ph2dnZmZmZ3d3dsbGxpaWlnZ2eAgIB5eXmYmJiDg4Ourq5qampjY2OPj49gYGBsbGxlZWWCgoKHh4dzc3O1tbWnp6eTk5N6enpNjNvrAAAADnRSTlMABgT8/PDwz8ixeG08OLYDh+cAAABgSURBVAjXXY5XEsAgCAWJ6Q0iqCn3P2hiizPuD7DzBoBCAypUQkRGLx6I4k+0sdVxvM0iRFkoKx1NnxiTYNKD2URyYnen73qXd6wQmCGJwlULrIWEx8yRseEKM2OCGeAFzzUE1+1DPK4AAAAASUVORK5CYII=');
            background-repeat: no-repeat;
            padding-top:20px;
        }
    </style>
      
  • 效果图 截图 截图

  • NPM 安装

    • npm/cnpm install --save-dev vue2-share
  • GitHub 地址

    • https://github.com/ZhaoruiGuang/projects/tree/vue2-share