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

td-react

v1.1.18

Published

td react components based on ant-design.

Readme

TD React Components

该项目是通达OA前端组基于React、ant-design开发的一些公共组件,方便今后产品或其项目的使用。

安装说明

  1. 下载或SVN检出该项文件命名为td-react,例如放在E盘根目录;
  2. 在命令行中的E:\ 下执行 npm install 命令,成功后td-react文件夹下新增node_modules文件夹;
  3. 在命令行中继续执行 npm run antd 命令,初始化 antd.css 文件;
  4. 可以在src文件夹中新增组件的相关逻辑。

目录说明

td-react

dist

libs

boudle.js 打包后输出的js文件

index.css 各个组件打包后统一的样式文件

index.html 打包后输出的静态文件

jquery.mini.js 组件开发依赖于jquery

... 可放置组件开发依赖的非react插件文件

example

componentExample.jsx 组件测试用例,在index.js中引用

index.css 所有组件测试用例样式文件

index.js 组件测试用例入口文件

... 每个组件测试用例写一个.jsx文件,并在index.js中引用

src

assets

tpl.html 静态模板文件夹

componentName 一个文件夹是一个组件

components 放置子组件

index.jsx 组件入口

index.css 组件样式文件

index.css 所有组件测试用例样式文件

index.js 组件开发入口文件

... 每个组件测试用例写一个.jsx文件,并在index.js中引用

convert.js 编码转换文件

package.json 项目的配置文件

README.md 说明文件

webpack.congfig.js 项目打包配置文件

调用说明

  1. 在命令行中执行 npm install td-react 命令;
  2. 在命令行中继续执行 npm run antd 命令,初始化 antd.css 文件;
  3. 在命令行中继续执行 npm run td-react 命令,初始化 td.react.css 文件;
  4. 在调用文件中写入 import tdReact from 'td-react'
  5. 定义其中的一个组件 const ComponentNames = tdReact.ComponentNames
  6. 在调用的地方<ComponentNames />直接使用。