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-riil-formily-rule-tree

v1.0.22

Published

规则树组件

Downloads

80

Readme

规则树组件

@riil-frontend/component-riil-formily-rule-tree

规则树组件

CHANGE LOG

  • 2021-11-04 发布v1.0.0版
  • 2021-11-04 发布v1.0.1版 修改样式优先级问题
  • 2021-11-08 发布v1.0.2版 添加非空校验功能,修改 输入框改变失去焦点、添加一行不能赋默认值、多选下拉菜单默认选项不能删除等问题
  • 2021-11-09 发布v1.0.3版 onChangeItem事件添加返回values
  • 2021-11-10 发布v1.0.5版 修改开发方提出的6个问题
  • 2021-11-11 发布v1.0.6版 修改发现的状态bug
  • 2021-11-15 发布v1.0.8版 修改添加自定义卡片功能
  • 2021-11-16 发布v1.0.10版 回退修改添加自定义卡片功能
  • 2021-11-19 发布v1.0.11版 自定义卡片支持formily功能
  • 2021-12-06 发布v1.0.12版 修改结构add错误,换成and
  • 2021-12-06 发布v1.0.13版 修改发现的bug
  • 2021-12-07 发布v1.0.14版 修改样式冲突问题
  • 2023-5-25 发布v1.0.21版 为了配合站点主题调整,修正代码中写死的/错误的样式,改为使用next变量
  • 2023-5-25 发布v1.0.22版 为了配合站点主题调整,增加条件标题颜色变量

API

| 参数名 | 说明 | 必填 | 类型 | 默认值 | 备注 | | ------ | ---- | ---- | ---- | ------ | ---- | | initValues | 配置项初始值 | - | Array | [{ relation: 'and', children: [{ key: '1' }] }] | - | | fields | 每一行表达式的配置 | 是 | Array | - | - | | onChange | 配置项改变的回调事件签名:Function(dataSource: Array, changeValues : Array, index: Number, action: String) => void参数:dataSource: {Array} 所有配置项的值changevalues: {Array} 当前修改的配置项的值index: {Array} 当前修改的配置项的indexaction:{string} 操作状态 add、delete、update | - | Function | -
| onChangeItem | 配置项改变的回调事件(联动事件回调)签名:Function(path: String, value: Any, set: Function, setRow: Function, values: Array) => void参数:path: {String} 当前组件所在位置的路径value: {Any} 当前组件的值set: {Function} 设置组件状态方法,参数:path:要操作组件的路径 setRow: {Function} 设置行显隐方法,参数:groupIndex:组索引, CardID: 卡片索引, RowIndex: 组下行索引, isShow: true显示,false隐藏values:当前组的值 | - | Function | - | - | | defaultAddRelation | 新增条件组关系时的默认关系 | - | String | 'and' | 'and' 'or' | | defaultAddFieldsValue | 新增条件组关系时的默认值 | - | Object | { relation: 'and', children: [{ key: 1 }] } | - | | ruleTreeProps | RuleTree组件属性透传 | -| Object | - | - | | components | 注册组件 | 是| Object | - | - |