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

yzb-design-act

v0.0.6

Published

一直播活动组件

Downloads

4

Readme

活动组件 usage

import { Tabs, TabPane } from 'yzb-design-act'
//引入
components: {
    Tabs, TabPane
}
//使用
<Tabs @click="handldTabClick">
    <TabPane :current="current" :index="0">
        0000
    </TabPane>
    <TabPane :current="current" :index="1">
        1111
    </TabPane>
</Tabs>

或者

vue.use();

DataList 排行榜

<DataList
    :dataList="lists" //渲染列表
    :config="datalistConfig" //渲染配置
    :selectList="selectList" //日期list 如配置里isSelectDate:true
    @selectedDateCBK="selectedDateCBK" //日期选择
    @loadMore="loadMore"//加载更多
>
datalistConfig

渲染配置选项

name | 参数 | 备注
-|-|- isSelectDate | true/false | 是否显示日期组件 | selectedDate | 02月10日 | 默认显示日期 | emptymsg | '暂无数据' | 默认list为空的文案 | acatarItem | true/false | acatarItem组件显示 | avatarItem | true/false | avatarItem组件显示 | playerItem | true/false | playerItem组件显示 | isNext | true/false | 下一页 | isMore | true/false | 是否显示更多 |

DateSelector 日期组件
<DateSelector
    :selectList="selectList"
    :selectedDate="config.selectedDate"
    @selectedDateCBK="selectedDateCBK"
></DateSelector>

日期组件配置

name | 参数 | 备注
-|-|- selectList | true/false | 是否显示日期组件 | selectedDate | 02月10日 | 默认显示日期 | selectedDateCBK | Function | 日期选择 |

AcatarItem、AvatarItem、PlayerItem组件

可选择的三种list样式组件

  • AcatarItem--右侧贡献、距离上一名
  • AvatarItem--右侧收到XXXX
  • PlayerItem--右侧用户headlist
<AvatarItem
   v-for="(item, index) in dataList"
   :key="index"
   :list="item"
   :index="index"
   >
</AvatarItem>
//参数
lists: [
   {
       memberid: 354488798,
       nickname: "库奇侠🎤",
       score: 53,
       avatar:
       "https://alcdn.img.xiaoka.tv/20190629/a2d/2f3/354488798/a2d2f31d789d007f977be8ba30f953b6.jpg@1e_1c_0o_0l_160h_160w_100q_1pr.jpg",
       status: null,
       scid: null,
       platform: 0,
       url: "",
       sub_billboard: [
       {
           memberid: 359896175,
           nickname: "库奇💛小柠檬ʚɞ",
           score: 45,
           avatar:
           "https://alcdn.img.xiaoka.tv/20191102/df5/db7/359896175/df5db78823227de5811c255e3363b959.jpg@1e_1c_0o_0l_160h_160w_100q_1pr.jpg",
           platform: 0,
           url: ""
       },
       {
           memberid: 359896175,
           nickname: "库奇💛小柠檬ʚɞ",
           score: 45,
           avatar:
           "https://alcdn.img.xiaoka.tv/20191102/df5/db7/359896175/df5db78823227de5811c255e3363b959.jpg@1e_1c_0o_0l_160h_160w_100q_1pr.jpg",
           platform: 0,
           url: ""
       }
       ]
   },
   {
       memberid: 354488798,
       nickname: "库奇侠🎤",
       score: 53,
       avatar:
       "https://alcdn.img.xiaoka.tv/20190629/a2d/2f3/354488798/a2d2f31d789d007f977be8ba30f953b6.jpg@1e_1c_0o_0l_160h_160w_100q_1pr.jpg",
       status: null,
       scid: null,
       platform: 0,
       url: ""
   }
   ],