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

cbim-common-components

v0.0.15

Published

``` npm install --save cbim-common-components ```

Readme

Start

安装

npm install --save cbim-common-components

使用

import { ProjDocArchiveSelector } from 'cbim-common-components';
// 如果全局引入了就无需在使用的位置引入
import "cbim-common-components/style.css";

注意:

  1. 使用的项目的构建配置中,需要添加resolve.alias配置项,如下:
resolve: {
  alias: {
    'vue': path.resolve(__dirname, 'node_modules/vue'),
  },
},

示例

ProjDocArchiveSelector组件

  • 使用示例
<template>
  <div class="content">
    <Button @click="onClick">选择归档文件</Button>
    <ProjDocArchiveSelector
      ref="el"
      title="选择归档文件"
      from="sign"
      baseURL="/api"
      :isFolder="false"
      :single="false"
      projectId="1134462444210982912"
      docProjectId="1134462443644751872"
      errorTipText="请选择文件!"
      @onSave="onSave"
    />
  </div>
</template>
<script lang="ts" setup>
import { ref } from "vue";
import { ProjDocArchiveSelector } from "cbim-common-components";
import { Button } from "ant-design-vue";
import "cbim-common-components/style.css";

const el: any = ref(null);
const onClick = () => {
    el.value?.show()
};

const onSave = (res: any) => {
    console.log("onSave", res);
};
</script>
  • 参数说明

|参数名|参数类型|参数说明|是否必填| |--|--|--|--| |docProjectId|String|项目id|是| |projectId|String|子项id,没有传项目id|是| |title|String|弹窗标题|否| |from|String|来源|否| |baseURL|String|网关地址|否| |single|Boolean|是否单选,默认多选|否| |isFolder|Boolean|是否文件夹|否| |errorTipText|String|错误提示|否| |onSave|Function|保存回调|否| |showMask|Boolean|是否显示遮罩|否| |destroyOnClose|Boolean|关闭时销毁|否|

ProjDocFormSelector组件

  • 使用示例
<template>
  <div class="content">
    <Button @click="onClick">选择表单</Button>
    <ProjDocFormSelector
      ref="el"
      title="选择表单"
      baseURL="https://test6-gw.cbim.org.cn"
      :single="false"
      subProjectId="1134462444210982912"
      projectId="1134462443644751872"
      accountId="1074041648209756161"
      userId="901417056736514048"
      errorTipText="请选择表单!"
      @onSave="onSave"
    />
  </div>
</template>
<script lang="ts" setup>
import { ref } from "vue";
import { ProjDocFormSelector } from "cbim-common-components";
import { Button } from "ant-design-vue";
import "cbim-common-components/style.css";

const el: any = ref(null);
const onClick = () => {
    el.value?.show()
};

const onSave = (res: any) => {
    console.log("onSave", res);
};
</script>

此组件依赖cbim-table-gx,请先安装cbim-table-gx并全局引入

// entry.ts
import { createApp } from 'vue'
import App from './App.vue'

/** 1 */
import cbimTableGx from 'cbim-table-gx'
import 'cbim-table-gx/cbim-table.css'

const app = createApp(App)

/** 2 */
app.use(cbimTableGx)

app.mount('#app')
  • 参数说明

|参数名|参数类型|参数说明|是否必填| |--|--|--|--| |projectId|String|项目id|是| |subProjectId|String|子项id,没有传项目id|是| |accountId|String|企业accountId|是| |userId|String|用户id|是| |title|String|弹窗标题|否| |baseURL|String|网关地址|否| |single|Boolean|是否单选,默认多选|否| |errorTipText|String|错误提示|否| |onSave|Function|保存回调|否| |showMask|Boolean|是否显示遮罩|否| |destroyOnClose|Boolean|关闭时销毁|否|