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

cbim-pes-component-lcoal

v0.22.19

Published

### 安装 ```bash npm i cbim-pes-component

Downloads

1

Readme

审批组件

安装

npm i cbim-pes-component

# or
yarn add cbim-pes-component

使用示例

TestPesComponent.vue

<template>
    <!-- 审批组件 -->
    <!-- :isNeedCommentAndAction="true" 可选,回掉函数的返回值会包含审批动作和审批意见 -->
    <PesApproval
        v-model:visible="pesApprovalVisible"
        :pesParam="pesParam"
        @getApprovalResult="getApprovalResult"/>
    <a-button @click="showPesApproval">显示审批组件</a-button>

    <!-- 流程详情-流程图组件 -->
    <PesFlowChart
        v-model:visible="pesFlowChartVisible"
        :pesParam="pesParam"/>
    <a-button @click="showPesFlowChart">显示流程图组件</a-button>

    <!-- 审批历史 -->
    <PesHistory :pesParam="pesParam"></PesHistory>
</template>
<script setup lang="ts">
import { ref } from 'vue'
import { PesApproval, PesFlowChart, PesHistory } from 'cbim-pes-component'
// 样式
import 'cbim-pes-component/dist/cbim-pes-component.css'

// 入参,通用
const pesParam = {
    // 流程唯一标识,流程部署ID
    definitionId: string
    // 企业账户ID
    accountId: number
    // 应用标识
    appCode: string
    // 业务标识,审批流实例所属的业务
    businessKey: string
    // 当前用户的标识
    userId: number
    // 任务的标识
    taskId: number
}

// 审批组件
const pesApprovalVisible = ref(false)
const getApprovalResult = (result) => {
    console.log('result:', result) // 待办列表,用来发通知消息
}
const showPesApproval = () => {
    pesApprovalVisible.value = true
}

// 流程详情-流程图组件
const pesFlowChartVisible = ref(false)
const showPesFlowChart = () => {
    pesFlowChartVisible.value = true
}
</script>

依赖

  • "vue": "^3.0.0",
  • "ant-design-vue": "^2.2.8",
  • "@cbim/design-system-antd-adapter": "latest",
  • "@cbim/design-system-variable": "latest",

可能的依赖(根据后续功能再正式加入)

  • "@ant-design/icons-vue": "^6.0.1",