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

@qse/approve-pc

v3.8.2

Published

edu common approve pc

Downloads

257

Readme

@qse/approve-pc

如果需要自定义 请看@qse/approve-core部分

安装

# 安装 更新
npm i @qse/approve-pc@latest

使用

ApprovePC 组件有 3 个子组件 ApprovePC.Info ApprovePC.Process ApprovePC.Controls,参数与ApprovePC一样

// 以下两种导入都可以,选一种即可
import { ApprovePC } from '@qse/approve-pc'
import ApprovePC from '@qse/approve-pc'

// 完整审批页面
function App() {
  return <ApprovePC sheet_id="1266521377981071360" userId="01632267266265" campusid="选填,影响编辑时List类型的数据" />
}

// 审批信息组件 参数与 ApprovePC 一样
function App() {
  return (
    <ApprovePC.Info sheet_id="1266521377981071360" userId="01632267266265" campusid="选填,影响编辑时List类型的数据" />
  )
}

// 审批流程组件 参数与 ApprovePC 一样
function App() {
  return <ApprovePC.Process sheet_id="1266521377981071360" userId="01632267266265" />
}

// 审批按钮组件 参数与 ApprovePC 一样
function App() {
  return <ApprovePC.Controls sheet_id="1266521377981071360" userId="01632267266265" />
}

API

| 属性 | 说明 | 类型 | 默认值 | | --------------------- | ---------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------- | ------ | | sheet_id | 表单 id | string | | | userId | 当前登录人 id | string | | | campusid | 校区 id | string | | | disabled | 禁用审批操作 | boolean | | | onResolve | 审批成功时的回调 | () => Promise<void> | | | onReject | 审批拒绝时的回调 | () => Promise<void> | | | onRejectAfterComplete | 审批拒绝(审批完成后)时的回调 | () => Promise<void> | | | onRevoke | 审批撤回时的回调 | () => Promise<void> | | | onUrge | 审批催办时的回调 | () => Promise<void> | | | onCreated | 当 init 调用后,会执行这个方法返回详情数据 | (approveState: ApproveState) => void | | | onPreview | 当点击查看附件的时候返回file信息。如果不填预览不了文件,并在控制台提示警告 | (file: Attachment) => void | | | allowNextSheet | 允许审批完成后自动跳转下一条单据 | boolean | false | | onDeliver | 转交按钮触发事件,传递的 callback 参数需要返回人员列表,用于转交给其他人 | (callback: (empList:Emp[], comment?:string) => Promise<void> approveState: ApproveState) => void | |