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

@riil-frontend/component-add-data-group

v1.0.10

Published

添加数据组

Downloads

22

Readme

AddDataGroup

add-data-group

添加数据组 此组件为完全受控组件,value 值为必填

声明:组件数据项占用myRowKey作为 table 数据的索引项(primaryKey),由 uuid 方法自动生成;数据项占用disabled:boolean 作为控制当前项禁用删除按钮

API

| 参数名 | 说明 | 必填 | 类型 | 默认值 | 备注 | | ----------------- | ------------------------------------------------------------------------------------------------ | ---- | ------------------ | -------- | ------------------------------ | | tableProps | 透传 table 组件属性 | - | object | - | | | ColumnNodes | table 列配置属性 | - | array | - | | | onChange | 添加行,删除行,拖拽行回调 | - | (tableData:[])=>{} | - | | | value | table 组件 dataSource 数据 | 必填 | array | - | | | defaultRowData | 组件点击添加时,默认增加一条此值的数据 | 必填 | objcet | - | | | minDataLength | 组件数据最小长度,小于最小长度时,删除按钮禁用 | - | number | - | | | maxDataLength | 组件数据最大长度,大于最大长度时,添加按钮禁用 | - | number | - | | | delNeedConfirm | 点击删除按钮时,是否弹出二次确认提示 | - | boolean | false | | | maxDataLengthMsg | 添加按钮禁用时的提示信息 | - | string | - | 最多允许添加${maxDataLength}组 | | addDisabledMsg | 添加按钮手动禁用提示信息 | - | string | 禁用添加 | | | addDisabled | 添加按钮禁用标记位 | - | boolean | - | | | optionColumnProps | 操作列配置项,可用于扩展操作列。属性同 table 的 Column。其中的 cell 对象,会被追加在删除按钮之前 | - | object | - | | | canDrag | 是否可拖拽开关,若禁用,则第一列的拖拽按钮列将不显示 | - | boolean | true | | | isShowAddButton | 是否显示添加按钮 | - | boolean | true | | | isShowDeleteButton | 是否显示删除按钮 | - | boolean | true | |

CHANGE LOG

  • 1.0.2 增加属性 isShowAddButton, 用于不需要显示添加按钮的场景
  • 1.0.3 fix 增加属性 isShowAddButton 后引发的问题
  • 1.0.4 tableProps 支持外部覆盖组件内 table 配置
  • 1.0.5 修复 demo 不显示添加按钮问题