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

@kg-ui/kg-ui

v0.1.13

Published

<h2 align="center">星光探索 标签组件</h3> ## 简介: - 星光探索 标签组件vue2版本

Downloads

30

Readme

📦 安装

通过npm

npm install @kg-ui/kg-ui

通过yarn

yarn add  @kg-ui/kg-ui

🔨 快速开始

import kg_ui from '@kg-ui/kg-ui'
import '@kg-ui/kg-ui/lib/main.css'
Vue.use(kg_ui, {store: vuex对象})

<template>
  <Home></Home>
</template>

通过组件属性传入

  • pid: 选中项目id string
  • fdata: {}
    • filter 获取类别(非信源)appcategory/getAppCategoryList
    • filter_xinyuan: 获取类别(信源)appSourceCol/list
    • xinyuan_mapmping: 获取信源对应关系 appSourceMapping/getSourceMapping
    • xinyuan_head: 获取信源表头 appSourceCol/getAllList
  • fliterCount: 标签数量 {f1:num,f2:num,...}
  • pid: 选中项目id string

暴露的方法

  • getSelFilter: 获取选中的标签
  • getShowFilter: 获取显示的标签
  • getAllFilter: 获取全部标签
  • setSelFilter: 设置选中的标签 参数fid数组 [1,2,3]
  • clearAllData:切换项目的时候情况数据
  • setShowCount: 设置显示类别数量开关,默认 true 参数xxx :boolean
  • setShowFilter_byCount:只显示有数量的类别,默认false 参数xxx:boolean
  • setLanguage: 国际化设置,参数 字符串 zh 或 en, 默认是 zh

事件:

  • selFilterChange: 选中标签时触发