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

ztf_test_package_process

v0.1.5

Published

柒志公司自定义开发的通用前端组件

Readme

qiz-comp-kanban-vue

柒志公司自定义开发的通用前端组件

安装依赖

npm install

编译

npm run serve

Compiles and minifies for production

npm run build

Lints and fixes files

npm run lint

组件开发与使用

组件开发

目录规划

packages
        |-- api //系统公用的api接口调用js
        |-- components //自定义组件目录
                     |-- qiz-common //自定义的通用组件
                     |-- qiz-powergrid //电网项目/产品专用的组件
        |-- utils //js工具类
        |-- index.js //整合所有组件的js代码

定义新组件

  • 自定义组件的目录名称采用驼峰式命名规则,首字母为小写,如:equipPopup
  • 组件内的目录结构(equipPopup组件为示例)
equipPopup
        |-- src //存储组件代码
               |-- api //组件自有的api接口js定义目录,里面的js文件名称自定义
               |-- index.vue  //组件的vue模板代码
        |-- index.js //声明组件,将组件对外提供组件的引用
  • 若组件内有业务独特的api调用接口,则在组件的api目录中进行定义
  • 组件的名称必须以QIZ开头,定义在组件的index.vue中,名称与组件目录的名字保存一致,采用驼峰式,如:QIZEquipPopup
<script>
    export default {
        name: "QIZEquipPopup",

注意:发布之前先到examples文件夹注册组件验证,验证没问题之后再发布npm私库

组件发布至npm仓库

组件编写完成之后的npm推送

修改windows登录用户下的.npmrc文件,内容如下;

registry=http://192.168.2.211:8081/nexus/content/groups/npm-all/
[email protected]
always-auth=true
_auth="cWl6ZGVwbG95bWVudDpxaXpkZXBsb3ltZW50ITIzNA=="

修改vue组件开发项目中,推送私库的仓库地址 发布组件是推送到npm私库中,跟下载依赖组件的地址不一样,所以需要单独的配置,可以在前端组件项目中的package.json中配置发布的仓库地址

"publishConfig" : {
   "registry" : "http://192.168.2.211:8081/nexus/content/repositories/npm-internal/"
},

推送发布组件 进入你的工程目录,在package.json中设置好要发布的版本号,修改好之后执行以下指令完成推送。

npm publish

组件使用

第三方项目安装组件

npm install qiz-comp-authority-vue@版本号

目前平台的公用组件都集成在这一个包中

安装完依赖后在main.js全局注册组件

import qizCompAuthorityVue from 'qiz-comp-authority-vue'
Vue.use(qizCompAuthorityVue)