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

sc-powerful-form

v0.0.7

Published

### 介绍 基于 [Ant Design](https://ant.design) ,参考 [hermes-react](https://hermes.koubei.com) 实现的 **可增加的模块** 的组件

Readme

sc-powerful-form

介绍

基于 Ant Design ,参考 hermes-react 实现的 可增加的模块 的组件

初衷

由于项目里大量用到了可增加行的表格组件,先是使用了hermes-react组件库提供的可增加行的表格组件。

在使用 hermes-react 的 AddableRowTable 组件过程中也发现了一些问题:

  • hermes-react 提供的 AddableRowTable 组件默认会显示操作栏,而且没法隐藏, 而我期望的是可以自己控制操作栏的显示与否;
  • 组件设置 disabled 禁用,但是配置了 formFieldProps 的单元格 disabled 属性却 没有生效
  • formFieldProps 配置在生效时,initialValue 获取值错误的问题,这个问题提给了 hermes-react 的维护者,并且他已经在最新的1.8.4版本中修复了
  • 表格默认回显之后,如果手动调用 setFieldsValue 重新设置默认值,会引发回显出错的bug。此问题与 hermes-react 的内部实现有关。
  • hermes-react 的 AddableRowTable 表格组件是基于 antd 的 Row和Col组件渲染的,支持响应式,但是同时,最多也只能有24格,当表格需要填内容很多时,每一个单元格就会变得很窄。

以上几个问题虽然通过修改源码可以解决,但是个人感觉这个组件以后可能用到的地方比较多,每次都改下源码还是有点麻烦, 索性就基于 hermes-react ,自己写了一个这样的组件,并且也修复了以上前四个问题。

第五个问题正在尝试解决中...敬请期待

版本

0.0.2

安装

npm install sc-powerful-form --save
yarn add sc-powerful-form

使用

import { AddableRow, AddableRowTable, AddablePanel  } from 'sc-powerful-form'