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

okaycomponents

v0.0.28

Published

okay组件库

Readme

okaycomponents

基于Vue+avue的集成组件库

tree+form+crud三合一组件:

运行项目

下载依赖包命令:npm i

运行命令:npm run serve

构建包

构建包命令:npm run lib

发布版本:npm publish
更新版本:npm publish

下架版本:npm unpublish

npm首次发布注意:
如果有使用淘宝镜像,要先还原到npm镜像
注册好用户后,会有一条邮箱信息需要我们去确认授权,只有授权后才能发布npm
否则,就会一直报403的权限警告,不能发布,

在其他的项目中进行安装

$ npm install okaycomponents -S

使用

main.js 文件中引入插件并注册

# main.js
import okaycomponents from 'okaycomponents'
Vue.use(okaycomponents)

在项目中使用 okaycolorcomponents

<template>
  <div>
    <tree-form-table
        ref="treeFormTable"
        :formObj="formObj"
        :form="form"
        :treeData="treeData"
        :treeOption="treeOption"
        :formOption="formOption"
        :page="page"
        :crudData="crudData"
        :crudOption="crudOption"
        @ok-node-click="nodeClick"
        @ok-submit-form="submitForm"
        @ok-add-update="addUpdate"
        @ok-row-del="rowDel"
        @ok-single-add="singleAdd"
        @ok-add-row="addRow"
        @ok-cell-del="cellDel"
        @ok-save-all="saveAll"
        @ok-size-change="sizeChange"
        @ok-current-change="currentChange"
      ></tree-form-table>
  </div>
</template>
<script>
  export default {
    data () {
      return {
        
      }
    }
  }
</script>

特点

  1. 简单易用,组件库
  2. 提供以 npm 的形式安装,全局组件使用

传递值

:formObj="formObj" :form="form" :treeData="treeData" :treeOption="treeOption" :formOption="formOption" :page="page" :crudData="crudData" :crudOption="crudOption"

事件

@ok-node-click="nodeClick" @ok-submit-form="submitForm" @ok-add-update="addUpdate" @ok-row-del="rowDel" @ok-single-add="singleAdd" @ok-add-row="addRow" @ok-cell-del="cellDel" @ok-save-all="saveAll" @ok-size-change="sizeChange" @ok-current-change="currentChange"