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

jun-rc-antd

v1.0.4

Published

Ant Design of React

Downloads

1

Readme

Ant Design of React

Installation

Install with npm:

npm install jun-rc-antd

Install with yarn:

yarn add jun-rc-antd

Usage

ES6 module:

import { ImgView } from 'jun-rc-antd';

// 图片预览
ReactDOM.render(
  <ImgView src="pic.png">
    <img
      alt="图片"
      src="pic.png"
      style={{ width: 80, height: 80 }}
    />
  </ImgView>,
  mountNode
);

Script:

<!DOCTYPE html>
<html lang="zh-cn">
<head>
  <meta charset="utf-8">
  <title>jun-rc-antd</title>
  <link rel="stylesheet" type="text/css" href="jun-rc-antd.min.css">
</head>
<body>
  <div id="root"></div>
  <script type="text/javascript" charset="utf-8" src="react.js"></script>
  <script type="text/javascript" charset="utf-8" src="react-dom.js"></script>
  <script type="text/javascript" charset="utf-8" src="browser.js"></script>
  <script type="text/javascript" charset="utf-8" src="jun-rc-antd.min.js"></script>
  <script type="text/babel">
    const ImgView = junRcAntd.ImgView;
    // 图片预览
    ReactDOM.render(
      <ImgView src="pic.png">
        <img
          alt="图片"
          src="pic.png"
          style={{ width: 80, height: 80 }}
        />
      </ImgView>,
      document.getElementById('root')
    );
  </script>
</body>
</html>

Note

部分组件需要引入样式

Components

ImgView

图片预览

样式:jun-rc-antd/lib/components/imgView/style.css

| Property | Description | Type | Default | | :------- | :---------- | :--- | :------ | | src | 图片资源 | string | - |

SearchForm

搜索表单

| Property | Description | Type | Default | | :------- | :---------- | :--- | :------ | | className | 样式类 | string | - | | formRef | 表单实体 | object | - | | onSearch | 查询回调 | function(values) | - | | onReset | 重置回调 | function | - | | list | 选择项 | array | - | | multiple | 是否为高级搜索 | boolean | false | | collapsed | 高级搜索是否收起 | boolean | true | | size | 简易搜索个数 | number | 3 | | loading | 是否正在查询 | boolean | - | | initialValues | 初始值 | object | - | | onExport | 导出回调 | function | - | | extra | 搜索栏额外元素【操作按钮】 | string | ReactNode | - | | onCollapse | 展开 | 收起回调 | function(collapsed) | noop | | searchText | 查询按钮文字 | string | 查询 | | resetText | 重置按钮文字 | string | 重置 | | exportText | 导出按钮文字 | string | 导出 | | collapseText | 收起状态按钮文字 | string | 展开 | | uncollapseText | 展开状态按钮文字 | string | 收起 |