vk-custom-component

Create self-contained custom components for vk-unicloud-admin across form, table, and detail contexts.

1|Updated Mar 26, 2026
One-click install
npx skills add https://github.com/caobingsheng/skills --skill vk-custom-component
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: vk-custom-component
Source: https://github.com/caobingsheng/skills/tree/main/skills/vk-custom-component
Command: npx skills add https://github.com/caobingsheng/skills --skill vk-custom-component

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Provides a structured blueprint for building self-contained custom components for the vk-unicloud-admin framework that can be reused across the universal form, table, and detail contexts, reducing duplication and ensuring consistency.

Core Features & Use Cases

  • Three-scene support (form, table, detail) controlled by a scene prop, enabling consistent rendering and interaction across contexts.
  • Clear naming conventions using the custom-<name> pattern for directories and component files to maximize reuse and discoverability.
  • A defined props/events contract (value, column, scene; input and change with the correct order) and straightforward integration with vk-data-form and vk-data-table, plus an easy workflow for testing and deployment.
  • Optional resource directories (scripts/, references/, assets/) to extend capabilities without breaking the core unit.

Quick Start

Create a new component under components following the custom-<name> pattern and wire it into your form or table configuration.

Frequently Asked Questions about vk-custom-component

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

FAQPage Schema
How do I build reusable Vue components for vk-unicloud-admin forms and tables?▼

Build reusable Vue components for vk-unicloud-admin by creating self-contained custom components with a consistent props and events contract. This ensures clean integration with vk-data-form and vk-data-table across multiple contexts.

What is the custom component pattern for vk-unicloud-admin?▼

The custom component pattern uses a custom-<name> naming convention for directories and files. Components rely on a defined props contract of value, column, and scene to render consistently across form, table, and detail contexts.

Can I use one custom component across form, table, and detail scenes in vk-unicloud-admin?▼

Yes, you can use one custom component across form, table, and detail scenes. A scene prop controls the rendering context, enabling consistent interactions without duplicating component code for each scenario.

How do I integrate a custom Vue component with vk-data-table?▼

Integrate a custom Vue component with vk-data-table by following the event contract using input and change with the correct parameter order. Wire the component directly into your table configuration for deployment.

Do I need YAML frontmatter for vk custom components?▼

Yes, you need YAML frontmatter with name and description fields for vk custom components. The structure also supports optional resource directories including scripts, references, and assets to extend component capabilities.