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 🙏

© 2025 – Pkg Stats / Ryan Hefner

@chidi-sdc/platform-ui

v1.0.0

Published

chidi frontend platform ui components

Readme

PlatformUI

中国电建集团成都勘测设计研究院有限公司数字工程分公司

研发中心平台前端组件库


安装

  npm i @chidi-sdc/platform-ui -S

使用

import "@chidi-sdc/platform-ui/dist/platform-ui.min.css";
import PlatformUI from "@chidi-sdc/platform-ui";

PlatformUI.PlTask

  • props
    • taskId 字符串 任务 id
    • taskType 字符串 todo | done 任务表单类型
      • todo 表示是代办任务,会渲染右测的处理区域
      • done 表示已办任务,不会渲染右侧处理区域
  • slot

    • 此组件提供有一个 slot 插槽,放入插槽的业务表单组件根据业务需要在业务表单组件 methods 中实现以下三个方法

      • 1、任务信息加载成功

          // PlTask会调用此方法将任务信息传递给业务表单组件
          onTaskLoad(task) {
            this.task = task;
            console.log(this.task);
          }
      • 2、流程表单按钮点击之前
          // PlTask在点击流程处理按钮之前会先调用此业务组件方法
          // 业务表单可以在此时处理业务系统的数据处理
          async beforeTaskButtonClick(button) {
            console.log("点击按钮前", button);
          }
      • 3、流程表单按钮点击之后
          // PlTask在流程处理流程点击完成并拿到后台返回结果后会调用此方法
          async afterTaskButtonClick(button, result) {
            console.log("点击按钮后", button, result);
          }
    • 业务表单组件 test

        <template>
          <div class="form-test">
            <h1>这里是动态表单组件</h1>
          </div>
        </template>
        <script>
          export default {
            name: "FormTest",
            methods: {
              async beforeTaskButtonClick(button) {
                console.log("点击按钮前", button);
              },
      
              async afterTaskButtonClick(button, result) {
                console.log("点击按钮后", button, result);
              },
              onTaskLoad(task) {
                this.task = task;
                console.log(this.task);
              }
            },
            data() {
              return {
                task: {}
              };
            }
          };
        </script>
    • PlTask 使用示例

        <template>
          <div class="demo-page">
            <div class="box">
              <pl-task :task-id="'677913593743671296'" :task-type="'done'">
                <test></test>
              </pl-task>
            </div>
          </div>
        </template>
        <script>
          import PlatformUI from "@chidi-sdc/platform-ui";
          import test from "./test";
          export default {
            name: "ApiTask",
            components: {
              PlTask : PlatformUI.PlTask,
              test
            },
            methods: {},
            data() {
              return {};
            }
          };
        </script>