cpn-basic-z-form

Configure UDesign ZForm components with rc-form wrappers for form handling.

1|Updated Apr 14, 2026
One-click install
npx skills add https://github.com/UCloud-FE/udesign-cli --skill cpn-basic-z-form
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: cpn-basic-z-form
Source: https://github.com/UCloud-FE/udesign-cli/tree/main/skills/cpn-basic-z-form
Command: npx skills add https://github.com/UCloud-FE/udesign-cli --skill cpn-basic-z-form

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

ZForm 是 rc-form 的简单封装,提供 formDecorator、controllerDecorator 和 formShape,使表单数据管理、校验和渲染更简洁。此技能帮助 AI 正确使用 ZForm,在需要时加载,并指导如何用 ZForm 包裹控件、收集数据、进行校验等。

Core Features & Use Cases

  • ZForm core: formDecorator、controllerDecorator 和 formShape 的组合使用
  • 数据管理与校验简化:通过 ZForm 实现数据收集、校验
  • Use Case:在 React 组件中以 ZForm 包裹控件,构建表单并进行校验与提交

Quick Start

Load this skill and wrap inputs with formDecorator and controllerDecorator to build a ZForm-based form.

Frequently Asked Questions about cpn-basic-z-form

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I build dynamic React forms with rc-form wrappers for validation?

To build dynamic React forms with rc-form wrappers, use UDesign ZForm to wrap inputs with formDecorator and controllerDecorator, simplifying data collection and validation. This approach manages form state and data flow across React components.

What is the best way to simplify form validation and data management in React?

The best way to simplify form validation and data management in React is using ZForm, which provides formDecorator, controllerDecorator, and formShape to make data handling and validation more concise without complex manual state logic.

How do ZForm decorators work with formShape to handle data flow?

ZForm decorators work with formShape by wrapping React controls to collect data and apply validation rules. formDecorator and controllerDecorator manage the data flow and interactions, ensuring form state is consistently synchronized.

Do I need prior knowledge of rc-form integration to use ZForm?

Yes, you need prior knowledge of rc-form integration and the required API surface of ZForm decorators. ZForm is a simple wrapper around rc-form, so understanding its base mechanisms is necessary to correctly configure form fields and validation.

Can I use ZForm to collect and validate form data across multiple React components?

Yes, you can use ZForm to collect and validate form data across multiple React components. By applying formDecorator and controllerDecorator, ZForm ensures consistent data flow and validation rules are maintained throughout your component hierarchy.

Why does my ZForm validation not work when wrapping custom inputs?

ZForm validation may not work if custom inputs are not correctly wrapped with controllerDecorator or if the formShape configuration is invalid. Ensure your control decorators align with the manual and example patterns to maintain proper data flow.