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 🙏

© 2025 – Pkg Stats / Ryan Hefner

vue-qeelyn-components

v2.3.0

Published

所有qeelyn vue web项目 的vue处理公共部分 iview 已升级到4.x版本

Readme

vue-qeelyn-components

所有qeelyn vue web项目 的vue处理公共部分 iview 已升级到4.x版本

获取方式

npm install vue-qeelyn-components --save

公共部分

1. iview-components  (iview公共组件库)
2. util  (基础工具、excel处理)
3. vuex  (vuex 公共部分的库)

替换iview 上的控件

说明:目前大部分都还是根据ivieiw上的文档继续执行不会改变iview源码,而是对源码对应的控件进行替换成本项目的控件进行设置。但api会增加不会改变原来iview的文档

使用位置 -> admin.js

import doInputNumber from 'vue-qeelyn-components/iview-components/doInputNumber'
// 在Vue.use(iView)下方增加引入,InputNumber对应iview的控件命名这样项目内会自己替换掉
Vue.component('InputNumber', doInputNumber);

目前替换的控件

1.InputNumber  //主要处理控件输入的值问题
2.Table        //主要添加了自定义表头数据展示的功能

组件库 调用方式

在 *.vue中使用

import Header from "vue-qeelyn-components/iview-components/header";
export default {
    components: {
        LayoutHeader: Header   //担心冲突就这样写  不担心直接放入Header
    },
    ...
}

util 调用方式

util 基础工具

import Util from "vue-qeelyn-components/util";

引入api 配合的 sign 处理

  1. 默认在页面入口controller设置Cookie http.js 就会帮你处理sign
ctx.cookies.set('appkey', 'test_key');

vuex 调用方式

在 store.js 中使用

import qeelynModules from "vue-qeelyn-components/vuex";
import othenModules from "..."; //外部项目vuex
let modules = Object.assign(qeelynModules,othenModules);
export default new Vuex.Store({
    ...
    modules,
    ...
})

在main.js中,store设置uid与orgId

store.dispatch('qeelynLocal/setUid', window.eggUid);
store.dispatch('qeelynLocal/setOrgId',window.eggOrgId);
store.dispatch('qeelynLocal/setLoginOrgId',window.eggLoginOrgId);

模板html添加egg模板渲染

<script>
   window.eggOrgId = '{{orgId}}'
   window.eggLoginOrgId = '{{loginOrgId}}'
   window.eggUid = '{{uid}}'
</script>

引用的一些外部库

  1. 拖拽控件