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

sgj-workflow-ui

v1.0.53

Published

企业工作流UI组件库

Downloads

60

Readme

简体中文 | English

企业工作流UI组件库

安装

$ npm install sgj-workflow-ui

使用方法

完整引入

import Vue from 'vue'
import SgjWorkflowUi from 'sgj-workflow-ui'
import 'sgj-workflow-ui/dist/index.css'

Vue.use(SgjWorkflowUi)

按需引入

import Vue from 'vue'
import { PjActvBasicSetting, OrgSelect, OrgTransfer } from 'sgj-workflow-ui'
import 'sgj-workflow-ui/dist/index.css'

Vue.use(PjActvBasicSetting)
// 注册fc-org-select组件
Vue.component('fc-org-select', OrgSelect)
Vue.component('fc-org-transfer', OrgTransfer)

组件列表

PjActvBasicSetting

工作流基础设置组件

属性

| 参数 | 说明 | 类型 | 默认值 | | --- | --- | --- | --- | | configType | 配置类型 | String | - |

示例

<template>
  <PjActvBasicSetting configType="wams" />
</template>

fc-org-select

组织机构选择组件,支持用户、部门、角色选择

属性

| 参数 | 说明 | 类型 | 默认值 | | --- | --- | --- | --- | | value/v-model | 选中的用户数据 | Object | {} | | tabList | 可选择的类型 | Array | ['dep'] | | title | 弹框标题 | String | '组织机构' | | buttonType | 按钮类型 | String | 'input' | | maxNum | 最大可选数量 | Number | 99 | | disabled | 是否禁用 | Boolean | false | | searchable | 是否支持搜索 | Boolean | true |

事件

| 事件名 | 参数 | 说明 | | --- | --- | --- | | input | value | 选择变化时触发 | | change | value | 选择确认时触发 |

示例

<template>
  <div>
    <fc-org-select 
      v-model="selectedUsers" 
      buttonType="button" 
      title="选择用户" 
      :maxNum="1"
      :tabList="['user']" 
      @input="onUserChange"
    />
  </div>
</template>

<script>
import { OrgSelect } from 'sgj-workflow-ui'

export default {
  components: {
    'fc-org-select': OrgSelect
  },
  data() {
    return {
      selectedUsers: {}
    }
  },
  methods: {
    onUserChange(value) {
      console.log('用户选择变化:', value)
    }
  }
}
</script>

外部系统使用指南

问题描述

外部系统在使用 fc-org-select 组件时可能出现以下错误:

[Vue warn]: Unknown custom element: <fc-org-select> - did you register the component correctly?

解决方案

方案1:使用库的install方法(推荐)

import WorkflowUI from 'sgj-workflow-ui'

// 在Vue实例创建前注册组件
Vue.use(WorkflowUI)

方案2:手动注册组件

import { OrgSelect, OrgTransfer } from 'sgj-workflow-ui'

// 手动注册组件
Vue.component('fc-org-select', OrgSelect)
Vue.component('fc-org-transfer', OrgTransfer)

方案3:在组件中局部注册

<template>
  <fc-org-select v-model="selectedUsers" :tabList="['user']" />
</template>

<script>
import { OrgSelect } from 'sgj-workflow-ui'

export default {
  components: {
    'fc-org-select': OrgSelect
  }
}
</script>

详细使用指南请参考 EXTERNAL_USAGE_GUIDE.md

开发

# 克隆项目
git clone https://github.com/your-username/sgj-workflow-ui.git

# 安装依赖
npm install

# 启动开发服务器
npm run serve

# 构建库
npm run build:lib

发布

# 登录npm
npm login

# 发布包
npm version patch && npm publish

许可证

MIT

More instructions at documentation.