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 🙏

© 2024 – Pkg Stats / Ryan Hefner

s-bpms-diagram.vue

v0.1.1

Published

<!-- 该 README.md 根据 api.yaml 和 docs/*.md 自动生成,为了方便在 GitHub 和 NPM 上查阅。如需修改,请查看源文件 -->

Downloads

14

Readme

SBpmsDiagram BPMS 流程图

bpms

BPMS 展示流程图通用业务组件

示例

基本用法

<template>
  <s-bpms-diagram :loading="loading" :data="data"></s-bpms-diagram>
</template>

<script>
  export default {
    data() {
      return {
        loading: true,
        data: {},
      };
    },
    created() {
      setTimeout(() => {
        this.data = {
          elements: [
            {
              completed: true,
              current: false,
              id: 'startEvent1',
              name: null,
              incomingFlows: [],
              x: 100,
              y: 163,
              width: 28,
              height: 28,
              type: 'StartEvent',
            },
            {
              completed: true,
              current: true,
              id: 'sid-05CEB0A0-4479-42D3-9823-C3ED6A684E57',
              name: '测试任务',
              incomingFlows: ['sid-9F7E3F79-92ED-4E87-B63D-8DB6FB1BE4F4'],
              x: 173,
              y: 137,
              width: 100,
              height: 80,
              type: 'UserTask',
              properties: [
                {
                  name: 'Candidate groups',
                  value: '${initiator}',
                },
              ],
            },
            {
              completed: false,
              current: false,
              id: 'sid-B9123E26-2A95-4FAC-9E14-F5F3D2E02897',
              name: null,
              incomingFlows: ['sid-B1CD13CA-7AD1-4982-A533-0631C2D21019'],
              x: 318,
              y: 163,
              width: 28,
              height: 28,
              type: 'EndEvent',
            },
          ],
          flows: [
            {
              completed: true,
              current: false,
              id: 'sid-9F7E3F79-92ED-4E87-B63D-8DB6FB1BE4F4',
              type: 'sequenceFlow',
              sourceRef: 'startEvent1',
              targetRef: 'sid-05CEB0A0-4479-42D3-9823-C3ED6A684E57',
              name: null,
              waypoints: [
                {
                  x: 129,
                  y: 177,
                },
                {
                  x: 172,
                  y: 177,
                },
              ],
            },
            {
              completed: false,
              current: false,
              id: 'sid-B1CD13CA-7AD1-4982-A533-0631C2D21019',
              type: 'sequenceFlow',
              sourceRef: 'sid-05CEB0A0-4479-42D3-9823-C3ED6A684E57',
              targetRef: 'sid-B9123E26-2A95-4FAC-9E14-F5F3D2E02897',
              name: null,
              waypoints: [
                {
                  x: 272,
                  y: 177,
                },
                {
                  x: 318,
                  y: 177,
                },
              ],
            },
          ],
          collapsed: [],
          diagramBeginX: 114,
          diagramBeginY: 137,
          diagramWidth: 346,
          diagramHeight: 217,
          completedActivities: [
            'startEvent1',
            'sid-9F7E3F79-92ED-4E87-B63D-8DB6FB1BE4F4',
            'sid-05CEB0A0-4479-42D3-9823-C3ED6A684E57',
          ],
          currentActivities: ['sid-05CEB0A0-4479-42D3-9823-C3ED6A684E57'],
          completedSequenceFlows: [],
        };
        this.loading = false;
      }, 2000);
    },
  };
</script>

API

Props/Attrs

| Prop/Attr | Type | Options | Default | Description | | --------- | ---- | ------- | ------- | ----------- | | loading | boolean | | | 展示加载中 | | error | string | | | 展示错误信息 | | data | object | | [object Object] | bpms 默认格式的 json 数据 |

Events

@success

绘图成功后触发