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 🙏

© 2026 – Pkg Stats / Ryan Hefner

twolions-ui

v1.0.0

Published

这是一个比较牛逼的ui组件库,看到了不用吃亏的是你

Downloads

13

Readme

说明

twolions-UI 你们没看过吧,我是最牛逼的 UI 组件库,主要用于快速开发基于 VUE2.0 的项目,如果再某个网站看到我,你不用我,吃亏的是你自己,不信走着瞧

安装

cnpm i twolions-ui -S

使用

在src/main.js
import twolionsUI from 'twolions-ui';
Vue.use(twolionsUI);
import 'twolions-ui/twolions-ui.css';

组件

按钮

    <twolions-button>默认按钮</twolions-button>
    <twolions-button type="primary">主要按钮</twolions-button>
    <twolions-button type="success">成功按钮</twolions-button>
    <twolions-button type="info">信息按钮</twolions-button>
    <twolions-button type="warning">警告按钮</twolions-button>
    <twolions-button type="danger">危险按钮</twolions-button>

表格

<twolions-table :column="column" :data="data"></twolions-table>
<script>
export default {
  data() {
    return {
        column: [
          {title: '编号', key: 'id'},
          {title: '姓名', key: 'name', render(row, data) { return `<b>${data}</b>`}},
          {title: '年龄', key: 'age'},
          {title: '性别', key: 'sex', render(row, data) { return data==1? '男' : '女'}},
        ],
        data: [
          {id:1, name: '武大郎', age: 998, sex: 1},
          {id:2, name: '西门庆', age: 18, sex: 1},
          {id:3, name: '潘金莲', age: 32, sex: 1},
          {id:4, name: '神龙教主', age: 32, sex: 1},
        ]
    }
  },
}
</script>

分页

<twolions-page :total="10" @changePage="changePageFn"></twolions-page>

<script>
export default {
  methods: {
    changePageFn(n) {
      alert(n)
    }
  }
}
</script>

弹框

<twolions-dialog :state.sync="dialogUserState" @submit="sayFn" title="用户编辑" content="用户编辑"></twolions-dialog>
<twolions-dialog :state.sync="dialogState" @submit="sayFn" title="填写信息" content="填写信息"></twolions-dialog>

<script>
export default {
  data(){
    return {
        dialogState : false,
        dialogUserState : false
    },
  methods: {
    sayFn(){
      alert("这是twolions封装的组件")
    },
  }
}
</script>

导航

<twolions-topbar>
    导航标题
</twolions-topbar>