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

plug-in-components

v1.2.0

Published

### NPM

Readme

安装

NPM

# use npm
npm install plug-in-components

org-tree参照vue-tree-color

对vue-tree-color的再次封装

增加参数nodeCompName

# componentName 是在项目中定义的全局组件,会被引入node中加载
nodeCompName="componentName"

其他使用方法参考:https://github.com/CrazyMrYan/vue-tree-color

流程画布是对bpmn的再次封装

简单使用

import bpmnModeler from 'plug-in-components/src/views/bpmn/package'
<template>
  <div class="workflow-bpmn-modeler">
    <bpmn-modeler
      ref="refNode"
      :xml="xml"  // (processId、tenantId优先使用)与xml只给一个就行
      processId=""  // 流程id
      tenantId="" // 系统分类
      :is-view="isView"
      saveModelXml=''
      selectModelXml=''
      searchOrgList=''
      sysGroup=''
      roleTree=''
      flowStartRule=''
      selectByPCodes=''
      sysUser=''
      @save="save"
    />
  </div>
</template>

<script>
import bpmnModeler from 'plug-in-components/src/views/bpmn/package'
import { xmlStr } from '../../assets/xmlStr'
export default {
  components: {
    bpmnModeler
  },
  data() {
    return {
      xml: '', // 后端查询到的xml
      isView: false // 是否可编辑
    }
  },
  mounted() {
    this.initXml()
  },
  methods: {
    initXml() {
      this.xml = xmlStr
    },
    save(data){
      console.log(data)
    }
  }
}
</script>

<style lang="scss">
.workflow-bpmn-modeler {
  height: 100%;
  margin: 0;
}
</style>

右侧面板内容添加及修改

网关节点   gateway.vue
流程节点   process.vue
流程线节点  sequenceFlow.vue
开始结束节点  startEnd.vue
任务节点  task.vue
  1. 非级联数据添加字段:
  • 在对应节点的computed->formConfig->item的表单对象内添加属性
  • 在watch内增加修改属性的监听
  1. 级联数据添加自动断:
  • 级联添加必须使用弹窗方式参照任务task.vue节点的++orgCode++