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

xc-workflow-ui

v0.2.37

Published

基于vant二次封装工作流组件库

Downloads

333

Readme

开发说明

路径别名

具体信息请参考 jsconfig.json webpack配置

⚠️注意事项

  1. 如果在vue文件中无法得到智能提示,请将packages单独作为项目打开
  2. style标签内使用相对地址请加上 ~

样式文件开发

入口 packages/style

公用样式放在common 组件专用样式以 [filename].scss 进行命名

开发说明

组件属性

props

使用工具类来生成对应的props定义

name

业务组件使用Xc开头进行拼接

provide / inject

主要在WorkflowCollectWorkflowDetail组件中进行使用,函数类型数据或者顶级配置数据使用该项来传递

组件参数解析

collect

util

detail

util

引用说明

按需引用

从全局引用修改为按需引用后,需要重新启动项目,不然页面可能样式加载会出现问题

  1. 安装插件
 npm i -D babel-plugin-component 
  1. 配置babel(babel.config.js | .babelrc)
{
  plugins: [
    [
      "component",
      {
        libraryName: "xc-workflow-ui",
        styleLibrary: {
          // same with styleLibraryName
          name: "style", 
          // if theme package has a base.css
          base: false, 
        },
        // 文件名称是否转换为折线式
        camel2Dash: false,
      },
    ],
  ],
}

全局引用

⚠️组件库内部已引用vant全局样式,请删除原项目vant样式引用,避免打包体积过大
如果不使用插件 babel-plugin-component 则需要引入全局css

import "xc-workflow-ui/lib/style/index.css";

删除已有的vant样式

~~import "vant/lib/index.less";~~

todo

  1. [x] 测试采集、详情页面功能是否正常
    1. [x] 采集 7.27
    2. [x] 详情 7.27
  2. [x] 恢复音频功能
    1. [x] 采集
    2. [x] 详情
  3. eslint
    1. [x] js
    2. [x] vue
  4. [x] banner 暴露为插槽
  5. [x] dataLoadApis 8.2
  6. [x] cascader 迁移 8.2
  7. [x] 派遣按钮功能实现 8.5
  8. [x] 采集 定位 center 8.3
  9. [ ] types

打包相关

参考链接

提交说明

  1. 本地commit修改记录
  2. generate changelog
  3. publish