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

csit-core

v0.3.1

Published

基于vue、ant-design-vue的组件库

Readme

csit-npm-form

Project setup

yarn install

Compiles and hot-reloads for development

yarn serve

Compiles and minifies for production

yarn build

Lints and fixes files

yarn lint

Customize configuration

See Configuration Reference.

一、组件库

package.json

"lib": "vue-cli-service build --target lib --name csit-core --dest lib packages/index.js" "main": "lib/csit-core.umd.min.js"

vue.config.js

const path = require('path') function resolve(dir) { return path.join(__dirname, dir) } module.exports = { pages: { index: { entry: 'examples/main.js', template: 'public/index.html', filename: 'index.html' } }, // 扩展 webpack 配置,使 packages 加入编译 chainWebpack: config => { config.module .rule('js') .include .add('/packages') .end() .use('babel') .loader('babel-loader') }, configureWebpack: { resolve: { alias: { '@': resolve('packages') } } }, }

组件下 index.js // 导入组件,组件必须声明 name import UserSelect from './src'

// 为组件提供 install 安装方法,供按需引入 UserSelect.install = function (Vue) { Vue.component(UserSelect.name, UserSelect) }

// 导出组件 export default UserSelect

全局 index.js

// 导入UserSelect组件 import UserSelect from './UserSelect'

import { setConfig } from '@/utils/request' // 组件列表 const components = [ UserSelect ]

// 定义 install 方法,接收 Vue 作为参数。如果使用 use 注册插件,那么所有的组件都会被注册 const install = function (Vue) { // 判断是否安装 if (install.installed) return // 遍历注册全局组件 components.map(component => Vue.component(component.name, component)) }

// 判断是否是直接引入文件 if (typeof window !== 'undefined' && window.Vue) { install(window.Vue) }

export default { // 导出的对象必须具有 install,才能被 Vue.use() 方法安装 install, // 以下是具体的组件列表 UserSelect, setConfig }