Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@tddc/custom-form

Package Overview
Dependencies
Maintainers
6
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@tddc/custom-form

form表单

  • 0.0.1
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
6
Weekly downloads
 
Created
Source

安装和初始化

npm install @tddc/custom-form --save

demo 查看

demo

🚀 入参
  • CustomForm
参数说明类型默认值
initialValues初始化设置的值Array[]
  • CustomForm.List
参数说明类型默认值
name当前 formList 的 namestring / string[][]
  • CustomForm.Item

| 参数 | 说明 | 类型 | 默认值 | | ------------ | -------------------------------------------------------- | ---------- | -------- | ------ | --- | ------- | --- | ---- | --- | --------- | | name | 当前 formItem 的 name | string[] | [] | | initialValue | 当前 formItem 的初始化值 | string | | number | | boolean | | null | | undefined | | style | 自定义样式 | | | rules | 规则校验 | [] | [] | | | shouldUpdate | 当前字段是否每次 form 修改都更新(与 dependencies 二选一) | boolean | false | | | dependencies | 依赖字段改动导致本字段改动(与 dependencies 二选一) | namePath[] | false | |

  • CustomFormInstance
参数说明类型默认值
getFieldsValue获取当前所有单元格的值Fun() => {} |
getFieldValue获取某个单元格的值Fun(field: Array) => any; |
setFieldsValue给某些单元格设置值Fun(fileds: string[][]) => void; |
validateFields触发表单验证Fun() => Promise; |

FAQs

Package last updated on 14 Mar 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc