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

j-vue-component

v1.0.16

Published

jason组件库

Readme

使用方法

下载

 npm install j-vue-component

引入

引入lib下的index.js(如果非按需加载其余文件可以不需要放在项目文件夹中,只需要index.js)

<script src="./lib/index.js"></script>

使用组件

1.jason-cxtemp 组件

    <div id="box">
        <jason-cxtemp
              :objs="objs"
              :width="width"
              :height="height"
              @imgWheelFn="imgWheelFn"
              @imgMoveFn="imgMoveFn"
              @imgMouseupFn="imgMouseupFn"
              @imgReductionFn="imgReductionFn"
              @calconcentratvalcallbackfn="calConcentratValCallbackFn"
              >
        </jason-cxtemp>
    </div>

    var vm = new Vue({
        el:'#box',
        mounted(){
            this.objs = data.data;
            let editSize = data.editSize;
            this.width = editSize.width;
            this.height = editSize.height;
        },
        data(){
            return{
                objs:[],
                width:'',
                height:''
            }
        },
        methods:{
            imgWheelFn(uuid, imgWidth, imgHeight){
              console.log(uuid, imgWidth, imgHeight);
            },
            imgMoveFn(uuid, l, t){
              console.log(uuid, l, t)
            },
            imgMouseupFn(uuid){
              console.log(uuid);
            },
            imgReductionFn(uuid, info){
              console.log(uuid, info);
            },
            calConcentratValCallbackFn(uuid,cellIndex,colIndex){//计算浓度ct

              for(var i = 0;i < this.objs.length;i++){
                let item = this.objs[i];
                if(item.childs.length > 0){//判断是否为嵌套元素
                    for(let j = 0;j < item.childs.length;j++){

                        if(uuid == item.childs[j].uuid){
                            console.log(item.childs[j]);
                            //将该值设为true则改变该td颜色
                            this.$set(this.objs[i].childs[j].cell[cellIndex].tds[colIndex],"isHpvColorStype",true);
                            this.$set(this.objs[i].childs[j].cell[cellIndex].tds[colIndex],"concentratVal",100);
                            return;
                        }
                    }
                };
                if(uuid == item.uuid){
                    console.log(this.objs[i])
                    //将该值设为true则改变该td颜色
                    this.$set(this.objs[i].cell[cellIndex].tds[colIndex],"isHpvColorStype",true);
                    this.$set(this.objs[i].cell[cellIndex].tds[colIndex],"concentratVal",100);
                    return;
                }

              }
            }
        }
    })

参数说明:
1.objs:生成模板的数据;
2.width:模板的宽度;
3.height:模板的高度;
4.imgWheelFn:图片组件缩放回调函数,传入该组件uuid,图片宽度,图片高度三个参数;
5.imgMoveFn:图片组件拖拽过程中回调函数,传入该组件uuid,图片left值,图片top值三个参数;
6.imgMouseupFn:图片组件拖拽结束回调函数,传入该组件uuid;
7.imgReductionFn:图片组件还原回调函数,传入该组件uuid,图片信息两个参数;
8.calConcentratValCallbackFn:病理表格输入ct值@input回调函数;传入该组件uuid,该组件数据的的第几行,该组件数据的的第几列三个参数;
Author

jason [email protected]