cpn-basic-tree
OfficialGuides AI to use the UDesign Tree correctly.
AuthorUCloud-FE
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This skill guides AI to correctly use the UDesign Tree component. It clarifies that Tree nodes have distinct roles: parent nodes are for display and do not represent selectable items, while child nodes are the actual selectable items.
Core Features & Use Cases
- Guidance on importing the Tree component and creating a sample dataSource for demonstration.
- Documentation of API props: dataSource, disabled, multiple, selectedKeys, defaultSelectedKeys, onChange, loadData, collapseProps, search.
- Examples including controlled vs. uncontrolled usage, asynchronous loading via loadData, search functionality, and performance considerations for large data.
Quick Start
Follow the basic usage example to render a Tree with a sample dataSource and interact with selection, search, and dynamic loading as demonstrated.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: cpn-basic-tree Download link: https://github.com/UCloud-FE/udesign-cli/archive/main.zip#cpn-basic-tree Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.