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

bsy-components

v0.7.1

Published

新版igroot组件库

Downloads

21

Readme

igroot

白山云前端业务组件库

Travis CI NPM downloads

✨ 特性

  • 提炼自各业务中常用的组件
  • 基于 antd 以及使用 TypeScript 编写,提供智能的编辑器提示
  • 重写、整合散落在各地的 igroot 业务组件
  • 严格遵循http://semver.org/lang/zh-CN/语义化版本规范

🖥 支持环境

  • React v16.8
  • antd v4.0

📦 安装

npm install bsy-components
yarn add bsy-components

🔨 示例

import { Form } from 'antd';
import { SelectTags } from 'bsy-components';

export default () => (
  <Form>
    <Form.Item label="多选标签" name="tags">
      <SelectTags mode="multiple" />
    </Form.Item>
  </Form>
);

⌨️ 集成在现有 SL 项目中

升级依赖

bsy-components 依赖 React v16.8.0 或以上以及 antd v4.x 版本,在引入前务必升级您的依赖版本。

不兼容当前版本的 igroot!

不兼容当前版本的 igroot!

不兼容当前版本的 igroot!

全新项目

  1. 卸载igroot并安装[email protected]
  2. 在 bsy.json 中配置 useAntd: true,打包时会默认将代码中的 igroot 替换为 antd(防止 igroot 全局样式影响)
  3. antdbsy-components注册在 bsy.json 的esMoudule

详细配置请在 confluence 内搜索 bsy.json,如遇到问题请联系 @韬仔

igroot 及 [email protected] 并存的老项目中

  1. 升级antd至 V4 版本,务必精读从 v3 到 v4
  2. 使用@ant-design/codemod-v4进行 V3 版本代码迁移
  3. 无需配置useAntd选项
  4. antdbsy-components注册在 bsy.json 的esMoudule
  5. 样式冲突请自行修改

不建议使用工具进行迁移,尽量将所有业务代码的变化掌握在自己手里。

最佳实践

// TODO

👨‍💻‍ 维护者

@ hanguihe

🤝 如何贡献

非常欢迎你的加入!

提 issue 或直接提交 Pull Request

当然也可以直接在企业微信内联系我