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

wis-components

v0.1.17

Published

## 1.安装依赖 ``` npm install ```

Readme

wis-components

1.安装依赖

npm install

启动项目

npm run serve

打包并且推送到npm

npm run pushnpm

modal组件开发步骤

1.packages/config/modal-config.js 配置方法

 OaExpenseAccount:{
        api:'/api/oa/cost/account/selectPage',//分页接口
        searchCompName: 'oa-expenseAccount-search',//查询组件
		//筛选框配置查询条件
        queryParams:{
            companyCode:'',
            accountCode:'',
            accountName:'',
            status:1, //默认查询条件
        },
		//table列配置
        column: [
            {
                title: '科目代码', //表头
                key: 'accountCode', //列展示字段
                width:150 //列宽度
            },
            {
                title: '科目名称',
                key: 'accountName',
            },
            {
                title: '公司代码',
                key: 'companyCode',
                width: 120
            },
            {
                title: '状态',
                key: 'statusView',
                width: 100
            },
        ]
    },

2.packages/modal/search-header 内开发搜索组件

具体实现请阅读代码: 注意:

//搜索组件其实就是个表单,表单绑定的查询对象为formInfo,props必须要有formInfo
export default {
   name: 'oa-costcenter-search', //搜索组件名
   data() {
       return {

       }

   },
   props: {
       formInfo: {}
   }
}

3.搜索组件注册 详情阅读代码 packages/index.js

4.使用input-select组件唤起弹窗

    <input-select placeholder="打开币种弹窗" v-model="FormData.name"  :codeMap="codeMap" :model="FormData" :rowKey="rowKey" title="币种" componentName="OaCurrency"/>
	//placeholder : 占位提示
	//v-model: 双向绑定的字段
	//codeMap: 对表单绑定的映射规则,比如{code:rowCode,name:rowName},意思是表格行数据的rowCode字段赋值给表单FormData的code,行数据rowName字段赋值给表单FormData的name,
	//rowKey: 需要获取表格行数据的值字段,例如rowKey为 'name',表示需要获取表格行数据的name字段的值,赋给FormData.name
	//title: 弹窗标题
	//componentName: 弹窗类型(必填!!!)

*5. 使用js方法手动唤起弹窗

 methods: {
    openModal() {
      let _self = this
      this.$ModalActions({
        title: _self.title, //弹窗标题
        rowKey: 'currencyCode',//需要获取表格行数据的值字段,供双向绑定使用,如果该属性不存在,默认获取整行数据
        model: _self.FormData,// 必填!! 绑定的表单
        bindModelKey:'code', // 对表单属性进行双向绑定的key,
        codeMap: { code: 'currencyCode', name: 'currencyName' },
		//对表单绑定的映射规则,比如{code:currencyCode,name:currencyName},意思是表格行数据的currencyCode字段赋值给表单FormData的code,行数据currencyName字段赋值给表单FormData的name,
        componentName: 'OaCurrency',//必填!!!弹窗类型
		//setValue回调方法,选用,rowKey存在,输出对应value值,当rowKey不存在的时候,默认输出选中的整行数据,可以在此回调方法内进行操作
        setValue(val) { 
          _self.FormData.code = val
        }
      })
    }
  }

End